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 "../../src/commands/CommandContext.h"
#include "../../src/commands/CommandManager.h"
#include "widgets/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 542 of file NyqBench.cpp.

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

Function Documentation

◆ ModuleDispatch()

int DLL_API ModuleDispatch ( ModuleDispatchTypes  type)

Definition at line 127 of file NyqBench.cpp.

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

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 122 of file NyqBench.cpp.

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