ViewManager Class Reference

#include <ViewManager.h>

Collaboration diagram for ViewManager:

Collaboration graph
[legend]
List of all members.

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

Public Types

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

Public Slots

void viewCentreFrameChanged (unsigned long, bool, PlaybackFollowMode)
void viewZoomLevelChanged (unsigned long, bool)

Signals

void globalCentreFrameChanged (unsigned long frame)
 Emitted when user causes the global centre frame to change.
void viewCentreFrameChanged (View *v, unsigned long frame)
 Emitted when user scrolls a view, but doesn't affect global centre.
void viewZoomLevelChanged (View *v, unsigned long zoom, bool locked)
 Emitted when a view zooms.
void playbackFrameChanged (unsigned long frame)
 Emitted when the playback frame changes.
void outputLevelsChanged (float left, float right)
 Emitted when the output levels change.
void selectionChanged ()
 Emitted when the selection has changed.
void inProgressSelectionChanged ()
 Emitted when the in-progress (rubberbanding) selection has changed.
void toolModeChanged ()
 Emitted when the tool mode has been changed.
void playLoopModeChanged ()
 Emitted when the play loop mode has been changed.
void playLoopModeChanged (bool)
void playSelectionModeChanged ()
 Emitted when the play selection mode has been changed.
void playSelectionModeChanged (bool)
void playSoloModeChanged ()
 Emitted when the play solo mode has been changed.
void playSoloModeChanged (bool)
void alignModeChanged ()
 Emitted when the alignment mode has been changed.
void alignModeChanged (bool)
void overlayModeChanged ()
 Emitted when the overlay mode has been changed.
void zoomWheelsEnabledChanged ()
 Emitted when the zoom wheels have been toggled.

Public Member Functions

 ViewManager ()
virtual ~ViewManager ()
void setAudioPlaySource (AudioPlaySource *source)
bool isPlaying () const
unsigned long getGlobalCentreFrame () const
void setGlobalCentreFrame (unsigned long)
unsigned long getGlobalZoom () const
unsigned long getPlaybackFrame () const
void setPlaybackFrame (unsigned long frame)
ModelgetPlaybackModel () const
void setPlaybackModel (Model *)
size_t alignPlaybackFrameToReference (size_t) const
size_t alignReferenceToPlaybackFrame (size_t) const
bool haveInProgressSelection () const
const SelectiongetInProgressSelection (bool &exclusive) const
void setInProgressSelection (const Selection &selection, bool exclusive)
void clearInProgressSelection ()
const MultiSelectiongetSelection () const
const MultiSelection::SelectionListgetSelections () const
void setSelection (const Selection &selection)
void addSelection (const Selection &selection)
void removeSelection (const Selection &selection)
void clearSelections ()
size_t constrainFrameToSelection (size_t frame) const
Selection getContainingSelection (size_t frame, bool defaultToFollowing) const
 Return the selection that contains a given frame.
ClipboardgetClipboard ()
ToolMode getToolMode () const
void setToolMode (ToolMode mode)
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)
size_t getPlaybackSampleRate () const
 The sample rate that is used for playback.
size_t getOutputSampleRate () const
 The sample rate of the audio output device.
size_t getMainModelSampleRate () const
 The sample rate of the current main model.
void setMainModelSampleRate (size_t sr)
void setOverlayMode (OverlayMode mode)
OverlayMode getOverlayMode () const
bool shouldShowCentreLine () const
bool shouldShowFrameCount () const
bool shouldShowDuration () const
bool shouldShowVerticalScale () const
bool shouldShowSelectionExtents () const
bool shouldShowLayerNames () const
bool shouldShowScaleGuides () const
bool shouldShowWorkTitle () const
bool shouldIlluminateLocalFeatures () const
void setZoomWheelsEnabled (bool enable)
bool getZoomWheelsEnabled () const
void setGlobalDarkBackground (bool dark)
bool getGlobalDarkBackground () const

Protected Slots

void checkPlayStatus ()
void playStatusChanged (bool playing)
void seek (unsigned long)

Protected Member Functions

void setSelections (const MultiSelection &ms)
void signalSelectionChange ()

Protected Attributes

AudioPlaySourcem_playSource
 !! void considerZoomChange(void *, unsigned long, bool);
unsigned long m_globalCentreFrame
unsigned long m_globalZoom
unsigned long m_playbackFrame
Modelm_playbackModel
size_t m_mainModelSampleRate
 !!
float m_lastLeft
float m_lastRight
MultiSelection m_selections
Selection m_inProgressSelection
bool m_inProgressExclusive
Clipboard m_clipboard
ToolMode m_toolMode
bool m_playLoopMode
bool m_playSelectionMode
bool m_playSoloMode
bool m_alignMode
OverlayMode m_overlayMode
bool m_zoomWheelsEnabled
bool m_illuminateLocalFeatures
bool m_showWorkTitle
QPalette m_lightPalette
QPalette m_darkPalette

Classes

class  SetSelectionCommand


Member Enumeration Documentation

enum ViewManager::ToolMode

Enumerator:
NavigateMode 
SelectMode 
EditMode 
DrawMode 
EraseMode 
MeasureMode 

Definition at line 99 of file ViewManager.h.

enum ViewManager::OverlayMode

Enumerator:
NoOverlays 
MinimalOverlays 
StandardOverlays 
AllOverlays 

Definition at line 149 of file ViewManager.h.


Constructor & Destructor Documentation

ViewManager::ViewManager (  ) 

Definition at line 29 of file ViewManager.cpp.

References getGlobalDarkBackground(), m_darkPalette, m_lightPalette, m_overlayMode, and m_zoomWheelsEnabled.

ViewManager::~ViewManager (  )  [virtual]

Definition at line 112 of file ViewManager.cpp.


Member Function Documentation

void ViewManager::setAudioPlaySource ( AudioPlaySource source  ) 

Definition at line 411 of file ViewManager.cpp.

References checkPlayStatus(), and m_playSource.

Referenced by AudioCallbackPlaySource::AudioCallbackPlaySource().

bool ViewManager::isPlaying (  )  const

Definition at line 466 of file ViewManager.cpp.

References AudioPlaySource::isPlaying(), and m_playSource.

Referenced by Pane::dragTopLayer(), Pane::edgeScrollMaybe(), Pane::mouseMoveEvent(), View::paintEvent(), Pane::paintEvent(), and View::viewManagerPlaybackFrameChanged().

unsigned long ViewManager::getGlobalCentreFrame (  )  const

Definition at line 117 of file ViewManager.cpp.

References m_globalCentreFrame.

Referenced by MainWindowBase::openImage(), MainWindowBase::selectToEnd(), MainWindowBase::selectToStart(), and View::setViewManager().

void ViewManager::setGlobalCentreFrame ( unsigned  long  ) 

Definition at line 126 of file ViewManager.cpp.

References globalCentreFrameChanged(), and m_globalCentreFrame.

unsigned long ViewManager::getGlobalZoom (  )  const

Definition at line 136 of file ViewManager.cpp.

References m_globalZoom.

Referenced by View::setViewManager().

unsigned long ViewManager::getPlaybackFrame (  )  const

Definition at line 145 of file ViewManager.cpp.

References AudioPlaySource::getCurrentPlayingFrame(), AudioPlaySource::isPlaying(), m_playbackFrame, and m_playSource.

Referenced by MainWindowBase::ffwd(), View::getAlignedPlaybackFrame(), MainWindow::handleOSCMessage(), MainWindowBase::insertInstant(), MainWindowBase::play(), MainWindowBase::rewind(), and View::setViewManager().

void ViewManager::setPlaybackFrame ( unsigned long  frame  ) 

Definition at line 154 of file ViewManager.cpp.

References AudioPlaySource::isPlaying(), m_playbackFrame, m_playSource, AudioPlaySource::play(), and playbackFrameChanged().

Referenced by MainWindowBase::ffwd(), MainWindowBase::ffwdEnd(), MainWindow::handleOSCMessage(), MainWindowBase::rewind(), and MainWindowBase::rewindStart().

Model * ViewManager::getPlaybackModel (  )  const

Definition at line 166 of file ViewManager.cpp.

References m_playbackModel.

Referenced by MainWindowBase::currentPaneChanged(), View::getAligningModel(), and MainWindowBase::modelAboutToBeDeleted().

void ViewManager::setPlaybackModel ( Model  ) 

Definition at line 172 of file ViewManager.cpp.

References m_playbackModel.

Referenced by MainWindowBase::currentPaneChanged(), MainWindowBase::modelAboutToBeDeleted(), and MainWindowBase::playSoloToggled().

size_t ViewManager::alignPlaybackFrameToReference ( size_t   )  const

Definition at line 178 of file ViewManager.cpp.

References Model::alignToReference(), and m_playbackModel.

Referenced by AudioCallbackPlaySource::getCurrentFrame(), and AudioCallbackPlaySource::mixModels().

size_t ViewManager::alignReferenceToPlaybackFrame ( size_t   )  const

Definition at line 185 of file ViewManager.cpp.

References Model::alignFromReference(), and m_playbackModel.

Referenced by AudioCallbackPlaySource::mixModels(), AudioCallbackPlaySource::play(), and AudioCallbackPlaySource::rebuildRangeLists().

bool ViewManager::haveInProgressSelection (  )  const

Definition at line 192 of file ViewManager.cpp.

References Selection::isEmpty(), and m_inProgressSelection.

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

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

Definition at line 198 of file ViewManager.cpp.

References m_inProgressExclusive, and m_inProgressSelection.

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

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

Definition at line 205 of file ViewManager.cpp.

References clearSelections(), inProgressSelectionChanged(), m_inProgressExclusive, and m_inProgressSelection.

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

void ViewManager::clearInProgressSelection (  ) 

Definition at line 214 of file ViewManager.cpp.

References inProgressSelectionChanged(), and m_inProgressSelection.

Referenced by Pane::mouseReleaseEvent().

const MultiSelection & ViewManager::getSelection (  )  const

Definition at line 221 of file ViewManager.cpp.

References m_selections.

Referenced by MainWindow::addLayer(), MainWindow::exportAudio(), MainWindow::handleOSCMessage(), MainWindowBase::renumberInstants(), and MainWindowBase::toXml().

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

Definition at line 227 of file ViewManager.cpp.

References MultiSelection::getSelections(), and m_selections.

Referenced by constrainFrameToSelection(), MainWindowBase::copy(), MainWindowBase::cut(), MainWindowBase::deleteSelected(), View::drawSelections(), MainWindow::exportAudio(), MainWindow::exportImage(), MainWindow::handleOSCMessage(), MainWindowBase::insertInstantsAtBoundaries(), AudioCallbackPlaySource::mixModels(), View::paintEvent(), AudioCallbackPlaySource::play(), AudioCallbackPlaySource::playSelectionModeChanged(), AudioCallbackPlaySource::rebuildRangeLists(), Pane::shouldIlluminateLocalSelection(), Pane::updateContextHelp(), MainWindowBase::updateMenuStates(), MainWindow::updateMenuStates(), and View::viewManagerPlaybackFrameChanged().

void ViewManager::setSelection ( const Selection selection  ) 

Definition at line 233 of file ViewManager.cpp.

References m_selections, MultiSelection::setSelection(), and setSelections().

Referenced by MainWindow::handleOSCMessage(), Pane::mouseReleaseEvent(), MainWindowBase::selectAll(), MainWindowBase::selectToEnd(), MainWindowBase::selectToStart(), and MainWindowBase::selectVisible().

void ViewManager::addSelection ( const Selection selection  ) 

Definition at line 241 of file ViewManager.cpp.

References MultiSelection::addSelection(), m_selections, and setSelections().

Referenced by MainWindowBase::PaneCallback::addSelection(), Pane::editSelectionEnd(), MainWindow::handleOSCMessage(), and Pane::mouseReleaseEvent().

void ViewManager::removeSelection ( const Selection selection  ) 

Definition at line 249 of file ViewManager.cpp.

References m_selections, MultiSelection::removeSelection(), and setSelections().

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

void ViewManager::clearSelections (  ) 

Definition at line 257 of file ViewManager.cpp.

References MultiSelection::clearSelections(), m_selections, and setSelections().

Referenced by MainWindowBase::clearSelection(), MainWindow::closeSession(), MainWindow::handleOSCMessage(), MainWindowBase::openSession(), and setInProgressSelection().

size_t ViewManager::constrainFrameToSelection ( size_t  frame  )  const

Definition at line 273 of file ViewManager.cpp.

References getSelections().

Referenced by MainWindowBase::ffwd(), MainWindowBase::ffwdEnd(), AudioCallbackPlaySource::play(), MainWindowBase::rewind(), and MainWindowBase::rewindStart().

Selection ViewManager::getContainingSelection ( size_t  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 331 of file ViewManager.cpp.

References MultiSelection::getContainingSelection(), and m_selections.

Referenced by Pane::getSelectionAt(), and AudioCallbackPlaySource::mixModels().

Clipboard& ViewManager::getClipboard (  )  [inline]

Definition at line 97 of file ViewManager.h.

References m_clipboard.

Referenced by MainWindowBase::copy(), MainWindowBase::cut(), MainWindowBase::paste(), and MainWindowBase::updateMenuStates().

ToolMode ViewManager::getToolMode (  )  const [inline]

Definition at line 107 of file ViewManager.h.

References m_toolMode.

Referenced by MainWindowBase::deleteSelected(), Pane::editSelectionStart(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::paintEvent(), Pane::shouldIlluminateLocalFeatures(), Pane::shouldIlluminateLocalSelection(), Pane::toolModeChanged(), Pane::updateContextHelp(), and MainWindow::updateMenuStates().

void ViewManager::setToolMode ( ToolMode  mode  ) 

Definition at line 337 of file ViewManager.cpp.

References m_toolMode, and toolModeChanged().

Referenced by MainWindow::toolDrawSelected(), MainWindow::toolEditSelected(), MainWindow::toolEraseSelected(), MainWindow::toolMeasureSelected(), MainWindow::toolNavigateSelected(), and MainWindow::toolSelectSelected().

bool ViewManager::getPlayLoopMode (  )  const [inline]

Definition at line 110 of file ViewManager.h.

References m_playLoopMode.

Referenced by AudioCallbackPlaySource::getCurrentFrame(), AudioCallbackPlaySource::mixModels(), MainWindowBase::playLoopToggled(), and MainWindow::setupToolbars().

void ViewManager::setPlayLoopMode ( bool  on  ) 

Definition at line 345 of file ViewManager.cpp.

References m_playLoopMode, and playLoopModeChanged().

Referenced by MainWindow::handleOSCMessage(), and MainWindowBase::playLoopToggled().

bool ViewManager::getPlaySelectionMode (  )  const [inline]

Definition at line 113 of file ViewManager.h.

References m_playSelectionMode.

Referenced by MainWindowBase::ffwd(), MainWindowBase::ffwdEnd(), AudioCallbackPlaySource::mixModels(), AudioCallbackPlaySource::play(), MainWindowBase::playSelectionToggled(), AudioCallbackPlaySource::rebuildRangeLists(), MainWindowBase::rewind(), MainWindowBase::rewindStart(), AudioCallbackPlaySource::selectionChanged(), MainWindow::setupToolbars(), and View::viewManagerPlaybackFrameChanged().

void ViewManager::setPlaySelectionMode ( bool  on  ) 

Definition at line 357 of file ViewManager.cpp.

References m_playSelectionMode, and playSelectionModeChanged().

Referenced by MainWindow::handleOSCMessage(), and MainWindowBase::playSelectionToggled().

bool ViewManager::getPlaySoloMode (  )  const [inline]

Definition at line 116 of file ViewManager.h.

References m_playSoloMode.

Referenced by MainWindowBase::currentPaneChanged(), MainWindowBase::playSoloToggled(), and MainWindow::setupToolbars().

void ViewManager::setPlaySoloMode ( bool  on  ) 

Definition at line 369 of file ViewManager.cpp.

References m_playSoloMode, and playSoloModeChanged().

Referenced by MainWindow::handleOSCMessage(), and MainWindowBase::playSoloToggled().

bool ViewManager::getAlignMode (  )  const [inline]

Definition at line 119 of file ViewManager.h.

References m_alignMode.

Referenced by View::alignFromReference(), MainWindow::alignToggled(), View::alignToReference(), View::getAlignedPlaybackFrame(), View::getAligningModel(), Pane::paintEvent(), and MainWindow::setupToolbars().

void ViewManager::setAlignMode ( bool  on  ) 

Definition at line 381 of file ViewManager.cpp.

References alignModeChanged(), and m_alignMode.

Referenced by MainWindow::alignToggled().

void ViewManager::setIlluminateLocalFeatures ( bool  i  )  [inline]

Definition at line 122 of file ViewManager.h.

References m_illuminateLocalFeatures.

void ViewManager::setShowWorkTitle ( bool  show  )  [inline]

Definition at line 123 of file ViewManager.h.

References m_showWorkTitle.

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

References AudioPlaySource::getSourceSampleRate(), and m_playSource.

Referenced by Pane::drawDurationAndRate().

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

References AudioPlaySource::getTargetSampleRate(), and m_playSource.

Referenced by Pane::drawDurationAndRate().

size_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 145 of file ViewManager.h.

References m_mainModelSampleRate.

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

void ViewManager::setMainModelSampleRate ( size_t  sr  )  [inline]

Definition at line 147 of file ViewManager.h.

References m_mainModelSampleRate.

Referenced by MainWindowBase::mainModelChanged().

void ViewManager::setOverlayMode ( OverlayMode  mode  ) 

Definition at line 541 of file ViewManager.cpp.

References m_overlayMode, and overlayModeChanged().

Referenced by MainWindow::handleOSCMessage(), MainWindowBase::showAllOverlays(), MainWindowBase::showMinimalOverlays(), MainWindowBase::showNoOverlays(), and MainWindowBase::showStandardOverlays().

OverlayMode ViewManager::getOverlayMode (  )  const [inline]

Definition at line 156 of file ViewManager.h.

References m_overlayMode.

Referenced by TimeRulerLayer::paint().

bool ViewManager::shouldShowCentreLine (  )  const [inline]

Definition at line 158 of file ViewManager.h.

References m_overlayMode, and NoOverlays.

Referenced by Pane::paintEvent().

bool ViewManager::shouldShowFrameCount (  )  const [inline]

Definition at line 161 of file ViewManager.h.

References m_overlayMode, and NoOverlays.

Referenced by Pane::drawCentreLine().

bool ViewManager::shouldShowDuration (  )  const [inline]

Definition at line 164 of file ViewManager.h.

References m_overlayMode, and MinimalOverlays.

Referenced by Pane::paintEvent().

bool ViewManager::shouldShowVerticalScale (  )  const [inline]

Definition at line 167 of file ViewManager.h.

References m_overlayMode, and MinimalOverlays.

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

bool ViewManager::shouldShowSelectionExtents (  )  const [inline]

Definition at line 170 of file ViewManager.h.

References m_overlayMode, and MinimalOverlays.

Referenced by View::drawSelections().

bool ViewManager::shouldShowLayerNames (  )  const [inline]

Definition at line 173 of file ViewManager.h.

References AllOverlays, and m_overlayMode.

Referenced by Pane::paintEvent().

bool ViewManager::shouldShowScaleGuides (  )  const [inline]

Definition at line 176 of file ViewManager.h.

References m_overlayMode, and NoOverlays.

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

bool ViewManager::shouldShowWorkTitle (  )  const [inline]

Definition at line 179 of file ViewManager.h.

References m_showWorkTitle.

Referenced by Pane::paintEvent().

bool ViewManager::shouldIlluminateLocalFeatures (  )  const [inline]

Definition at line 182 of file ViewManager.h.

References m_illuminateLocalFeatures.

Referenced by Pane::mouseMoveEvent(), Pane::paintEvent(), and Pane::shouldIlluminateLocalFeatures().

void ViewManager::setZoomWheelsEnabled ( bool  enable  ) 

Definition at line 555 of file ViewManager.cpp.

References m_zoomWheelsEnabled, and zoomWheelsEnabledChanged().

Referenced by MainWindow::handleOSCMessage(), and MainWindowBase::toggleZoomWheels().

bool ViewManager::getZoomWheelsEnabled (  )  const [inline]

Definition at line 187 of file ViewManager.h.

References m_zoomWheelsEnabled.

Referenced by Pane::drawLayerNames(), Pane::editVerticalPannerExtents(), MainWindow::setupViewMenu(), MainWindowBase::toggleZoomWheels(), Pane::updateHeadsUpDisplay(), Pane::updateVerticalPanner(), and Pane::viewZoomLevelChanged().

void ViewManager::setGlobalDarkBackground ( bool  dark  ) 

Definition at line 569 of file ViewManager.cpp.

References getGlobalDarkBackground(), m_darkPalette, and m_lightPalette.

Referenced by MainWindowBase::MainWindowBase(), and MainWindowBase::preferenceChanged().

bool ViewManager::getGlobalDarkBackground (  )  const

Definition at line 587 of file ViewManager.cpp.

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

void ViewManager::globalCentreFrameChanged ( unsigned long  frame  )  [signal]

Emitted when user causes the global centre frame to change.

Referenced by setGlobalCentreFrame(), and viewCentreFrameChanged().

void ViewManager::viewCentreFrameChanged ( View v,
unsigned long  frame 
) [signal]

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

Referenced by viewCentreFrameChanged().

void ViewManager::viewZoomLevelChanged ( View v,
unsigned long  zoom,
bool  locked 
) [signal]

Emitted when a view zooms.

Referenced by viewZoomLevelChanged().

void ViewManager::playbackFrameChanged ( unsigned long  frame  )  [signal]

Emitted when the playback frame changes.

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

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

Emitted when the output levels change.

Values in range 0.0 -> 1.0.

Referenced by checkPlayStatus().

void ViewManager::selectionChanged (  )  [signal]

Emitted when the selection has changed.

Referenced by signalSelectionChange().

void ViewManager::inProgressSelectionChanged (  )  [signal]

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

Referenced by clearInProgressSelection(), and setInProgressSelection().

void ViewManager::toolModeChanged (  )  [signal]

Emitted when the tool mode has been changed.

Referenced by setToolMode().

void ViewManager::playLoopModeChanged (  )  [signal]

Emitted when the play loop mode has been changed.

Referenced by setPlayLoopMode().

void ViewManager::playLoopModeChanged ( bool   )  [signal]

void ViewManager::playSelectionModeChanged (  )  [signal]

Emitted when the play selection mode has been changed.

Referenced by setPlaySelectionMode().

void ViewManager::playSelectionModeChanged ( bool   )  [signal]

void ViewManager::playSoloModeChanged (  )  [signal]

Emitted when the play solo mode has been changed.

Referenced by setPlaySoloMode().

void ViewManager::playSoloModeChanged ( bool   )  [signal]

void ViewManager::alignModeChanged (  )  [signal]

Emitted when the alignment mode has been changed.

Referenced by setAlignMode().

void ViewManager::alignModeChanged ( bool   )  [signal]

void ViewManager::overlayModeChanged (  )  [signal]

Emitted when the overlay mode has been changed.

Referenced by setOverlayMode().

void ViewManager::zoomWheelsEnabledChanged (  )  [signal]

Emitted when the zoom wheels have been toggled.

Referenced by setZoomWheelsEnabled().

void ViewManager::viewCentreFrameChanged ( unsigned  long,
bool  ,
PlaybackFollowMode   
) [slot]

Definition at line 472 of file ViewManager.cpp.

References globalCentreFrameChanged(), m_globalCentreFrame, PlaybackIgnore, seek(), and viewCentreFrameChanged().

void ViewManager::viewZoomLevelChanged ( unsigned  long,
bool   
) [slot]

Definition at line 518 of file ViewManager.cpp.

References m_globalZoom, and viewZoomLevelChanged().

void ViewManager::checkPlayStatus (  )  [protected, slot]

Definition at line 426 of file ViewManager.cpp.

References AudioPlaySource::getCurrentPlayingFrame(), AudioPlaySource::getOutputLevels(), AudioPlaySource::isPlaying(), m_lastLeft, m_lastRight, m_playbackFrame, m_playSource, outputLevelsChanged(), and playbackFrameChanged().

Referenced by playStatusChanged(), and setAudioPlaySource().

void ViewManager::playStatusChanged ( bool  playing  )  [protected, slot]

Definition at line 420 of file ViewManager.cpp.

References checkPlayStatus().

void ViewManager::seek ( unsigned  long  )  [protected, slot]

Definition at line 492 of file ViewManager.cpp.

References AudioPlaySource::getCurrentPlayingFrame(), AudioPlaySource::isPlaying(), m_playbackFrame, m_playSource, AudioPlaySource::play(), and playbackFrameChanged().

Referenced by viewCentreFrameChanged().

void ViewManager::setSelections ( const MultiSelection ms  )  [protected]

Definition at line 265 of file ViewManager.cpp.

References CommandHistory::addCommand(), CommandHistory::getInstance(), MultiSelection::getSelections(), and m_selections.

Referenced by addSelection(), clearSelections(), removeSelection(), and setSelection().

void ViewManager::signalSelectionChange (  )  [protected]

Definition at line 294 of file ViewManager.cpp.

References selectionChanged().

Referenced by ViewManager::SetSelectionCommand::execute(), and ViewManager::SetSelectionCommand::unexecute().


Member Data Documentation

AudioPlaySource* ViewManager::m_playSource [protected]

!! void considerZoomChange(void *, unsigned long, bool);

Definition at line 250 of file ViewManager.h.

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

unsigned long ViewManager::m_globalCentreFrame [protected]

Definition at line 251 of file ViewManager.h.

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

unsigned long ViewManager::m_globalZoom [protected]

Definition at line 252 of file ViewManager.h.

Referenced by getGlobalZoom(), and viewZoomLevelChanged().

unsigned long ViewManager::m_playbackFrame [mutable, protected]

Definition at line 253 of file ViewManager.h.

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

Model* ViewManager::m_playbackModel [protected]

Definition at line 254 of file ViewManager.h.

Referenced by alignPlaybackFrameToReference(), alignReferenceToPlaybackFrame(), getPlaybackModel(), and setPlaybackModel().

size_t ViewManager::m_mainModelSampleRate [protected]

!!

Definition at line 255 of file ViewManager.h.

Referenced by getMainModelSampleRate(), and setMainModelSampleRate().

float ViewManager::m_lastLeft [protected]

Definition at line 257 of file ViewManager.h.

Referenced by checkPlayStatus().

float ViewManager::m_lastRight [protected]

Definition at line 258 of file ViewManager.h.

Referenced by checkPlayStatus().

MultiSelection ViewManager::m_selections [protected]

Definition at line 260 of file ViewManager.h.

Referenced by addSelection(), clearSelections(), ViewManager::SetSelectionCommand::execute(), getContainingSelection(), getSelection(), getSelections(), removeSelection(), setSelection(), setSelections(), and ViewManager::SetSelectionCommand::unexecute().

Selection ViewManager::m_inProgressSelection [protected]

Definition at line 261 of file ViewManager.h.

Referenced by clearInProgressSelection(), getInProgressSelection(), haveInProgressSelection(), and setInProgressSelection().

bool ViewManager::m_inProgressExclusive [protected]

Definition at line 262 of file ViewManager.h.

Referenced by getInProgressSelection(), and setInProgressSelection().

Clipboard ViewManager::m_clipboard [protected]

Definition at line 264 of file ViewManager.h.

Referenced by getClipboard().

ToolMode ViewManager::m_toolMode [protected]

Definition at line 266 of file ViewManager.h.

Referenced by getToolMode(), and setToolMode().

bool ViewManager::m_playLoopMode [protected]

Definition at line 268 of file ViewManager.h.

Referenced by getPlayLoopMode(), and setPlayLoopMode().

bool ViewManager::m_playSelectionMode [protected]

Definition at line 269 of file ViewManager.h.

Referenced by getPlaySelectionMode(), and setPlaySelectionMode().

bool ViewManager::m_playSoloMode [protected]

Definition at line 270 of file ViewManager.h.

Referenced by getPlaySoloMode(), and setPlaySoloMode().

bool ViewManager::m_alignMode [protected]

Definition at line 271 of file ViewManager.h.

Referenced by getAlignMode(), and setAlignMode().

OverlayMode ViewManager::m_overlayMode [protected]

Definition at line 291 of file ViewManager.h.

Referenced by getOverlayMode(), setOverlayMode(), shouldShowCentreLine(), shouldShowDuration(), shouldShowFrameCount(), shouldShowLayerNames(), shouldShowScaleGuides(), shouldShowSelectionExtents(), shouldShowVerticalScale(), and ViewManager().

bool ViewManager::m_zoomWheelsEnabled [protected]

Definition at line 292 of file ViewManager.h.

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

bool ViewManager::m_illuminateLocalFeatures [protected]

Definition at line 293 of file ViewManager.h.

Referenced by setIlluminateLocalFeatures(), and shouldIlluminateLocalFeatures().

bool ViewManager::m_showWorkTitle [protected]

Definition at line 294 of file ViewManager.h.

Referenced by setShowWorkTitle(), and shouldShowWorkTitle().

QPalette ViewManager::m_lightPalette [protected]

Definition at line 296 of file ViewManager.h.

Referenced by setGlobalDarkBackground(), and ViewManager().

QPalette ViewManager::m_darkPalette [protected]

Definition at line 297 of file ViewManager.h.

Referenced by setGlobalDarkBackground(), and ViewManager().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:37 2008 for SonicVisualiser by  doxygen 1.5.1