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

#include <ViewInfo.h>

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

Classes

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

Public Member Functions

 ViewInfo (double start, double screenDuration, double pixelsPerSecond)
 
 ViewInfo (const ViewInfo &) PROHIBITED
 
ViewInfooperator= (const ViewInfo &) PROHIBITED
 
int GetHeight () const
 
void SetHeight (int height)
 
void UpdatePrefs () override
 
void UpdateSelectedPrefs (int id) override
 
double GetBeforeScreenWidth () const
 
void SetBeforeScreenWidth (wxInt64 beforeWidth, wxInt64 screenWidth, double lowerBoundTime=0.0)
 
double GetTotalWidth () const
 
void WriteXMLAttributes (XMLWriter &xmlFile) const
 
- Public Member Functions inherited from ZoomInfo
 ZoomInfo (double start, double pixelsPerSecond)
 
 ~ZoomInfo ()
 
 ZoomInfo (const ZoomInfo &) PROHIBITED
 
ZoomInfooperator= (const ZoomInfo &) PROHIBITED
 
void UpdatePrefs () override
 
double PositionToTime (wxInt64 position, wxInt64 origin=0, bool ignoreFisheye=false) const
 
wxInt64 TimeToPosition (double time, wxInt64 origin=0, bool ignoreFisheye=false) const
 STM: Converts a project time to screen x position. More...
 
double TimeRangeToPixelWidth (double timeRange) const
 
double OffsetTimeByPixels (double time, wxInt64 offset, bool ignoreFisheye=false) const
 
int GetWidth () const
 
void SetWidth (int width)
 
int GetVRulerWidth () const
 
void SetVRulerWidth (int width)
 
int GetVRulerOffset () const
 
int GetLeftOffset () const
 
int GetTracksUsableWidth () const
 
double GetScreenEndTime () const
 
bool ZoomInAvailable () const
 
bool ZoomOutAvailable () const
 
void SetZoom (double pixelsPerSecond)
 
double GetZoom () const
 
void ZoomBy (double multiplier)
 
void FindIntervals (double rate, Intervals &results, wxInt64 width, wxInt64 origin=0) const
 
FisheyeState GetFisheyeState () const
 
bool InFisheye (wxInt64, wxInt64 WXUNUSED(origin=0)) const
 
wxInt64 GetFisheyeLeftBoundary (wxInt64 WXUNUSED(origin=0)) const
 
wxInt64 GetFisheyeRightBoundary (wxInt64 WXUNUSED(origin=0)) const
 
- Public Member Functions inherited from ClientData::Base
virtual ~Base ()
 

Static Public Member Functions

static ViewInfoGet (AudacityProject &project)
 
static const ViewInfoGet (const AudacityProject &project)
 
static int UpdateScrollPrefsID ()
 
- Static Public Member Functions inherited from ZoomInfo
static double GetDefaultZoom ()
 
static double GetMaxZoom ()
 
static double GetMinZoom ()
 

Public Attributes

NotifyingSelectedRegion selectedRegion
 
PlayRegion playRegion
 
double total
 
wxInt64 sbarH
 
wxInt64 sbarScreen
 
wxInt64 sbarTotal
 
double sbarScale
 
int scrollStep
 
bool bUpdateTrackIndicator
 
bool bScrollBeyondZero
 
bool bAdjustSelectionEdges
 
- Public Attributes inherited from ZoomInfo
int vpos
 
double h
 
float dBr
 
int mWidth { 0 }
 
int mVRulerWidth { 36 }
 

Private Attributes

int mHeight { 0 }
 

Additional Inherited Members

- Public Types inherited from ZoomInfo
enum  FisheyeState { HIDDEN, PINNED, NUM_STATES }
 
typedef std::vector< IntervalIntervals
 
 PrefsListener ()
 
virtual ~PrefsListener ()
 
- Static Protected Member Functions inherited from PrefsListener
static void Broadcast (int id=0)
 Call this static function to notify all PrefsListener objects. More...
 
- Protected Attributes inherited from ZoomInfo
double zoom
 

Detailed Description

Definition at line 186 of file ViewInfo.h.

Constructor & Destructor Documentation

◆ ViewInfo() [1/2]

ViewInfo::ViewInfo ( double  start,
double  screenDuration,
double  pixelsPerSecond 
)

Definition at line 245 of file ViewInfo.cpp.

246  : ZoomInfo(start, pixelsPerSecond)
247  , selectedRegion()
248  , total(screenDuration)
249  , sbarH(0)
250  , sbarScreen(1)
251  , sbarTotal(1)
252  , sbarScale(1.0)
253  , scrollStep(16)
254  , bUpdateTrackIndicator(true)
255  , bScrollBeyondZero(false)
256 {
257  UpdatePrefs();
258 }

References UpdatePrefs().

Here is the call graph for this function:

◆ ViewInfo() [2/2]

ViewInfo::ViewInfo ( const ViewInfo )

Member Function Documentation

◆ Get() [1/2]

ViewInfo & ViewInfo::Get ( AudacityProject project)
static

Definition at line 235 of file ViewInfo.cpp.

236 {
237  return project.AttachedObjects::Get< ViewInfo >( key );
238 }

References key.

Referenced by SelectUtilities::ActivatePlayRegion(), ExportCommand::Apply(), SelectTimeCommand::Apply(), SetLabelCommand::Apply(), ProjectSelectionManager::AS_ModifySelection(), BrushHandleHitTest(), SelectHandle::Cancel(), AdornedRulerPanel::PlayRegionAdjustingHandle::Cancel(), CutlineHandle::Cancel(), AdornedRulerPanel::ClearPlayRegion(), SelectUtilities::ClearPlayRegion(), LabelGlyphHandle::Click(), LabelTextHandle::Click(), StretchHandle::Click(), CutlineHandle::Click(), SampleHandle::Click(), BrushHandle::Click(), EnvelopeHandle::Click(), SelectHandle::Click(), TimeShiftHandle::Click(), WaveTrackAffordanceHandle::Click(), DefaultPlayOptions(), WaveformView::DetailedHitTest(), LabelTrackView::DialogForLabelName(), AdornedRulerPanel::MovePlayRegionHandle::DoAdjust(), AdornedRulerPanel::ResizePlayRegionHandle::DoAdjust(), AdornedRulerPanel::NewPlayRegionHandle::DoAdjust(), anonymous_namespace{TrackMenus.cpp}::DoAlign(), anonymous_namespace{SelectMenus.cpp}::DoBoundaryMove(), LabelTrackView::DoCaptureKey(), LabelTrackView::DoChar(), anonymous_namespace{ClipMenus.cpp}::DoClipLeftOrRight(), anonymous_namespace{ClipMenus.cpp}::DoClipMove(), CommonTrackPanelCell::DoContextMenu(), anonymous_namespace{ClipMenus.cpp}::DoCursorClipBoundary(), WaveTrackView::DoDetailedHitTest(), AdornedRulerPanel::DoDrawPlayRegion(), LabelTrackView::DoEditLabels(), EffectUI::DoEffect(), EditCursorOverlay::DoGetRectangle(), AdornedRulerPanel::DoIdle(), SelectUtilities::DoListSelection(), anonymous_namespace{TransportMenus.cpp}::DoMoveToLabel(), anonymous_namespace{SelectMenus.cpp}::DoNextPeakFrequency(), anonymous_namespace{EditMenus.cpp}::DoPasteNothingSelected(), anonymous_namespace{EditMenus.cpp}::DoPasteText(), ProjectAudioManager::DoPlayStopSelect(), ProjectWindow::DoScroll(), anonymous_namespace{ClipMenus.cpp}::DoSelectClip(), anonymous_namespace{ClipMenus.cpp}::DoSelectClipBoundary(), AdornedRulerPanel::DoSelectionChange(), SelectUtilities::DoSelectSomething(), anonymous_namespace{SelectUtilities.cpp}::DoSelectTimeAndAudioTracks(), SelectUtilities::DoSelectTimeAndTracks(), AdornedRulerPanel::NewPlayRegionHandle::DoStartAdjust(), AdornedRulerPanel::MovePlayRegionHandle::DoStartAdjust(), ProjectWindow::DoZoomFit(), anonymous_namespace{ViewMenus.cpp}::DoZoomFitV(), LabelGlyphHandle::Drag(), SampleHandle::Drag(), BrushHandle::Drag(), EnvelopeHandle::Drag(), SelectHandle::Drag(), TimeShiftHandle::Drag(), AdornedRulerPanel::DragSelection(), EditCursorOverlay::Draw(), TranscriptionToolBar::EnableDisableButtons(), EditActions::Handler::FindSelection(), ProjectWindow::FixScrollbars(), Get(), FrequencyPlotDialog::GetAudio(), WaveTrackSubView::GetMenuItems(), anonymous_namespace{AdornedRulerPanel.cpp}::GetPlayHeadFraction(), anonymous_namespace{AdornedRulerPanel.cpp}::GetPlayHeadX(), TranscriptionToolBar::GetSamples(), CompareAudioCommand::GetSelection(), anonymous_namespace{EnvelopeHandle.cpp}::GetTimeTrackData(), anonymous_namespace{ViewMenus.cpp}::GetZoomOfSelection(), ProjectWindow::GetZoomOfToFit(), anonymous_namespace{SelectMenus.cpp}::GridMove(), AdornedRulerPanel::HandleSnapping(), AUPImportFileHandle::HandleTimeTrack(), WaveClipTrimHandle::HitAnywhere(), EnvelopeHandle::HitEnvelope(), AdornedRulerPanel::QPCell::HitTest(), NoteTrackAffordanceControls::HitTest(), WaveTrackAffordanceControls::HitTest(), CutlineHandle::HitTest(), SampleHandle::HitTest(), SelectHandle::HitTest(), StretchHandle::HitTest(), AUPImportFileHandle::Import(), SelectUtilities::InactivatePlayRegion(), NewDefaultPlaybackPolicy::Initialize(), ProjectHistory::InitialState(), InitProjectWindow(), anonymous_namespace{TransportMenus.cpp}::IsLoopingEnabled(), anonymous_namespace{LabelMenus.cpp}::LabelsSelectedFlag(), ProjectWindow::MayScrollBeyondZero(), ProjectHistory::ModifyState(), anonymous_namespace{SelectMenus.cpp}::MoveWhenAudioInactive(), TimeTrack::New(), anonymous_namespace{SelectMenus.cpp}::OffsetTime(), LabelEditActions::Handler::OnAddLabel(), WaveTrackAffordanceControls::OnAffordanceClick(), EffectUIHost::OnApply(), LabelTrackView::OnContextMenu(), EditActions::Handler::OnCopy(), LabelEditActions::Handler::OnCopyLabels(), SelectActions::Handler::OnCursorPositionStore(), SelectActions::Handler::OnCursorSelEnd(), SelectActions::Handler::OnCursorSelStart(), SelectActions::Handler::OnCursorTrackEnd(), SelectActions::Handler::OnCursorTrackStart(), EditActions::Handler::OnCut(), LabelEditActions::Handler::OnCutLabels(), EditActions::Handler::OnDelete(), LabelEditActions::Handler::OnDeleteLabels(), EditActions::Handler::OnDisjoin(), LabelEditActions::Handler::OnDisjoinLabels(), EditActions::Handler::OnDuplicate(), FileActions::Handler::OnExportSelection(), ContrastDialog::OnGetBackground(), ContrastDialog::OnGetForeground(), ViewActions::Handler::OnGoSelEnd(), ViewActions::Handler::OnGoSelStart(), ControlToolBar::OnIdle(), SelectionBar::OnIdle(), TimeToolBar::OnIdle(), EditActions::Handler::OnJoin(), LabelEditActions::Handler::OnJoinLabels(), ControlToolBar::OnLoop(), HighlightTextCtrl::OnMouseEvent(), anonymous_namespace{TimeTrackMenuItems.cpp}::Handler::OnNewTimeTrack(), AdornedRulerPanel::OnPaint(), LabelEditActions::Handler::OnPasteNewLabel(), EffectUIHost::OnPlay(), TransportActions::Handler::OnPlayAfterSelectionEnd(), TransportActions::Handler::OnPlayAfterSelectionStart(), EffectUIHost::OnPlayback(), TransportActions::Handler::OnPlayBeforeAndAfterSelectionEnd(), TransportActions::Handler::OnPlayBeforeAndAfterSelectionStart(), TransportActions::Handler::OnPlayBeforeSelectionEnd(), TransportActions::Handler::OnPlayBeforeSelectionStart(), TransportActions::Handler::OnPlayToSelection(), ProjectAudioManager::OnRecord(), ProjectWindow::OnScroll(), ProjectWindow::OnScrollLeft(), ProjectWindow::OnScrollLeftButton(), ProjectWindow::OnScrollRight(), ProjectWindow::OnScrollRightButton(), SelectActions::Handler::OnSelectCursorEnd(), SelectActions::Handler::OnSelectCursorStoredCursor(), SelectActions::Handler::OnSelectionRestore(), SelectActions::Handler::OnSelectionSave(), SelectActions::Handler::OnSelectNone(), SelectActions::Handler::OnSelectStartCursor(), SelectActions::Handler::OnSelectTrackStartToEnd(), TransportActions::Handler::OnSetPlayRegionIn(), TransportActions::Handler::OnSetPlayRegionOut(), SelectUtilities::OnSetRegion(), EditActions::Handler::OnSilence(), LabelEditActions::Handler::OnSilenceLabels(), EditActions::Handler::OnSplitCut(), LabelEditActions::Handler::OnSplitCutLabels(), EditActions::Handler::OnSplitDelete(), LabelEditActions::Handler::OnSplitDeleteLabels(), LabelEditActions::Handler::OnSplitLabels(), EditActions::Handler::OnSplitNew(), ProjectWindow::PlaybackScroller::OnTimer(), LyricsWindow::OnTimer(), PlayIndicatorOverlay::OnTimer(), ScrubbingOverlay::OnTimer(), EditActions::Handler::OnTrim(), SelectActions::Handler::OnZeroCrossing(), ViewActions::Handler::OnZoomSel(), ViewActions::Handler::OnZoomToggle(), TimeTrack::PasteInto(), ProjectWindow::PixelWidthBeforeTime(), TranscriptionToolBar::PlayAtSpeed(), ProjectAudioManager::PlayCurrentRegion(), TransportUtilities::PlayCurrentRegionAndWait(), ProjectAudioManager::PlayPlayRegion(), AdornedRulerPanel::PlayRegionRectangle(), ProjectHistory::PopState(), SelectHandle::Preview(), Generator::Process(), NyquistEffect::Process(), Effect::ProcessTrack(), ProjectHistory::PushState(), TransportUtilities::RecordAndWait(), AdornedRulerPanel::PlayRegionAdjustingHandle::Release(), LabelGlyphHandle::Release(), StretchHandle::Release(), EnvelopeHandle::Release(), ZoomHandle::Release(), ProjectManager::ResetProjectToEmpty(), ProjectWindow::Rewind(), AdornedRulerPanel::PlayRegionAdjustingHandle::SavePlayRegion(), ProjectWindow::ScrollingLowerBoundTime(), ProjectWindow::ScrollIntoView(), anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive(), SelectUtilities::SelectAllIfNone(), SelectUtilities::SelectAllIfNoneAndAllowed(), NoteTrackAffordanceHandle::SelectAt(), WaveTrackAffordanceHandle::SelectAt(), anonymous_namespace{WaveTrackAffordanceControls.cpp}::SelectedClipOfFocusedTrack(), AdornedRulerPanel::SelectedRegionRectangle(), ProjectWindow::SetHorizontalThumb(), AdornedRulerPanel::SetPlayRegion(), SelectUtilities::SetPlayRegionToSelection(), ContrastDialog::SetStartAndEndTime(), SelectHandle::SetUseSnap(), AdornedRulerPanel::ShowMenu(), ProjectWindow::SkipEnd(), ProjectSelectionManager::SnapSelection(), ProjectSelectionManager::SSBL_ModifySpectralSelection(), AdornedRulerPanel::StartQPPlay(), SelectHandle::StartSelection(), StretchHandle::Stretch(), AdornedRulerPanel::CommonRulerHandle::Time(), TimeSelectedPred(), ScreenshotBigDialog::TimeZoom(), SelectUtilities::TogglePlayRegion(), WaveClipTrimHandle::AdjustBorder::Trim(), WaveClipTrimHandle::AdjustBetweenBorders::Trim(), AdornedRulerPanel::ScrubbingRulerOverlay::Update(), LyricsPanel::Update(), LyricsPanel::UpdateLyrics(), AdornedRulerPanel::UpdateQuickPlayPos(), EnvelopeHandle::WaveTrackHitTest(), NewDefaultPlaybackPolicy::WriteMessage(), ProjectWindow::Zoom(), ProjectWindow::ZoomBy(), ZoomInAvailableFlag(), ProjectWindow::ZoomInByFactor(), ZoomOutAvailableFlag(), and ProjectWindow::ZoomOutByFactor().

◆ Get() [2/2]

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

Definition at line 240 of file ViewInfo.cpp.

241 {
242  return Get( const_cast< AudacityProject & >( project ) );
243 }

References Get().

Here is the call graph for this function:

◆ GetBeforeScreenWidth()

double ViewInfo::GetBeforeScreenWidth ( ) const
inline

Definition at line 204 of file ViewInfo.h.

205  {
206  return h * zoom;
207  }

References ZoomInfo::zoom.

Referenced by AttachableScrollBar::SetScrollBarFromViewInfo().

Here is the caller graph for this function:

◆ GetHeight()

int ViewInfo::GetHeight ( ) const
inline

Definition at line 197 of file ViewInfo.h.

197 { return mHeight; }

◆ GetTotalWidth()

double ViewInfo::GetTotalWidth ( ) const
inline

Definition at line 210 of file ViewInfo.h.

211  { return total * zoom; }

References ZoomInfo::zoom.

Referenced by AttachableScrollBar::SetScrollBarFromViewInfo().

Here is the caller graph for this function:

◆ operator=()

ViewInfo& ViewInfo::operator= ( const ViewInfo )

◆ SetBeforeScreenWidth()

void ViewInfo::SetBeforeScreenWidth ( wxInt64  beforeWidth,
wxInt64  screenWidth,
double  lowerBoundTime = 0.0 
)

Definition at line 280 of file ViewInfo.cpp.

281 {
282  h =
283  std::max(lowerBoundTime,
284  std::min(total - screenWidth / zoom,
285  beforeWidth / zoom));
286 }

References ZoomInfo::h, min(), total, and ZoomInfo::zoom.

Referenced by AttachableScrollBar::SetViewInfoFromScrollBar().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetHeight()

void ViewInfo::SetHeight ( int  height)
inline

Definition at line 198 of file ViewInfo.h.

198 { mHeight = height; }

Referenced by TrackPanel::OnSize().

Here is the caller graph for this function:

◆ UpdatePrefs()

void ViewInfo::UpdatePrefs ( )
overridevirtual

Implements PrefsListener.

Definition at line 268 of file ViewInfo.cpp.

269 {
271 #ifdef EXPERIMENTAL_SCROLLING_LIMITS
273 #endif
274  gPrefs->Read(wxT("/GUI/AdjustSelectionEdges"), &bAdjustSelectionEdges,
275  true);
276 
278 }

References bAdjustSelectionEdges, bScrollBeyondZero, gPrefs, Setting< T >::Read(), ScrollingPreference, ZoomInfo::UpdatePrefs(), UpdateScrollPrefsID(), and UpdateSelectedPrefs().

Referenced by ViewInfo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateScrollPrefsID()

int ViewInfo::UpdateScrollPrefsID ( )
static

Definition at line 327 of file ViewInfo.cpp.

328 {
329  return 10000;
330 }

Referenced by AdornedRulerPanel::OnAutoScroll(), UpdatePrefs(), and UpdateSelectedPrefs().

Here is the caller graph for this function:

◆ UpdateSelectedPrefs()

void ViewInfo::UpdateSelectedPrefs ( int  id)
overridevirtual

Reimplemented from PrefsListener.

Definition at line 260 of file ViewInfo.cpp.

261 {
262  if (id == UpdateScrollPrefsID())
263  gPrefs->Read(wxT("/GUI/AutoScroll"), &bUpdateTrackIndicator,
264  true);
266 }

References bUpdateTrackIndicator, gPrefs, UpdateScrollPrefsID(), and PrefsListener::UpdateSelectedPrefs().

Referenced by UpdatePrefs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteXMLAttributes()

void ViewInfo::WriteXMLAttributes ( XMLWriter xmlFile) const

Definition at line 288 of file ViewInfo.cpp.

290 {
291  selectedRegion.WriteXMLAttributes(xmlFile, "sel0", "sel1");
292  xmlFile.WriteAttr(wxT("vpos"), vpos);
293  xmlFile.WriteAttr(wxT("h"), h, 10);
294  xmlFile.WriteAttr(wxT("zoom"), zoom, 10);
295 }

Member Data Documentation

◆ bAdjustSelectionEdges

bool ViewInfo::bAdjustSelectionEdges

Definition at line 241 of file ViewInfo.h.

Referenced by UpdatePrefs().

◆ bScrollBeyondZero

bool ViewInfo::bScrollBeyondZero

Definition at line 240 of file ViewInfo.h.

Referenced by UpdatePrefs().

◆ bUpdateTrackIndicator

bool ViewInfo::bUpdateTrackIndicator

◆ mHeight

int ViewInfo::mHeight { 0 }
private

Definition at line 246 of file ViewInfo.h.

◆ playRegion

PlayRegion ViewInfo::playRegion

◆ sbarH

wxInt64 ViewInfo::sbarH

◆ sbarScale

double ViewInfo::sbarScale

Definition at line 230 of file ViewInfo.h.

◆ sbarScreen

wxInt64 ViewInfo::sbarScreen

Definition at line 223 of file ViewInfo.h.

Referenced by AttachableScrollBar::SetScrollBarFromViewInfo().

◆ sbarTotal

wxInt64 ViewInfo::sbarTotal

Definition at line 224 of file ViewInfo.h.

Referenced by AttachableScrollBar::SetScrollBarFromViewInfo().

◆ scrollStep

int ViewInfo::scrollStep

Definition at line 233 of file ViewInfo.h.

Referenced by TrackPanel::OnEnsureVisible(), and TrackPanel::VerticalScroll().

◆ selectedRegion

NotifyingSelectedRegion ViewInfo::selectedRegion

Definition at line 215 of file ViewInfo.h.

Referenced by SelectHandle::AdjustFreqSelection(), AdornedRulerPanel::AdornedRulerPanel(), ExportCommand::Apply(), SelectTimeCommand::Apply(), SetLabelCommand::Apply(), SelectHandle::AssignSelection(), SelectHandle::Cancel(), CutlineHandle::Cancel(), LabelTrackView::Char(), anonymous_namespace{SelectHandle.cpp}::ChooseBoundary(), anonymous_namespace{TrackMenus.cpp}::DoAlign(), LabelTrackView::DoCaptureKey(), LabelTrackView::DoChar(), anonymous_namespace{ClipMenus.cpp}::DoCursorClipBoundary(), EffectUI::DoEffect(), anonymous_namespace{TransportMenus.cpp}::DoMoveToLabel(), anonymous_namespace{EditMenus.cpp}::DoPasteNothingSelected(), anonymous_namespace{EditMenus.cpp}::DoPasteText(), anonymous_namespace{ClipMenus.cpp}::DoSelectClip(), anonymous_namespace{ClipMenus.cpp}::DoSelectClipBoundary(), SelectUtilities::DoSelectSomething(), anonymous_namespace{SelectUtilities.cpp}::DoSelectTimeAndAudioTracks(), SelectUtilities::DoSelectTimeAndTracks(), TrackPanel::DrawTracks(), TranscriptionToolBar::EnableDisableButtons(), LabelDialog::FindInitialRow(), EditActions::Handler::FindSelection(), FrequencyPlotDialog::GetAudio(), TranscriptionToolBar::GetSamples(), CompareAudioCommand::GetSelection(), StretchHandle::GetT0(), StretchHandle::GetT1(), AdornedRulerPanel::HandleSnapping(), NoteTrackShifter::HitTest(), WaveTrackShifter::HitTest(), LabelTrackShifter::HitTest(), ClipMoveState::Init(), WaveTrackUtils::IsClipSelected(), LabelTrackView::KeyDown(), anonymous_namespace{LabelMenus.cpp}::LabelsSelectedFlag(), SelectHandle::MoveSnappingFreqSelection(), LabelEditActions::Handler::OnAddLabel(), EffectUIHost::OnApply(), AdornedRulerPanel::OnAudioStartStop(), LabelTrackView::OnContextMenu(), EditActions::Handler::OnCopy(), LabelEditActions::Handler::OnCopyLabels(), SelectActions::Handler::OnCursorPositionStore(), SelectActions::Handler::OnCursorSelEnd(), SelectActions::Handler::OnCursorSelStart(), SelectActions::Handler::OnCursorTrackEnd(), SelectActions::Handler::OnCursorTrackStart(), EditActions::Handler::OnCut(), LabelEditActions::Handler::OnCutLabels(), EditActions::Handler::OnDelete(), LabelEditActions::Handler::OnDeleteLabels(), EditActions::Handler::OnDisjoin(), LabelEditActions::Handler::OnDisjoinLabels(), EditActions::Handler::OnDuplicate(), FileActions::Handler::OnExportSelection(), ContrastDialog::OnGetBackground(), ContrastDialog::OnGetForeground(), SelectionBar::OnIdle(), EditActions::Handler::OnJoin(), LabelEditActions::Handler::OnJoinLabels(), HighlightTextCtrl::OnMouseEvent(), TrackPanel::OnPaint(), LabelEditActions::Handler::OnPasteNewLabel(), EffectUIHost::OnPlayback(), ProjectAudioManager::OnRecord(), LabelDialog::OnSelectCell(), SelectActions::Handler::OnSelectCursorEnd(), SelectActions::Handler::OnSelectCursorStoredCursor(), AdornedRulerPanel::OnSelectionChange(), SelectActions::Handler::OnSelectionRestore(), SelectActions::Handler::OnSelectionSave(), SelectActions::Handler::OnSelectNone(), SelectActions::Handler::OnSelectStartCursor(), EditActions::Handler::OnSilence(), LabelEditActions::Handler::OnSilenceLabels(), EditActions::Handler::OnSplitCut(), LabelEditActions::Handler::OnSplitCutLabels(), EditActions::Handler::OnSplitDelete(), LabelEditActions::Handler::OnSplitDeleteLabels(), LabelEditActions::Handler::OnSplitLabels(), EditActions::Handler::OnSplitNew(), LyricsWindow::OnTimer(), TrackPanel::OnTimer(), EditActions::Handler::OnTrim(), SelectActions::Handler::OnZeroCrossing(), ViewActions::Handler::OnZoomSel(), ProjectAudioManager::PlayPlayRegion(), Generator::Process(), NyquistEffect::Process(), Effect::ProcessTrack(), TransportUtilities::RecordAndWait(), WaveTrackView::SelectNextClip(), SelectionState::SelectTrackLength(), ContrastDialog::SetStartAndEndTime(), SelectHandle::SnapCenterOnce(), SelectHandle::StartFreqSelection(), SelectHandle::StartSnappingFreqSelection(), TimeSelectedPred(), AdornedRulerPanel::ScrubbingRulerOverlay::Update(), LyricsPanel::Update(), LyricsPanel::UpdateLyrics(), and TrackPanel::UpdateViewIfNoTracks().

◆ total

double ViewInfo::total

Definition at line 220 of file ViewInfo.h.

Referenced by SetBeforeScreenWidth().


The documentation for this class was generated from the following files:
ZoomInfo::vpos
int vpos
Definition: ZoomInfo.h:58
ViewInfo::Get
static ViewInfo & Get(AudacityProject &project)
Definition: ViewInfo.cpp:235
NotifyingSelectedRegion::WriteXMLAttributes
void WriteXMLAttributes(XMLWriter &xmlFile, const char *legacyT0Name, const char *legacyT1Name) const
Definition: ViewInfo.h:45
ViewInfo::bUpdateTrackIndicator
bool bUpdateTrackIndicator
Definition: ViewInfo.h:238
ZoomInfo::UpdatePrefs
void UpdatePrefs() override
Definition: ZoomInfo.cpp:33
gPrefs
FileConfig * gPrefs
Definition: Prefs.cpp:71
ViewInfo
Definition: ViewInfo.h:188
ZoomInfo::ZoomInfo
ZoomInfo(double start, double pixelsPerSecond)
Definition: ZoomInfo.cpp:21
ViewInfo::sbarH
wxInt64 sbarH
Definition: ViewInfo.h:222
ViewInfo::sbarScreen
wxInt64 sbarScreen
Definition: ViewInfo.h:223
ViewInfo::sbarTotal
wxInt64 sbarTotal
Definition: ViewInfo.h:224
ScrollingPreference
BoolSetting ScrollingPreference
Definition: ViewInfo.cpp:338
Setting::Read
bool Read(T *pVar) const
overload of Read returning a boolean that is true if the value was previously defined *‍/
Definition: Prefs.h:127
ViewInfo::bScrollBeyondZero
bool bScrollBeyondZero
Definition: ViewInfo.h:240
ViewInfo::scrollStep
int scrollStep
Definition: ViewInfo.h:233
PrefsListener::UpdateSelectedPrefs
virtual void UpdateSelectedPrefs(int id)
Definition: Prefs.cpp:124
ViewInfo::selectedRegion
NotifyingSelectedRegion selectedRegion
Definition: ViewInfo.h:215
ViewInfo::mHeight
int mHeight
Definition: ViewInfo.h:246
key
static const AudacityProject::AttachedObjects::RegisteredFactory key
Definition: ViewInfo.cpp:229
ViewInfo::UpdateSelectedPrefs
void UpdateSelectedPrefs(int id) override
Definition: ViewInfo.cpp:260
ViewInfo::UpdateScrollPrefsID
static int UpdateScrollPrefsID()
Definition: ViewInfo.cpp:327
min
int min(int a, int b)
Definition: CompareAudioCommand.cpp:106
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:89
XMLWriter::WriteAttr
void WriteAttr(const wxString &name, const Identifier &value)
Definition: XMLWriter.h:37
ViewInfo::UpdatePrefs
void UpdatePrefs() override
Definition: ViewInfo.cpp:268
ViewInfo::sbarScale
double sbarScale
Definition: ViewInfo.h:230
ViewInfo::bAdjustSelectionEdges
bool bAdjustSelectionEdges
Definition: ViewInfo.h:241
ZoomInfo::zoom
double zoom
Definition: ZoomInfo.h:63
ZoomInfo::h
double h
Definition: ZoomInfo.h:60
ViewInfo::total
double total
Definition: ViewInfo.h:220