Audacity 3.2.0
TracksBehaviorsPrefs.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 TracksBehaviorsPrefs.cpp
6
7 Steve Daulton
8
9
10*******************************************************************//*******************************************************************/
16
17
19#include "ViewInfo.h"
20
21#include "Prefs.h"
22#include "../ShuttleGui.h"
23#include "../WaveTrack.h"
24
25TracksBehaviorsPrefs::TracksBehaviorsPrefs(wxWindow * parent, wxWindowID winid)
26/* i18n-hint: i.e. the behaviors of tracks */
27: PrefsPanel(parent, winid, XO("Tracks Behaviors"))
28{
29 Populate();
30}
31
33{
34}
35
37{
39}
40
42{
43 return XO("Preferences for TracksBehaviors");
44}
45
47{
48 return "Tracks_Behaviors_Preferences";
49}
50
52{
53 //------------------------- Main section --------------------
54 // Now construct the GUI itself.
57 // ----------------------- End of main section --------------
58}
59
61 wxT("/GUI/Solo"),
62 {
64 { XO("Simple"), XO("Multi-track"), XO("None") },
65 { wxT("Simple"), wxT("Multi"), wxT("None") }
66 },
67 0, // "Simple"
68};
69
71{
72 S.SetBorder(2);
73 S.StartScroller();
74
75 S.StartStatic(XO("Behaviors"));
76 {
77 S.TieCheckBox(XXO("&Select all audio, if selection required"),
78 {wxT("/GUI/SelectAllOnNone"),
79 false});
80 /* i18n-hint: Cut-lines are lines that can expand to show the cut audio.*/
81 S.TieCheckBox(XXO("Enable cut &lines"),
82 {wxT("/GUI/EnableCutLines"),
83 false});
84 S.TieCheckBox(XXO("Enable &dragging selection edges"),
85 {wxT("/GUI/AdjustSelectionEdges"),
86 true});
87 S
88 .TieCheckBox(XXO("Editing a clip can &move other clips"),
90 S.TieCheckBox(XXO("\"Move track focus\" c&ycles repeatedly through tracks"),
91 {wxT("/GUI/CircularTrackNavigation"),
92 false});
93 S.TieCheckBox(XXO("&Type to create a label"),
94 {wxT("/GUI/TypeToCreateLabel"),
95 false});
96 S.TieCheckBox(XXO("Use dialog for the &name of a new label"),
97 {wxT("/GUI/DialogForNameNewLabel"),
98 false});
99#ifdef EXPERIMENTAL_SCROLLING_LIMITS
100 S.TieCheckBox(XXO("Enable scrolling left of &zero"),
102#endif
103 S.TieCheckBox(XXO("Advanced &vertical zooming"),
104 {wxT("/GUI/VerticalZooming"),
105 false});
106
107 S.AddSpace(10);
108
109 S.StartMultiColumn(2);
110 {
111 S.TieChoice( XXO("Solo &Button:"), TracksBehaviorsSolo);
112 }
113 S.EndMultiColumn();
114 }
115 S.EndStatic();
116 S.EndScroller();
117}
118
120{
123
124 return true;
125}
126
127namespace{
129 [](wxWindow *parent, wxWindowID winid, AudacityProject *)
130 {
131 wxASSERT(parent); // to justify safenew
132 return safenew TracksBehaviorsPrefs(parent, winid);
133 },
134 false,
135 // Place it at a lower tree level
136 { "Tracks" }
137};
138}
#define XXO(s)
Definition: Internat.h:44
#define XO(s)
Definition: Internat.h:31
#define safenew
Definition: MemoryX.h:10
ByColumns_t ByColumns
Definition: Prefs.cpp:465
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:48
@ eIsSavingToPrefs
Definition: ShuttleGui.h:49
#define S(N)
Definition: ToChars.cpp:64
ChoiceSetting TracksBehaviorsSolo
#define TRACKS_BEHAVIORS_PREFS_PLUGIN_SYMBOL
BoolSetting ScrollingPreference
Definition: ViewInfo.cpp:338
BoolSetting EditClipsCanMove
Definition: WaveTrack.cpp:2860
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:89
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631
A PrefsPanel for Tracks Behaviors settings.
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
TracksBehaviorsPrefs(wxWindow *parent, wxWindowID winid)
void PopulateOrExchange(ShuttleGui &S) override
ComponentInterfaceSymbol GetSymbol() const override
TranslatableString GetDescription() const override
Holds a msgid for the translation catalog; may also bind format arguments.