Audacity 3.2.0
|
A PrefsPanel that presents an interface for user to view the default bindings of mouse buttons to commands. More...
#include <MousePrefs.h>
Public Member Functions | |
MousePrefs (wxWindow *parent, wxWindowID winid) | |
Constructor. More... | |
~MousePrefs () | |
ComponentInterfaceSymbol | GetSymbol () const override |
TranslatableString | GetDescription () const override |
bool | Commit () override |
ManualPageID | HelpPageName () override |
If not empty string, the Help button is added below the panel. More... | |
void | PopulateOrExchange (ShuttleGui &S) override |
Places controls on the panel and also exchanges data with them. More... | |
Public Member Functions inherited from PrefsPanel | |
PrefsPanel (wxWindow *parent, wxWindowID winid, const TranslatableString &title) | |
virtual | ~PrefsPanel () |
virtual void | Preview () |
virtual bool | Commit ()=0 |
virtual PluginPath | GetPath () const override |
virtual VendorSymbol | GetVendor () const override |
virtual wxString | GetVersion () const override |
virtual bool | ShowsPreviewButton () |
virtual void | PopulateOrExchange (ShuttleGui &WXUNUSED(S)) |
virtual ManualPageID | HelpPageName () |
If not empty string, the Help button is added below the panel. More... | |
virtual void | Cancel () |
Public Member Functions inherited from wxPanelWrapper | |
wxPanelWrapper () | |
wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
void | SetLabel (const TranslatableString &label) |
void | SetName (const TranslatableString &name) |
void | SetToolTip (const TranslatableString &toolTip) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxPanel > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Member Functions | |
void | Populate () |
Creates the dialog and its contents. More... | |
void | CreateList () |
Creates the contents of mList. More... | |
void | AddItem (TranslatableString const &buttons, TranslatableString const &tool, TranslatableString const &action, TranslatableString const &comment={}) |
Adds an item to mList. More... | |
void | OnShow (wxShowEvent &event) |
Private Attributes | |
wxListCtrl * | mList |
Additional Inherited Members | |
Public Types inherited from PrefsPanel | |
using | Factories = std::vector< PrefsPanel::PrefsNode > |
using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
Static Public Member Functions inherited from PrefsPanel | |
static Factories & | DefaultFactories () |
A PrefsPanel that presents an interface for user to view the default bindings of mouse buttons to commands.
April/2003: These are default bindings and are not yet configurable. They are provided to give information about what the bindings are.
Configuration when available will be mostly used by power users who are unlikely to change the default bindings, but will add bindings (e.g. for cut, play, and their own nyquist filters) using currently unused combinations.
Unlike key-bindings which are parameterless, mouse bindings provide parameters:
If we allow a nyquist filter to be bound to the mouse, instead of being applied to the current selection it would be applied to the start and end points of the drag.
Definition at line 22 of file MousePrefs.h.
MousePrefs::MousePrefs | ( | wxWindow * | parent, |
wxWindowID | winid | ||
) |
Constructor.
Definition at line 60 of file MousePrefs.cpp.
References OnShow(), and Populate().
MousePrefs::~MousePrefs | ( | ) |
Definition at line 70 of file MousePrefs.cpp.
|
private |
Adds an item to mList.
Definition at line 203 of file MousePrefs.cpp.
References ActionColumn, ButtonsColumn, CommentColumn, mList, TranslatableString::Translation(), and wxT().
Referenced by CreateList().
|
overridevirtual |
Update the preferences stored on disk. Currently does nothing as Mouse Preferences don't change.
Implements PrefsPanel.
Definition at line 231 of file MousePrefs.cpp.
|
private |
Creates the contents of mList.
Definition at line 121 of file MousePrefs.cpp.
References _, ActionColumn, AddItem(), ButtonsColumn, CommentColumn, CTRL, mList, ToolColumn, wxT(), and XO().
Referenced by Populate().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 79 of file MousePrefs.cpp.
References XO().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 74 of file MousePrefs.cpp.
References MOUSE_PREFS_PLUGIN_SYMBOL.
|
overridevirtual |
If not empty string, the Help button is added below the panel.
Default returns empty string.
Reimplemented from PrefsPanel.
Definition at line 84 of file MousePrefs.cpp.
|
private |
Definition at line 219 of file MousePrefs.cpp.
References mList.
Referenced by MousePrefs().
|
private |
Creates the dialog and its contents.
Definition at line 90 of file MousePrefs.cpp.
References CreateList(), eIsCreatingFromPrefs, mList, PopulateOrExchange(), and S.
Referenced by MousePrefs().
|
override |
Places controls on the panel and also exchanges data with them.
Definition at line 109 of file MousePrefs.cpp.
References mList, S, and XO().
Referenced by Populate().
|
private |
Definition at line 46 of file MousePrefs.h.
Referenced by AddItem(), CreateList(), OnShow(), Populate(), and PopulateOrExchange().