Audacity  3.0.3
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
WaveTrackSubViewType Struct Reference

#include <WaveTrackViewConstants.h>

Collaboration diagram for WaveTrackSubViewType:


struct  RegisteredType

Public Types

using Display = WaveTrackViewConstants::Display

Public Member Functions

bool operator< (const WaveTrackSubViewType &other) const
bool operator== (const WaveTrackSubViewType &other) const

Static Public Member Functions

static const std::vector< WaveTrackSubViewType > & All ()
 Discover all registered types. More...
static Display Default ()
 Return a preferred type. More...

Public Attributes

Display id
EnumValueSymbol name

Detailed Description

Definition at line 91 of file WaveTrackViewConstants.h.

Member Typedef Documentation

◆ Display

Definition at line 92 of file WaveTrackViewConstants.h.

Member Function Documentation

◆ All()

auto WaveTrackSubViewType::All ( )

Discover all registered types.

Definition at line 90 of file WaveTrackViewConstants.cpp.

92 {
93  return GetRegistry().Get();
94 }

References anonymous_namespace{WaveTrackViewConstants.cpp}::Registry::Get(), and anonymous_namespace{WaveTrackViewConstants.cpp}::GetRegistry().

Referenced by AllTypes(), SetTrackVisualsCommand::ApplyInner(), Default(), DiscoverSubViewTypes(), and viewModeSetting().

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

◆ Default()

auto WaveTrackSubViewType::Default ( )

Return a preferred type.

Definition at line 97 of file WaveTrackViewConstants.cpp.

98 {
99  auto &all = All();
100  if (all.empty())
102  return all[0].id;
103 }

References All(), and WaveTrackViewConstants::Waveform.

Referenced by SetTrackVisualsCommand::ApplyInner(), and WaveTrackView::BuildSubViews().

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

◆ operator<()

bool WaveTrackSubViewType::operator< ( const WaveTrackSubViewType other) const

Definition at line 101 of file WaveTrackViewConstants.h.

102  { return id <; }

References id.

◆ operator==()

bool WaveTrackSubViewType::operator== ( const WaveTrackSubViewType other) const

Definition at line 104 of file WaveTrackViewConstants.h.

105  { return id ==; }

References id.

Member Data Documentation

◆ id

Display WaveTrackSubViewType::id

◆ name

EnumValueSymbol WaveTrackSubViewType::name

Definition at line 99 of file WaveTrackViewConstants.h.

Referenced by DiscoverSubViewTypes(), and viewModeSetting().

The documentation for this struct was generated from the following files:
Display id
Definition: WaveTrackViewConstants.h:96
static const std::vector< WaveTrackSubViewType > & All()
Discover all registered types.
Definition: WaveTrackViewConstants.cpp:90
Types & Get()
Definition: WaveTrackViewConstants.cpp:60
Registry & GetRegistry()
Definition: WaveTrackViewConstants.cpp:77
@ Waveform
Definition: WaveTrackViewConstants.h:24