Audacity 3.2.0
Classes | Variables
ViewInfo.cpp File Reference
#include "ViewInfo.h"
#include <algorithm>
#include "XMLAttributeValueView.h"
#include "BasicUI.h"
#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 initialization time to hook project file IO. More...
 

Variables

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

Variable Documentation

◆ entry

Initial value:
{
[](const AudacityProject &project, XMLWriter &xmlFile){
ViewInfo::Get(project).WriteXMLAttributes(xmlFile);
}
}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:89
void WriteXMLAttributes(XMLWriter &xmlFile) const
Definition: ViewInfo.cpp:288
static ViewInfo & Get(AudacityProject &project)
Definition: ViewInfo.cpp:235
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
Definition: XMLWriter.h:26

Definition at line 332 of file ViewInfo.cpp.

◆ key

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

Definition at line 229 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 }