Audacity  3.0.3
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
SetTrackVisualsCommand Class Reference

A SetTrackBase that sets appearance of a track. More...

#include <SetTrackInfoCommand.h>

Inheritance diagram for SetTrackVisualsCommand:
[legend]
Collaboration diagram for SetTrackVisualsCommand:
[legend]

Public Member Functions

ComponentInterfaceSymbol GetSymbol () override
 
TranslatableString GetDescription () override
 
bool DefineParams (ShuttleParams &S) override
 
void PopulateOrExchange (ShuttleGui &S) override
 
ManualPageID ManualPage () override
 
bool ApplyInner (const CommandContext &context, Track *t) override
 
- Public Member Functions inherited from SetTrackBase
 SetTrackBase ()
 
bool Apply (const CommandContext &context) override
 
- Public Member Functions inherited from AudacityCommand
 AudacityCommand ()
 
virtual ~AudacityCommand ()
 
PluginPath GetPath () override
 
VendorSymbol GetVendor () override
 
wxString GetVersion () override
 
virtual bool IsBatchProcessing ()
 
virtual void SetBatchProcessing (bool start)
 
virtual bool Apply (const CommandContext &WXUNUSED(context))
 
bool ShowInterface (wxWindow *parent, bool forceModal=false)
 
virtual void SetHostUI (EffectUIHostInterface *WXUNUSED(host))
 
wxDialog * CreateUI (wxWindow *parent, AudacityCommand *client)
 
virtual bool GetAutomationParameters (wxString &parms)
 
virtual bool SetAutomationParameters (const wxString &parms)
 
bool DoAudacityCommand (wxWindow *parent, const CommandContext &context, bool shouldPrompt=true)
 
int MessageBox (const TranslatableString &message, long style=DefaultMessageBoxStyle, const TranslatableString &titleStr={})
 
virtual bool Init ()
 
virtual bool PromptUser (wxWindow *parent)
 
virtual bool CheckWhetherSkipAudacityCommand ()
 
virtual void End ()
 
virtual void PopulateOrExchange (ShuttleGui &WXUNUSED(S))
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 
- Public Member Functions inherited from ComponentInterface
virtual ~ComponentInterface ()
 
TranslatableString GetName ()
 
virtual bool DefineParams (ShuttleParams &WXUNUSED(S))
 

Public Attributes

int mColour
 
int mHeight
 
int mDisplayType
 
int mScaleType
 
int mVZoom
 
double mVZoomTop
 
double mVZoomBottom
 
bool bUseSpecPrefs
 
bool bSpectralSelect
 
int mSpecColorScheme
 
bool bHasColour
 
bool bHasHeight
 
bool bHasDisplayType
 
bool bHasScaleType
 
bool bHasVZoom
 
bool bHasVZoomTop
 
bool bHasVZoomBottom
 
bool bHasUseSpecPrefs
 
bool bHasSpectralSelect
 
bool bHasSpecColorScheme
 
- Public Attributes inherited from SetTrackBase
int mTrackIndex
 
int mChannelIndex
 
bool bHasTrackIndex
 
bool bHasChannelIndex
 
bool bIsSecondChannel
 
bool mbPromptForTracks
 

Static Public Attributes

static const ComponentInterfaceSymbol Symbol { XO("Set Track Visuals") }
 

Additional Inherited Members

- Public Types inherited from AudacityCommand
enum  : long { DefaultMessageBoxStyle = wxOK | wxCENTRE }
 
using VetoDialogHook = bool(*)(wxDialog *)
 
- Static Public Member Functions inherited from AudacityCommand
static VetoDialogHook SetVetoDialogHook (VetoDialogHook hook)
 
- Protected Attributes inherited from AudacityCommand
ProgressDialogmProgress
 
wxDialog * mUIDialog
 
wxWindow * mUIParent
 
int mUIResultID
 

Detailed Description

A SetTrackBase that sets appearance of a track.

Definition at line 100 of file SetTrackInfoCommand.h.

Member Function Documentation

◆ ApplyInner()

bool SetTrackVisualsCommand::ApplyInner ( const CommandContext context,
Track t 
)
overridevirtual

Reimplemented from SetTrackBase.

Definition at line 373 of file SetTrackInfoCommand.cpp.

374 {
375  static_cast<void>(context);
376  auto wt = dynamic_cast<WaveTrack *>(t);
377  //auto pt = dynamic_cast<PlayableTrack *>(t);
378  static const double ZOOMLIMIT = 0.001f;
379 
380  // You can get some intriguing effects by setting R and L channels to
381  // different values.
382  if( wt && bHasColour )
383  wt->SetWaveColorIndex( mColour );
384 
385  if( t && bHasHeight )
387 
388  if( wt && bHasDisplayType ) {
389  auto &view = WaveTrackView::Get( *wt );
390  auto &all = WaveTrackSubViewType::All();
391  if (mDisplayType < all.size())
392  view.SetDisplay( all[ mDisplayType ].id );
393  else {
394  view.SetMultiView( true );
395  view.SetDisplay( WaveTrackSubViewType::Default(), false );
396  }
397  }
398  if( wt && bHasScaleType )
399  wt->GetWaveformSettings().scaleType =
400  (mScaleType==kLinear) ?
403 
404  if( wt && bHasVZoom ){
405  switch( mVZoom ){
406  default:
407  case kReset: wt->SetDisplayBounds(-1,1); break;
408  case kTimes2: wt->SetDisplayBounds(-2,2); break;
409  case kHalfWave: wt->SetDisplayBounds(0,1); break;
410  }
411  }
412 
413  if ( wt && (bHasVZoomTop || bHasVZoomBottom) && !bHasVZoom){
414  float vzmin, vzmax;
415  wt->GetDisplayBounds(&vzmin, &vzmax);
416 
417  if ( !bHasVZoomTop ){
418  mVZoomTop = vzmax;
419  }
420  if ( !bHasVZoomBottom ){
421  mVZoomBottom = vzmin;
422  }
423 
424  // Can't use std::clamp until C++17
425  mVZoomTop = std::max(-2.0, std::min(mVZoomTop, 2.0));
426  mVZoomBottom = std::max(-2.0, std::min(mVZoomBottom, 2.0));
427 
428  if (mVZoomBottom > mVZoomTop){
430  }
431  if ( mVZoomTop - mVZoomBottom < ZOOMLIMIT ){
432  double c = (mVZoomBottom + mVZoomTop) / 2;
433  mVZoomBottom = c - ZOOMLIMIT / 2.0;
434  mVZoomTop = c + ZOOMLIMIT / 2.0;
435  }
436  wt->SetDisplayBounds(mVZoomBottom, mVZoomTop);
437  auto &tp = TrackPanel::Get( context.project );
438  tp.UpdateVRulers();
439  }
440 
441  if( wt && bHasUseSpecPrefs ){
442  wt->UseSpectralPrefs( bUseSpecPrefs );
443  }
444  if( wt && bHasSpectralSelect ){
445  wt->GetSpectrogramSettings().spectralSelection = bSpectralSelect;
446  }
447  if (wt && bHasSpecColorScheme) {
448  wt->GetSpectrogramSettings().colorScheme = (SpectrogramSettings::ColorScheme)mSpecColorScheme;
449  }
450 
451  return true;
452 }

References WaveTrackSubViewType::All(), bHasColour, bHasDisplayType, bHasHeight, bHasScaleType, bHasSpecColorScheme, bHasSpectralSelect, bHasUseSpecPrefs, bHasVZoom, bHasVZoomBottom, bHasVZoomTop, bSpectralSelect, bUseSpecPrefs, WaveTrackSubViewType::Default(), TrackPanel::Get(), TrackView::Get(), WaveTrackView::Get(), kHalfWave, kLinear, kReset, kTimes2, mColour, mDisplayType, mHeight, min(), mScaleType, mSpecColorScheme, mVZoom, mVZoomBottom, mVZoomTop, CommandContext::project, TrackView::SetExpandedHeight(), WaveTrack::SetWaveColorIndex(), WaveformSettings::stLinear, WaveformSettings::stLogarithmic, and anonymous_namespace{NoteTrack.cpp}::swap().

Referenced by SetTrackCommand::ApplyInner().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DefineParams()

bool SetTrackVisualsCommand::DefineParams ( ShuttleParams S)
overridevirtual

Reimplemented from SetTrackBase.

Definition at line 306 of file SetTrackInfoCommand.cpp.

306  {
308  S.OptionalN( bHasHeight ).Define( mHeight, wxT("Height"), 120, 44, 2000 );
309 
310  {
311  auto symbols = DiscoverSubViewTypes();
312  S.OptionalN( bHasDisplayType ).DefineEnum( mDisplayType, wxT("Display"), 0, symbols.data(), symbols.size() );
313  }
314 
318  S.OptionalN( bHasVZoomTop ).Define( mVZoomTop, wxT("VZoomHigh"), 1.0, -2.0, 2.0 );
319  S.OptionalN( bHasVZoomBottom ).Define( mVZoomBottom, wxT("VZoomLow"), -1.0, -2.0, 2.0 );
320 
321  S.OptionalN( bHasUseSpecPrefs ).Define( bUseSpecPrefs, wxT("SpecPrefs"), false );
322  S.OptionalN( bHasSpectralSelect ).Define( bSpectralSelect, wxT("SpectralSel"),true );
323 
325  S.OptionalN( bHasSpecColorScheme).DefineEnum( mSpecColorScheme,wxT("SpecColor"), SpectrogramSettings::csColorNew, schemes.data(), schemes.size());
326 
327  return true;
328 };

References bHasColour, bHasDisplayType, bHasHeight, bHasScaleType, bHasSpecColorScheme, bHasSpectralSelect, bHasUseSpecPrefs, bHasVZoom, bHasVZoomBottom, bHasVZoomTop, bSpectralSelect, bUseSpecPrefs, SpectrogramSettings::csColorNew, ShuttleParams::Define(), ShuttleParams::DefineEnum(), SetTrackBase::DefineParams(), DiscoverSubViewTypes(), SpectrogramSettings::GetColorSchemeNames(), kColour0, kColourStrings, kLinear, kReset, kScaleTypeStrings, kZoomTypeStrings, mColour, mDisplayType, mHeight, mScaleType, mSpecColorScheme, mVZoom, mVZoomBottom, mVZoomTop, nColours, nScaleTypes, nZoomTypes, and ShuttleParams::OptionalN().

Referenced by SetTrackCommand::DefineParams().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDescription()

TranslatableString SetTrackVisualsCommand::GetDescription ( )
inlineoverridevirtual

Reimplemented from AudacityCommand.

Definition at line 108 of file SetTrackInfoCommand.h.

108 {return XO("Sets various values for a track.");};

References XO.

◆ GetSymbol()

ComponentInterfaceSymbol SetTrackVisualsCommand::GetSymbol ( )
inlineoverridevirtual

Implements AudacityCommand.

Definition at line 107 of file SetTrackInfoCommand.h.

107 {return Symbol;};

References Symbol.

◆ ManualPage()

ManualPageID SetTrackVisualsCommand::ManualPage ( )
inlineoverridevirtual

Reimplemented from AudacityCommand.

Definition at line 113 of file SetTrackInfoCommand.h.

113 {return L"Extra_Menu:_Scriptables_I#set_track_visuals";}

◆ PopulateOrExchange()

void SetTrackVisualsCommand::PopulateOrExchange ( ShuttleGui S)
overridevirtual

Reimplemented from SetTrackBase.

Definition at line 330 of file SetTrackInfoCommand.cpp.

331 {
333  S.StartMultiColumn(3, wxEXPAND);
334  {
335  S.SetStretchyCol( 2 );
336  S.Optional( bHasHeight ).TieNumericTextBox( XXO("Height:"), mHeight );
337  S.Optional( bHasColour ).TieChoice( XXO("Color:"), mColour,
339 
340  {
341  auto symbols = DiscoverSubViewTypes();
342  auto typeNames = transform_container<TranslatableStrings>(
343  symbols, std::mem_fn( &EnumValueSymbol::Stripped ) );
345  typeNames );
346  }
347 
348  S.Optional( bHasScaleType ).TieChoice( XXO("Scale:"), mScaleType,
350  S.Optional( bHasVZoom ).TieChoice( XXO("VZoom:"), mVZoom,
352  S.Optional( bHasVZoomTop ).TieTextBox( XXO("VZoom Top:"), mVZoomTop );
353  S.Optional( bHasVZoomBottom ).TieTextBox( XXO("VZoom Bottom:"), mVZoomBottom );
354  }
355  S.EndMultiColumn();
356  S.StartMultiColumn(2, wxEXPAND);
357  {
358  S.SetStretchyCol( 1 );
359  S.Optional( bHasUseSpecPrefs ).TieCheckBox( XXO("Use Spectral Prefs"), bUseSpecPrefs );
360  S.Optional( bHasSpectralSelect ).TieCheckBox( XXO("Spectral Select"), bSpectralSelect);
361  }
362  S.EndMultiColumn();
363  S.StartMultiColumn(3, wxEXPAND);
364  {
365  S.SetStretchyCol( 2 );
367  S.Optional( bHasSpecColorScheme).TieChoice( XC("Sche&me", "spectrum prefs"), mSpecColorScheme,
368  Msgids( schemes.data(), schemes.size() ) );
369  }
370  S.EndMultiColumn();
371 }

References bHasColour, bHasDisplayType, bHasHeight, bHasScaleType, bHasSpecColorScheme, bHasSpectralSelect, bHasUseSpecPrefs, bHasVZoom, bHasVZoomBottom, bHasVZoomTop, bSpectralSelect, bUseSpecPrefs, DiscoverSubViewTypes(), ShuttleGuiBase::EndMultiColumn(), SpectrogramSettings::GetColorSchemeNames(), kColourStrings, kScaleTypeStrings, kZoomTypeStrings, mColour, mDisplayType, mHeight, mScaleType, Msgids(), mSpecColorScheme, mVZoom, mVZoomBottom, mVZoomTop, nColours, nScaleTypes, nZoomTypes, ShuttleGui::Optional(), SetTrackBase::PopulateOrExchange(), ShuttleGuiBase::SetStretchyCol(), ShuttleGuiBase::StartMultiColumn(), ComponentInterfaceSymbol::Stripped(), ShuttleGuiBase::TieCheckBox(), ShuttleGuiBase::TieChoice(), ShuttleGuiBase::TieNumericTextBox(), ShuttleGuiBase::TieTextBox(), XC, and XXO.

Referenced by SetTrackCommand::PopulateOrExchange().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bHasColour

bool SetTrackVisualsCommand::bHasColour

Definition at line 130 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bHasDisplayType

bool SetTrackVisualsCommand::bHasDisplayType

Definition at line 132 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bHasHeight

bool SetTrackVisualsCommand::bHasHeight

Definition at line 131 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bHasScaleType

bool SetTrackVisualsCommand::bHasScaleType

Definition at line 133 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bHasSpecColorScheme

bool SetTrackVisualsCommand::bHasSpecColorScheme

Definition at line 140 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bHasSpectralSelect

bool SetTrackVisualsCommand::bHasSpectralSelect

Definition at line 139 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bHasUseSpecPrefs

bool SetTrackVisualsCommand::bHasUseSpecPrefs

Definition at line 138 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bHasVZoom

bool SetTrackVisualsCommand::bHasVZoom

Definition at line 134 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bHasVZoomBottom

bool SetTrackVisualsCommand::bHasVZoomBottom

Definition at line 136 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bHasVZoomTop

bool SetTrackVisualsCommand::bHasVZoomTop

Definition at line 135 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bSpectralSelect

bool SetTrackVisualsCommand::bSpectralSelect

Definition at line 126 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ bUseSpecPrefs

bool SetTrackVisualsCommand::bUseSpecPrefs

Definition at line 125 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ mColour

int SetTrackVisualsCommand::mColour

Definition at line 117 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ mDisplayType

int SetTrackVisualsCommand::mDisplayType

Definition at line 119 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ mHeight

int SetTrackVisualsCommand::mHeight

Definition at line 118 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ mScaleType

int SetTrackVisualsCommand::mScaleType

Definition at line 120 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ mSpecColorScheme

int SetTrackVisualsCommand::mSpecColorScheme

Definition at line 127 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ mVZoom

int SetTrackVisualsCommand::mVZoom

Definition at line 121 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ mVZoomBottom

double SetTrackVisualsCommand::mVZoomBottom

Definition at line 123 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ mVZoomTop

double SetTrackVisualsCommand::mVZoomTop

Definition at line 122 of file SetTrackInfoCommand.h.

Referenced by ApplyInner(), DefineParams(), and PopulateOrExchange().

◆ Symbol

const ComponentInterfaceSymbol SetTrackVisualsCommand::Symbol { XO("Set Track Visuals") }
static

Definition at line 103 of file SetTrackInfoCommand.h.

Referenced by GetSymbol().


The documentation for this class was generated from the following files:
SetTrackVisualsCommand::bHasScaleType
bool bHasScaleType
Definition: SetTrackInfoCommand.h:133
WaveTrack
A Track that contains audio waveform data.
Definition: WaveTrack.h:69
TrackView::Get
static TrackView & Get(Track &)
Definition: TrackView.cpp:63
SetTrackVisualsCommand::mSpecColorScheme
int mSpecColorScheme
Definition: SetTrackInfoCommand.h:127
SetTrackVisualsCommand::bSpectralSelect
bool bSpectralSelect
Definition: SetTrackInfoCommand.h:126
SetTrackVisualsCommand::bHasVZoomBottom
bool bHasVZoomBottom
Definition: SetTrackInfoCommand.h:136
SetTrackVisualsCommand::bHasHeight
bool bHasHeight
Definition: SetTrackInfoCommand.h:131
WaveTrackSubViewType::Default
static Display Default()
Return a preferred type.
Definition: WaveTrackViewConstants.cpp:97
ShuttleGuiBase::TieCheckBox
wxCheckBox * TieCheckBox(const TranslatableString &Prompt, bool &Var)
Definition: ShuttleGui.cpp:1629
SetTrackVisualsCommand::mColour
int mColour
Definition: SetTrackInfoCommand.h:117
kHalfWave
@ kHalfWave
Definition: SetTrackInfoCommand.cpp:286
TrackView::SetExpandedHeight
void SetExpandedHeight(int height)
Definition: TrackView.cpp:157
TrackPanel::Get
static TrackPanel & Get(AudacityProject &project)
Definition: TrackPanel.cpp:227
XO
#define XO(s)
Definition: Internat.h:31
XC
#define XC(s, c)
Definition: Internat.h:37
kReset
@ kReset
Definition: SetTrackInfoCommand.cpp:284
ShuttleGuiBase::EndMultiColumn
void EndMultiColumn()
Definition: ShuttleGui.cpp:1238
SetTrackBase::DefineParams
virtual bool DefineParams(ShuttleParams &S) override
Definition: SetTrackInfoCommand.cpp:70
SpectrogramSettings::GetColorSchemeNames
static const EnumValueSymbols & GetColorSchemeNames()
Definition: SpectrogramSettings.cpp:159
kZoomTypeStrings
static const EnumValueSymbol kZoomTypeStrings[nZoomTypes]
Definition: SetTrackInfoCommand.cpp:290
ShuttleParams::OptionalN
virtual ShuttleParams & OptionalN(bool &var)
Definition: Shuttle.h:72
WaveTrack::SetWaveColorIndex
void SetWaveColorIndex(int colorIndex)
Definition: WaveTrack.cpp:529
ShuttleGuiBase::TieTextBox
wxTextCtrl * TieTextBox(const TranslatableString &Caption, wxString &Value, const int nChars=0)
Definition: ShuttleGui.cpp:1652
WaveformSettings::stLogarithmic
@ stLogarithmic
Definition: WaveformSettings.h:60
kColour0
@ kColour0
Definition: SetTrackInfoCommand.cpp:251
SetTrackVisualsCommand::bHasUseSpecPrefs
bool bHasUseSpecPrefs
Definition: SetTrackInfoCommand.h:138
SetTrackVisualsCommand::mVZoomBottom
double mVZoomBottom
Definition: SetTrackInfoCommand.h:123
ComponentInterfaceSymbol::Stripped
const TranslatableString Stripped() const
Definition: ComponentInterfaceSymbol.h:57
XXO
#define XXO(s)
Definition: Internat.h:44
SetTrackVisualsCommand::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: SetTrackInfoCommand.h:103
ShuttleGuiBase::StartMultiColumn
void StartMultiColumn(int nCols, int PositionFlags=wxALIGN_LEFT)
Definition: ShuttleGui.cpp:1229
SpectrogramSettings::ColorScheme
ColorScheme
Definition: SpectrogramSettings.h:132
nZoomTypes
@ nZoomTypes
Definition: SetTrackInfoCommand.cpp:287
SetTrackVisualsCommand::bHasDisplayType
bool bHasDisplayType
Definition: SetTrackInfoCommand.h:132
ShuttleParams::DefineEnum
virtual void DefineEnum(int &var, const wxChar *key, const int vdefault, const EnumValueSymbol strings[], size_t nStrings)
Definition: Shuttle.cpp:339
SetTrackVisualsCommand::mScaleType
int mScaleType
Definition: SetTrackInfoCommand.h:120
WaveTrackSubViewType::All
static const std::vector< WaveTrackSubViewType > & All()
Discover all registered types.
Definition: WaveTrackViewConstants.cpp:90
anonymous_namespace{NoteTrack.cpp}::swap
void swap(std::unique_ptr< Alg_seq > &a, std::unique_ptr< Alg_seq > &b)
Definition: NoteTrack.cpp:735
ShuttleGuiBase::TieNumericTextBox
wxTextCtrl * TieNumericTextBox(const TranslatableString &Prompt, int &Value, const int nChars=0)
Definition: ShuttleGui.cpp:1673
Msgids
TranslatableStrings Msgids(const EnumValueSymbol strings[], size_t nStrings)
Convenience function often useful when adding choice controls.
Definition: ShuttleGui.cpp:2522
SetTrackVisualsCommand::bUseSpecPrefs
bool bUseSpecPrefs
Definition: SetTrackInfoCommand.h:125
min
int min(int a, int b)
Definition: CompareAudioCommand.cpp:106
kTimes2
@ kTimes2
Definition: SetTrackInfoCommand.cpp:285
SetTrackVisualsCommand::bHasSpectralSelect
bool bHasSpectralSelect
Definition: SetTrackInfoCommand.h:139
SetTrackVisualsCommand::bHasColour
bool bHasColour
Definition: SetTrackInfoCommand.h:130
SetTrackVisualsCommand::bHasVZoom
bool bHasVZoom
Definition: SetTrackInfoCommand.h:134
WaveTrackView::Get
static WaveTrackView & Get(WaveTrack &track)
Definition: WaveTrackView.cpp:880
kLinear
@ kLinear
Definition: SetTrackInfoCommand.cpp:269
nScaleTypes
@ nScaleTypes
Definition: SetTrackInfoCommand.cpp:271
kColourStrings
static const EnumValueSymbol kColourStrings[nColours]
Definition: SetTrackInfoCommand.cpp:258
ShuttleParams::Define
virtual void Define(bool &var, const wxChar *key, const bool vdefault, const bool vmin=false, const bool vmax=false, const bool vscl=false)
Definition: Shuttle.cpp:332
SetTrackVisualsCommand::bHasSpecColorScheme
bool bHasSpecColorScheme
Definition: SetTrackInfoCommand.h:140
SpectrogramSettings::csColorNew
@ csColorNew
Definition: SpectrogramSettings.h:134
SetTrackBase::PopulateOrExchange
virtual void PopulateOrExchange(ShuttleGui &S) override
Definition: SetTrackInfoCommand.cpp:80
ShuttleGui::Optional
ShuttleGui & Optional(bool &bVar)
Definition: ShuttleGui.cpp:2280
SetTrackVisualsCommand::mDisplayType
int mDisplayType
Definition: SetTrackInfoCommand.h:119
ShuttleGuiBase::SetStretchyCol
void SetStretchyCol(int i)
Used to modify an already placed FlexGridSizer to make a column stretchy.
Definition: ShuttleGui.cpp:202
CommandContext::project
AudacityProject & project
Definition: CommandContext.h:64
SetTrackVisualsCommand::mVZoom
int mVZoom
Definition: SetTrackInfoCommand.h:121
WaveformSettings::stLinear
@ stLinear
Definition: WaveformSettings.h:59
ShuttleGuiBase::TieChoice
wxChoice * TieChoice(const TranslatableString &Prompt, TranslatableString &Selected, const TranslatableStrings &choices)
Definition: ShuttleGui.cpp:1727
SetTrackVisualsCommand::mVZoomTop
double mVZoomTop
Definition: SetTrackInfoCommand.h:122
SetTrackVisualsCommand::mHeight
int mHeight
Definition: SetTrackInfoCommand.h:118
SetTrackVisualsCommand::bHasVZoomTop
bool bHasVZoomTop
Definition: SetTrackInfoCommand.h:135
DiscoverSubViewTypes
static EnumValueSymbols DiscoverSubViewTypes()
Definition: SetTrackInfoCommand.cpp:297
kScaleTypeStrings
static const EnumValueSymbol kScaleTypeStrings[nScaleTypes]
Definition: SetTrackInfoCommand.cpp:274
nColours
@ nColours
Definition: SetTrackInfoCommand.cpp:255