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#include "wxPanelWrapper.h"
19
20class wxWindow;
21class wxTextCtrl;
22class wxListCtrl;
23class wxListEvent;
24class wxButton;
25class AudacityProject;
26class ShuttleGui;
27
28class MacroCommandDialog final : public wxDialogWrapper {
29 public:
30 // constructors and destructors
31 MacroCommandDialog(wxWindow *parent, wxWindowID id, AudacityProject &project);
32 void SetCommandAndParams(const CommandID &Command, const wxString &Params);
33 public:
36 private:
37 void Populate();
39 void OnEditParams(wxCommandEvent &event);
40 void OnUsePreset(wxCommandEvent &event);
41 void OnChoice(wxCommandEvent &event);
42 void OnOk(wxCommandEvent &event);
43 void OnCancel(wxCommandEvent &event);
44 void OnHelp(wxCommandEvent &event);
45 void OnItemSelected(wxListEvent &event);
46 ManualPageID GetHelpPageName() { return L"Scripting Reference" ; }
47
48 void ValidateChoices();
50 //int GetSelectedItem();
51
52 wxButton *mEditParams;
53 wxButton *mUsePreset;
54 wxListCtrl *mChoices;
55 wxTextCtrl * mCommand;
56 wxTextCtrl * mParameters;
57 wxTextCtrl * mDetails;
58
60
62
63 DECLARE_EVENT_TABLE()
64};
65
66
67#endif
const auto project
#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:640
constexpr auto Command
Definition: MenuRegistry.h:456