Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{TracksPrefs.cpp}::Handler Struct Reference

Observer attached to each project applies the vertical zoom fit preference. More...

Inheritance diagram for anonymous_namespace{TracksPrefs.cpp}::Handler:
[legend]
Collaboration diagram for anonymous_namespace{TracksPrefs.cpp}::Handler:
[legend]

Public Member Functions

 Handler (AudacityProject &project)
 
 Handler (const Handler &)=delete
 
Handleroperator= (const Handler &)=delete
 
- Public Member Functions inherited from ClientData::Base
virtual ~Base ()
 

Public Attributes

AudacityProjectmProject
 
const Observer::Subscription mUndoSubscription
 

Detailed Description

Observer attached to each project applies the vertical zoom fit preference.

Definition at line 456 of file TracksPrefs.cpp.

Constructor & Destructor Documentation

◆ Handler() [1/2]

anonymous_namespace{TracksPrefs.cpp}::Handler::Handler ( AudacityProject project)
inlineexplicit

Definition at line 457 of file TracksPrefs.cpp.

457 : mProject{ project }
459 .Subscribe([this](const UndoRedoMessage &message){
460 if (message.type == UndoRedoMessage::Pushed &&
462 )
464 {}
const auto project
Subscription Subscribe(Callback callback)
Connect a callback to the Publisher; later-connected are called earlier.
Definition: Observer.h:199
bool Read(T *pVar) const
overload of Read returning a boolean that is true if the value was previously defined *‍/
Definition: Prefs.h:207
static BoolSetting TracksFitVerticallyZoomed
Definition: TracksPrefs.h:30
static UndoManager & Get(AudacityProject &project)
Definition: UndoManager.cpp:71
void ZoomFitVertically()
Definition: Viewport.cpp:695
static Viewport & Get(AudacityProject &project)
Definition: Viewport.cpp:33
Type of message published by UndoManager.
Definition: UndoManager.h:55
enum UndoRedoMessage::Type type
const Observer::Subscription mUndoSubscription

References Viewport::Get(), UndoRedoMessage::Pushed, Setting< T >::Read(), TracksPrefs::TracksFitVerticallyZoomed, and Viewport::ZoomFitVertically().

Here is the call graph for this function:

◆ Handler() [2/2]

anonymous_namespace{TracksPrefs.cpp}::Handler::Handler ( const Handler )
delete

Member Function Documentation

◆ operator=()

Handler & anonymous_namespace{TracksPrefs.cpp}::Handler::operator= ( const Handler )
delete

Member Data Documentation

◆ mProject

AudacityProject& anonymous_namespace{TracksPrefs.cpp}::Handler::mProject

Definition at line 469 of file TracksPrefs.cpp.

◆ mUndoSubscription

const Observer::Subscription anonymous_namespace{TracksPrefs.cpp}::Handler::mUndoSubscription

Definition at line 470 of file TracksPrefs.cpp.


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