Audacity  2.2.2
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, wxWindowID winid);
26  ~MousePrefs();
27  bool Commit() override;
28  wxString HelpPageName() override;
29  void PopulateOrExchange(ShuttleGui & S) override;
30 
31  private:
32  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 *operator () (wxWindow *parent, wxWindowID winid) override;
46 };
47 #endif
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
MousePrefs(wxWindow *parent, wxWindowID winid)
Constructor.
Definition: MousePrefs.cpp:64
void PopulateOrExchange(ShuttleGui &S) override
Places controls on the panel and also exchanges data with them.
Definition: MousePrefs.cpp:88
bool Commit() override
Definition: MousePrefs.cpp:193
void AddItem(wxString const &buttons, wxString const &tool, wxString const &action, wxString const &comment=wxEmptyString)
Adds an item to mList.
Definition: MousePrefs.cpp:176
wxString HelpPageName() override
Definition: MousePrefs.cpp:201
void CreateList()
Creates the contents of mList.
Definition: MousePrefs.cpp:100
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:45
void Populate()
Creates the dialog and its contents.
Definition: MousePrefs.cpp:75
A PrefsPanel that presents an interface for user to view the default bindings of mouse buttons to com...
Definition: MousePrefs.h:22
PrefsPanel * operator()(wxWindow *parent, wxWindowID winid) override
Definition: MousePrefs.cpp:206