Audacity 3.2.0
BatchCommandDialog.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 BatchCommandDialog.h
6
7 Dominic Mazzoni
8 James Crook
9
10**********************************************************************/
11
12#ifndef __AUDACITY_MACRO_COMMAND_DIALOG__
13#define __AUDACITY_MACRO_COMMAND_DIALOG__
14
15#include <wx/defs.h>
16
17#include "BatchCommands.h"
18
19class wxWindow;
20class wxTextCtrl;
21class wxListCtrl;
22class wxListEvent;
23class wxButton;
24class AudacityProject;
25class ShuttleGui;
26
27class MacroCommandDialog final : public wxDialogWrapper {
28 public:
29 // constructors and destructors
30 MacroCommandDialog(wxWindow *parent, wxWindowID id, AudacityProject &project);
31 void SetCommandAndParams(const CommandID &Command, const wxString &Params);
32 public:
35 private:
36 void Populate();
38 void OnEditParams(wxCommandEvent &event);
39 void OnUsePreset(wxCommandEvent &event);
40 void OnChoice(wxCommandEvent &event);
41 void OnOk(wxCommandEvent &event);
42 void OnCancel(wxCommandEvent &event);
43 void OnHelp(wxCommandEvent &event);
44 void OnItemSelected(wxListEvent &event);
45 ManualPageID GetHelpPageName() { return L"Scripting Reference" ; }
46
47 void ValidateChoices();
49 //int GetSelectedItem();
50
51 wxButton *mEditParams;
52 wxButton *mUsePreset;
53 wxListCtrl *mChoices;
54 wxTextCtrl * mCommand;
55 wxTextCtrl * mParameters;
56 wxTextCtrl * mDetails;
57
59
61
62 DECLARE_EVENT_TABLE()
63};
64
65
66#endif
#define S(N)
Definition: ToChars.cpp:64
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
Provides a list of configurable commands for use with MacroCommands.
MacroCommandDialog(wxWindow *parent, wxWindowID id, AudacityProject &project)
void OnOk(wxCommandEvent &event)
void OnCancel(wxCommandEvent &event)
void OnUsePreset(wxCommandEvent &event)
const MacroCommandsCatalog mCatalog
CommandID mInternalCommandName
void OnHelp(wxCommandEvent &event)
void OnEditParams(wxCommandEvent &event)
void PopulateOrExchange(ShuttleGui &S)
void OnItemSelected(wxListEvent &event)
void SetCommandAndParams(const CommandID &Command, const wxString &Params)
void OnChoice(wxCommandEvent &event)
ManualPageID GetHelpPageName()
wxTextCtrl * mParameters
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:625
std::unique_ptr< CommandItem > Command(const CommandID &name, const TranslatableString &label_in, void(Handler::*pmf)(const CommandContext &), CommandFlag flags, const CommandManager::Options &options={}, CommandHandlerFinder finder=FinderScope::DefaultFinder())