Audacity  3.0.3
Classes | Functions | Variables
ViewInfo.cpp File Reference
#include "ViewInfo.h"
#include <algorithm>
#include "Prefs.h"
#include "Project.h"
#include "XMLWriter.h"
Include dependency graph for ViewInfo.cpp:

Go to the source code of this file.

Classes

struct  ViewInfo::ProjectFileIORegistration
 Construct once at static intialization time to hook project file IO. More...
 

Functions

 wxDEFINE_EVENT (EVT_SELECTED_REGION_CHANGE, SelectedRegionEvent)
 
 wxDEFINE_EVENT (EVT_PLAY_REGION_CHANGE, PlayRegionEvent)
 

Variables

const TranslatableString LoopToggleText = XXO("&Loop On/Off")
 
static const AudacityProject::AttachedObjects::RegisteredFactory key
 
static struct ViewInfo::ProjectFileIORegistration projectFileIORegistration
 
static ProjectFileIORegistry::WriterEntry entry
 
BoolSetting ScrollingPreference { L"/GUI/ScrollBeyondZero", false }
 

Function Documentation

◆ wxDEFINE_EVENT() [1/2]

wxDEFINE_EVENT ( EVT_PLAY_REGION_CHANGE  ,
PlayRegionEvent   
)

◆ wxDEFINE_EVENT() [2/2]

wxDEFINE_EVENT ( EVT_SELECTED_REGION_CHANGE  ,
SelectedRegionEvent   
)

Variable Documentation

◆ entry

Initial value:
{
[](const AudacityProject &project, XMLWriter &xmlFile){
ViewInfo::Get(project).WriteXMLAttributes(xmlFile);
}
}

Definition at line 340 of file ViewInfo.cpp.

◆ key

Initial value:
{
[]( AudacityProject &project ) {
return std::make_unique<ViewInfo>(0.0, 1.0, ZoomInfo::GetDefaultZoom());
}
}

Definition at line 235 of file ViewInfo.cpp.

Referenced by ViewInfo::Get().

◆ LoopToggleText

const TranslatableString LoopToggleText = XXO("&Loop On/Off")

◆ projectFileIORegistration

struct ViewInfo::ProjectFileIORegistration projectFileIORegistration
static

◆ ScrollingPreference

BoolSetting ScrollingPreference { L"/GUI/ScrollBeyondZero", false }
XMLWriter
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
Definition: XMLWriter.h:23
ViewInfo::Get
static ViewInfo & Get(AudacityProject &project)
Definition: ViewInfo.cpp:241
ZoomInfo::GetDefaultZoom
static double GetDefaultZoom()
Definition: ZoomInfo.h:123
ViewInfo::WriteXMLAttributes
void WriteXMLAttributes(XMLWriter &xmlFile) const
Definition: ViewInfo.cpp:294
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:92