Audacity 3.2.0
Namespaces | Enumerations | Functions | Variables
SetTrackInfoCommand.cpp File Reference
#include "SetTrackInfoCommand.h"
#include "CommandDispatch.h"
#include "CommandManager.h"
#include "../CommonCommandFlags.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 "SettingsVisitor.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

namespace  anonymous_namespace{SetTrackInfoCommand.cpp}
 

Enumerations

enum  kColours {
  kColour0 , kColour1 , kColour2 , kColour3 ,
  nColours , kColour0 , kColour1 , kColour2 ,
  kColour3 , nColours
}
 
enum  kScaleTypes { kLinearAmp , kLogarithmicDb , kLinearDb , 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
 
AttachedItem anonymous_namespace{SetTrackInfoCommand.cpp}::sAttachment1
 
AttachedItem anonymous_namespace{SetTrackInfoCommand.cpp}::sAttachment2
 

Enumeration Type Documentation

◆ kColours

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

Definition at line 272 of file SetTrackInfoCommand.cpp.

273{
274 kColour0,
275 kColour1,
276 kColour2,
277 kColour3,
279};

◆ kScaleTypes

Enumerator
kLinearAmp 
kLogarithmicDb 
kLinearDb 
nScaleTypes 

Definition at line 290 of file SetTrackInfoCommand.cpp.

291{
294 kLinearDb,
296};
@ kLogarithmicDb

◆ kZoomTypes

enum kZoomTypes
Enumerator
kReset 
kTimes2 
kHalfWave 
nZoomTypes 

Definition at line 308 of file SetTrackInfoCommand.cpp.

309{
310 kReset,
311 kTimes2,
312 kHalfWave,
314};

Function Documentation

◆ DiscoverSubViewTypes()

static EnumValueSymbols DiscoverSubViewTypes ( )
static

Definition at line 323 of file SetTrackInfoCommand.cpp.

324{
325 const auto &types = WaveTrackSubViewType::All();
326 auto result = transform_container< EnumValueSymbols >(
327 types, std::mem_fn( &WaveTrackSubView::Type::name ) );
328 result.push_back( WaveTrackViewConstants::MultiViewSymbol );
329 return result;
330}
AUDACITY_DLL_API const EnumValueSymbol MultiViewSymbol
String identifier for a preference for one of each type of view.
static const std::vector< WaveTrackSubViewType > & All()
Discover all registered types.

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

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

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") },
}
wxT("CloseDown"))
XO("Cut/Copy/Paste")

Definition at line 281 of file SetTrackInfoCommand.cpp.

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

◆ kScaleTypeStrings

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

Definition at line 298 of file SetTrackInfoCommand.cpp.

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

◆ kZoomTypeStrings

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

Definition at line 316 of file SetTrackInfoCommand.cpp.

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