Audacity 3.2.0
Classes | Typedefs | Functions
ProjectStatus.h File Reference
#include <utility>
#include <unordered_map>
#include <vector>
#include "ClientData.h"
#include "Prefs.h"
#include "Observer.h"
#include "Registry.h"
Include dependency graph for ProjectStatus.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StatusBarFieldItem
 Abstract base class for status bar fields. More...
 
struct  StatusBarFieldRegistryTraits
 
struct  ProjectStatusFieldsRegistry
 Registry of status bar fields. More...
 
class  ProjectStatus
 
struct  ProjectStatus::RegisteredStatusWidthFunction
 
struct  ProjectStatus::DefaultFieldsRegistrator
 

Typedefs

using StatusBarField = Identifier
 
using StatusBarFieldRegistryVisitor = Registry::VisitorFunctions< StatusBarFieldRegistryTraits >
 
using StatusBarFieldItemRegistrator = Registry::RegisteredItem< ProjectStatusFieldsRegistry >
 

Functions

PROJECT_API StatusBarField StateStatusBarField ()
 ID of the first field in the status bar. This filed is used to display playback state. More...
 
PROJECT_API StatusBarField MainStatusBarField ()
 ID of the second field in the status bar. This field is expandable. More...
 
PROJECT_API StatusBarField RateStatusBarField ()
 ID of the third field in the status bar. This field is used to display the current rate. More...
 

Typedef Documentation

◆ StatusBarField

Definition at line 26 of file ProjectStatus.h.

◆ StatusBarFieldItemRegistrator

Definition at line 103 of file ProjectStatus.h.

◆ StatusBarFieldRegistryVisitor

Definition at line 79 of file ProjectStatus.h.

Function Documentation

◆ MainStatusBarField()

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

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

PROJECT_API 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: