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

#include <ViewManager.h>

Inheritance diagram for ViewManager:
Inheritance graph
Collaboration diagram for ViewManager:
Collaboration graph

Classes

class  SetSelectionCommand
 

Public Types

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

Public Slots

void viewCentreFrameChanged (sv_frame_t, bool, PlaybackFollowMode)
 
void viewZoomLevelChanged (ZoomLevel, bool)
 
void setGlobalCentreFrame (sv_frame_t)
 
void setPlaybackFrame (sv_frame_t)
 
void playStatusChanged (bool playing)
 
void recordStatusChanged (bool recording)
 

Signals

void globalCentreFrameChanged (sv_frame_t frame)
 Emitted when user causes the global centre frame to change. More...
 
void viewCentreFrameChanged (View *v, sv_frame_t frame)
 Emitted when user scrolls a view, but doesn't affect global centre. More...
 
void viewZoomLevelChanged (View *v, ZoomLevel zoom, bool locked)
 Emitted when a view zooms. More...
 
void playbackFrameChanged (sv_frame_t frame)
 Emitted when the playback frame changes. More...
 
void monitoringLevelsChanged (float left, float right)
 Emitted when the output or record 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 opportunisticEditingEnabledChanged ()
 Emitted when editing-enabled has been toggled. More...
 
void activity (QString)
 Emitted when any loggable activity has occurred. More...
 

Public Member Functions

 ViewManager ()
 
virtual ~ViewManager ()
 
void setAudioPlaySource (AudioPlaySource *source) override
 
void setAudioRecordTarget (AudioRecordTarget *target) override
 
bool isPlaying () const
 
bool isRecording () const
 
sv_frame_t getGlobalCentreFrame () const
 
ZoomLevel getGlobalZoom () const
 
sv_frame_t getPlaybackFrame () const
 
ModelId getPlaybackModel () const
 
void setPlaybackModel (ModelId)
 
sv_frame_t alignPlaybackFrameToReference (sv_frame_t) const override
 
sv_frame_t alignReferenceToPlaybackFrame (sv_frame_t) const override
 
bool haveInProgressSelection () const
 
const Selection & getInProgressSelection (bool &exclusive) const
 
void setInProgressSelection (const Selection &selection, bool exclusive)
 
void clearInProgressSelection ()
 
const MultiSelection & getSelection () const override
 
const MultiSelection::SelectionList & getSelections () const override
 
void setSelection (const Selection &selection)
 
void addSelection (const Selection &selection)
 
void removeSelection (const Selection &selection)
 
void clearSelections ()
 
sv_frame_t constrainFrameToSelection (sv_frame_t frame) const override
 
void addSelectionQuietly (const Selection &selection)
 Adding a selection normally emits the selectionChangedByUser signal. More...
 
Selection getContainingSelection (sv_frame_t frame, bool defaultToFollowing) const override
 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 override
 
void setPlayLoopMode (bool on)
 
bool getPlaySelectionMode () const override
 
void setPlaySelectionMode (bool on)
 
bool getPlaySoloMode () const override
 
void setPlaySoloMode (bool on)
 
bool getAlignMode () const override
 
void setAlignMode (bool on)
 
void setIlluminateLocalFeatures (bool i)
 
void setShowWorkTitle (bool show)
 
void setShowDuration (bool show)
 
sv_samplerate_t getPlaybackSampleRate () const
 The sample rate that is used for playback. More...
 
sv_samplerate_t getDeviceSampleRate () const
 The sample rate of the audio output device. More...
 
sv_samplerate_t getMainModelSampleRate () const
 The sample rate of the current main model. More...
 
void setMainModelSampleRate (sv_samplerate_t 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 shouldShowHorizontalValueScale () 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 setOpportunisticEditingEnabled (bool enable)
 Enable or disable opportunistic editing. More...
 
bool getOpportunisticEditingEnabled () const
 
void setGlobalDarkBackground (bool dark)
 
bool getGlobalDarkBackground () const
 

Static Public Member Functions

static int scalePixelSize (int pixels)
 Take a "design pixel" size and scale it for the actual display. More...
 

Protected Slots

void checkPlayStatus ()
 
void seek (sv_frame_t)
 

Protected Member Functions

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

Protected Attributes

AudioPlaySource * m_playSource
 !! void considerZoomChange(void *, int, bool); More...
 
AudioRecordTarget * m_recordTarget
 
sv_frame_t m_globalCentreFrame
 
ZoomLevel m_globalZoom
 
sv_frame_t m_playbackFrame
 
ModelId m_playbackModel
 
sv_samplerate_t m_mainModelSampleRate
 
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_opportunisticEditingEnabled
 
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 78 of file ViewManager.h.

Member Enumeration Documentation

Enumerator
NavigateMode 
SelectMode 
EditMode 
DrawMode 
EraseMode 
MeasureMode 
NoteEditMode 

Definition at line 135 of file ViewManager.h.

Enumerator
NoOverlays 
GlobalOverlays 
StandardOverlays 
AllOverlays 

Definition at line 201 of file ViewManager.h.

Constructor & Destructor Documentation

ViewManager::~ViewManager ( )
virtual

Definition at line 137 of file ViewManager.cpp.

Member Function Documentation

void ViewManager::setAudioPlaySource ( AudioPlaySource *  source)
override

Definition at line 536 of file ViewManager.cpp.

References checkPlayStatus(), and m_playSource.

void ViewManager::setAudioRecordTarget ( AudioRecordTarget *  target)
override

Definition at line 545 of file ViewManager.cpp.

References checkPlayStatus(), and m_recordTarget.

bool ViewManager::isRecording ( ) const

Definition at line 637 of file ViewManager.cpp.

References m_recordTarget.

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

sv_frame_t ViewManager::getGlobalCentreFrame ( ) const

Definition at line 142 of file ViewManager.cpp.

References m_globalCentreFrame.

Referenced by View::setViewManager().

ZoomLevel ViewManager::getGlobalZoom ( ) const

Definition at line 161 of file ViewManager.cpp.

References m_globalZoom.

Referenced by View::setViewManager().

sv_frame_t ViewManager::getPlaybackFrame ( ) const
ModelId ViewManager::getPlaybackModel ( ) const

Definition at line 207 of file ViewManager.cpp.

References m_playbackModel.

Referenced by View::getAligningAndReferenceModels().

void ViewManager::setPlaybackModel ( ModelId  model)

Definition at line 213 of file ViewManager.cpp.

References m_playbackModel.

sv_frame_t ViewManager::alignPlaybackFrameToReference ( sv_frame_t  frame) const
override

Definition at line 219 of file ViewManager.cpp.

References m_alignMode, and m_playbackModel.

sv_frame_t ViewManager::alignReferenceToPlaybackFrame ( sv_frame_t  frame) const
override

Definition at line 240 of file ViewManager.cpp.

References m_alignMode, and m_playbackModel.

bool ViewManager::haveInProgressSelection ( ) const
const Selection & ViewManager::getInProgressSelection ( bool &  exclusive) const
void ViewManager::setInProgressSelection ( const Selection &  selection,
bool  exclusive 
)
void ViewManager::clearInProgressSelection ( )
const MultiSelection & ViewManager::getSelection ( ) const
override

Definition at line 290 of file ViewManager.cpp.

References m_selections.

const MultiSelection::SelectionList & ViewManager::getSelections ( ) const
override
void ViewManager::setSelection ( const Selection &  selection)

Definition at line 302 of file ViewManager.cpp.

References m_selections, and setSelections().

Referenced by Pane::mouseReleaseEvent().

void ViewManager::addSelection ( const Selection &  selection)

Definition at line 310 of file ViewManager.cpp.

References m_selections, and setSelections().

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

void ViewManager::removeSelection ( const Selection &  selection)

Definition at line 326 of file ViewManager.cpp.

References m_selections, and setSelections().

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

void ViewManager::clearSelections ( )

Definition at line 334 of file ViewManager.cpp.

References m_selections, and setSelections().

Referenced by setInProgressSelection().

sv_frame_t ViewManager::constrainFrameToSelection ( sv_frame_t  frame) const
override

Definition at line 353 of file ViewManager.cpp.

References getSelections().

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 318 of file ViewManager.cpp.

References m_selections, and setSelections().

Selection ViewManager::getContainingSelection ( sv_frame_t  frame,
bool  defaultToFollowing 
) const
override

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 412 of file ViewManager.cpp.

References m_selections.

Referenced by Pane::getSelectionAt().

Clipboard& ViewManager::getClipboard ( )
inline

Definition at line 133 of file ViewManager.h.

References m_clipboard.

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

Override the tool mode for a specific view.

Definition at line 446 of file ViewManager.cpp.

References m_toolModeOverrides.

Referenced by getToolMode().

void ViewManager::clearToolModeOverrides ( )

Clear all current view-specific overrides.

Definition at line 452 of file ViewManager.cpp.

References m_toolModeOverrides.

Referenced by getToolMode().

bool ViewManager::getPlayLoopMode ( ) const
inlineoverride

Definition at line 154 of file ViewManager.h.

References m_playLoopMode, and setPlayLoopMode().

void ViewManager::setPlayLoopMode ( bool  on)

Definition at line 458 of file ViewManager.cpp.

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

Referenced by getPlayLoopMode().

bool ViewManager::getPlaySelectionMode ( ) const
inlineoverride

Definition at line 157 of file ViewManager.h.

References m_playSelectionMode, and setPlaySelectionMode().

Referenced by View::movePlayPointer().

void ViewManager::setPlaySelectionMode ( bool  on)

Definition at line 473 of file ViewManager.cpp.

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

Referenced by getPlaySelectionMode().

bool ViewManager::getPlaySoloMode ( ) const
inlineoverride

Definition at line 160 of file ViewManager.h.

References m_playSoloMode, and setPlaySoloMode().

void ViewManager::setPlaySoloMode ( bool  on)

Definition at line 488 of file ViewManager.cpp.

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

Referenced by getPlaySoloMode().

bool ViewManager::getAlignMode ( ) const
inlineoverride
void ViewManager::setAlignMode ( bool  on)

Definition at line 503 of file ViewManager.cpp.

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

Referenced by getAlignMode().

void ViewManager::setIlluminateLocalFeatures ( bool  i)
inline

Definition at line 166 of file ViewManager.h.

References m_illuminateLocalFeatures.

void ViewManager::setShowWorkTitle ( bool  show)
inline

Definition at line 167 of file ViewManager.h.

References m_showWorkTitle.

void ViewManager::setShowDuration ( bool  show)
inline

Definition at line 168 of file ViewManager.h.

References getDeviceSampleRate(), getPlaybackSampleRate(), and m_showDuration.

sv_samplerate_t 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 518 of file ViewManager.cpp.

References m_playSource.

Referenced by Pane::drawDurationAndRate(), and setShowDuration().

sv_samplerate_t ViewManager::getDeviceSampleRate ( ) 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 (but not before).

Definition at line 527 of file ViewManager.cpp.

References m_playSource.

Referenced by setShowDuration().

sv_samplerate_t 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 190 of file ViewManager.h.

References m_mainModelSampleRate.

Referenced by Colour3DPlotRenderer::decideRenderType(), Pane::drawCentreLine(), AlignmentView::getDefaultKeyFrames(), Colour3DPlotLayer::getFeatureDescription(), and Colour3DPlotRenderer::renderDirectTranslucent().

void ViewManager::setMainModelSampleRate ( sv_samplerate_t  sr)
inline

Definition at line 192 of file ViewManager.h.

References m_mainModelSampleRate, and scalePixelSize().

int ViewManager::scalePixelSize ( int  pixels)
static
void ViewManager::setOverlayMode ( OverlayMode  mode)

Definition at line 739 of file ViewManager.cpp.

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

OverlayMode ViewManager::getOverlayMode ( ) const
inline

Definition at line 208 of file ViewManager.h.

References m_overlayMode, and setShowCentreLine().

Referenced by TimeRulerLayer::paint().

void ViewManager::setShowCentreLine ( bool  show)

Definition at line 779 of file ViewManager.cpp.

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

Referenced by getOverlayMode().

bool ViewManager::shouldShowCentreLine ( ) const
inline

Definition at line 211 of file ViewManager.h.

References m_showCentreLine.

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

bool ViewManager::shouldShowDuration ( ) const
inline

Definition at line 213 of file ViewManager.h.

References m_overlayMode, m_showDuration, and NoOverlays.

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

bool ViewManager::shouldShowFrameCount ( ) const
inline

Definition at line 216 of file ViewManager.h.

References m_showCentreLine, and shouldShowDuration().

Referenced by Pane::drawCentreLine().

bool ViewManager::shouldShowVerticalScale ( ) const
inline
bool ViewManager::shouldShowVerticalColourScale ( ) const
inline
bool ViewManager::shouldShowHorizontalValueScale ( ) const
inline

Definition at line 225 of file ViewManager.h.

References m_overlayMode, and NoOverlays.

Referenced by SpectrumLayer::paintHorizontalScale().

bool ViewManager::shouldShowSelectionExtents ( ) const
inline

Definition at line 228 of file ViewManager.h.

References GlobalOverlays, m_overlayMode, and NoOverlays.

Referenced by View::drawSelections().

bool ViewManager::shouldShowLayerNames ( ) const
inline

Definition at line 231 of file ViewManager.h.

References AllOverlays, and m_overlayMode.

Referenced by Pane::paintEvent().

bool ViewManager::shouldShowScaleGuides ( ) const
inline

Definition at line 234 of file ViewManager.h.

References m_overlayMode, and NoOverlays.

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

bool ViewManager::shouldShowWorkTitle ( ) const
inline

Definition at line 237 of file ViewManager.h.

References m_showWorkTitle.

Referenced by Pane::paintEvent().

bool ViewManager::shouldIlluminateLocalFeatures ( ) const
inline
bool ViewManager::shouldShowFeatureLabels ( ) const
inline
void ViewManager::setZoomWheelsEnabled ( bool  enable)

Definition at line 754 of file ViewManager.cpp.

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

Referenced by shouldShowFeatureLabels().

void ViewManager::setOpportunisticEditingEnabled ( bool  enable)

Enable or disable opportunistic editing.

This allows certain edits while not in edit modes - e.g. double-click on an item while in navigate mode to open an edit dialog. It is enabled by default, but it may be undesirable if the application is intended to be "read-only".

This setting makes no difference to behaviour when actually in editing modes.

Unlike some other options, this is considered to be application-build-specific and is not restored from settings.

Definition at line 770 of file ViewManager.cpp.

References m_opportunisticEditingEnabled, and opportunisticEditingEnabledChanged().

Referenced by getZoomWheelsEnabled().

void ViewManager::setGlobalDarkBackground ( bool  dark)

Definition at line 795 of file ViewManager.cpp.

References getGlobalDarkBackground(), m_darkPalette, and m_lightPalette.

Referenced by getOpportunisticEditingEnabled().

bool ViewManager::getGlobalDarkBackground ( ) const
void ViewManager::globalCentreFrameChanged ( sv_frame_t  frame)
signal

Emitted when user causes the global centre frame to change.

Referenced by getOpportunisticEditingEnabled(), setGlobalCentreFrame(), and viewCentreFrameChanged().

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

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

Referenced by getOpportunisticEditingEnabled(), and viewCentreFrameChanged().

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

Emitted when a view zooms.

Referenced by getOpportunisticEditingEnabled(), and viewZoomLevelChanged().

void ViewManager::playbackFrameChanged ( sv_frame_t  frame)
signal

Emitted when the playback frame changes.

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

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

Emitted when the output or record levels change.

Values in range 0.0 -> 1.0.

Referenced by checkPlayStatus(), and getOpportunisticEditingEnabled().

void ViewManager::selectionChanged ( )
signal

Emitted whenever the selection has changed.

Referenced by getOpportunisticEditingEnabled(), and signalSelectionChange().

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 getOpportunisticEditingEnabled(), and setSelections().

void ViewManager::inProgressSelectionChanged ( )
signal

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

Referenced by clearInProgressSelection(), getOpportunisticEditingEnabled(), and setInProgressSelection().

void ViewManager::toolModeChanged ( )
signal

Emitted when the tool mode has been changed.

Referenced by getOpportunisticEditingEnabled(), and setToolMode().

void ViewManager::playLoopModeChanged ( )
signal

Emitted when the play loop mode has been changed.

Referenced by getOpportunisticEditingEnabled(), and setPlayLoopMode().

void ViewManager::playLoopModeChanged ( bool  )
signal
void ViewManager::playSelectionModeChanged ( )
signal

Emitted when the play selection mode has been changed.

Referenced by getOpportunisticEditingEnabled(), and setPlaySelectionMode().

void ViewManager::playSelectionModeChanged ( bool  )
signal
void ViewManager::playSoloModeChanged ( )
signal

Emitted when the play solo mode has been changed.

Referenced by getOpportunisticEditingEnabled(), and setPlaySoloMode().

void ViewManager::playSoloModeChanged ( bool  )
signal
void ViewManager::alignModeChanged ( )
signal

Emitted when the alignment mode has been changed.

Referenced by getOpportunisticEditingEnabled(), and setAlignMode().

void ViewManager::alignModeChanged ( bool  )
signal
void ViewManager::overlayModeChanged ( )
signal

Emitted when the overlay mode has been changed.

Referenced by getOpportunisticEditingEnabled(), and setOverlayMode().

void ViewManager::showCentreLineChanged ( )
signal

Emitted when the centre line visibility has been changed.

Referenced by getOpportunisticEditingEnabled(), and setShowCentreLine().

void ViewManager::zoomWheelsEnabledChanged ( )
signal

Emitted when the zoom wheels have been toggled.

Referenced by getOpportunisticEditingEnabled(), and setZoomWheelsEnabled().

void ViewManager::opportunisticEditingEnabledChanged ( )
signal

Emitted when editing-enabled has been toggled.

Referenced by getOpportunisticEditingEnabled(), and setOpportunisticEditingEnabled().

void ViewManager::viewCentreFrameChanged ( sv_frame_t  f,
bool  locked,
PlaybackFollowMode  mode 
)
slot
void ViewManager::viewZoomLevelChanged ( ZoomLevel  z,
bool  locked 
)
slot

!! emit zoomLevelChanged();

Definition at line 708 of file ViewManager.cpp.

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

void ViewManager::setGlobalCentreFrame ( sv_frame_t  f)
slot

Definition at line 151 of file ViewManager.cpp.

References globalCentreFrameChanged(), and m_globalCentreFrame.

Referenced by getOpportunisticEditingEnabled().

void ViewManager::setPlaybackFrame ( sv_frame_t  f)
slot
void ViewManager::playStatusChanged ( bool  playing)
slot

Definition at line 554 of file ViewManager.cpp.

References checkPlayStatus().

Referenced by getOpportunisticEditingEnabled().

void ViewManager::recordStatusChanged ( bool  recording)
slot

Definition at line 563 of file ViewManager.cpp.

References checkPlayStatus().

Referenced by getOpportunisticEditingEnabled().

void ViewManager::seek ( sv_frame_t  f)
protectedslot
void ViewManager::setSelections ( const MultiSelection &  ms,
bool  quietly = false 
)
protected
void ViewManager::signalSelectionChange ( )
protected

Member Data Documentation

AudioPlaySource* ViewManager::m_playSource
protected

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

Definition at line 346 of file ViewManager.h.

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

AudioRecordTarget* ViewManager::m_recordTarget
protected
sv_frame_t ViewManager::m_globalCentreFrame
protected
ZoomLevel ViewManager::m_globalZoom
protected

Definition at line 350 of file ViewManager.h.

Referenced by getGlobalZoom(), and viewZoomLevelChanged().

sv_frame_t ViewManager::m_playbackFrame
mutableprotected

Definition at line 351 of file ViewManager.h.

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

ModelId ViewManager::m_playbackModel
protected
sv_samplerate_t ViewManager::m_mainModelSampleRate
protected
float ViewManager::m_lastLeft
protected

Definition at line 355 of file ViewManager.h.

Referenced by checkPlayStatus().

float ViewManager::m_lastRight
protected

Definition at line 356 of file ViewManager.h.

Referenced by checkPlayStatus().

Selection ViewManager::m_inProgressSelection
protected
bool ViewManager::m_inProgressExclusive
protected

Definition at line 360 of file ViewManager.h.

Referenced by getInProgressSelection(), and setInProgressSelection().

Clipboard ViewManager::m_clipboard
protected

Definition at line 362 of file ViewManager.h.

Referenced by getClipboard().

ToolMode ViewManager::m_toolMode
protected

Definition at line 364 of file ViewManager.h.

Referenced by getToolMode(), and setToolMode().

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

Definition at line 365 of file ViewManager.h.

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

bool ViewManager::m_playLoopMode
protected

Definition at line 367 of file ViewManager.h.

Referenced by getPlayLoopMode(), and setPlayLoopMode().

bool ViewManager::m_playSelectionMode
protected

Definition at line 368 of file ViewManager.h.

Referenced by getPlaySelectionMode(), and setPlaySelectionMode().

bool ViewManager::m_playSoloMode
protected

Definition at line 369 of file ViewManager.h.

Referenced by getPlaySoloMode(), and setPlaySoloMode().

bool ViewManager::m_alignMode
protected
bool ViewManager::m_zoomWheelsEnabled
protected

Definition at line 391 of file ViewManager.h.

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

bool ViewManager::m_opportunisticEditingEnabled
protected
bool ViewManager::m_showCentreLine
protected
bool ViewManager::m_illuminateLocalFeatures
protected

Definition at line 394 of file ViewManager.h.

Referenced by setIlluminateLocalFeatures(), and shouldIlluminateLocalFeatures().

bool ViewManager::m_showWorkTitle
protected

Definition at line 395 of file ViewManager.h.

Referenced by setShowWorkTitle(), and shouldShowWorkTitle().

bool ViewManager::m_showDuration
protected

Definition at line 396 of file ViewManager.h.

Referenced by setShowDuration(), and shouldShowDuration().

QPalette ViewManager::m_lightPalette
protected

Definition at line 398 of file ViewManager.h.

Referenced by setGlobalDarkBackground(), and ViewManager().

QPalette ViewManager::m_darkPalette
protected

Definition at line 399 of file ViewManager.h.

Referenced by setGlobalDarkBackground(), and ViewManager().


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