Audacity 3.2.0
Namespaces | Enumerations | Functions | Variables
NyqBench.cpp File Reference
#include <wx/defs.h>
#include <wx/aboutdlg.h>
#include <wx/filedlg.h>
#include <wx/font.h>
#include <wx/fontdlg.h>
#include <wx/menu.h>
#include <wx/msgdlg.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/splitter.h>
#include <wx/statbox.h>
#include <wx/textctrl.h>
#include <wx/toolbar.h>
#include "ActiveProject.h"
#include "AudioIOBase.h"
#include "CommonCommandFlags.h"
#include "ModuleConstants.h"
#include "Prefs.h"
#include "Project.h"
#include "ShuttleGui.h"
#include "effects/EffectManager.h"
#include "effects/EffectUI.h"
#include "effects/nyquist/Nyquist.h"
#include "../images/AudacityLogo.xpm"
#include "CommandContext.h"
#include "AudacityMessageBox.h"
#include "NyqBench.h"
#include <iostream>
#include <ostream>
#include <sstream>
#include "images/document-new-small.xpm"
#include "images/document-open-small.xpm"
#include "images/document-save-as-small.xpm"
#include "images/document-save-small.xpm"
#include "images/edit-clear-small.xpm"
#include "images/edit-copy-small.xpm"
#include "images/edit-cut-small.xpm"
#include "images/edit-delete-small.xpm"
#include "images/edit-find-small.xpm"
#include "images/edit-paste-small.xpm"
#include "images/edit-redo-small.xpm"
#include "images/edit-select-all-small.xpm"
#include "images/edit-undo-small.xpm"
#include "images/go-top-small.xpm"
#include "images/go-up-small.xpm"
#include "images/go-previous-small.xpm"
#include "images/go-next-small.xpm"
#include "images/system-search-small.xpm"
#include "images/media-playback-start-small.xpm"
#include "images/media-playback-stop-small.xpm"
#include "images/document-new-large.xpm"
#include "images/document-open-large.xpm"
#include "images/document-save-as-large.xpm"
#include "images/document-save-large.xpm"
#include "images/edit-clear-large.xpm"
#include "images/edit-copy-large.xpm"
#include "images/edit-cut-large.xpm"
#include "images/edit-delete-large.xpm"
#include "images/edit-find-large.xpm"
#include "images/edit-paste-large.xpm"
#include "images/edit-redo-large.xpm"
#include "images/edit-select-all-large.xpm"
#include "images/edit-undo-large.xpm"
#include "images/go-top-large.xpm"
#include "images/go-up-large.xpm"
#include "images/go-previous-large.xpm"
#include "images/go-next-large.xpm"
#include "images/system-search-large.xpm"
#include "images/media-playback-start-large.xpm"
#include "images/media-playback-stop-large.xpm"

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{NyqBench.cpp}
 

Enumerations

enum  {
  ID_AUTOLOAD = 20000 , ID_AUTOWRAP , ID_FONT , ID_SPLITV ,
  ID_SPLITH , ID_TOGGLECODE , ID_TOGGLEOUTPUT , ID_SMALLICONS ,
  ID_LARGEICONS , ID_MATCH , ID_TOP , ID_UP ,
  ID_PREVIOUS , ID_NEXT , ID_GO , ID_STOP ,
  ID_SCRIPT , ID_OUTPUT
}
 

Functions

CommandHandlerObjectanonymous_namespace{NyqBench.cpp}::findme (AudacityProject &)
 
void anonymous_namespace{NyqBench.cpp}::RegisterMenuItems ()
 
int DLL_API ModuleDispatch (ModuleDispatchTypes type)
 

Variables

static DEFINE_VERSION_CHECK NyqBenchgBench = NULL
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_AUTOLOAD 
ID_AUTOWRAP 
ID_FONT 
ID_SPLITV 
ID_SPLITH 
ID_TOGGLECODE 
ID_TOGGLEOUTPUT 
ID_SMALLICONS 
ID_LARGEICONS 
ID_MATCH 
ID_TOP 
ID_UP 
ID_PREVIOUS 
ID_NEXT 
ID_GO 
ID_STOP 
ID_SCRIPT 
ID_OUTPUT 

Definition at line 540 of file NyqBench.cpp.

541{
542 ID_AUTOLOAD = 20000,
543
545
546 ID_FONT,
547 ID_SPLITV,
548 ID_SPLITH,
553 ID_MATCH,
554 ID_TOP,
555 ID_UP,
557 ID_NEXT,
558
559 ID_GO,
560 ID_STOP,
561
562 ID_SCRIPT,
564};
@ ID_SPLITV
Definition: NyqBench.cpp:547
@ ID_PREVIOUS
Definition: NyqBench.cpp:556
@ ID_TOP
Definition: NyqBench.cpp:554
@ ID_STOP
Definition: NyqBench.cpp:560
@ ID_TOGGLEOUTPUT
Definition: NyqBench.cpp:550
@ ID_LARGEICONS
Definition: NyqBench.cpp:552
@ ID_GO
Definition: NyqBench.cpp:559
@ ID_MATCH
Definition: NyqBench.cpp:553
@ ID_AUTOWRAP
Definition: NyqBench.cpp:544
@ ID_SPLITH
Definition: NyqBench.cpp:548
@ ID_OUTPUT
Definition: NyqBench.cpp:563
@ ID_FONT
Definition: NyqBench.cpp:546
@ ID_UP
Definition: NyqBench.cpp:555
@ ID_NEXT
Definition: NyqBench.cpp:557
@ ID_AUTOLOAD
Definition: NyqBench.cpp:542
@ ID_SCRIPT
Definition: NyqBench.cpp:562
@ ID_SMALLICONS
Definition: NyqBench.cpp:551
@ ID_TOGGLECODE
Definition: NyqBench.cpp:549

Function Documentation

◆ ModuleDispatch()

int DLL_API ModuleDispatch ( ModuleDispatchTypes  type)

Definition at line 125 of file NyqBench.cpp.

125 {
126 switch (type){
127 case ModuleInitialize:
129 break;
130 case AppQuiting: {
131 //It is perfectly OK for gBench to be NULL.
132 //Can happen if the menu item was never invoked.
133 //wxASSERT(gBench != NULL);
134 if (gBench) {
135 // be sure to do this while gPrefs still exists:
136 gBench->SavePrefs();
137 gBench->Destroy();
138 gBench = NULL;
139 }
140 }
141 break;
142 default:
143 break;
144 }
145 return 1;
146 }
@ ModuleInitialize
@ AppQuiting
static DEFINE_VERSION_CHECK NyqBench * gBench
Definition: NyqBench.cpp:120
void SavePrefs()
Definition: NyqBench.cpp:809

References AppQuiting, gBench, ModuleInitialize, anonymous_namespace{NyqBench.cpp}::RegisterMenuItems(), and NyqBench::SavePrefs().

Here is the call graph for this function:

Variable Documentation

◆ gBench

DEFINE_VERSION_CHECK NyqBench* gBench = NULL
static

Definition at line 120 of file NyqBench.cpp.

Referenced by NyqBench::GetBench(), and ModuleDispatch().