39#include <wx/listctrl.h>
54#define CTRL XO("Command")
56#define CTRL XO("Ctrl")
81 return XO(
"Preferences for Mouse");
86 return "Mouse_Preferences";
100 if (
mList->GetItemCount() > 0) {
103 mList->SetItemState(0, wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED,
104 wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED);
113 S.StartStatic(
XO(
"Mouse Bindings (default values, not configurable)"), 1);
115 mList =
S.AddListControlReportMode();
125 mList->InsertColumn(0,
wxT(
""), wxLIST_FORMAT_LEFT);
130 mList->DeleteColumn(0);
132 AddItem(
XO(
"Left-Click"),
XO(
"Select"),
XO(
"Set Selection Point"));
133 AddItem(
XO(
"Left-Drag"),
XO(
"Select"),
XO(
"Set Selection Range"));
134 AddItem(
XO(
"Shift-Left-Click"),
XO(
"Select"),
XO(
"Extend Selection Range"));
135 AddItem(
XO(
"Left-Double-Click"),
XO(
"Select"),
XO(
"Select Clip or Entire Track"));
136#ifdef EXPERIMENTAL_SCRUBBING_SCROLL_WHEEL
137 AddItem(
XO(
"Wheel-Rotate"),
XO(
"Select"),
XO(
"Change scrub speed"));
140#ifdef EXPERIMENTAL_SPECTRAL_EDITING
147 AddItem(
XO(
"Left-Click"),
XO(
"Zoom"),
XO(
"Zoom in on Point"));
148 AddItem(
XO(
"Left-Drag"),
XO(
"Zoom"),
XO(
"Zoom in on a Range"),
XO(
"same as right-drag"));
149 AddItem(
XO(
"Right-Click"),
XO(
"Zoom"),
XO(
"Zoom out one step"));
150 AddItem(
XO(
"Right-Drag"),
XO(
"Zoom"),
XO(
"Zoom in on a Range"),
XO(
"same as left-drag"));
151 AddItem(
XO(
"Shift-Drag"),
XO(
"Zoom"),
XO(
"Zoom out on a Range"));
154 AddItem(
XO(
"Left-Drag"),
XO(
"Time-Shift"),
XO(
"Move clip left/right or between tracks"));
155 AddItem(
XO(
"Shift-Left-Drag"),
XO(
"Time-Shift"),
XO(
"Move all clips in track left/right"));
156 AddItem(
CTRL +
XO(
"-Left-Drag"),
XO(
"Time-Shift"),
XO(
"Move clip up/down between tracks"));
162 XO(
"Change Amplification Envelope"));
164 AddItem(
XO(
"Left-Click"),
XO(
"Pencil"),
XO(
"Change Sample"));
165 AddItem(
XO(
"Alt-Left-Click"),
XO(
"Pencil"),
XO(
"Smooth at Sample"));
166 AddItem(
XO(
"Left-Drag"),
XO(
"Pencil"),
XO(
"Change Several Samples"));
169 AddItem(
XO(
"Left-Click"),
XO(
"Multi"),
XO(
"Set Selection Point"),
XO(
"same as select tool"));
170 AddItem(
XO(
"Left-Drag"),
XO(
"Multi"),
XO(
"Set Selection Range"),
XO(
"same as select tool"));
171 AddItem(
XO(
"Right-Click"),
XO(
"Multi"),
XO(
"Zoom out one step"),
XO(
"same as zoom tool"));
172 AddItem(
XO(
"Right-Drag"),
XO(
"Multi"),
XO(
"Zoom in on a Range"),
XO(
"same as zoom tool"));
174#ifdef EXPERIMENTAL_SPECTRAL_EDITING
181 AddItem(
XO(
"Wheel-Rotate"),
XO(
"Any"),
XO(
"Scroll tracks up or down"));
182 AddItem(
XO(
"Shift-Wheel-Rotate"),
XO(
"Any"),
XO(
"Scroll waveform"));
184 AddItem(
CTRL +
XO(
"-Shift-Wheel-Rotate"),
XO(
"Any"),
XO(
"Vertical Scale Waveform (dB) range"));
206 int i =
mList->GetItemCount();
#define MOUSE_PREFS_PLUGIN_SYMBOL
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
A PrefsPanel that presents an interface for user to view the default bindings of mouse buttons to com...
void CreateList()
Creates the contents of mList.
void Populate()
Creates the dialog and its contents.
TranslatableString GetDescription() const override
ComponentInterfaceSymbol GetSymbol() const override
void PopulateOrExchange(ShuttleGui &S) override
Places controls on the panel and also exchanges data with them.
void OnShow(wxShowEvent &event)
void AddItem(TranslatableString const &buttons, TranslatableString const &tool, TranslatableString const &action, TranslatableString const &comment={})
Adds an item to mList.
MousePrefs(wxWindow *parent, wxWindowID winid)
Constructor.
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Holds a msgid for the translation catalog; may also bind format arguments.
wxString Translation() const
PrefsPanel::Registration sAttachment