svgui  1.9
ViewManager Class Reference

The ViewManager manages properties that may need to be synchronised between separate Views. More...

#include <ViewManager.h>

Inheritance diagram for ViewManager:
Collaboration diagram for ViewManager:

Classes

class  SetSelectionCommand
 

Public Types

enum  ToolMode {
  NavigateMode, SelectMode, EditMode, DrawMode,
  EraseMode, MeasureMode, NoteEditMode
}
 
enum  OverlayMode { NoOverlays, GlobalOverlays, StandardOverlays, AllOverlays }
 

Public Slots

void viewCentreFrameChanged (int, bool, PlaybackFollowMode)
 
void viewZoomLevelChanged (int, bool)
 
void setGlobalCentreFrame (int)
 
void setPlaybackFrame (int)
 
void playStatusChanged (bool playing)
 

Signals

void globalCentreFrameChanged (int frame)
 Emitted when user causes the global centre frame to change. More...
 
void viewCentreFrameChanged (View *v, int frame)
 Emitted when user scrolls a view, but doesn't affect global centre. More...
 
void viewZoomLevelChanged (View *v, int zoom, bool locked)
 Emitted when a view zooms. More...
 
void playbackFrameChanged (int frame)
 Emitted when the playback frame changes. More...
 
void outputLevelsChanged (float left, float right)
 Emitted when the output levels change. More...
 
void selectionChanged ()
 Emitted whenever the selection has changed. More...
 
void selectionChangedByUser ()
 Emitted when the selection has been changed through an explicit selection-editing action. More...
 
void inProgressSelectionChanged ()
 Emitted when the in-progress (rubberbanding) selection has changed. More...
 
void toolModeChanged ()
 Emitted when the tool mode has been changed. More...
 
void playLoopModeChanged ()
 Emitted when the play loop mode has been changed. More...
 
void playLoopModeChanged (bool)
 
void playSelectionModeChanged ()
 Emitted when the play selection mode has been changed. More...
 
void playSelectionModeChanged (bool)
 
void playSoloModeChanged ()
 Emitted when the play solo mode has been changed. More...
 
void playSoloModeChanged (bool)
 
void alignModeChanged ()
 Emitted when the alignment mode has been changed. More...
 
void alignModeChanged (bool)
 
void overlayModeChanged ()
 Emitted when the overlay mode has been changed. More...
 
void showCentreLineChanged ()
 Emitted when the centre line visibility has been changed. More...
 
void zoomWheelsEnabledChanged ()
 Emitted when the zoom wheels have been toggled. More...
 
void activity (QString)
 Emitted when any loggable activity has occurred. More...
 

Public Member Functions

 ViewManager ()
 
virtual ~ViewManager ()
 
void setAudioPlaySource (AudioPlaySource *source)
 
bool isPlaying () const
 
int getGlobalCentreFrame () const
 
int getGlobalZoom () const
 
int getPlaybackFrame () const
 
Model * getPlaybackModel () const
 
void setPlaybackModel (Model *)
 
int alignPlaybackFrameToReference (int) const
 
int alignReferenceToPlaybackFrame (int) const
 
bool haveInProgressSelection () const
 
const Selection & getInProgressSelection (bool &exclusive) const
 
void setInProgressSelection (const Selection &selection, bool exclusive)
 
void clearInProgressSelection ()
 
const MultiSelection & getSelection () const
 
const MultiSelection::SelectionList & getSelections () const
 
void setSelection (const Selection &selection)
 
void addSelection (const Selection &selection)
 
void removeSelection (const Selection &selection)
 
void clearSelections ()
 
int constrainFrameToSelection (int frame) const
 
void addSelectionQuietly (const Selection &selection)
 Adding a selection normally emits the selectionChangedByUser signal. More...
 
Selection getContainingSelection (int frame, bool defaultToFollowing) const
 Return the selection that contains a given frame. More...
 
Clipboard & getClipboard ()
 
ToolMode getToolMode () const
 
void setToolMode (ToolMode mode)
 
void setToolModeFor (const View *v, ToolMode mode)
 Override the tool mode for a specific view. More...
 
ToolMode getToolModeFor (const View *v) const
 Return override mode if it exists for this view or global mode otherwise. More...
 
void clearToolModeOverrides ()
 Clear all current view-specific overrides. More...
 
bool getPlayLoopMode () const
 
void setPlayLoopMode (bool on)
 
bool getPlaySelectionMode () const
 
void setPlaySelectionMode (bool on)
 
bool getPlaySoloMode () const
 
void setPlaySoloMode (bool on)
 
bool getAlignMode () const
 
void setAlignMode (bool on)
 
void setIlluminateLocalFeatures (bool i)
 
void setShowWorkTitle (bool show)
 
void setShowDuration (bool show)
 
int getPlaybackSampleRate () const
 The sample rate that is used for playback. More...
 
int getOutputSampleRate () const
 The sample rate of the audio output device. More...
 
int getMainModelSampleRate () const
 The sample rate of the current main model. More...
 
void setMainModelSampleRate (int sr)
 
void setOverlayMode (OverlayMode mode)
 
OverlayMode getOverlayMode () const
 
void setShowCentreLine (bool show)
 
bool shouldShowCentreLine () const
 
bool shouldShowDuration () const
 
bool shouldShowFrameCount () const
 
bool shouldShowVerticalScale () const
 
bool shouldShowVerticalColourScale () const
 
bool shouldShowSelectionExtents () const
 
bool shouldShowLayerNames () const
 
bool shouldShowScaleGuides () const
 
bool shouldShowWorkTitle () const
 
bool shouldIlluminateLocalFeatures () const
 
bool shouldShowFeatureLabels () const
 
void setZoomWheelsEnabled (bool enable)
 
bool getZoomWheelsEnabled () const
 
void setGlobalDarkBackground (bool dark)
 
bool getGlobalDarkBackground () const
 

Protected Slots

void checkPlayStatus ()
 
void seek (int)
 

Protected Member Functions

void setSelections (const MultiSelection &ms, bool quietly=false)
 
void signalSelectionChange ()
 

Protected Attributes

AudioPlaySource * m_playSource
 !! void considerZoomChange(void *, int, bool); More...
 
int m_globalCentreFrame
 
int m_globalZoom
 
int m_playbackFrame
 
Model * m_playbackModel
 
int m_mainModelSampleRate
 !! More...
 
float m_lastLeft
 
float m_lastRight
 
MultiSelection m_selections
 
Selection m_inProgressSelection
 
bool m_inProgressExclusive
 
Clipboard m_clipboard
 
ToolMode m_toolMode
 
std::map< const View *, ToolModem_toolModeOverrides
 
bool m_playLoopMode
 
bool m_playSelectionMode
 
bool m_playSoloMode
 
bool m_alignMode
 
OverlayMode m_overlayMode
 
bool m_zoomWheelsEnabled
 
bool m_showCentreLine
 
bool m_illuminateLocalFeatures
 
bool m_showWorkTitle
 
bool m_showDuration
 
QPalette m_lightPalette
 
QPalette m_darkPalette
 

Detailed Description

The ViewManager manages properties that may need to be synchronised between separate Views.

For example, it handles signals associated with changes to the global pan and zoom, and it handles selections.

Views should be implemented in such a way as to work correctly whether they are supplied with a ViewManager or not.

Definition at line 73 of file ViewManager.h.

Member Enumeration Documentation

◆ ToolMode

Enumerator
NavigateMode 
SelectMode 
EditMode 
DrawMode 
EraseMode 
MeasureMode 
NoteEditMode 

Definition at line 128 of file ViewManager.h.

◆ OverlayMode

Enumerator
NoOverlays 
GlobalOverlays 
StandardOverlays 
AllOverlays 

Definition at line 187 of file ViewManager.h.

Constructor & Destructor Documentation

◆ ViewManager()

◆ ~ViewManager()

ViewManager::~ViewManager ( )
virtual

Definition at line 125 of file ViewManager.cpp.

Member Function Documentation

◆ setAudioPlaySource()

void ViewManager::setAudioPlaySource ( AudioPlaySource *  source)

Definition at line 500 of file ViewManager.cpp.

References checkPlayStatus(), and m_playSource.

◆ isPlaying()

bool ViewManager::isPlaying ( ) const

◆ getGlobalCentreFrame()

int ViewManager::getGlobalCentreFrame ( ) const

Definition at line 130 of file ViewManager.cpp.

References m_globalCentreFrame.

Referenced by View::setViewManager().

◆ getGlobalZoom()

int ViewManager::getGlobalZoom ( ) const

Definition at line 149 of file ViewManager.cpp.

References m_globalZoom.

Referenced by View::setViewManager().

◆ getPlaybackFrame()

int ViewManager::getPlaybackFrame ( ) const

Definition at line 158 of file ViewManager.cpp.

References m_playbackFrame, and m_playSource.

Referenced by View::getAlignedPlaybackFrame(), and View::setViewManager().

◆ getPlaybackModel()

Model * ViewManager::getPlaybackModel ( ) const

Definition at line 179 of file ViewManager.cpp.

References m_playbackModel.

Referenced by View::getAligningModel().

◆ setPlaybackModel()

void ViewManager::setPlaybackModel ( Model *  model)

Definition at line 185 of file ViewManager.cpp.

References m_playbackModel.

◆ alignPlaybackFrameToReference()

int ViewManager::alignPlaybackFrameToReference ( int  frame) const

Definition at line 191 of file ViewManager.cpp.

References m_playbackModel.

◆ alignReferenceToPlaybackFrame()

int ViewManager::alignReferenceToPlaybackFrame ( int  frame) const

Definition at line 208 of file ViewManager.cpp.

References m_playbackModel.

◆ haveInProgressSelection()

bool ViewManager::haveInProgressSelection ( ) const

Definition at line 225 of file ViewManager.cpp.

References m_inProgressSelection.

Referenced by View::drawSelections(), and Pane::mouseReleaseEvent().

◆ getInProgressSelection()

const Selection & ViewManager::getInProgressSelection ( bool &  exclusive) const

Definition at line 231 of file ViewManager.cpp.

References m_inProgressExclusive, and m_inProgressSelection.

Referenced by View::drawSelections(), and Pane::mouseReleaseEvent().

◆ setInProgressSelection()

void ViewManager::setInProgressSelection ( const Selection &  selection,
bool  exclusive 
)

◆ clearInProgressSelection()

void ViewManager::clearInProgressSelection ( )

◆ getSelection()

const MultiSelection & ViewManager::getSelection ( ) const

Definition at line 254 of file ViewManager.cpp.

References m_selections.

◆ getSelections()

const MultiSelection::SelectionList & ViewManager::getSelections ( ) const

◆ setSelection()

void ViewManager::setSelection ( const Selection &  selection)

Definition at line 266 of file ViewManager.cpp.

References m_selections, and setSelections().

Referenced by Pane::mouseReleaseEvent().

◆ addSelection()

void ViewManager::addSelection ( const Selection &  selection)

Definition at line 274 of file ViewManager.cpp.

References m_selections, and setSelections().

Referenced by Pane::editSelectionEnd(), and Pane::mouseReleaseEvent().

◆ removeSelection()

void ViewManager::removeSelection ( const Selection &  selection)

Definition at line 290 of file ViewManager.cpp.

References m_selections, and setSelections().

Referenced by Pane::editSelectionEnd(), and Pane::mousePressEvent().

◆ clearSelections()

void ViewManager::clearSelections ( )

Definition at line 298 of file ViewManager.cpp.

References m_selections, and setSelections().

Referenced by setInProgressSelection().

◆ constrainFrameToSelection()

int ViewManager::constrainFrameToSelection ( int  frame) const

Definition at line 317 of file ViewManager.cpp.

References getSelections().

◆ addSelectionQuietly()

void ViewManager::addSelectionQuietly ( const Selection &  selection)

Adding a selection normally emits the selectionChangedByUser signal.

Call this to add a selection without emitting that signal. This is used in session file load, for example.

Definition at line 282 of file ViewManager.cpp.

References m_selections, and setSelections().

◆ getContainingSelection()

Selection ViewManager::getContainingSelection ( int  frame,
bool  defaultToFollowing 
) const

Return the selection that contains a given frame.

If defaultToFollowing is true, and if the frame is not in a selected area, return the next selection after the given frame. Return the empty selection if no appropriate selection is found.

Definition at line 376 of file ViewManager.cpp.

References m_selections.

Referenced by Pane::getSelectionAt().

◆ getClipboard()

Clipboard& ViewManager::getClipboard ( )
inline

Definition at line 126 of file ViewManager.h.

References m_clipboard.

◆ getToolMode()

ToolMode ViewManager::getToolMode ( ) const
inline

Definition at line 137 of file ViewManager.h.

References m_toolMode.

Referenced by getToolModeFor().

◆ setToolMode()

void ViewManager::setToolMode ( ToolMode  mode)

◆ setToolModeFor()

void ViewManager::setToolModeFor ( const View v,
ToolMode  mode 
)

Override the tool mode for a specific view.

Definition at line 410 of file ViewManager.cpp.

References m_toolModeOverrides.

◆ getToolModeFor()

◆ clearToolModeOverrides()

void ViewManager::clearToolModeOverrides ( )

Clear all current view-specific overrides.

Definition at line 416 of file ViewManager.cpp.

References m_toolModeOverrides.

◆ getPlayLoopMode()

bool ViewManager::getPlayLoopMode ( ) const
inline

Definition at line 147 of file ViewManager.h.

References m_playLoopMode.

◆ setPlayLoopMode()

void ViewManager::setPlayLoopMode ( bool  on)

Definition at line 422 of file ViewManager.cpp.

References activity(), m_playLoopMode, and playLoopModeChanged().

◆ getPlaySelectionMode()

bool ViewManager::getPlaySelectionMode ( ) const
inline

Definition at line 150 of file ViewManager.h.

References m_playSelectionMode.

Referenced by View::movePlayPointer().

◆ setPlaySelectionMode()

void ViewManager::setPlaySelectionMode ( bool  on)

Definition at line 437 of file ViewManager.cpp.

References activity(), m_playSelectionMode, and playSelectionModeChanged().

◆ getPlaySoloMode()

bool ViewManager::getPlaySoloMode ( ) const
inline

Definition at line 153 of file ViewManager.h.

References m_playSoloMode.

◆ setPlaySoloMode()

void ViewManager::setPlaySoloMode ( bool  on)

Definition at line 452 of file ViewManager.cpp.

References activity(), m_playSoloMode, and playSoloModeChanged().

◆ getAlignMode()

bool ViewManager::getAlignMode ( ) const
inline

◆ setAlignMode()

void ViewManager::setAlignMode ( bool  on)

Definition at line 467 of file ViewManager.cpp.

References activity(), alignModeChanged(), and m_alignMode.

◆ setIlluminateLocalFeatures()

void ViewManager::setIlluminateLocalFeatures ( bool  i)
inline

Definition at line 159 of file ViewManager.h.

References m_illuminateLocalFeatures.

◆ setShowWorkTitle()

void ViewManager::setShowWorkTitle ( bool  show)
inline

Definition at line 160 of file ViewManager.h.

References m_showWorkTitle.

◆ setShowDuration()

void ViewManager::setShowDuration ( bool  show)
inline

Definition at line 161 of file ViewManager.h.

References m_showDuration.

◆ getPlaybackSampleRate()

int ViewManager::getPlaybackSampleRate ( ) const

The sample rate that is used for playback.

This is usually the rate of the main model, but not always. Models whose rates differ from this will play back at the wrong speed – there is no per-model resampler.

Definition at line 482 of file ViewManager.cpp.

References m_playSource.

Referenced by Pane::drawDurationAndRate().

◆ getOutputSampleRate()

int ViewManager::getOutputSampleRate ( ) const

The sample rate of the audio output device.

If the playback sample rate differs from this, everything will be resampled at the output stage.

Definition at line 491 of file ViewManager.cpp.

References m_playSource.

Referenced by Pane::drawDurationAndRate().

◆ getMainModelSampleRate()

int ViewManager::getMainModelSampleRate ( ) const
inline

The sample rate of the current main model.

This may in theory differ from the playback sample rate, in which case even the main model will play at the wrong speed.

Definition at line 183 of file ViewManager.h.

References m_mainModelSampleRate.

Referenced by Colour3DPlotLayer::getFeatureDescription(), Colour3DPlotLayer::paint(), Colour3DPlotLayer::paintDense(), and Colour3DPlotLayer::shouldPaintDenseIn().

◆ setMainModelSampleRate()

void ViewManager::setMainModelSampleRate ( int  sr)
inline

Definition at line 185 of file ViewManager.h.

References m_mainModelSampleRate.

◆ setOverlayMode()

void ViewManager::setOverlayMode ( OverlayMode  mode)

Definition at line 646 of file ViewManager.cpp.

References activity(), m_overlayMode, and overlayModeChanged().

◆ getOverlayMode()

OverlayMode ViewManager::getOverlayMode ( ) const
inline

Definition at line 194 of file ViewManager.h.

References m_overlayMode.

Referenced by TimeRulerLayer::paint().

◆ setShowCentreLine()

void ViewManager::setShowCentreLine ( bool  show)

Definition at line 677 of file ViewManager.cpp.

References activity(), m_showCentreLine, and showCentreLineChanged().

◆ shouldShowCentreLine()

bool ViewManager::shouldShowCentreLine ( ) const
inline

Definition at line 197 of file ViewManager.h.

References m_showCentreLine.

Referenced by Pane::paintEvent(), and View::paintEvent().

◆ shouldShowDuration()

bool ViewManager::shouldShowDuration ( ) const
inline

Definition at line 199 of file ViewManager.h.

References m_overlayMode, m_showDuration, and NoOverlays.

Referenced by Pane::paintEvent(), and shouldShowFrameCount().

◆ shouldShowFrameCount()

bool ViewManager::shouldShowFrameCount ( ) const
inline

Definition at line 202 of file ViewManager.h.

References m_showCentreLine, and shouldShowDuration().

Referenced by Pane::drawCentreLine().

◆ shouldShowVerticalScale()

bool ViewManager::shouldShowVerticalScale ( ) const
inline

Definition at line 205 of file ViewManager.h.

References m_overlayMode, and NoOverlays.

Referenced by Pane::getImageSize(), Pane::paintEvent(), and Pane::toNewImage().

◆ shouldShowVerticalColourScale()

bool ViewManager::shouldShowVerticalColourScale ( ) const
inline

◆ shouldShowSelectionExtents()

bool ViewManager::shouldShowSelectionExtents ( ) const
inline

Definition at line 211 of file ViewManager.h.

References GlobalOverlays, m_overlayMode, and NoOverlays.

Referenced by View::drawSelections().

◆ shouldShowLayerNames()

bool ViewManager::shouldShowLayerNames ( ) const
inline

Definition at line 214 of file ViewManager.h.

References AllOverlays, and m_overlayMode.

Referenced by Pane::paintEvent().

◆ shouldShowScaleGuides()

bool ViewManager::shouldShowScaleGuides ( ) const
inline

Definition at line 217 of file ViewManager.h.

References m_overlayMode, and NoOverlays.

Referenced by SliceLayer::paint(), and WaveformLayer::paint().

◆ shouldShowWorkTitle()

bool ViewManager::shouldShowWorkTitle ( ) const
inline

Definition at line 220 of file ViewManager.h.

References m_showWorkTitle.

Referenced by Pane::paintEvent().

◆ shouldIlluminateLocalFeatures()

bool ViewManager::shouldIlluminateLocalFeatures ( ) const
inline

◆ shouldShowFeatureLabels()

bool ViewManager::shouldShowFeatureLabels ( ) const
inline

Definition at line 226 of file ViewManager.h.

References GlobalOverlays, m_overlayMode, and NoOverlays.

Referenced by View::shouldShowFeatureLabels().

◆ setZoomWheelsEnabled()

void ViewManager::setZoomWheelsEnabled ( bool  enable)

Definition at line 661 of file ViewManager.cpp.

References activity(), m_zoomWheelsEnabled, and zoomWheelsEnabledChanged().

◆ getZoomWheelsEnabled()

bool ViewManager::getZoomWheelsEnabled ( ) const
inline

◆ setGlobalDarkBackground()

void ViewManager::setGlobalDarkBackground ( bool  dark)

Definition at line 693 of file ViewManager.cpp.

References getGlobalDarkBackground(), m_darkPalette, and m_lightPalette.

◆ getGlobalDarkBackground()

bool ViewManager::getGlobalDarkBackground ( ) const

Definition at line 713 of file ViewManager.cpp.

Referenced by View::hasLightBackground(), setGlobalDarkBackground(), and ViewManager().

◆ globalCentreFrameChanged

void ViewManager::globalCentreFrameChanged ( int  frame)
signal

Emitted when user causes the global centre frame to change.

Referenced by setGlobalCentreFrame(), and viewCentreFrameChanged().

◆ viewCentreFrameChanged [1/2]

void ViewManager::viewCentreFrameChanged ( View v,
int  frame 
)
signal

Emitted when user scrolls a view, but doesn't affect global centre.

Referenced by viewCentreFrameChanged().

◆ viewZoomLevelChanged [1/2]

void ViewManager::viewZoomLevelChanged ( View v,
int  zoom,
bool  locked 
)
signal

Emitted when a view zooms.

Referenced by viewZoomLevelChanged().

◆ playbackFrameChanged

void ViewManager::playbackFrameChanged ( int  frame)
signal

Emitted when the playback frame changes.

Referenced by checkPlayStatus(), seek(), and setPlaybackFrame().

◆ outputLevelsChanged

void ViewManager::outputLevelsChanged ( float  left,
float  right 
)
signal

Emitted when the output levels change.

Values in range 0.0 -> 1.0.

Referenced by checkPlayStatus().

◆ selectionChanged

void ViewManager::selectionChanged ( )
signal

Emitted whenever the selection has changed.

Referenced by signalSelectionChange().

◆ selectionChangedByUser

void ViewManager::selectionChangedByUser ( )
signal

Emitted when the selection has been changed through an explicit selection-editing action.

Not emitted when the selection has been changed through undo or redo.

Referenced by setSelections().

◆ inProgressSelectionChanged

void ViewManager::inProgressSelectionChanged ( )
signal

Emitted when the in-progress (rubberbanding) selection has changed.

Referenced by clearInProgressSelection(), and setInProgressSelection().

◆ toolModeChanged

void ViewManager::toolModeChanged ( )
signal

Emitted when the tool mode has been changed.

Referenced by setToolMode().

◆ playLoopModeChanged [1/2]

void ViewManager::playLoopModeChanged ( )
signal

Emitted when the play loop mode has been changed.

Referenced by setPlayLoopMode().

◆ playLoopModeChanged [2/2]

void ViewManager::playLoopModeChanged ( bool  )
signal

◆ playSelectionModeChanged [1/2]

void ViewManager::playSelectionModeChanged ( )
signal

Emitted when the play selection mode has been changed.

Referenced by setPlaySelectionMode().

◆ playSelectionModeChanged [2/2]

void ViewManager::playSelectionModeChanged ( bool  )
signal

◆ playSoloModeChanged [1/2]

void ViewManager::playSoloModeChanged ( )
signal

Emitted when the play solo mode has been changed.

Referenced by setPlaySoloMode().

◆ playSoloModeChanged [2/2]

void ViewManager::playSoloModeChanged ( bool  )
signal

◆ alignModeChanged [1/2]

void ViewManager::alignModeChanged ( )
signal

Emitted when the alignment mode has been changed.

Referenced by setAlignMode().

◆ alignModeChanged [2/2]

void ViewManager::alignModeChanged ( bool  )
signal

◆ overlayModeChanged

void ViewManager::overlayModeChanged ( )
signal

Emitted when the overlay mode has been changed.

Referenced by setOverlayMode().

◆ showCentreLineChanged

void ViewManager::showCentreLineChanged ( )
signal

Emitted when the centre line visibility has been changed.

Referenced by setShowCentreLine().

◆ zoomWheelsEnabledChanged

void ViewManager::zoomWheelsEnabledChanged ( )
signal

Emitted when the zoom wheels have been toggled.

Referenced by setZoomWheelsEnabled().

◆ activity

void ViewManager::activity ( QString  )
signal

◆ viewCentreFrameChanged [2/2]

void ViewManager::viewCentreFrameChanged ( int  f,
bool  locked,
PlaybackFollowMode  mode 
)
slot

◆ viewZoomLevelChanged [2/2]

void ViewManager::viewZoomLevelChanged ( int  z,
bool  locked 
)
slot

!! emit zoomLevelChanged();

Definition at line 619 of file ViewManager.cpp.

References activity(), m_globalZoom, and viewZoomLevelChanged().

◆ setGlobalCentreFrame

void ViewManager::setGlobalCentreFrame ( int  f)
slot

Definition at line 139 of file ViewManager.cpp.

References globalCentreFrameChanged(), and m_globalCentreFrame.

◆ setPlaybackFrame

void ViewManager::setPlaybackFrame ( int  f)
slot

◆ playStatusChanged

void ViewManager::playStatusChanged ( bool  playing)
slot

Definition at line 509 of file ViewManager.cpp.

References checkPlayStatus().

◆ checkPlayStatus

void ViewManager::checkPlayStatus ( )
protectedslot

◆ seek

void ViewManager::seek ( int  f)
protectedslot

Definition at line 593 of file ViewManager.cpp.

References m_playbackFrame, m_playSource, and playbackFrameChanged().

Referenced by viewCentreFrameChanged().

◆ setSelections()

void ViewManager::setSelections ( const MultiSelection &  ms,
bool  quietly = false 
)
protected

◆ signalSelectionChange()

void ViewManager::signalSelectionChange ( )
protected

Definition at line 338 of file ViewManager.cpp.

References selectionChanged().

Member Data Documentation

◆ m_playSource

AudioPlaySource* ViewManager::m_playSource
protected

!! void considerZoomChange(void *, int, bool);

Definition at line 307 of file ViewManager.h.

Referenced by checkPlayStatus(), getOutputSampleRate(), getPlaybackFrame(), getPlaybackSampleRate(), isPlaying(), seek(), setAudioPlaySource(), and setPlaybackFrame().

◆ m_globalCentreFrame

int ViewManager::m_globalCentreFrame
protected

◆ m_globalZoom

int ViewManager::m_globalZoom
protected

Definition at line 309 of file ViewManager.h.

Referenced by getGlobalZoom(), and viewZoomLevelChanged().

◆ m_playbackFrame

int ViewManager::m_playbackFrame
mutableprotected

Definition at line 310 of file ViewManager.h.

Referenced by checkPlayStatus(), getPlaybackFrame(), seek(), and setPlaybackFrame().

◆ m_playbackModel

Model* ViewManager::m_playbackModel
protected

◆ m_mainModelSampleRate

int ViewManager::m_mainModelSampleRate
protected

◆ m_lastLeft

float ViewManager::m_lastLeft
protected

Definition at line 314 of file ViewManager.h.

Referenced by checkPlayStatus().

◆ m_lastRight

float ViewManager::m_lastRight
protected

Definition at line 315 of file ViewManager.h.

Referenced by checkPlayStatus().

◆ m_selections

MultiSelection ViewManager::m_selections
protected

◆ m_inProgressSelection

Selection ViewManager::m_inProgressSelection
protected

◆ m_inProgressExclusive

bool ViewManager::m_inProgressExclusive
protected

Definition at line 319 of file ViewManager.h.

Referenced by getInProgressSelection(), and setInProgressSelection().

◆ m_clipboard

Clipboard ViewManager::m_clipboard
protected

Definition at line 321 of file ViewManager.h.

Referenced by getClipboard().

◆ m_toolMode

ToolMode ViewManager::m_toolMode
protected

Definition at line 323 of file ViewManager.h.

Referenced by getToolMode(), and setToolMode().

◆ m_toolModeOverrides

std::map<const View *, ToolMode> ViewManager::m_toolModeOverrides
protected

Definition at line 324 of file ViewManager.h.

Referenced by clearToolModeOverrides(), getToolModeFor(), and setToolModeFor().

◆ m_playLoopMode

bool ViewManager::m_playLoopMode
protected

Definition at line 326 of file ViewManager.h.

Referenced by getPlayLoopMode(), and setPlayLoopMode().

◆ m_playSelectionMode

bool ViewManager::m_playSelectionMode
protected

Definition at line 327 of file ViewManager.h.

Referenced by getPlaySelectionMode(), and setPlaySelectionMode().

◆ m_playSoloMode

bool ViewManager::m_playSoloMode
protected

Definition at line 328 of file ViewManager.h.

Referenced by getPlaySoloMode(), and setPlaySoloMode().

◆ m_alignMode

bool ViewManager::m_alignMode
protected

Definition at line 329 of file ViewManager.h.

Referenced by getAlignMode(), and setAlignMode().

◆ m_overlayMode

◆ m_zoomWheelsEnabled

bool ViewManager::m_zoomWheelsEnabled
protected

Definition at line 350 of file ViewManager.h.

Referenced by getZoomWheelsEnabled(), setZoomWheelsEnabled(), and ViewManager().

◆ m_showCentreLine

bool ViewManager::m_showCentreLine
protected

◆ m_illuminateLocalFeatures

bool ViewManager::m_illuminateLocalFeatures
protected

Definition at line 352 of file ViewManager.h.

Referenced by setIlluminateLocalFeatures(), and shouldIlluminateLocalFeatures().

◆ m_showWorkTitle

bool ViewManager::m_showWorkTitle
protected

Definition at line 353 of file ViewManager.h.

Referenced by setShowWorkTitle(), and shouldShowWorkTitle().

◆ m_showDuration

bool ViewManager::m_showDuration
protected

Definition at line 354 of file ViewManager.h.

Referenced by setShowDuration(), and shouldShowDuration().

◆ m_lightPalette

QPalette ViewManager::m_lightPalette
protected

Definition at line 356 of file ViewManager.h.

Referenced by setGlobalDarkBackground(), and ViewManager().

◆ m_darkPalette

QPalette ViewManager::m_darkPalette
protected

Definition at line 357 of file ViewManager.h.

Referenced by setGlobalDarkBackground(), and ViewManager().


The documentation for this class was generated from the following files: