Audacity  2.2.2
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 #include <wx/string.h>
17 
18 
19 #ifdef __WXMSW__
20  #include <wx/ownerdrw.h>
21 #endif
22 
23 //#include "wx/log.h"
24 #include <wx/sizer.h>
25 #include <wx/menuitem.h>
26 #include <wx/checklst.h>
27 
28 #include "BatchCommands.h"
29 
30 class wxWindow;
31 class wxCheckBox;
32 class wxChoice;
33 class wxTextCtrl;
34 class wxStaticText;
35 class wxRadioButton;
36 class wxListCtrl;
37 class wxListEvent;
38 class wxButton;
39 class ShuttleGui;
40 
41 class MacroCommandDialog final : public wxDialogWrapper {
42  public:
43  // constructors and destructors
44  MacroCommandDialog(wxWindow *parent, wxWindowID id);
45  void SetCommandAndParams(const wxString &Command, const wxString &Params);
46  public:
47  wxString mSelectedCommand;
49  private:
50  void Populate();
52  void OnEditParams(wxCommandEvent &event);
53  void OnUsePreset(wxCommandEvent &event);
54  void OnChoice(wxCommandEvent &event);
55  void OnOk(wxCommandEvent &event);
56  void OnCancel(wxCommandEvent &event);
57  void OnHelp(wxCommandEvent &event);
58  void OnItemSelected(wxListEvent &event);
59  wxString GetHelpPageName() { return wxT("Scripting Reference") ; }
60 
61  void ValidateChoices();
62  void PopulateCommandList();
63  //int GetSelectedItem();
64 
65  wxButton *mEditParams;
66  wxButton *mUsePreset;
67  wxListCtrl *mChoices;
68  wxTextCtrl * mCommand;
69  wxTextCtrl * mParameters;
70  wxTextCtrl * mDetails;
71 
73 
75 
76  DECLARE_EVENT_TABLE()
77 };
78 
79 
80 #endif
void OnOk(wxCommandEvent &event)
const MacroCommandsCatalog mCatalog
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
void OnCancel(wxCommandEvent &event)
void SetCommandAndParams(const wxString &Command, const wxString &Params)
void PopulateOrExchange(ShuttleGui &S)
MacroCommandDialog(wxWindow *parent, wxWindowID id)
void OnHelp(wxCommandEvent &event)
void OnChoice(wxCommandEvent &event)
void OnEditParams(wxCommandEvent &event)
void OnItemSelected(wxListEvent &event)
wxTextCtrl * mParameters
void OnUsePreset(wxCommandEvent &event)
Provides a list of configurable commands for use with MacroCommands.