Audacity  3.0.3
Namespaces | Enumerations | Functions | Variables
SetTrackInfoCommand.cpp File Reference
#include "SetTrackInfoCommand.h"
#include "LoadCommands.h"
#include "Project.h"
#include "../TrackPanelAx.h"
#include "../TrackPanel.h"
#include "../WaveTrack.h"
#include "../prefs/WaveformSettings.h"
#include "../prefs/SpectrogramSettings.h"
#include "../Shuttle.h"
#include "../ShuttleGui.h"
#include "../tracks/playabletrack/wavetrack/ui/WaveTrackView.h"
#include "../tracks/playabletrack/wavetrack/ui/WaveTrackViewConstants.h"
#include "CommandContext.h"
Include dependency graph for SetTrackInfoCommand.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{SetTrackInfoCommand.cpp}
 

Enumerations

enum  kColours {
  kColour0, kColour1, kColour2, kColour3,
  nColours, kColour0, kColour1, kColour2,
  kColour3, nColours
}
 
enum  kScaleTypes { kLinear, kDb, nScaleTypes }
 
enum  kZoomTypes { kReset, kTimes2, kHalfWave, nZoomTypes }
 

Functions

static EnumValueSymbols DiscoverSubViewTypes ()
 

Variables

BuiltinCommandsModule::Registration< SetTrackStatusCommandanonymous_namespace{SetTrackInfoCommand.cpp}::reg
 
BuiltinCommandsModule::Registration< SetTrackAudioCommandanonymous_namespace{SetTrackInfoCommand.cpp}::reg2
 
BuiltinCommandsModule::Registration< SetTrackVisualsCommandanonymous_namespace{SetTrackInfoCommand.cpp}::reg3
 
static const EnumValueSymbol kColourStrings [nColours]
 
static const EnumValueSymbol kScaleTypeStrings [nScaleTypes]
 
static const EnumValueSymbol kZoomTypeStrings [nZoomTypes]
 
BuiltinCommandsModule::Registration< SetTrackCommandanonymous_namespace{SetTrackInfoCommand.cpp}::reg4
 

Enumeration Type Documentation

◆ kColours

enum kColours
Enumerator
kColour0 
kColour1 
kColour2 
kColour3 
nColours 
kColour0 
kColour1 
kColour2 
kColour3 
nColours 

Definition at line 249 of file SetTrackInfoCommand.cpp.

250 {
251  kColour0,
252  kColour1,
253  kColour2,
254  kColour3,
255  nColours
256 };

◆ kScaleTypes

Enumerator
kLinear 
kDb 
nScaleTypes 

Definition at line 267 of file SetTrackInfoCommand.cpp.

268 {
269  kLinear,
270  kDb,
272 };

◆ kZoomTypes

enum kZoomTypes
Enumerator
kReset 
kTimes2 
kHalfWave 
nZoomTypes 

Definition at line 282 of file SetTrackInfoCommand.cpp.

283 {
284  kReset,
285  kTimes2,
286  kHalfWave,
287  nZoomTypes
288 };

Function Documentation

◆ DiscoverSubViewTypes()

static EnumValueSymbols DiscoverSubViewTypes ( )
static

Definition at line 297 of file SetTrackInfoCommand.cpp.

298 {
299  const auto &types = WaveTrackSubViewType::All();
300  auto result = transform_container< EnumValueSymbols >(
301  types, std::mem_fn( &WaveTrackSubView::Type::name ) );
302  result.push_back( WaveTrackViewConstants::MultiViewSymbol );
303  return result;
304 }

References WaveTrackSubViewType::All(), WaveTrackViewConstants::MultiViewSymbol, and WaveTrackSubViewType::name.

Referenced by SetTrackVisualsCommand::DefineParams(), and SetTrackVisualsCommand::PopulateOrExchange().

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

Variable Documentation

◆ kColourStrings

const EnumValueSymbol kColourStrings[nColours]
static
Initial value:
=
{
{ wxT("Color0"), XO("Color 0") },
{ wxT("Color1"), XO("Color 1") },
{ wxT("Color2"), XO("Color 2") },
{ wxT("Color3"), XO("Color 3") },
}

Definition at line 258 of file SetTrackInfoCommand.cpp.

Referenced by SetTrackVisualsCommand::DefineParams(), and SetTrackVisualsCommand::PopulateOrExchange().

◆ kScaleTypeStrings

const EnumValueSymbol kScaleTypeStrings[nScaleTypes]
static
Initial value:
=
{
{ XO("Linear") },
{ XO("dB") },
}

Definition at line 274 of file SetTrackInfoCommand.cpp.

Referenced by SetTrackVisualsCommand::DefineParams(), and SetTrackVisualsCommand::PopulateOrExchange().

◆ kZoomTypeStrings

const EnumValueSymbol kZoomTypeStrings[nZoomTypes]
static
Initial value:
=
{
{ XO("Reset") },
{ wxT("Times2"), XO("Times 2") },
{ XO("HalfWave") },
}

Definition at line 290 of file SetTrackInfoCommand.cpp.

Referenced by SetTrackVisualsCommand::DefineParams(), and SetTrackVisualsCommand::PopulateOrExchange().

kHalfWave
@ kHalfWave
Definition: SetTrackInfoCommand.cpp:286
XO
#define XO(s)
Definition: Internat.h:31
kReset
@ kReset
Definition: SetTrackInfoCommand.cpp:284
kColour1
@ kColour1
Definition: SetTrackInfoCommand.cpp:252
kColour0
@ kColour0
Definition: SetTrackInfoCommand.cpp:251
WaveTrackViewConstants::MultiViewSymbol
AUDACITY_DLL_API const EnumValueSymbol MultiViewSymbol
String identifier for a preference for one of each type of view.
Definition: WaveTrackViewConstants.cpp:105
nZoomTypes
@ nZoomTypes
Definition: SetTrackInfoCommand.cpp:287
kColour2
@ kColour2
Definition: SetTrackInfoCommand.cpp:253
WaveTrackSubViewType::All
static const std::vector< WaveTrackSubViewType > & All()
Discover all registered types.
Definition: WaveTrackViewConstants.cpp:90
kTimes2
@ kTimes2
Definition: SetTrackInfoCommand.cpp:285
WaveTrackSubViewType::name
EnumValueSymbol name
Definition: WaveTrackViewConstants.h:99
kLinear
@ kLinear
Definition: SetTrackInfoCommand.cpp:269
nScaleTypes
@ nScaleTypes
Definition: SetTrackInfoCommand.cpp:271
kDb
@ kDb
Definition: SetTrackInfoCommand.cpp:270
kColour3
@ kColour3
Definition: SetTrackInfoCommand.cpp:254
nColours
@ nColours
Definition: SetTrackInfoCommand.cpp:255