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 "WaveTrack.h"
#include "../prefs/WaveformSettings.h"
#include "../prefs/SpectrogramSettings.h"
#include "SettingsVisitor.h"
#include "ShuttleGui.h"
#include "../tracks/playabletrack/wavetrack/ui/WaveChannelView.h"
#include "../tracks/playabletrack/wavetrack/ui/WaveChannelViewConstants.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 190 of file SetTrackInfoCommand.cpp.

191{
192 kColour0,
193 kColour1,
194 kColour2,
195 kColour3,
197};

◆ kScaleTypes

Enumerator
kLinearAmp 
kLogarithmicDb 
kLinearDb 
nScaleTypes 

Definition at line 208 of file SetTrackInfoCommand.cpp.

209{
212 kLinearDb,
214};
@ kLogarithmicDb

◆ kZoomTypes

enum kZoomTypes
Enumerator
kReset 
kTimes2 
kHalfWave 
nZoomTypes 

Definition at line 226 of file SetTrackInfoCommand.cpp.

227{
228 kReset,
229 kTimes2,
230 kHalfWave,
232};

Function Documentation

◆ DiscoverSubViewTypes()

static EnumValueSymbols DiscoverSubViewTypes ( )
static

Definition at line 241 of file SetTrackInfoCommand.cpp.

242{
243 const auto &types = WaveChannelSubViewType::All();
244 auto result = transform_container< EnumValueSymbols >(
245 types, std::mem_fn(&WaveChannelSubView::Type::name) );
247 return result;
248}
AUDACITY_DLL_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 199 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 216 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 234 of file SetTrackInfoCommand.cpp.

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