Audacity 3.2.0
Namespaces | Enumerations | Functions | Variables
SetTrackInfoCommand.cpp File Reference
#include "SetTrackInfoCommand.h"
#include "CommandDispatch.h"
#include "MenuRegistry.h"
#include "../CommonCommandFlags.h"
#include "LoadCommands.h"
#include "Project.h"
#include "TrackFocus.h"
#include "../TrackPanel.h"
#include "tracks/playabletrack/wavetrack/ui/WaveformAppearance.h"
#include "WaveformSettings.h"
#include "WaveTrack.h"
#include "SpectrogramSettings.h"
#include "SettingsVisitor.h"
#include "ShuttleGui.h"
#include "../tracks/playabletrack/wavetrack/ui/WaveChannelView.h"
#include "WaveChannelViewConstants.h"
#include "../tracks/playabletrack/wavetrack/ui/WaveformView.h"
#include "CommandContext.h"
#include "prefs/WaveformScale.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 193 of file SetTrackInfoCommand.cpp.

194{
195 kColour0,
196 kColour1,
197 kColour2,
198 kColour3,
200};

◆ kScaleTypes

Enumerator
kLinearAmp 
kLogarithmicDb 
kLinearDb 
nScaleTypes 

Definition at line 211 of file SetTrackInfoCommand.cpp.

212{
215 kLinearDb,
217};
@ kLogarithmicDb

◆ kZoomTypes

enum kZoomTypes
Enumerator
kReset 
kTimes2 
kHalfWave 
nZoomTypes 

Definition at line 229 of file SetTrackInfoCommand.cpp.

230{
231 kReset,
232 kTimes2,
233 kHalfWave,
235};

Function Documentation

◆ DiscoverSubViewTypes()

static EnumValueSymbols DiscoverSubViewTypes ( )
static

Definition at line 244 of file SetTrackInfoCommand.cpp.

245{
246 const auto &types = WaveChannelSubViewType::All();
247 auto result = transform_container< EnumValueSymbols >(
248 types, std::mem_fn(&WaveChannelSubView::Type::name) );
250 return result;
251}
WAVE_TRACK_API const EnumValueSymbol MultiViewSymbol
String identifier for a preference for one of each type of view.
static const std::vector< WaveChannelSubViewType > & All()
Discover all registered types.

References WaveChannelSubViewType::All(), WaveChannelViewConstants::MultiViewSymbol, and WaveChannelSubViewType::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 202 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 219 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 237 of file SetTrackInfoCommand.cpp.

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