![]() |
Audacity 3.2.0
|
A top-level window associated with a project, and handling scrollbars and zooming. More...
#include <ProjectWindow.h>
Classes | |
class | PlaybackScroller |
struct | PlaybackScrollerMessage |
Public Member Functions | |
ProjectWindow (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, AudacityProject &project) | |
~ProjectWindow () override | |
int | NextWindowID () |
bool | IsActive () override |
bool | IsIconized () const override |
bool | IsBeingDeleted () const |
void | SetIsBeingDeleted () |
void | Reset () |
wxWindow * | GetEffectsWindow () noexcept |
Effect window contains list off effects assigned to a selected track. More... | |
wxWindow * | GetTrackListWindow () noexcept |
Track list window is the parent container for TrackPanel. More... | |
wxWindow * | GetContainerWindow () noexcept |
Container is a parent window for both effects panel and track list windows. More... | |
wxPanel * | GetTopPanel () noexcept |
Top panel contains project-related controls and tools. More... | |
void | UpdateStatusWidths () |
PlaybackScroller & | GetPlaybackScroller () |
void | SetNormalizedWindowState (wxRect pSizeAndLocation) |
wxRect | GetNormalizedWindowState () const |
void | RedrawProject (const bool bForceWaveTracks=false) |
void | Zoom (double level) |
void | ZoomInByFactor (double ZoomFactor) |
void | ZoomOutByFactor (double ZoomFactor) |
void | ZoomBy (double multiplier) |
void | ZoomAfterImport (Track *pTrack) |
double | GetZoomOfToFit () const |
void | DoZoomFit () |
void | ShowEffectsPanel (Track *track=nullptr) |
void | HideEffectsPanel () |
void | ApplyUpdatedTheme () |
wxScrollBar & | GetVerticalScrollBar () |
wxScrollBar & | GetHorizontalScrollBar () |
void | ScrollIntoView (double pos) |
void | ScrollIntoView (int x) |
void | OnScrollLeft () |
void | OnScrollRight () |
void | Rewind (bool shift) |
void | SkipEnd (bool shift) |
void | OnScrollLeftButton (wxScrollEvent &event) |
void | OnScrollRightButton (wxScrollEvent &event) |
void | FinishAutoScroll () |
void | FixScrollbars () |
bool | MayScrollBeyondZero () const |
double | ScrollingLowerBoundTime () const |
double | PixelWidthBeforeTime (double scrollto) const |
void | SetHorizontalThumb (double scrollto) |
wxSize | GetTPTracksUsableArea () |
void | RefreshTPTrack (Track *pTrk, bool refreshbacking=true) |
void | TP_RedrawScrollbars () override |
void | TP_ScrollLeft () override |
void | TP_ScrollRight () override |
void | TP_ScrollWindow (double scrollto) override |
bool | TP_ScrollUpDown (int delta) override |
void | TP_HandleResize () override |
void | OnMenu (wxCommandEvent &event) |
void | OnUpdateUI (wxUpdateUIEvent &event) |
void | MacShowUndockedToolbars (bool show) |
void | OnActivate (wxActivateEvent &event) |
void | OnMouseEvent (wxMouseEvent &event) |
void | OnIconize (wxIconizeEvent &event) |
void | OnSize (wxSizeEvent &event) |
void | HandleResize () |
void | UpdateLayout () |
void | OnShow (wxShowEvent &event) |
void | OnMove (wxMoveEvent &event) |
void | DoScroll () |
void | OnScroll (wxScrollEvent &event) |
void | OnToolBarUpdate (wxCommandEvent &event) |
void | OnUndoPushedModified () |
void | OnUndoRedo () |
void | OnUndoReset () |
![]() | |
ProjectWindowBase (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, AudacityProject &project) | |
~ProjectWindowBase () override | |
AudacityProject & | GetProject () |
const AudacityProject & | GetProject () const |
![]() | |
TrackPanelListener () | |
virtual | ~TrackPanelListener () |
virtual void | TP_RedrawScrollbars ()=0 |
virtual void | TP_ScrollLeft ()=0 |
virtual void | TP_ScrollRight ()=0 |
virtual void | TP_ScrollWindow (double scrollto)=0 |
virtual bool | TP_ScrollUpDown (int delta)=0 |
virtual void | TP_HandleResize ()=0 |
![]() | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
Static Public Member Functions | |
static ProjectWindow & | Get (AudacityProject &project) |
static const ProjectWindow & | Get (const AudacityProject &project) |
static ProjectWindow * | Find (AudacityProject *pProject) |
static const ProjectWindow * | Find (const AudacityProject *pProject) |
static void | OnResetWindow (const CommandContext &context) |
![]() | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
Public Attributes | |
bool | mbInitializingScrollbar { false } |
Private Member Functions | |
void | OnThemeChange (wxCommandEvent &evt) |
void | UpdatePrefs () override |
Private Attributes | |
wxRect | mNormalizedWindowState |
wxPanel * | mTopPanel {} |
wxSplitterWindow * | mContainerWindow |
wxWindow * | mEffectsWindow {} |
wxWindow * | mTrackListWindow {} |
wxScrollBar * | mHsbar {} |
wxScrollBar * | mVsbar {} |
int | mNextWindowID {} |
bool | mAutoScrolling { false } |
bool | mActive { true } |
bool | mIconized { false } |
bool | mShownOnce { false } |
bool | mIsDeleting { false } |
Observer::Subscription | mUndoSubscription |
std::unique_ptr< PlaybackScroller > | mPlaybackScroller |
Additional Inherited Members | |
![]() | |
virtual void | UpdateSelectedPrefs (int id) |
![]() | |
AudacityProject & | mProject |
A top-level window associated with a project, and handling scrollbars and zooming.
Definition at line 32 of file ProjectWindow.h.
|
explicit |
Definition at line 589 of file ProjectWindow.cpp.
References _, ThemeBase::Colour(), UndoManager::Get(), HSBarID, mContainerWindow, mEffectsWindow, mHsbar, mNextWindowID, mPlaybackScroller, mTopPanel, mTrackListWindow, mUndoSubscription, mVsbar, NextID, OnThemeChange(), safenew, Observer::Publisher< Message, NotifyAll >::Subscribe(), theTheme, UndoRedoMessage::type, and VSBarID.
|
override |
Definition at line 683 of file ProjectWindow.cpp.
void ProjectWindow::ApplyUpdatedTheme | ( | ) |
Definition at line 709 of file ProjectWindow.cpp.
References ThemeBase::Colour(), and theTheme.
Referenced by OnThemeChange().
void ProjectWindow::DoScroll | ( | ) |
Definition at line 1470 of file ProjectWindow.cpp.
References ViewInfo::Get(), GetProjectPanel(), mAutoScrolling, MayScrollBeyondZero(), ProjectWindowBase::mProject, mVsbar, ScrollingLowerBoundTime(), and SetHorizontalThumb().
Referenced by FinishAutoScroll(), OnScroll(), OnScrollLeftButton(), OnScrollRightButton(), TP_ScrollUpDown(), and TP_ScrollWindow().
void ProjectWindow::DoZoomFit | ( | ) |
Definition at line 1868 of file ProjectWindow.cpp.
References ViewInfo::Get(), TrackList::Get(), min(), and ProjectWindowBase::mProject.
Referenced by ZoomAfterImport().
|
static |
Definition at line 553 of file ProjectWindow.cpp.
References ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Find(), GetAttachedWindows(), and anonymous_namespace{ProjectWindow.cpp}::sProjectWindowKey.
Referenced by Exporter::CheckMix(), ExportMP3::Export(), ExportMultipleDialog::ExportMultipleByLabel(), ExportMultipleDialog::ExportMultipleByTrack(), Find(), Exporter::GetFilename(), ScreenshotCommand::GetFrontWindow(), ProjectManager::OnStatusChange(), ProjectManager::SetStatusText(), and ScreenshotCommand::WindowFileName().
|
static |
Definition at line 560 of file ProjectWindow.cpp.
References Find().
void ProjectWindow::FinishAutoScroll | ( | ) |
Definition at line 761 of file ProjectWindow.cpp.
References DoScroll(), and mAutoScrolling.
Referenced by OnScrollLeft(), and OnScrollRight().
void ProjectWindow::FixScrollbars | ( | ) |
Definition at line 1015 of file ProjectWindow.cpp.
References ViewInfo::Get(), TrackList::Get(), MenuManager::Get(), GetProjectPanel(), TrackView::GetTotalHeight(), MayScrollBeyondZero(), mbInitializingScrollbar, mHsbar, ProjectWindowBase::mProject, mVsbar, PixelWidthBeforeTime(), ScrollingLowerBoundTime(), UpdateLayout(), and MenuManager::UpdateMenus().
Referenced by HandleResize(), InitProjectWindow(), TP_RedrawScrollbars(), Zoom(), and ZoomBy().
|
static |
Definition at line 543 of file ProjectWindow.cpp.
References ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), GetAttachedWindows(), and anonymous_namespace{ProjectWindow.cpp}::sProjectWindowKey.
Referenced by ProjectSelectionManager::AS_SetSnapTo(), EffectsButtonHandle::CommitChanges(), anonymous_namespace{TrackMenus.cpp}::DoAlign(), MacroCommands::DoAudacityCommand(), anonymous_namespace{SelectMenus.cpp}::DoBoundaryMove(), anonymous_namespace{ClipMenus.cpp}::DoClipLeftOrRight(), anonymous_namespace{ClipMenus.cpp}::DoCursorClipBoundary(), LOFImportFileHandle::doDurationAndScrollOffset(), LabelTrackView::DoEditLabels(), EffectUI::DoEffect(), anonymous_namespace{FileMenus.cpp}::DoImport(), DoImportMIDI(), LabelTrackView::DoKeyDown(), anonymous_namespace{TrackMenus.cpp}::DoMixAndRender(), anonymous_namespace{TransportMenus.cpp}::DoMoveToLabel(), anonymous_namespace{TrackMenus.cpp}::DoPanTracks(), anonymous_namespace{EditMenus.cpp}::DoPasteNothingSelected(), anonymous_namespace{EditMenus.cpp}::DoPasteText(), TrackUtilities::DoRemoveTrack(), anonymous_namespace{ClipMenus.cpp}::DoSelectClip(), Get(), GetNextWindowPlacement(), anonymous_namespace{ViewMenus.cpp}::GetZoomOfPreset(), anonymous_namespace{ViewMenus.cpp}::GetZoomOfSelection(), LabelTrackView::KeyDown(), MixerBoard::MixerBoard(), anonymous_namespace{SelectMenus.cpp}::MoveWhenAudioInactive(), TrackActions::Handler::MuteTracks(), ProjectManager::New(), anonymous_namespace{NavigationMenus.cpp}::NextOrPrevFrame(), PluginActions::Handler::OnApplyMacroDirectlyByName(), ApplyMacroDialog::OnApplyToFiles(), MixerTrackCluster::OnButton_Mute(), MixerTrackCluster::OnButton_Solo(), FileActions::Handler::OnClose(), ProjectManager::OnCloseWindow(), ViewActions::Handler::OnCollapseAllTracks(), SelectActions::Handler::OnCursorSelEnd(), SelectActions::Handler::OnCursorSelStart(), SelectActions::Handler::OnCursorTrackEnd(), SelectActions::Handler::OnCursorTrackStart(), EditActions::Handler::OnCut(), EditActions::Handler::OnDelete(), EditActions::Handler::OnDisjoin(), EditActions::Handler::OnDuplicate(), AudacityApp::OnExceptionInMainLoop(), ViewActions::Handler::OnExpandAllTracks(), ControlToolBar::OnFF(), ViewActions::Handler::OnGoSelEnd(), ViewActions::Handler::OnGoSelStart(), FileActions::Handler::OnImportLabels(), EditActions::Handler::OnJoin(), anonymous_namespace{WaveTrackMenuItems.cpp}::Handler::OnNewStereoTrack(), anonymous_namespace{TimeTrackMenuItems.cpp}::Handler::OnNewTimeTrack(), anonymous_namespace{WaveTrackMenuItems.cpp}::Handler::OnNewWaveTrack(), EditActions::Handler::OnPaste(), CommandHandler::OnReceiveCommand(), ProjectManager::OnReconnectionFailure(), EditActions::Handler::OnRedo(), TrackActions::Handler::OnResample(), OnResetWindow(), ControlToolBar::OnRewind(), LabelDialog::OnSelectCell(), SelectActions::Handler::OnSelectionRestore(), SelectActions::Handler::OnSelToEnd(), SelectActions::Handler::OnSelToStart(), ScreenshotBigDialog::OnShortTracks(), EditActions::Handler::OnSplitCut(), EditActions::Handler::OnSplitDelete(), EditActions::Handler::OnSplitNew(), ProjectWindow::PlaybackScroller::OnTimer(), PlayIndicatorOverlay::OnTimer(), SelectHandle::TimerHandler::OnTimer(), TrackPanel::OnTimer(), TransportActions::Handler::OnTimerRecord(), ToolsToolBar::OnToolChanged(), EditActions::Handler::OnTrim(), EditActions::Handler::OnUndo(), ViewActions::Handler::OnZoomFit(), ViewActions::Handler::OnZoomFitV(), ViewActions::Handler::OnZoomIn(), ViewActions::Handler::OnZoomNormal(), ViewActions::Handler::OnZoomOut(), ViewActions::Handler::OnZoomSel(), ViewActions::Handler::OnZoomToggle(), ProjectFileManager::OpenFile(), ProjectManager::OpenProject(), ProjectFileManager::OpenProjectFile(), PlayIndicatorOverlay::PlayIndicatorOverlay(), ProjectManager::ProjectManager(), ProjectManager::SaveWindowSize(), ScrubbingOverlay::ScrubbingOverlay(), ScrubForwarder::ScrubForwarder(), anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive(), ScreenshotBigDialog::SizeTracks(), ProjectSelectionManager::SnapSelection(), ControlToolBar::StartScrolling(), ControlToolBar::StartScrollingIfPreferred(), ControlToolBar::StopScrolling(), SelectHandle::TimerHandler::TimerHandler(), ScreenshotBigDialog::TimeZoom(), and TrackPanel::TrackPanel().
|
static |
Definition at line 548 of file ProjectWindow.cpp.
References Get().
|
noexcept |
Container is a parent window for both effects panel and track list windows.
Definition at line 1247 of file ProjectWindow.cpp.
References mContainerWindow.
Referenced by InitProjectWindow().
|
noexcept |
Effect window contains list off effects assigned to a selected track.
Definition at line 1237 of file ProjectWindow.cpp.
References mEffectsWindow.
|
inline |
Definition at line 142 of file ProjectWindow.h.
Referenced by InitProjectWindow().
|
inline |
Definition at line 122 of file ProjectWindow.h.
Referenced by ProjectManager::SaveWindowSize().
|
inline |
Definition at line 119 of file ProjectWindow.h.
Referenced by MixerBoard::MixerBoard(), PlayIndicatorOverlay::PlayIndicatorOverlay(), ScrubbingOverlay::ScrubbingOverlay(), ControlToolBar::StartScrolling(), ControlToolBar::StartScrollingIfPreferred(), ControlToolBar::StopScrolling(), and SelectHandle::TimerHandler::TimerHandler().
|
noexcept |
Top panel contains project-related controls and tools.
Definition at line 1252 of file ProjectWindow.cpp.
References mTopPanel.
Referenced by InitProjectWindow(), and anonymous_namespace{NavigationMenus.cpp}::NextOrPrevFrame().
wxSize ProjectWindow::GetTPTracksUsableArea | ( | ) |
|
noexcept |
Track list window is the parent container for TrackPanel.
Definition at line 1242 of file ProjectWindow.cpp.
References mTrackListWindow.
Referenced by InitProjectWindow().
|
inline |
Definition at line 141 of file ProjectWindow.h.
Referenced by InitProjectWindow().
double ProjectWindow::GetZoomOfToFit | ( | ) | const |
Definition at line 1848 of file ProjectWindow.cpp.
References PackedArray::end(), ViewInfo::Get(), TrackList::Get(), min(), and ProjectWindowBase::mProject.
void ProjectWindow::HandleResize | ( | ) |
Definition at line 1212 of file ProjectWindow.cpp.
References BasicUI::CallAfter(), FixScrollbars(), mIsDeleting, and UpdateLayout().
Referenced by OnSize(), OnToolBarUpdate(), OnUndoRedo(), OnUndoReset(), and TP_HandleResize().
void ProjectWindow::HideEffectsPanel | ( | ) |
Definition at line 1898 of file ProjectWindow.cpp.
References mContainerWindow, and mEffectsWindow.
|
override |
Definition at line 1570 of file ProjectWindow.cpp.
References mActive.
|
inline |
Definition at line 56 of file ProjectWindow.h.
Referenced by OnActivate().
|
override |
Definition at line 1232 of file ProjectWindow.cpp.
References mIconized.
Referenced by GetNextWindowPlacement(), OnMove(), and OnSize().
void ProjectWindow::MacShowUndockedToolbars | ( | bool | show | ) |
Definition at line 1292 of file ProjectWindow.cpp.
Referenced by OnIconize().
bool ProjectWindow::MayScrollBeyondZero | ( | ) | const |
Definition at line 908 of file ProjectWindow.cpp.
References ViewInfo::Get(), ProjectAudioIO::Get(), Scrubber::Get(), ProjectAudioIO::IsAudioActive(), mPlaybackScroller, ProjectWindowBase::mProject, ProjectWindow::PlaybackScroller::Pinned, and ProjectWindow::PlaybackScroller::Right.
Referenced by DoScroll(), FixScrollbars(), ProjectWindow::PlaybackScroller::OnTimer(), and ScrollingLowerBoundTime().
int ProjectWindow::NextWindowID | ( | ) |
Definition at line 573 of file ProjectWindow.cpp.
References mNextWindowID.
void ProjectWindow::OnActivate | ( | wxActivateEvent & | event | ) |
Definition at line 1538 of file ProjectWindow.cpp.
References ToolManager::Get(), GetProjectPanel(), IsBeingDeleted(), mActive, ProjectWindowBase::mProject, and SetActiveProject().
void ProjectWindow::OnIconize | ( | wxIconizeEvent & | event | ) |
Definition at line 1324 of file ProjectWindow.cpp.
References AllProjects::begin(), AllProjects::end(), GetProjectFrame(), MacShowUndockedToolbars(), mIconized, and OnShow().
void ProjectWindow::OnMenu | ( | wxCommandEvent & | event | ) |
Definition at line 1503 of file ProjectWindow.cpp.
References CommandManager::Get(), MenuManager::Get(), ProjectWindowBase::GetProject(), MenuManager::GetUpdateFlags(), and ProjectWindowBase::mProject.
void ProjectWindow::OnMouseEvent | ( | wxMouseEvent & | event | ) |
Definition at line 1575 of file ProjectWindow.cpp.
References ProjectWindowBase::mProject, and SetActiveProject().
void ProjectWindow::OnMove | ( | wxMoveEvent & | event | ) |
Definition at line 1363 of file ProjectWindow.cpp.
References IsIconized(), and SetNormalizedWindowState().
|
static |
Definition at line 565 of file ProjectWindow.cpp.
References Get(), and CommandContext::project.
Referenced by PluginActions::Handler::OnResetConfig().
void ProjectWindow::OnScroll | ( | wxScrollEvent & | event | ) |
Definition at line 1452 of file ProjectWindow.cpp.
References DoScroll(), ViewInfo::Get(), mHsbar, ProjectWindowBase::mProject, and PixelWidthBeforeTime().
void ProjectWindow::OnScrollLeft | ( | ) |
This method handles general left-scrolling, either for drag-scrolling or when the scrollbar is clicked to the left of the thumb
Definition at line 817 of file ProjectWindow.cpp.
References FinishAutoScroll(), ViewInfo::Get(), mHsbar, ProjectWindowBase::mProject, PixelWidthBeforeTime(), and sbarHjump.
Referenced by TP_ScrollLeft().
void ProjectWindow::OnScrollLeftButton | ( | wxScrollEvent & | event | ) |
This handles the event when the left direction button on the scrollbar is depressed
Definition at line 865 of file ProjectWindow.cpp.
References DoScroll(), ViewInfo::Get(), mHsbar, ProjectWindowBase::mProject, PixelWidthBeforeTime(), and sbarHjump.
void ProjectWindow::OnScrollRight | ( | ) |
This method handles general right-scrolling, either for drag-scrolling or when the scrollbar is clicked to the right of the thumb
Definition at line 840 of file ProjectWindow.cpp.
References FinishAutoScroll(), ViewInfo::Get(), mHsbar, min(), ProjectWindowBase::mProject, PixelWidthBeforeTime(), and sbarHjump.
Referenced by TP_ScrollRight().
void ProjectWindow::OnScrollRightButton | ( | wxScrollEvent & | event | ) |
This handles the event when the right direction button on the scrollbar is depressed
Definition at line 886 of file ProjectWindow.cpp.
References DoScroll(), ViewInfo::Get(), mHsbar, min(), ProjectWindowBase::mProject, PixelWidthBeforeTime(), and sbarHjump.
void ProjectWindow::OnShow | ( | wxShowEvent & | event | ) |
Definition at line 1388 of file ProjectWindow.cpp.
References mShownOnce, and safenew.
Referenced by OnIconize().
void ProjectWindow::OnSize | ( | wxSizeEvent & | event | ) |
Definition at line 1370 of file ProjectWindow.cpp.
References HandleResize(), IsIconized(), mShownOnce, and SetNormalizedWindowState().
|
private |
Definition at line 741 of file ProjectWindow.cpp.
References ApplyUpdatedTheme(), ToolManager::Get(), ProjectWindowBase::mProject, ToolBar::ReCreateButtons(), and ToolBarCount.
Referenced by ProjectWindow().
void ProjectWindow::OnToolBarUpdate | ( | wxCommandEvent & | event | ) |
A toolbar has been updated, so handle it like a sizing event.
Definition at line 1428 of file ProjectWindow.cpp.
References HandleResize().
void ProjectWindow::OnUndoPushedModified | ( | ) |
Definition at line 1435 of file ProjectWindow.cpp.
References RedrawProject().
void ProjectWindow::OnUndoRedo | ( | ) |
Definition at line 1440 of file ProjectWindow.cpp.
References HandleResize(), and RedrawProject().
void ProjectWindow::OnUndoReset | ( | ) |
Definition at line 1446 of file ProjectWindow.cpp.
References HandleResize().
void ProjectWindow::OnUpdateUI | ( | wxUpdateUIEvent & | event | ) |
Definition at line 1532 of file ProjectWindow.cpp.
References MenuManager::Get(), ProjectWindowBase::mProject, and MenuManager::UpdateMenus().
double ProjectWindow::PixelWidthBeforeTime | ( | double | scrollto | ) | const |
Definition at line 942 of file ProjectWindow.cpp.
References ViewInfo::Get(), ProjectWindowBase::mProject, and ScrollingLowerBoundTime().
Referenced by FixScrollbars(), OnScroll(), OnScrollLeft(), OnScrollLeftButton(), OnScrollRight(), OnScrollRightButton(), and SetHorizontalThumb().
void ProjectWindow::RedrawProject | ( | const bool | bForceWaveTracks = false | ) |
Definition at line 716 of file ProjectWindow.cpp.
References BasicUI::CallAfter(), for(), TrackList::Get(), and GetProjectPanel().
Referenced by MixerTrackCluster::OnButton_Mute(), MixerTrackCluster::OnButton_Solo(), AudacityApp::OnExceptionInMainLoop(), CommandHandler::OnReceiveCommand(), LabelDialog::OnSelectCell(), ScreenshotBigDialog::OnShortTracks(), ToolsToolBar::OnToolChanged(), OnUndoPushedModified(), OnUndoRedo(), and ScreenshotBigDialog::SizeTracks().
void ProjectWindow::RefreshTPTrack | ( | Track * | pTrk, |
bool | refreshbacking = true |
||
) |
void ProjectWindow::Reset | ( | ) |
Definition at line 1257 of file ProjectWindow.cpp.
References GetDefaultWindowRect().
void ProjectWindow::Rewind | ( | bool | shift | ) |
Definition at line 1637 of file ProjectWindow.cpp.
References ViewInfo::Get(), ProjectWindowBase::mProject, and TP_ScrollWindow().
Referenced by ControlToolBar::OnRewind().
double ProjectWindow::ScrollingLowerBoundTime | ( | ) | const |
Definition at line 929 of file ProjectWindow.cpp.
References ViewInfo::Get(), TrackList::Get(), MayScrollBeyondZero(), min(), and ProjectWindowBase::mProject.
Referenced by DoScroll(), FixScrollbars(), and PixelWidthBeforeTime().
void ProjectWindow::ScrollIntoView | ( | double | pos | ) |
Definition at line 792 of file ProjectWindow.cpp.
References ViewInfo::Get(), GetProjectPanel(), ProjectWindowBase::mProject, and TP_ScrollWindow().
Referenced by LabelTrackView::DoKeyDown(), LabelTrackView::KeyDown(), ScrollIntoView(), SkipEnd(), and ZoomInByFactor().
void ProjectWindow::ScrollIntoView | ( | int | x | ) |
Definition at line 807 of file ProjectWindow.cpp.
References ViewInfo::Get(), ProjectWindowBase::mProject, and ScrollIntoView().
void ProjectWindow::SetHorizontalThumb | ( | double | scrollto | ) |
Definition at line 952 of file ProjectWindow.cpp.
References ViewInfo::Get(), mHsbar, min(), ProjectWindowBase::mProject, and PixelWidthBeforeTime().
Referenced by DoScroll(), and TP_ScrollWindow().
|
inline |
Definition at line 57 of file ProjectWindow.h.
|
inline |
Definition at line 121 of file ProjectWindow.h.
Referenced by OnMove(), and OnSize().
void ProjectWindow::ShowEffectsPanel | ( | Track * | track = nullptr | ) |
Definition at line 1883 of file ProjectWindow.cpp.
References mContainerWindow, mEffectsWindow, and mTrackListWindow.
Referenced by EffectsButtonHandle::CommitChanges().
void ProjectWindow::SkipEnd | ( | bool | shift | ) |
Definition at line 1657 of file ProjectWindow.cpp.
References ViewInfo::Get(), TrackList::Get(), ProjectWindowBase::mProject, and ScrollIntoView().
Referenced by ControlToolBar::OnFF().
|
overridevirtual |
Implements TrackPanelListener.
Definition at line 1690 of file ProjectWindow.cpp.
References HandleResize().
|
overridevirtual |
Implements TrackPanelListener.
Definition at line 1685 of file ProjectWindow.cpp.
References FixScrollbars().
|
overridevirtual |
Implements TrackPanelListener.
Definition at line 1673 of file ProjectWindow.cpp.
References OnScrollLeft().
|
overridevirtual |
Implements TrackPanelListener.
Definition at line 1679 of file ProjectWindow.cpp.
References OnScrollRight().
|
overridevirtual |
Implements TrackPanelListener.
Definition at line 989 of file ProjectWindow.cpp.
References DoScroll(), and mVsbar.
|
overridevirtual |
Implements TrackPanelListener.
Definition at line 975 of file ProjectWindow.cpp.
References DoScroll(), and SetHorizontalThumb().
Referenced by LOFImportFileHandle::doDurationAndScrollOffset(), Rewind(), ScrollIntoView(), Zoom(), ZoomInByFactor(), and ZoomOutByFactor().
void ProjectWindow::UpdateLayout | ( | ) |
Definition at line 1171 of file ProjectWindow.cpp.
References ToolManager::Get(), GetProjectPanel(), and ProjectWindowBase::mProject.
Referenced by FixScrollbars(), and HandleResize().
|
overrideprivatevirtual |
Implements PrefsListener.
Definition at line 755 of file ProjectWindow.cpp.
References UpdateStatusWidths().
void ProjectWindow::UpdateStatusWidths | ( | ) |
Definition at line 1265 of file ProjectWindow.cpp.
References ProjectStatus::GetStatusWidthFunctions(), mainStatusBarField, ProjectWindowBase::mProject, nStatusBarFields, and rateStatusBarField.
Referenced by InitProjectWindow(), and UpdatePrefs().
void ProjectWindow::Zoom | ( | double | level | ) |
Definition at line 1602 of file ProjectWindow.cpp.
References FixScrollbars(), ViewInfo::Get(), ProjectWindowBase::mProject, and TP_ScrollWindow().
void ProjectWindow::ZoomAfterImport | ( | Track * | pTrack | ) |
Definition at line 1582 of file ProjectWindow.cpp.
References Track::Any(), DoZoomFit(), Track::EnsureVisible(), TrackFocus::Get(), TrackList::Get(), GetProjectPanel(), and ProjectWindowBase::mProject.
Referenced by DoImportMIDI(), ApplyMacroDialog::OnApplyToFiles(), and ProjectFileManager::OpenFile().
void ProjectWindow::ZoomBy | ( | double | multiplier | ) |
Definition at line 1621 of file ProjectWindow.cpp.
References FixScrollbars(), ViewInfo::Get(), and ProjectWindowBase::mProject.
Referenced by LOFImportFileHandle::doDurationAndScrollOffset(), ZoomInByFactor(), and ZoomOutByFactor().
void ProjectWindow::ZoomInByFactor | ( | double | ZoomFactor | ) |
Definition at line 1751 of file ProjectWindow.cpp.
References AudioIO::Get(), ViewInfo::Get(), ProjectAudioIO::Get(), ProjectAudioIO::GetAudioIOToken(), ProjectWindowBase::mProject, ScrollIntoView(), TP_ScrollWindow(), and ZoomBy().
void ProjectWindow::ZoomOutByFactor | ( | double | ZoomFactor | ) |
Definition at line 1831 of file ProjectWindow.cpp.
References ViewInfo::Get(), ProjectWindowBase::mProject, TP_ScrollWindow(), and ZoomBy().
|
private |
Definition at line 224 of file ProjectWindow.h.
Referenced by IsActive(), and OnActivate().
|
private |
Definition at line 223 of file ProjectWindow.h.
Referenced by DoScroll(), and FinishAutoScroll().
bool ProjectWindow::mbInitializingScrollbar { false } |
Definition at line 208 of file ProjectWindow.h.
Referenced by FixScrollbars().
|
private |
Definition at line 214 of file ProjectWindow.h.
Referenced by GetContainerWindow(), HideEffectsPanel(), ProjectWindow(), and ShowEffectsPanel().
|
private |
Definition at line 215 of file ProjectWindow.h.
Referenced by GetEffectsWindow(), HideEffectsPanel(), ProjectWindow(), and ShowEffectsPanel().
|
private |
Definition at line 218 of file ProjectWindow.h.
Referenced by FixScrollbars(), OnScroll(), OnScrollLeft(), OnScrollLeftButton(), OnScrollRight(), OnScrollRightButton(), ProjectWindow(), and SetHorizontalThumb().
|
private |
Definition at line 225 of file ProjectWindow.h.
Referenced by IsIconized(), and OnIconize().
|
private |
Definition at line 230 of file ProjectWindow.h.
Referenced by HandleResize().
|
private |
Definition at line 221 of file ProjectWindow.h.
Referenced by NextWindowID(), and ProjectWindow().
|
private |
Definition at line 211 of file ProjectWindow.h.
|
private |
Definition at line 235 of file ProjectWindow.h.
Referenced by MayScrollBeyondZero(), and ProjectWindow().
|
private |
Definition at line 226 of file ProjectWindow.h.
|
private |
Definition at line 213 of file ProjectWindow.h.
Referenced by GetTopPanel(), and ProjectWindow().
|
private |
Definition at line 216 of file ProjectWindow.h.
Referenced by GetTrackListWindow(), ProjectWindow(), and ShowEffectsPanel().
|
private |
Definition at line 234 of file ProjectWindow.h.
Referenced by ProjectWindow().
|
private |
Definition at line 219 of file ProjectWindow.h.
Referenced by DoScroll(), FixScrollbars(), ProjectWindow(), and TP_ScrollUpDown().