Audacity  2.2.0
MousePrefs.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  MousePrefs.h
6 
7 **********************************************************************/
8 
9 #ifndef __AUDACITY_MOUSE_PREFS__
10 #define __AUDACITY_MOUSE_PREFS__
11 
12 #include <wx/defs.h>
13 
14 #include <wx/listctrl.h>
15 #include <wx/string.h>
16 #include <wx/window.h>
17 
18 #include "PrefsPanel.h"
19 
20 class ShuttleGui;
21 
22 class MousePrefs final : public PrefsPanel
23 {
24  public:
25  MousePrefs(wxWindow * parent);
26  ~MousePrefs();
27  bool Commit() override;
28  wxString HelpPageName() override;
29 
30  private:
31  void Populate();
33  void CreateList();
34  void AddItem(wxString const & buttons,
35  wxString const & tool,
36  wxString const & action,
37  wxString const & comment = wxEmptyString);
38 
39  wxListCtrl * mList;
40 };
41 
43 {
44 public:
45  PrefsPanel *Create(wxWindow *parent) override;
46 };
47 #endif
MousePrefs(wxWindow *parent)
Constructor.
Definition: MousePrefs.cpp:63
~MousePrefs()
Definition: MousePrefs.cpp:69
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:369
bool Commit() override
Definition: MousePrefs.cpp:192
void AddItem(wxString const &buttons, wxString const &tool, wxString const &action, wxString const &comment=wxEmptyString)
Adds an item to mList.
Definition: MousePrefs.cpp:175
void PopulateOrExchange(ShuttleGui &S)
Places controls on the panel and also exchanges data with them.
Definition: MousePrefs.cpp:87
Definition: MousePrefs.h:42
wxString HelpPageName() override
Definition: MousePrefs.cpp:200
void CreateList()
Creates the contents of mList.
Definition: MousePrefs.cpp:99
wxListCtrl * mList
Definition: MousePrefs.h:39
Used within the PrefsDialog, classes derived from this class include AudioIOPrefs, BatchPrefs, DirectoriesPrefs, FileFormatPrefs, GUIPrefs, KeyConfigPrefs, MousePrefs, QualityPrefs, SpectrumPrefs and ThemePrefs.
Definition: PrefsPanel.h:43
void Populate()
Creates the dialog and its contents.
Definition: MousePrefs.cpp:74
A PrefsPanel that presents an interface for user to view the default bindings of mouse buttons to com...
Definition: MousePrefs.h:22
PrefsPanel * Create(wxWindow *parent) override
Definition: MousePrefs.cpp:205
Definition: PrefsPanel.h:70