Audacity 3.2.0
Classes | Functions | Variables
anonymous_namespace{ChannelView.cpp} Namespace Reference

Classes

struct  TrackPositioner
 

Functions

std::string AttributeName (const std::string &name, size_t index)
 
std::string HeightAttributeName (size_t index)
 
std::string MinimizedAttributeName (size_t index)
 

Variables

static const AudacityProject::AttachedObjects::RegisteredFactory key
 

Function Documentation

◆ AttributeName()

std::string anonymous_namespace{ChannelView.cpp}::AttributeName ( const std::string &  name,
size_t  index 
)

Definition at line 123 of file ChannelView.cpp.

123 {
124 if (index == 0)
125 return name;
126
127 return name + std::to_string(index);
128}
const TranslatableString name
Definition: Distortion.cpp:76

References name.

Referenced by HeightAttributeName(), and MinimizedAttributeName().

Here is the caller graph for this function:

◆ HeightAttributeName()

std::string anonymous_namespace{ChannelView.cpp}::HeightAttributeName ( size_t  index)

Definition at line 129 of file ChannelView.cpp.

129 {
130 return AttributeName("height", index);
131}
std::string AttributeName(const std::string &name, size_t index)

References AttributeName().

Referenced by ChannelView::HandleXMLAttribute(), and ChannelView::WriteXMLAttributes().

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

◆ MinimizedAttributeName()

std::string anonymous_namespace{ChannelView.cpp}::MinimizedAttributeName ( size_t  index)

Definition at line 132 of file ChannelView.cpp.

132 {
133 return AttributeName("minimized", index);
134}

References AttributeName().

Referenced by ChannelView::HandleXMLAttribute(), and ChannelView::WriteXMLAttributes().

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

Variable Documentation

◆ key

const AudacityProject::AttachedObjects::RegisteredFactory anonymous_namespace{ChannelView.cpp}::key
static
Initial value:
{
return std::make_shared< TrackPositioner >( project );
}
}
const auto project
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90

Definition at line 298 of file ChannelView.cpp.