Audacity 3.2.0
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:
[legend]

Classes

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 89 of file WaveTrackViewConstants.h.

Member Typedef Documentation

◆ Display

Definition at line 90 of file WaveTrackViewConstants.h.

Member Function Documentation

◆ All()

auto WaveTrackSubViewType::All ( )
static

Discover all registered types.

Definition at line 90 of file WaveTrackViewConstants.cpp.

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 ( )
static

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}
static const std::vector< WaveTrackSubViewType > & All()
Discover all registered types.

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
inline

Definition at line 99 of file WaveTrackViewConstants.h.

100 { return id < other.id; }

References id.

◆ operator==()

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

Definition at line 102 of file WaveTrackViewConstants.h.

103 { return id == other.id; }

References id.

Member Data Documentation

◆ id

Display WaveTrackSubViewType::id

◆ name

EnumValueSymbol WaveTrackSubViewType::name

Definition at line 97 of file WaveTrackViewConstants.h.

Referenced by DiscoverSubViewTypes(), and ViewModeSetting().


The documentation for this struct was generated from the following files: