Audacity  3.0.3
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 
19 class wxWindow;
20 class wxTextCtrl;
21 class wxListCtrl;
22 class wxListEvent;
23 class wxButton;
24 class AudacityProject;
25 class ShuttleGui;
26 
27 class 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();
48  void PopulateCommandList();
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
MacroCommandDialog::OnChoice
void OnChoice(wxCommandEvent &event)
Definition: BatchCommandDialog.cpp:154
MacroCommandDialog::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S)
Definition: BatchCommandDialog.cpp:84
MacroCommandDialog::SetCommandAndParams
void SetCommandAndParams(const CommandID &Command, const wxString &Params)
Definition: BatchCommandDialog.cpp:238
MacroCommandDialog::mDetails
wxTextCtrl * mDetails
Definition: BatchCommandDialog.h:56
MacroCommandDialog::mCatalog
const MacroCommandsCatalog mCatalog
Definition: BatchCommandDialog.h:60
MacroCommandDialog::Populate
void Populate()
Definition: BatchCommandDialog.cpp:76
BatchCommands.h
MacroCommandDialog::OnUsePreset
void OnUsePreset(wxCommandEvent &event)
Definition: BatchCommandDialog.cpp:227
MacroCommandDialog::OnItemSelected
void OnItemSelected(wxListEvent &event)
Definition: BatchCommandDialog.cpp:180
MacroCommandDialog::ValidateChoices
void ValidateChoices()
Definition: BatchCommandDialog.cpp:150
MacroCommandsCatalog
Definition: BatchCommands.h:28
MacroCommandDialog::mSelectedCommand
CommandID mSelectedCommand
Definition: BatchCommandDialog.h:33
MacroCommandDialog::OnEditParams
void OnEditParams(wxCommandEvent &event)
Definition: BatchCommandDialog.cpp:216
MacroCommandDialog::mSelectedParameters
wxString mSelectedParameters
Definition: BatchCommandDialog.h:34
MacroCommandDialog::OnHelp
void OnHelp(wxCommandEvent &event)
Definition: BatchCommandDialog.cpp:174
MacroCommandDialog::OnCancel
void OnCancel(wxCommandEvent &event)
Definition: BatchCommandDialog.cpp:169
MacroCommandDialog::mInternalCommandName
CommandID mInternalCommandName
Definition: BatchCommandDialog.h:58
MacroCommandDialog::mParameters
wxTextCtrl * mParameters
Definition: BatchCommandDialog.h:55
wxDialogWrapper
Definition: wxPanelWrapper.h:81
MacroCommandDialog::OnOk
void OnOk(wxCommandEvent &event)
Definition: BatchCommandDialog.cpp:158
TaggedIdentifier< CommandIdTag, false >
MacroCommandDialog::PopulateCommandList
void PopulateCommandList()
Definition: BatchCommandDialog.cpp:141
MenuTable::Command
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())
Definition: CommandManager.h:675
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:92
MacroCommandDialog::mChoices
wxListCtrl * mChoices
Definition: BatchCommandDialog.h:53
MacroCommandDialog::GetHelpPageName
ManualPageID GetHelpPageName()
Definition: BatchCommandDialog.h:45
MacroCommandDialog::mEditParams
wxButton * mEditParams
Definition: BatchCommandDialog.h:51
MacroCommandDialog::MacroCommandDialog
MacroCommandDialog(wxWindow *parent, wxWindowID id, AudacityProject &project)
Definition: BatchCommandDialog.cpp:64
MacroCommandDialog
Provides a list of configurable commands for use with MacroCommands.
Definition: BatchCommandDialog.h:27
MacroCommandDialog::mUsePreset
wxButton * mUsePreset
Definition: BatchCommandDialog.h:52
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631
MacroCommandDialog::mCommand
wxTextCtrl * mCommand
Definition: BatchCommandDialog.h:54