Audacity 3.2.0
Classes | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ProjectTimeRuler Class Referencefinal

#include <ProjectTimeRuler.h>

Inheritance diagram for ProjectTimeRuler:
[legend]
Collaboration diagram for ProjectTimeRuler:
[legend]

Classes

struct  Impl
 

Public Member Functions

 ProjectTimeRuler (AudacityProject &project)
 
LinearUpdaterGetUpdater ()
 
const LinearUpdaterGetUpdater () const
 
BeatsFormatGetBeatsFormat ()
 
const BeatsFormatGetBeatsFormat () const
 
RulerGetRuler ()
 
const RulerGetRuler () const
 
- Public Member Functions inherited from ClientData::Base
virtual ~Base ()
 

Static Public Member Functions

static ProjectTimeRulerGet (AudacityProject &project)
 
static const ProjectTimeRulerGet (const AudacityProject &project)
 

Private Attributes

std::unique_ptr< ImplmImpl
 

Detailed Description

Definition at line 22 of file ProjectTimeRuler.h.

Constructor & Destructor Documentation

◆ ProjectTimeRuler()

ProjectTimeRuler::ProjectTimeRuler ( AudacityProject project)
explicit

Definition at line 84 of file ProjectTimeRuler.cpp.

85 : mImpl { std::make_unique<Impl>(project) }
86{
87}
const auto project
std::unique_ptr< Impl > mImpl

Member Function Documentation

◆ Get() [1/2]

ProjectTimeRuler & ProjectTimeRuler::Get ( AudacityProject project)
static

Definition at line 29 of file ProjectTimeRuler.cpp.

30{
31 return project.AttachedObjects::Get<ProjectTimeRuler&>(key);
32}
static const AttachedProjectObjects::RegisteredFactory key

References key, and project.

Referenced by Get(), and TrackPanel::TrackPanel().

Here is the caller graph for this function:

◆ Get() [2/2]

const ProjectTimeRuler & ProjectTimeRuler::Get ( const AudacityProject project)
static

Definition at line 34 of file ProjectTimeRuler.cpp.

35{
36 return Get(const_cast<AudacityProject&>(project));
37}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
static ProjectTimeRuler & Get(AudacityProject &project)

References Get(), and project.

Here is the call graph for this function:

◆ GetBeatsFormat() [1/2]

BeatsFormat & ProjectTimeRuler::GetBeatsFormat ( )

Definition at line 99 of file ProjectTimeRuler.cpp.

100{
101 return mImpl->beatsFormat;
102}

References mImpl.

◆ GetBeatsFormat() [2/2]

const BeatsFormat & ProjectTimeRuler::GetBeatsFormat ( ) const

Definition at line 104 of file ProjectTimeRuler.cpp.

105{
106 return mImpl->beatsFormat;
107}

References mImpl.

◆ GetRuler() [1/2]

Ruler & ProjectTimeRuler::GetRuler ( )

Definition at line 109 of file ProjectTimeRuler.cpp.

110{
111 return mImpl->ruler;
112}

References mImpl.

Referenced by TrackPanel::TrackPanel().

Here is the caller graph for this function:

◆ GetRuler() [2/2]

const Ruler & ProjectTimeRuler::GetRuler ( ) const

Definition at line 114 of file ProjectTimeRuler.cpp.

115{
116 return mImpl->ruler;
117}

References mImpl.

◆ GetUpdater() [1/2]

LinearUpdater & ProjectTimeRuler::GetUpdater ( )

Definition at line 89 of file ProjectTimeRuler.cpp.

90{
91 return mImpl->updater;
92}

References mImpl.

◆ GetUpdater() [2/2]

const LinearUpdater & ProjectTimeRuler::GetUpdater ( ) const

Definition at line 94 of file ProjectTimeRuler.cpp.

95{
96 return mImpl->updater;
97}

References mImpl.

Member Data Documentation

◆ mImpl

std::unique_ptr<Impl> ProjectTimeRuler::mImpl
private

Definition at line 41 of file ProjectTimeRuler.h.

Referenced by GetBeatsFormat(), GetRuler(), and GetUpdater().


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