Audacity 3.2.0
|
A PrefsPanel for track display and behavior properties. More...
#include <TracksPrefs.h>
Public Member Functions | |
TracksPrefs (wxWindow *parent, wxWindowID winid) | |
~TracksPrefs () | |
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... | |
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 |
Static Public Member Functions | |
static bool | GetPinnedHeadPreference () |
static void | SetPinnedHeadPreference (bool value, bool flush=false) |
static double | GetPinnedHeadPositionPreference () |
static void | SetPinnedHeadPositionPreference (double value, bool flush=false) |
static WaveChannelViewConstants::Display | ViewModeChoice () |
static WaveChannelViewConstants::SampleDisplay | SampleViewChoice () |
static WaveChannelViewConstants::ZoomPresets | Zoom1Choice () |
static WaveChannelViewConstants::ZoomPresets | Zoom2Choice () |
Static Public Member Functions inherited from PrefsPanel | |
static Factories & | DefaultFactories () |
Static Public Attributes | |
static BoolSetting | TracksFitVerticallyZoomed |
Private Member Functions | |
void | Populate () |
void | PopulateOrExchange (ShuttleGui &S) override |
Static Private Attributes | |
static int | iPreferencePinned = -1 |
Additional Inherited Members | |
Public Types inherited from PrefsPanel | |
using | Factories = std::vector< PrefsPanel::PrefsNode > |
using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
A PrefsPanel for track display and behavior properties.
Definition at line 27 of file TracksPrefs.h.
TracksPrefs::TracksPrefs | ( | wxWindow * | parent, |
wxWindowID | winid | ||
) |
Definition at line 252 of file TracksPrefs.cpp.
References Populate().
TracksPrefs::~TracksPrefs | ( | ) |
Definition at line 261 of file TracksPrefs.cpp.
|
overridevirtual |
Implements PrefsPanel.
Definition at line 401 of file TracksPrefs.cpp.
References AudioTrackNameSetting, SettingBase::Delete(), eIsSavingToPrefs, audacity::BasicSettings::Flush(), Setting< T >::GetDefault(), WaveTrack::GetDefaultAudioTrackNamePreference(), gPrefs, Setting< T >::Invalidate(), iPreferencePinned, PopulateOrExchange(), S, and TracksFitVerticallyZoomed.
|
overridevirtual |
Implements ComponentInterface.
Definition at line 270 of file TracksPrefs.cpp.
References XO().
|
static |
Definition at line 385 of file TracksPrefs.cpp.
References gPrefs, min(), anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPositionPreferenceDefault(), anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPositionPreferenceKey(), and audacity::BasicSettings::ReadDouble().
Referenced by anonymous_namespace{AdornedRulerPanel.cpp}::PlayheadHandle::Click(), anonymous_namespace{Scrubbing.cpp}::FindScrubbingSpeed(), anonymous_namespace{Scrubbing.cpp}::FindSeekSpeed(), anonymous_namespace{AdornedRulerPanel.cpp}::GetPlayHeadX(), Scrubber::MaybeStartScrubbing(), and ProjectWindow::PlaybackScroller::OnTimer().
|
static |
Definition at line 366 of file TracksPrefs.cpp.
References gPrefs, iPreferencePinned, anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPreferenceDefault(), anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPreferenceKey(), and audacity::BasicSettings::ReadBool().
Referenced by Scrubber::IsTransportingPinned(), Scrubber::ShouldScrubPinned(), AdornedRulerPanel::ShowMenu(), and AdornedRulerPanel::TogglePinnedHead().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 265 of file TracksPrefs.cpp.
References TRACKS_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 275 of file TracksPrefs.cpp.
|
private |
Definition at line 280 of file TracksPrefs.cpp.
References eIsCreatingFromPrefs, PopulateOrExchange(), and S.
Referenced by TracksPrefs().
|
overrideprivate |
Definition at line 298 of file TracksPrefs.cpp.
References AudioTrackNameSetting, anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPositionPreferenceDefault(), anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPositionPreferenceKey(), anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPreferenceDefault(), anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPreferenceKey(), S, sampleDisplaySetting, TracksFitVerticallyZoomed, ViewModeSetting(), WaveformSettings::waveformScaleSetting, wxT(), XO(), XXO(), zoom1Setting, and zoom2Setting.
Referenced by Commit(), and Populate().
|
static |
Definition at line 180 of file TracksPrefs.cpp.
References sampleDisplaySetting.
Referenced by TrackArtist::UpdatePrefs().
|
static |
Definition at line 393 of file TracksPrefs.cpp.
References audacity::BasicSettings::Flush(), gPrefs, min(), anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPositionPreferenceKey(), and audacity::BasicSettings::Write().
Referenced by anonymous_namespace{AdornedRulerPanel.cpp}::PlayheadHandle::Cancel(), anonymous_namespace{AdornedRulerPanel.cpp}::PlayheadHandle::Click(), anonymous_namespace{AdornedRulerPanel.cpp}::PlayheadHandle::Drag(), and anonymous_namespace{AdornedRulerPanel.cpp}::PlayheadHandle::Release().
|
static |
Definition at line 377 of file TracksPrefs.cpp.
References audacity::BasicSettings::Flush(), gPrefs, iPreferencePinned, anonymous_namespace{TracksPrefs.cpp}::PinnedHeadPreferenceKey(), and audacity::BasicSettings::Write().
Referenced by AdornedRulerPanel::TogglePinnedHead().
|
static |
Definition at line 157 of file TracksPrefs.cpp.
References EnumSetting< Enum >::ReadEnum(), and ViewModeSetting().
Referenced by WaveChannelView::BuildSubViews().
|
static |
Definition at line 241 of file TracksPrefs.cpp.
References zoom1Setting.
Referenced by anonymous_namespace{ViewMenus.cpp}::OnZoomToggle().
|
static |
Definition at line 246 of file TracksPrefs.cpp.
References zoom2Setting.
Referenced by anonymous_namespace{ViewMenus.cpp}::OnZoomToggle().
|
staticprivate |
Definition at line 55 of file TracksPrefs.h.
Referenced by Commit(), GetPinnedHeadPreference(), and SetPinnedHeadPreference().
|
static |
Definition at line 30 of file TracksPrefs.h.
Referenced by Commit(), ProjectAudioManager::DoRecord(), anonymous_namespace{TracksPrefs.cpp}::Handler::Handler(), and PopulateOrExchange().