Audacity 3.2.0
Classes | Namespaces | Functions | Variables
ProjectStatus.cpp File Reference
#include "ProjectStatus.h"
#include <algorithm>
#include "Project.h"
#include "AppEvents.h"
#include "BasicUI.h"
Include dependency graph for ProjectStatus.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{ProjectStatus.cpp}::Message
 
struct  anonymous_namespace{ProjectStatus.cpp}::Dispatcher
 
class  ProjectStatus::ProjectStatusTextField
 

Namespaces

namespace  anonymous_namespace{ProjectStatus.cpp}
 

Functions

ProjectStatus::StatusWidthFunctionsanonymous_namespace{ProjectStatus.cpp}::statusWidthFunctions ()
 
StatusBarField StateStatusBarField ()
 ID of the first field in the status bar. This filed is used to display playback state. More...
 
StatusBarField MainStatusBarField ()
 ID of the second field in the status bar. This field is expandable. More...
 
StatusBarField RateStatusBarField ()
 ID of the third field in the status bar. This field is used to display the current rate. More...
 

Variables

static const AudacityProject::AttachedObjects::RegisteredFactory key
 
const auto anonymous_namespace{ProjectStatus.cpp}::PathStart = L"StatusBarFieldRegistry"
 

Function Documentation

◆ MainStatusBarField()

StatusBarField MainStatusBarField ( )

ID of the second field in the status bar. This field is expandable.

Definition at line 97 of file ProjectStatus.cpp.

98{
99 return L"main";
100}

Referenced by ProjectStatus::DefaultFieldsRegistrator::DefaultFieldsRegistrator(), InitProjectWindow(), ProjectManager::OnStatusChange(), and ProjectManager::OnTimer().

Here is the caller graph for this function:

◆ RateStatusBarField()

StatusBarField RateStatusBarField ( )

ID of the third field in the status bar. This field is used to display the current rate.

Definition at line 102 of file ProjectStatus.cpp.

103{
104 return L"rate";
105}

Referenced by ProjectStatus::DefaultFieldsRegistrator::DefaultFieldsRegistrator(), ProjectAudioManager::OnAudioIORate(), and ProjectAudioManager::StatusWidthFunction().

Here is the caller graph for this function:

◆ StateStatusBarField()

StatusBarField StateStatusBarField ( )

ID of the first field in the status bar. This filed is used to display playback state.

Definition at line 92 of file ProjectStatus.cpp.

93{
94 return L"state";
95}

Referenced by ProjectStatus::DefaultFieldsRegistrator::DefaultFieldsRegistrator(), and ControlToolBar::UpdateStatusBar().

Here is the caller graph for this function:

Variable Documentation

◆ key

Initial value:
{
[]( AudacityProject &parent ){
return std::make_shared< ProjectStatus >( parent );
}
}
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 20 of file ProjectStatus.cpp.

Referenced by ProjectStatus::Get().