Overview Class Reference

#include <Overview.h>

Inherits View.

Inheritance diagram for Overview:

Inheritance graph
[legend]
Collaboration diagram for Overview:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 31 of file Overview.h.

Public Types

enum  TextStyle { BoxedText, OutlinedText }
typedef PropertyContainer::PropertyName PropertyName
typedef std::set< Model * > ModelSet

Public Slots

virtual void modelChanged (size_t startFrame, size_t endFrame)
virtual void modelReplaced ()
virtual void globalCentreFrameChanged (unsigned long)
virtual void viewCentreFrameChanged (View *, unsigned long)
virtual void viewZoomLevelChanged (View *, unsigned long, bool)
virtual void viewManagerPlaybackFrameChanged (unsigned long)
virtual void propertyContainerSelected (View *, PropertyContainer *pc)
virtual void modelChanged ()
virtual void modelCompletionChanged ()
virtual void modelAlignmentCompletionChanged ()
virtual void layerParametersChanged ()
virtual void layerParameterRangesChanged ()
virtual void layerMeasurementRectsChanged ()
virtual void layerNameChanged ()
virtual void selectionChanged ()
virtual void toolModeChanged ()
virtual void overlayModeChanged ()
virtual void zoomWheelsEnabledChanged ()

Signals

void propertyContainerAdded (PropertyContainer *pc)
void propertyContainerRemoved (PropertyContainer *pc)
void propertyContainerPropertyChanged (PropertyContainer *pc)
void propertyContainerPropertyRangeChanged (PropertyContainer *pc)
void propertyContainerNameChanged (PropertyContainer *pc)
void propertyContainerSelected (PropertyContainer *pc)
void propertyChanged (PropertyContainer::PropertyName)
void layerModelChanged ()
void centreFrameChanged (unsigned long frame, bool globalScroll, PlaybackFollowMode followMode)
void zoomLevelChanged (unsigned long, bool)
void contextHelpChanged (const QString &)

Public Member Functions

 Overview (QWidget *parent=0)
void registerView (View *view)
void unregisterView (View *view)
virtual QString getPropertyContainerIconName () const
long getStartFrame () const
 Retrieve the first visible sample frame on the widget.
void setStartFrame (long)
 Set the widget pan based on the given first visible frame.
size_t getCentreFrame () const
 Return the centre frame of the visible widget.
void setCentreFrame (size_t f)
 Set the centre frame of the visible widget.
size_t getEndFrame () const
 Retrieve the last visible sample frame on the widget.
int getXForFrame (long frame) const
 Return the pixel x-coordinate corresponding to a given sample frame (which may be negative).
long getFrameForX (int x) const
 Return the closest frame to the given pixel x-coordinate.
float getYForFrequency (float frequency, float minFreq, float maxFreq, bool logarithmic) const
 Return the pixel y-coordinate corresponding to a given frequency, if the frequency range is as specified.
float getFrequencyForY (int y, float minFreq, float maxFreq, bool logarithmic) const
 Return the closest frequency to the given pixel y-coordinate, if the frequency range is as specified.
int getZoomLevel () const
 Return the zoom level, i.e.
virtual void setZoomLevel (size_t z)
 Set the zoom level, i.e.
virtual void zoom (bool in)
 Zoom in or out.
virtual void scroll (bool right, bool lots)
 Scroll left or right by a smallish or largish amount.
virtual void addLayer (Layer *v)
virtual void removeLayer (Layer *v)
virtual int getLayerCount () const
virtual LayergetLayer (int n)
 Return a layer, counted in stacking order.
virtual LayergetTopLayer ()
 Return the top layer.
virtual LayergetSelectedLayer ()
 Return the layer last selected by the user.
virtual const LayergetSelectedLayer () const
virtual void setViewManager (ViewManager *m)
virtual ViewManagergetViewManager () const
virtual void setFollowGlobalPan (bool f)
virtual bool getFollowGlobalPan () const
virtual void setFollowGlobalZoom (bool f)
virtual bool getFollowGlobalZoom () const
virtual bool hasLightBackground () const
virtual QColor getForeground () const
virtual QColor getBackground () const
virtual void drawVisibleText (QPainter &p, int x, int y, QString text, TextStyle style) const
virtual void drawMeasurementRect (QPainter &p, const Layer *, QRect rect, bool focus) const
virtual bool shouldIlluminateLocalFeatures (const Layer *, QPoint &) const
virtual bool shouldIlluminateLocalSelection (QPoint &, bool &, bool &) const
virtual void setPlaybackFollow (PlaybackFollowMode m)
virtual PlaybackFollowMode getPlaybackFollow () const
virtual PropertyContainer::PropertyList getProperties () const
virtual QString getPropertyLabel (const PropertyName &) const
virtual PropertyContainer::PropertyType getPropertyType (const PropertyName &) const
virtual int getPropertyRangeAndValue (const PropertyName &, int *min, int *max, int *deflt) const
virtual QString getPropertyValueLabel (const PropertyName &, int value) const
virtual void setProperty (const PropertyName &, int value)
virtual QString getPropertyContainerName () const
virtual size_t getPropertyContainerCount () const
virtual const PropertyContainergetPropertyContainer (size_t i) const
virtual PropertyContainergetPropertyContainer (size_t i)
virtual QImage * toNewImage (size_t f0, size_t f1)
virtual QImage * toNewImage ()
virtual QSize getImageSize (size_t f0, size_t f1)
virtual QSize getImageSize ()
virtual int getTextLabelHeight (const Layer *layer, QPainter &) const
virtual bool getValueExtents (QString unit, float &min, float &max, bool &log) const
virtual void toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const
 Stream this exportable object out to XML on a text stream.
virtual size_t getFirstVisibleFrame () const
virtual size_t getLastVisibleFrame () const
size_t getModelsStartFrame () const
size_t getModelsEndFrame () const
ModelSet getModels ()
ModelgetAligningModel () const
 !!
size_t alignFromReference (size_t) const
size_t alignToReference (size_t) const
int getAlignedPlaybackFrame () const
virtual QString toXmlString (QString indent="", QString extraAttributes="") const
 Convert this exportable object to XML in a string.

Static Public Member Functions

static QString encodeEntities (QString)
static QString encodeColour (QColor)
static int getObjectExportId (const void *)

Protected Types

typedef std::set< View * > ViewSet
typedef std::vector< Layer * > LayerList
typedef std::map< Layer *,
LayerProgressBar * > 
ProgressMap

Protected Member Functions

virtual void paintEvent (QPaintEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void enterEvent (QEvent *)
virtual void leaveEvent (QEvent *)
virtual bool shouldLabelSelections () const
bool setCentreFrame (size_t f, bool doEmit)
virtual void drawSelections (QPainter &)
virtual bool render (QPainter &paint, int x0, size_t f0, size_t f1)
virtual void setPaintFont (QPainter &paint)
int getModelsSampleRate () const
bool areLayersScrollable () const
LayerList getScrollableBackLayers (bool testChanged, bool &changed) const
LayerList getNonScrollableFrontLayers (bool testChanged, bool &changed) const
size_t getZoomConstraintBlockSize (size_t blockSize, ZoomConstraint::RoundingDirection dir=ZoomConstraint::RoundNearest) const
bool areLayerColoursSignificant () const
bool hasTopLayerTimeXAxis () const
void checkProgress (void *object)

Protected Attributes

QPoint m_clickPos
QPoint m_mousePos
bool m_clickedInRange
size_t m_dragCentreFrame
QTime m_modelTestTime
ViewSet m_views
size_t m_centreFrame
int m_zoomLevel
bool m_followPan
bool m_followZoom
PlaybackFollowMode m_followPlay
size_t m_playPointerFrame
bool m_lightBackground
bool m_showProgress
QPixmap * m_cache
size_t m_cacheCentreFrame
int m_cacheZoomLevel
bool m_selectionCached
bool m_deleting
LayerList m_layers
bool m_haveSelectedLayer
LayerList m_lastScrollableBackLayers
LayerList m_lastNonScrollableBackLayers
ProgressMap m_progressBars
ViewManagerm_manager
ViewPropertyContainerm_propertyContainer


Member Typedef Documentation

typedef std::set<View *> Overview::ViewSet [protected]

Definition at line 68 of file Overview.h.

typedef PropertyContainer::PropertyName View::PropertyName [inherited]

Definition at line 211 of file View.h.

typedef std::set<Model *> View::ModelSet [inherited]

Definition at line 256 of file View.h.

typedef std::vector<Layer *> View::LayerList [protected, inherited]

Definition at line 315 of file View.h.

typedef std::map<Layer *, LayerProgressBar *> View::ProgressMap [protected, inherited]

Definition at line 372 of file View.h.


Member Enumeration Documentation

enum View::TextStyle [inherited]

Enumerator:
BoxedText 
OutlinedText 

Definition at line 190 of file View.h.


Constructor & Destructor Documentation

Overview::Overview ( QWidget *  parent = 0  ) 

Definition at line 28 of file Overview.cpp.

References View::m_followPan, View::m_followZoom, m_modelTestTime, PlaybackIgnore, and View::setPlaybackFollow().


Member Function Documentation

void Overview::registerView ( View view  ) 

Definition at line 79 of file Overview.cpp.

References m_views.

Referenced by MainWindow::newSession(), and MainWindow::paneAdded().

void Overview::unregisterView ( View view  ) 

Definition at line 86 of file Overview.cpp.

References m_views.

Referenced by MainWindow::closeSession(), MainWindow::paneAboutToBeDeleted(), and MainWindow::paneHidden().

virtual QString Overview::getPropertyContainerIconName (  )  const [inline, virtual]

Implements View.

Definition at line 41 of file Overview.h.

void Overview::modelChanged ( size_t  startFrame,
size_t  endFrame 
) [virtual, slot]

Reimplemented from View.

Definition at line 40 of file Overview.cpp.

References View::getModelsEndFrame(), View::getModelsStartFrame(), View::getZoomConstraintBlockSize(), View::m_layers, m_modelTestTime, View::m_zoomLevel, View::modelChanged(), and ZoomConstraint::RoundUp.

void Overview::modelReplaced (  )  [virtual, slot]

Reimplemented from View.

Definition at line 72 of file Overview.cpp.

References View::getAlignedPlaybackFrame(), View::m_playPointerFrame, and View::modelReplaced().

void Overview::globalCentreFrameChanged ( unsigned  long  )  [virtual, slot]

Reimplemented from View.

Definition at line 93 of file Overview.cpp.

void Overview::viewCentreFrameChanged ( View ,
unsigned  long 
) [virtual, slot]

Reimplemented from View.

Definition at line 99 of file Overview.cpp.

References m_views.

void Overview::viewZoomLevelChanged ( View ,
unsigned  long,
bool   
) [virtual, slot]

Reimplemented from View.

Definition at line 107 of file Overview.cpp.

References m_views.

void Overview::viewManagerPlaybackFrameChanged ( unsigned  long  )  [virtual, slot]

Reimplemented from View.

Definition at line 116 of file Overview.cpp.

References View::getAlignedPlaybackFrame(), View::getXForFrame(), and View::m_playPointerFrame.

void Overview::paintEvent ( QPaintEvent *  e  )  [protected, virtual]

Reimplemented from View.

Definition at line 129 of file Overview.cpp.

References View::alignFromReference(), View::alignToReference(), View::centreFrameChanged(), View::getForeground(), View::getFrameForX(), View::getModelsEndFrame(), View::getModelsStartFrame(), View::getXForFrame(), View::getZoomConstraintBlockSize(), View::m_centreFrame, View::m_followZoom, m_views, View::m_zoomLevel, View::paintEvent(), PlaybackIgnore, ZoomConstraint::RoundUp, and View::zoomLevelChanged().

void Overview::mousePressEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 212 of file Overview.cpp.

References View::getAligningModel(), View::getFrameForX(), m_clickedInRange, m_clickPos, m_dragCentreFrame, and m_views.

void Overview::mouseReleaseEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 229 of file Overview.cpp.

References m_clickedInRange, and mouseMoveEvent().

void Overview::mouseMoveEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 238 of file Overview.cpp.

References View::alignToReference(), View::centreFrameChanged(), View::getModelsEndFrame(), View::m_centreFrame, m_clickedInRange, m_clickPos, m_dragCentreFrame, View::m_zoomLevel, and PlaybackScrollContinuous.

Referenced by mouseReleaseEvent().

void Overview::mouseDoubleClickEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 267 of file Overview.cpp.

References View::alignToReference(), View::centreFrameChanged(), View::getFrameForX(), and PlaybackScrollContinuous.

void Overview::enterEvent ( QEvent *   )  [protected, virtual]

Definition at line 276 of file Overview.cpp.

References View::contextHelpChanged().

void Overview::leaveEvent ( QEvent *   )  [protected, virtual]

Definition at line 282 of file Overview.cpp.

References View::contextHelpChanged().

virtual bool Overview::shouldLabelSelections (  )  const [inline, protected, virtual]

Reimplemented from View.

Definition at line 60 of file Overview.h.

long View::getStartFrame (  )  const [inherited]

Retrieve the first visible sample frame on the widget.

This is a calculated value based on the centre-frame, widget width and zoom level. The result may be negative.

Definition at line 291 of file View.cpp.

References View::getFrameForX().

Referenced by Pane::edgeScrollMaybe(), View::getFirstVisibleFrame(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeRulerLayer::getMajorTickSpacing(), WaveformLayer::getNormalizeGain(), View::getXForFrame(), View::modelChanged(), SpectrogramLayer::paint(), View::paintEvent(), Layer::paintMeasurementRect(), View::scroll(), MainWindowBase::selectVisible(), TimeRulerLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), View::viewManagerPlaybackFrameChanged(), Pane::wheelEvent(), and Pane::zoomToRegion().

void View::setStartFrame ( long   )  [inherited]

Set the widget pan based on the given first visible frame.

The frame value may be negative.

Definition at line 303 of file View.cpp.

References View::m_zoomLevel, and View::setCentreFrame().

Referenced by Pane::zoomToRegion().

size_t View::getCentreFrame (  )  const [inline, inherited]

Return the centre frame of the visible widget.

This is an exact value that does not depend on the zoom block size. Other frame values (start, end) are calculated from this based on the zoom and other factors.

Definition at line 79 of file View.h.

References View::m_centreFrame.

Referenced by SpectrumLayer::paint(), SliceLayer::paint(), and View::paintEvent().

void View::setCentreFrame ( size_t  f  )  [inline, inherited]

Set the centre frame of the visible widget.

Definition at line 84 of file View.h.

Referenced by Pane::dragTopLayer(), Pane::edgeScrollMaybe(), View::globalCentreFrameChanged(), Pane::mouseDoubleClickEvent(), SVFileReader::readView(), View::scroll(), View::setStartFrame(), View::setViewManager(), View::viewManagerPlaybackFrameChanged(), Pane::wheelEvent(), and MainWindowBase::zoomToFit().

bool View::setCentreFrame ( size_t  f,
bool  doEmit 
) [protected, inherited]

Definition at line 309 of file View.cpp.

References View::alignToReference(), View::centreFrameChanged(), View::m_centreFrame, View::m_followPan, View::m_followPlay, and View::m_zoomLevel.

size_t View::getEndFrame (  )  const [inherited]

Retrieve the last visible sample frame on the widget.

This is a calculated value based on the centre-frame, widget width and zoom level.

Definition at line 297 of file View.cpp.

References View::getFrameForX().

Referenced by Pane::edgeScrollMaybe(), View::getLastVisibleFrame(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeRulerLayer::getMajorTickSpacing(), WaveformLayer::getNormalizeGain(), View::modelChanged(), View::paintEvent(), Layer::paintMeasurementRect(), View::scroll(), MainWindowBase::selectVisible(), TimeRulerLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), View::viewManagerPlaybackFrameChanged(), Pane::wheelEvent(), and Pane::zoomToRegion().

int View::getXForFrame ( long  frame  )  const [inherited]

Return the pixel x-coordinate corresponding to a given sample frame (which may be negative).

Definition at line 346 of file View.cpp.

References View::getStartFrame(), and View::m_zoomLevel.

Referenced by Pane::dragTopLayer(), Pane::drawEditingSelection(), View::drawSelections(), Pane::editSelectionEnd(), TimeValueLayer::getFeatureDescription(), TimeInstantLayer::getFeatureDescription(), TextLayer::getFeatureDescription(), NoteLayer::getFeatureDescription(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), TextLayer::getLocalPoints(), NoteLayer::getLocalPoints(), ImageLayer::getLocalPoints(), Pane::getSelectionAt(), SpectrogramLayer::illuminateLocalFeatures(), TimeValueLayer::paint(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), TextLayer::paint(), SliceLayer::paint(), NoteLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), View::paintEvent(), paintEvent(), Layer::paintMeasurementRect(), TimeValueLayer::snapToFeatureFrame(), TimeRulerLayer::snapToFeatureFrame(), TimeInstantLayer::snapToFeatureFrame(), TextLayer::snapToFeatureFrame(), NoteLayer::snapToFeatureFrame(), ImageLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), View::viewManagerPlaybackFrameChanged(), and viewManagerPlaybackFrameChanged().

long View::getFrameForX ( int  x  )  const [inherited]

Return the closest frame to the given pixel x-coordinate.

Definition at line 352 of file View.cpp.

References View::m_centreFrame, and View::m_zoomLevel.

Referenced by Pane::dragExtendSelection(), Pane::dragTopLayer(), TimeValueLayer::drawDrag(), TimeInstantLayer::drawDrag(), TextLayer::drawDrag(), NoteLayer::drawDrag(), ImageLayer::drawDrag(), View::drawSelections(), TimeValueLayer::drawStart(), TimeInstantLayer::drawStart(), TextLayer::drawStart(), NoteLayer::drawStart(), ImageLayer::drawStart(), Pane::edgeScrollMaybe(), TimeValueLayer::editDrag(), TimeInstantLayer::editDrag(), TextLayer::editDrag(), NoteLayer::editDrag(), ImageLayer::editDrag(), Pane::editSelectionEnd(), View::getEndFrame(), Colour3DPlotLayer::getFeatureDescription(), Pane::getFirstVisibleFrame(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), TextLayer::getLocalPoints(), NoteLayer::getLocalPoints(), Pane::getSelectionAt(), WaveformLayer::getSourceFramesForX(), View::getStartFrame(), SpectrogramLayer::getXBinRange(), Layer::getXScaleValue(), Pane::mouseDoubleClickEvent(), mouseDoubleClickEvent(), Pane::mousePressEvent(), mousePressEvent(), TimeValueLayer::paint(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), TextLayer::paint(), SliceLayer::paint(), NoteLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), SpectrogramLayer::paintCrosshairs(), Colour3DPlotLayer::paintDense(), paintEvent(), Pane::selectionIsBeingEdited(), Layer::setMeasureRectFromPixrect(), View::viewManagerPlaybackFrameChanged(), and Pane::zoomToRegion().

float View::getYForFrequency ( float  frequency,
float  minFreq,
float  maxFreq,
bool  logarithmic 
) const [inherited]

Return the pixel y-coordinate corresponding to a given frequency, if the frequency range is as specified.

This does not imply any policy about layer frequency ranges, but it might be useful for layers to match theirs up if desired.

Not thread-safe in logarithmic mode. Call only from GUI thread.

Definition at line 366 of file View.cpp.

Referenced by SpectrogramLayer::getYForFrequency(), and SpectrogramLayer::paintVerticalScale().

float View::getFrequencyForY ( int  y,
float  minFreq,
float  maxFreq,
bool  logarithmic 
) const [inherited]

Return the closest frequency to the given pixel y-coordinate, if the frequency range is as specified.

Not thread-safe in logarithmic mode. Call only from GUI thread.

Definition at line 398 of file View.cpp.

Referenced by SpectrogramLayer::getFrequencyForY(), and SpectrogramLayer::getYBinRange().

int View::getZoomLevel (  )  const [inherited]

Return the zoom level, i.e.

the number of frames per pixel

Definition at line 430 of file View.cpp.

References View::m_zoomLevel.

Referenced by WaveformLayer::getFeatureDescription(), View::getImageSize(), WaveformLayer::paint(), TimeRulerLayer::paint(), SpectrogramLayer::paint(), Colour3DPlotLayer::paint(), View::toNewImage(), Pane::toNewImage(), and Pane::updateHeadsUpDisplay().

void View::setZoomLevel ( size_t  z  )  [virtual, inherited]

Set the zoom level, i.e.

the number of frames per pixel. The centre frame will be unchanged; the start and end frames will change.

Definition at line 439 of file View.cpp.

References View::m_followZoom, View::m_zoomLevel, and View::zoomLevelChanged().

Referenced by MainWindow::addPane(), MainWindow::handleOSCMessage(), Pane::horizontalThumbwheelMoved(), SVFileReader::readView(), View::setViewManager(), View::viewZoomLevelChanged(), Pane::wheelEvent(), View::zoom(), MainWindowBase::zoomDefault(), MainWindowBase::zoomToFit(), and Pane::zoomToRegion().

void View::zoom ( bool  in  )  [virtual, inherited]

Zoom in or out.

Definition at line 1330 of file View.cpp.

References View::getZoomConstraintBlockSize(), View::m_zoomLevel, ZoomConstraint::RoundDown, ZoomConstraint::RoundUp, and View::setZoomLevel().

Referenced by MainWindowBase::zoomIn(), and MainWindowBase::zoomOut().

void View::scroll ( bool  right,
bool  lots 
) [virtual, inherited]

Scroll left or right by a smallish or largish amount.

Definition at line 1348 of file View.cpp.

References View::getEndFrame(), View::getModelsEndFrame(), View::getStartFrame(), View::m_centreFrame, and View::setCentreFrame().

Referenced by MainWindowBase::jumpLeft(), MainWindowBase::jumpRight(), MainWindowBase::scrollLeft(), and MainWindowBase::scrollRight().

void View::addLayer ( Layer v  )  [virtual, inherited]

Definition at line 518 of file View.cpp.

References Preferences::getInstance(), Preferences::getViewFontSize(), View::layerMeasurementRectsChanged(), View::layerNameChanged(), View::layerParameterRangesChanged(), View::layerParametersChanged(), View::m_cache, View::m_layers, View::m_progressBars, View::modelAlignmentCompletionChanged(), View::modelChanged(), View::modelCompletionChanged(), View::modelReplaced(), View::propertyContainerAdded(), and SingleColourLayer::setDefaultColourFor().

Referenced by Document::AddLayerCommand::execute(), MainWindow::MainWindow(), and Document::RemoveLayerCommand::unexecute().

void View::removeLayer ( Layer v  )  [virtual, inherited]

Definition at line 565 of file View.cpp.

References View::layerNameChanged(), View::layerParameterRangesChanged(), View::layerParametersChanged(), View::m_cache, View::m_deleting, View::m_layers, View::m_progressBars, View::modelAlignmentCompletionChanged(), View::modelChanged(), View::modelCompletionChanged(), View::modelReplaced(), and View::propertyContainerRemoved().

Referenced by Document::RemoveLayerCommand::execute(), and Document::AddLayerCommand::unexecute().

virtual int View::getLayerCount (  )  const [inline, virtual, inherited]

Definition at line 148 of file View.h.

References View::m_layers.

Referenced by MainWindow::addLayer(), MainWindow::currentPaneChanged(), LayerTreeModel::data(), MainWindowBase::deleteCurrentPane(), Document::RemoveLayerCommand::execute(), Document::AddLayerCommand::execute(), View::getModels(), View::getSelectedLayer(), MainWindowBase::getSnapLayer(), MainWindowBase::insertInstantAt(), MainWindowBase::nextLayer(), MainWindowBase::openAudio(), MainWindowBase::openImage(), MainWindowBase::paneDeleteButtonClicked(), MainWindowBase::previousLayer(), Pane::propertyContainerSelected(), LayerTreeModel::rowCount(), LayerTreeModel::setData(), Pane::updateHeadsUpDisplay(), MainWindowBase::updateMenuStates(), Pane::updateVerticalPanner(), Pane::verticalThumbwheelMoved(), and Pane::verticalZoomChanged().

virtual Layer* View::getLayer ( int  n  )  [inline, virtual, inherited]

Return a layer, counted in stacking order.

That is, layer 0 is the bottom layer and layer "getLayerCount()-1" is the top one.

Definition at line 154 of file View.h.

References View::m_layers.

Referenced by MainWindow::addLayer(), MainWindow::currentPaneChanged(), LayerTreeModel::data(), MainWindowBase::deleteCurrentPane(), Document::RemoveLayerCommand::execute(), Document::AddLayerCommand::execute(), View::getModels(), View::getSelectedLayer(), MainWindowBase::getSnapLayer(), MainWindow::handleOSCMessage(), MainWindowBase::insertInstantAt(), MainWindowBase::layerInAView(), MainWindowBase::nextLayer(), MainWindowBase::openAudio(), MainWindowBase::openImage(), TimeRulerLayer::paint(), MainWindowBase::paneDeleteButtonClicked(), LayerTreeModel::playParametersAudibilityChanged(), MainWindowBase::previousLayer(), Pane::propertyContainerSelected(), ModelDataModel::rebuildModelSet(), LayerTreeModel::setData(), MainWindow::setupExistingLayersMenus(), Pane::updateHeadsUpDisplay(), MainWindowBase::updateMenuStates(), Pane::updateVerticalPanner(), Pane::verticalThumbwheelMoved(), and Pane::verticalZoomChanged().

virtual Layer* View::getTopLayer (  )  [inline, virtual, inherited]

Return the top layer.

This is the same as getLayer(getLayerCount()-1) if there is at least one layer, and 0 otherwise.

Definition at line 163 of file View.h.

References View::m_layers.

Referenced by Pane::getTopLayerDisplayExtents(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::paintEvent(), and Pane::setTopLayerDisplayExtents().

Layer * View::getSelectedLayer (  )  [virtual, inherited]

Return the layer last selected by the user.

This is normally the top layer, the same as getLayer(getLayerCount()-1). However, if the user has selected the pane itself more recently than any of the layers on it, this function will return 0. It will also return 0 if there are no layers.

Definition at line 608 of file View.cpp.

References View::getLayer(), View::getLayerCount(), View::m_haveSelectedLayer, and View::m_layers.

Referenced by MainWindowBase::copy(), MainWindowBase::cut(), MainWindowBase::deleteCurrentLayer(), MainWindowBase::deleteSelected(), Pane::dragExtendSelection(), Pane::editSelectionEnd(), MainWindow::exportLayer(), View::getSelectedLayer(), MainWindowBase::getSnapLayer(), MainWindow::handleOSCMessage(), MainWindowBase::insertInstantAt(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), MainWindowBase::nextLayer(), MainWindowBase::openImage(), MainWindowBase::paste(), MainWindowBase::previousLayer(), MainWindow::renameCurrentLayer(), MainWindowBase::renumberInstants(), Pane::shouldIlluminateLocalFeatures(), Pane::shouldIlluminateLocalSelection(), Pane::updateContextHelp(), MainWindowBase::updateMenuStates(), and MainWindow::updateMenuStates().

const Layer * View::getSelectedLayer (  )  const [virtual, inherited]

Definition at line 618 of file View.cpp.

References View::getSelectedLayer().

void View::setViewManager ( ViewManager m  )  [virtual, inherited]

Definition at line 624 of file View.cpp.

References View::centreFrameChanged(), ViewManager::getGlobalCentreFrame(), ViewManager::getGlobalZoom(), ViewManager::getPlaybackFrame(), View::globalCentreFrameChanged(), View::m_followPan, View::m_followPlay, View::m_followZoom, View::m_manager, View::overlayModeChanged(), PlaybackScrollContinuous, PlaybackScrollPage, View::selectionChanged(), View::setCentreFrame(), View::setZoomLevel(), View::toolModeChanged(), View::viewCentreFrameChanged(), View::viewManagerPlaybackFrameChanged(), View::viewZoomLevelChanged(), View::zoomLevelChanged(), and View::zoomWheelsEnabledChanged().

Referenced by PaneStack::addPane(), and MainWindow::MainWindow().

virtual ViewManager* View::getViewManager (  )  const [inline, virtual, inherited]

Definition at line 178 of file View.h.

References View::m_manager.

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

void View::setFollowGlobalPan ( bool  f  )  [virtual, inherited]

Definition at line 686 of file View.cpp.

References View::m_followPan, View::m_propertyContainer, and View::propertyContainerPropertyChanged().

Referenced by SVFileReader::readView().

virtual bool View::getFollowGlobalPan (  )  const [inline, virtual, inherited]

Definition at line 181 of file View.h.

References View::m_followPan.

Referenced by MainWindowBase::globalCentreFrameChanged().

void View::setFollowGlobalZoom ( bool  f  )  [virtual, inherited]

Definition at line 693 of file View.cpp.

References View::m_followZoom, View::m_propertyContainer, and View::propertyContainerPropertyChanged().

Referenced by MainWindow::addPane(), and SVFileReader::readView().

virtual bool View::getFollowGlobalZoom (  )  const [inline, virtual, inherited]

Definition at line 184 of file View.h.

References View::m_followZoom.

bool View::hasLightBackground (  )  const [virtual, inherited]

Definition at line 449 of file View.cpp.

References Layer::ColourAbsent, Layer::ColourAndBackgroundSignificant, ViewManager::getGlobalDarkBackground(), View::m_layers, and View::m_manager.

Referenced by Pane::drawCentreLine(), Pane::drawFeatureDescription(), View::drawMeasurementRect(), View::getBackground(), View::getForeground(), WaveformLayer::paint(), and SingleColourLayer::setDefaultColourFor().

QColor View::getForeground (  )  const [virtual, inherited]

Definition at line 499 of file View.cpp.

References View::hasLightBackground().

Referenced by Pane::drawEditingSelection(), Pane::drawLayerNames(), View::drawSelections(), Pane::drawVerticalScale(), View::drawVisibleText(), SingleColourLayer::getForegroundQColor(), SpectrogramLayer::illuminateLocalFeatures(), TextLayer::paint(), NoteLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), View::paintEvent(), paintEvent(), SpectrogramLayer::paintVerticalScale(), Colour3DPlotLayer::paintVerticalScale(), View::render(), and Pane::render().

QColor View::getBackground (  )  const [virtual, inherited]

Definition at line 479 of file View.cpp.

References View::hasLightBackground().

Referenced by Pane::drawVerticalScale(), View::drawVisibleText(), SingleColourLayer::getBackgroundQColor(), TextLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), View::paintEvent(), SpectrogramLayer::paintVerticalScale(), View::render(), and Pane::render().

void View::drawVisibleText ( QPainter &  p,
int  x,
int  y,
QString  text,
TextStyle  style 
) const [virtual, inherited]

Definition at line 700 of file View.cpp.

References View::getBackground(), View::getForeground(), and View::OutlinedText.

Referenced by Pane::drawAlignmentStatus(), Pane::drawCentreLine(), Pane::drawDurationAndRate(), Pane::drawLayerNames(), View::drawMeasurementRect(), Pane::drawWorkTitle(), TimeRulerLayer::paint(), SpectrumLayer::paintCrosshairs(), and SpectrogramLayer::paintCrosshairs().

void View::drawMeasurementRect ( QPainter &  p,
const Layer ,
QRect  rect,
bool  focus 
) const [virtual, inherited]

Definition at line 1856 of file View.cpp.

References View::drawVisibleText(), Pitch::getLabelForPitchRange(), Pitch::getPitchForFrequencyDifference(), Pitch::getPitchLabelForFrequency(), Layer::getXScaleValue(), Layer::getYScaleDifference(), Layer::getYScaleValue(), View::hasLightBackground(), Pitch::isFrequencyInMidiRange(), and View::OutlinedText.

Referenced by Layer::paintMeasurementRect().

virtual bool View::shouldIlluminateLocalFeatures ( const Layer ,
QPoint &   
) const [inline, virtual, inherited]

Reimplemented in Pane.

Definition at line 201 of file View.h.

Referenced by SpectrogramLayer::illuminateLocalFeatures(), TimeValueLayer::isLayerScrollable(), TimeInstantLayer::isLayerScrollable(), TextLayer::isLayerScrollable(), NoteLayer::isLayerScrollable(), Colour3DPlotLayer::isLayerScrollable(), TimeValueLayer::paint(), TimeInstantLayer::paint(), TextLayer::paint(), NoteLayer::paint(), and Colour3DPlotLayer::paint().

virtual bool View::shouldIlluminateLocalSelection ( QPoint &  ,
bool &  ,
bool &   
) const [inline, virtual, inherited]

Reimplemented in Pane.

Definition at line 204 of file View.h.

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

void View::setPlaybackFollow ( PlaybackFollowMode  m  )  [virtual, inherited]

Definition at line 733 of file View.cpp.

References View::m_followPlay, View::m_propertyContainer, and View::propertyContainerPropertyChanged().

Referenced by MainWindow::addPane(), Overview(), and SVFileReader::readView().

virtual PlaybackFollowMode View::getPlaybackFollow (  )  const [inline, virtual, inherited]

Definition at line 209 of file View.h.

References View::m_followPlay.

PropertyContainer::PropertyList View::getProperties (  )  const [virtual, inherited]

Definition at line 75 of file View.cpp.

Referenced by ViewPropertyContainer::getProperties().

QString View::getPropertyLabel ( const PropertyName  )  const [virtual, inherited]

Definition at line 85 of file View.cpp.

Referenced by ViewPropertyContainer::getPropertyLabel().

virtual PropertyContainer::PropertyType View::getPropertyType ( const PropertyName  )  const [virtual, inherited]

Referenced by ViewPropertyContainer::getPropertyType().

virtual int View::getPropertyRangeAndValue ( const PropertyName ,
int *  min,
int *  max,
int *  deflt 
) const [virtual, inherited]

Referenced by ViewPropertyContainer::getPropertyRangeAndValue().

virtual QString View::getPropertyValueLabel ( const PropertyName ,
int  value 
) const [virtual, inherited]

Referenced by ViewPropertyContainer::getPropertyValueLabel().

virtual void View::setProperty ( const PropertyName ,
int  value 
) [virtual, inherited]

Referenced by ViewPropertyContainer::setProperty().

virtual QString View::getPropertyContainerName (  )  const [inline, virtual, inherited]

Definition at line 225 of file View.h.

Referenced by ViewPropertyContainer::getPropertyContainerName().

size_t View::getPropertyContainerCount (  )  const [virtual, inherited]

Definition at line 154 of file View.cpp.

References View::m_layers.

Referenced by PropertyStack::containsContainer(), PropertyStack::getContainerIndex(), and PropertyStack::repopulate().

const PropertyContainer * View::getPropertyContainer ( size_t  i  )  const [virtual, inherited]

Definition at line 160 of file View.cpp.

Referenced by PropertyStack::containsContainer(), PropertyStack::getContainerIndex(), MainWindow::handleOSCMessage(), PropertyStack::repopulate(), and PaneStack::setCurrentLayer().

PropertyContainer * View::getPropertyContainer ( size_t  i  )  [virtual, inherited]

Definition at line 167 of file View.cpp.

References View::m_layers, and View::m_propertyContainer.

QImage * View::toNewImage ( size_t  f0,
size_t  f1 
) [virtual, inherited]

Reimplemented in Pane.

Definition at line 2203 of file View.cpp.

References View::getZoomLevel(), and View::render().

QImage * View::toNewImage (  )  [virtual, inherited]

Reimplemented in Pane.

Definition at line 2194 of file View.cpp.

References View::getModelsEndFrame(), and View::getModelsStartFrame().

Referenced by Pane::toNewImage().

QSize View::getImageSize ( size_t  f0,
size_t  f1 
) [virtual, inherited]

Reimplemented in Pane.

Definition at line 2231 of file View.cpp.

References View::getZoomLevel().

QSize View::getImageSize (  )  [virtual, inherited]

Reimplemented in Pane.

Definition at line 2222 of file View.cpp.

References View::getModelsEndFrame(), and View::getModelsStartFrame().

Referenced by Pane::getImageSize().

int View::getTextLabelHeight ( const Layer layer,
QPainter &   
) const [virtual, inherited]

Definition at line 211 of file View.cpp.

References XmlExportable::getObjectExportId(), and View::m_layers.

Referenced by TimeValueLayer::paint(), and TimeInstantLayer::paint().

bool View::getValueExtents ( QString  unit,
float &  min,
float &  max,
bool &  log 
) const [virtual, inherited]

Definition at line 174 of file View.cpp.

References View::m_layers.

Referenced by TimeValueLayer::getScaleExtents(), and NoteLayer::getScaleExtents().

void View::toXml ( QTextStream &  stream,
QString  indent = "",
QString  extraAttributes = "" 
) const [virtual, inherited]

Stream this exportable object out to XML on a text stream.

Implements XmlExportable.

Reimplemented in Pane.

Definition at line 2240 of file View.cpp.

References View::m_centreFrame, View::m_followPan, View::m_followPlay, View::m_followZoom, View::m_layers, View::m_zoomLevel, PlaybackScrollContinuous, and PlaybackScrollPage.

Referenced by Pane::toXml().

size_t View::getFirstVisibleFrame (  )  const [virtual, inherited]

Reimplemented in Pane.

Definition at line 1018 of file View.cpp.

References View::getModelsStartFrame(), and View::getStartFrame().

Referenced by Pane::getFirstVisibleFrame().

size_t View::getLastVisibleFrame (  )  const [virtual, inherited]

Definition at line 1027 of file View.cpp.

References View::getEndFrame(), and View::getModelsEndFrame().

Referenced by MainWindow::exportImage(), and MainWindow::updateVisibleRangeDisplay().

size_t View::getModelsStartFrame (  )  const [inherited]

Definition at line 1036 of file View.cpp.

References View::m_layers.

Referenced by View::getFirstVisibleFrame(), View::getImageSize(), View::getModelsEndFrame(), modelChanged(), paintEvent(), and View::toNewImage().

size_t View::getModelsEndFrame (  )  const [inherited]

Definition at line 1057 of file View.cpp.

References View::getModelsStartFrame(), and View::m_layers.

Referenced by Pane::dragTopLayer(), View::getImageSize(), View::getLastVisibleFrame(), modelChanged(), mouseMoveEvent(), TimeValueLayer::paint(), paintEvent(), View::scroll(), View::toNewImage(), Pane::wheelEvent(), and Pane::zoomToRegion().

View::ModelSet View::getModels (  )  [inherited]

Definition at line 1097 of file View.cpp.

References View::getLayer(), View::getLayerCount(), and Layer::getModel().

Referenced by MainWindowBase::currentPaneChanged(), and MainWindowBase::openAudio().

Model * View::getAligningModel (  )  const [inherited]

!!

Definition at line 1119 of file View.cpp.

References Model::getAlignmentReference(), ViewManager::getAlignMode(), ViewManager::getPlaybackModel(), View::m_layers, and View::m_manager.

Referenced by View::alignFromReference(), View::alignToReference(), View::getAlignedPlaybackFrame(), and mousePressEvent().

size_t View::alignFromReference ( size_t   )  const [inherited]

Definition at line 1159 of file View.cpp.

References Model::alignFromReference(), View::getAligningModel(), ViewManager::getAlignMode(), and View::m_manager.

Referenced by Layer::alignFromReference(), View::drawSelections(), View::globalCentreFrameChanged(), MainWindowBase::insertInstantAt(), and paintEvent().

size_t View::alignToReference ( size_t   )  const [inherited]

Definition at line 1168 of file View.cpp.

References Model::alignToReference(), View::getAligningModel(), ViewManager::getAlignMode(), and View::m_manager.

Referenced by Layer::alignToReference(), Pane::dragExtendSelection(), MainWindowBase::ffwd(), mouseDoubleClickEvent(), mouseMoveEvent(), Pane::mousePressEvent(), paintEvent(), MainWindowBase::rewind(), and View::setCentreFrame().

int View::getAlignedPlaybackFrame (  )  const [inherited]

Definition at line 1177 of file View.cpp.

References Model::alignFromReference(), View::getAligningModel(), ViewManager::getAlignMode(), ViewManager::getPlaybackFrame(), and View::m_manager.

Referenced by modelReplaced(), View::viewManagerPlaybackFrameChanged(), and viewManagerPlaybackFrameChanged().

void View::propertyContainerAdded ( PropertyContainer pc  )  [signal, inherited]

Referenced by View::addLayer().

void View::propertyContainerRemoved ( PropertyContainer pc  )  [signal, inherited]

Referenced by View::removeLayer().

void View::propertyContainerPropertyChanged ( PropertyContainer pc  )  [signal, inherited]

Referenced by View::layerParametersChanged(), View::setFollowGlobalPan(), View::setFollowGlobalZoom(), and View::setPlaybackFollow().

void View::propertyContainerPropertyRangeChanged ( PropertyContainer pc  )  [signal, inherited]

Referenced by View::layerParameterRangesChanged().

void View::propertyContainerNameChanged ( PropertyContainer pc  )  [signal, inherited]

Referenced by View::layerNameChanged().

void View::propertyContainerSelected ( PropertyContainer pc  )  [signal, inherited]

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

void View::propertyContainerSelected ( View ,
PropertyContainer pc 
) [virtual, slot, inherited]

Reimplemented in Pane.

Definition at line 234 of file View.cpp.

References View::m_cache, View::m_haveSelectedLayer, View::m_layers, View::m_propertyContainer, and View::propertyContainerSelected().

void View::propertyChanged ( PropertyContainer::PropertyName   )  [signal, inherited]

void View::layerModelChanged (  )  [signal, inherited]

Referenced by View::modelChanged().

void View::centreFrameChanged ( unsigned long  frame,
bool  globalScroll,
PlaybackFollowMode  followMode 
) [signal, inherited]

Referenced by mouseDoubleClickEvent(), mouseMoveEvent(), paintEvent(), View::setCentreFrame(), and View::setViewManager().

void View::zoomLevelChanged ( unsigned  long,
bool   
) [signal, inherited]

Referenced by paintEvent(), View::setViewManager(), and View::setZoomLevel().

void View::contextHelpChanged ( const QString &   )  [signal, inherited]

Referenced by enterEvent(), Pane::leaveEvent(), leaveEvent(), Pane::mouseEnteredWidget(), Pane::mouseLeftWidget(), Pane::mousePressEvent(), and Pane::updateContextHelp().

void View::modelChanged (  )  [virtual, slot, inherited]

Definition at line 740 of file View.cpp.

References View::checkProgress(), View::getScrollableBackLayers(), View::layerModelChanged(), and View::m_cache.

Referenced by View::addLayer(), modelChanged(), and View::removeLayer().

void View::modelCompletionChanged (  )  [virtual, slot, inherited]

Definition at line 825 of file View.cpp.

References View::checkProgress().

Referenced by View::addLayer(), and View::removeLayer().

void View::modelAlignmentCompletionChanged (  )  [virtual, slot, inherited]

Reimplemented in Pane.

Definition at line 834 of file View.cpp.

References View::checkProgress().

Referenced by View::addLayer(), Pane::modelAlignmentCompletionChanged(), and View::removeLayer().

void View::layerParametersChanged (  )  [virtual, slot, inherited]

Definition at line 855 of file View.cpp.

References View::m_cache, and View::propertyContainerPropertyChanged().

Referenced by View::addLayer(), and View::removeLayer().

void View::layerParameterRangesChanged (  )  [virtual, slot, inherited]

Definition at line 873 of file View.cpp.

References View::propertyContainerPropertyRangeChanged().

Referenced by View::addLayer(), and View::removeLayer().

void View::layerMeasurementRectsChanged (  )  [virtual, slot, inherited]

Definition at line 880 of file View.cpp.

Referenced by View::addLayer().

void View::layerNameChanged (  )  [virtual, slot, inherited]

Definition at line 887 of file View.cpp.

References View::propertyContainerNameChanged().

Referenced by View::addLayer(), and View::removeLayer().

void View::selectionChanged (  )  [virtual, slot, inherited]

Definition at line 1007 of file View.cpp.

References View::m_cache, and View::m_selectionCached.

Referenced by View::setViewManager().

void View::toolModeChanged (  )  [virtual, slot, inherited]

Reimplemented in Pane.

Definition at line 271 of file View.cpp.

Referenced by View::setViewManager().

void View::overlayModeChanged (  )  [virtual, slot, inherited]

Definition at line 277 of file View.cpp.

References View::m_cache.

Referenced by View::setViewManager().

void View::zoomWheelsEnabledChanged (  )  [virtual, slot, inherited]

Reimplemented in Pane.

Definition at line 285 of file View.cpp.

Referenced by View::setViewManager().

void View::drawSelections ( QPainter &   )  [protected, virtual, inherited]

Definition at line 1715 of file View.cpp.

References View::alignFromReference(), View::areLayerColoursSignificant(), RealTime::frame2RealTime(), View::getForeground(), View::getFrameForX(), ViewManager::getInProgressSelection(), View::getModelsSampleRate(), ViewManager::getSelections(), View::getXForFrame(), View::hasTopLayerTimeXAxis(), ViewManager::haveInProgressSelection(), View::m_manager, View::shouldIlluminateLocalSelection(), View::shouldLabelSelections(), and ViewManager::shouldShowSelectionExtents().

Referenced by View::paintEvent().

bool View::render ( QPainter &  paint,
int  x0,
size_t  f0,
size_t  f1 
) [protected, virtual, inherited]

Reimplemented in Pane.

Definition at line 2095 of file View.cpp.

References View::getBackground(), View::getForeground(), View::m_centreFrame, View::m_layers, and View::m_zoomLevel.

Referenced by Pane::render(), and View::toNewImage().

void View::setPaintFont ( QPainter &  paint  )  [protected, virtual, inherited]

Definition at line 1423 of file View.cpp.

References Preferences::getInstance().

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

int View::getModelsSampleRate (  )  const [protected, inherited]

Definition at line 1080 of file View.cpp.

References View::m_layers.

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

bool View::areLayersScrollable (  )  const [protected, inherited]

Definition at line 1201 of file View.cpp.

References View::m_layers.

View::LayerList View::getScrollableBackLayers ( bool  testChanged,
bool &  changed 
) const [protected, inherited]

Definition at line 1211 of file View.cpp.

References View::m_lastScrollableBackLayers, and View::m_layers.

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

View::LayerList View::getNonScrollableFrontLayers ( bool  testChanged,
bool &  changed 
) const [protected, inherited]

Definition at line 1247 of file View.cpp.

References View::m_lastNonScrollableBackLayers, and View::m_layers.

Referenced by View::paintEvent().

size_t View::getZoomConstraintBlockSize ( size_t  blockSize,
ZoomConstraint::RoundingDirection  dir = ZoomConstraint::RoundNearest 
) const [protected, inherited]

Definition at line 1279 of file View.cpp.

References PowerOfSqrtTwoZoomConstraint::getNearestBlockSize(), and View::m_layers.

Referenced by Pane::horizontalThumbwheelMoved(), modelChanged(), paintEvent(), Pane::updateHeadsUpDisplay(), Pane::wheelEvent(), View::zoom(), and Pane::zoomToRegion().

bool View::areLayerColoursSignificant (  )  const [protected, inherited]

Definition at line 1310 of file View.cpp.

References Layer::ColourHasMeaningfulValue, and View::m_layers.

Referenced by View::drawSelections().

bool View::hasTopLayerTimeXAxis (  )  const [protected, inherited]

Definition at line 1321 of file View.cpp.

References View::m_layers.

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

void View::checkProgress ( void *  object  )  [protected, inherited]

Definition at line 1368 of file View.cpp.

References Model::getAlignmentCompletion(), Model::getSourceModel(), View::m_progressBars, and View::m_showProgress.

Referenced by View::modelAlignmentCompletionChanged(), View::modelChanged(), and View::modelCompletionChanged().

QString XmlExportable::toXmlString ( QString  indent = "",
QString  extraAttributes = "" 
) const [virtual, inherited]

Convert this exportable object to XML in a string.

The default implementation calls toXml and returns the result as a string. Do not override this unless you really know what you're doing.

Definition at line 25 of file XmlExportable.cpp.

References XmlExportable::toXml().

Referenced by LayerFactory::setLayerDefaultProperties().

QString XmlExportable::encodeEntities ( QString   )  [static, inherited]

Definition at line 41 of file XmlExportable.cpp.

Referenced by AudioGenerator::getDefaultPlayPluginConfiguration(), SVFileReader::readPlugin(), Layer::toBriefXml(), WaveFileModel::toXml(), Transform::toXml(), TextPoint::toXml(), PluginXml::toXml(), Model::toXml(), Layer::toXml(), ImagePoint::toXml(), and Document::writeBackwardCompatibleDerivation().

QString XmlExportable::encodeColour ( QColor   )  [static, inherited]

Definition at line 54 of file XmlExportable.cpp.

Referenced by ColourDatabase::getStringValues().

int XmlExportable::getObjectExportId ( const void *   )  [static, inherited]

Definition at line 71 of file XmlExportable.cpp.

Referenced by FFTDataServer::generateFileBasename(), View::getTextLabelHeight(), Layer::toBriefXml(), SparseModel< PointType >::toXml(), Model::toXml(), Layer::toXml(), EditableDenseThreeDimensionalModel::toXml(), Document::toXml(), and Document::writeBackwardCompatibleDerivation().


Member Data Documentation

QPoint Overview::m_clickPos [protected]

Definition at line 62 of file Overview.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

QPoint Overview::m_mousePos [protected]

Definition at line 63 of file Overview.h.

bool Overview::m_clickedInRange [protected]

Definition at line 64 of file Overview.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

size_t Overview::m_dragCentreFrame [protected]

Definition at line 65 of file Overview.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

QTime Overview::m_modelTestTime [protected]

Definition at line 66 of file Overview.h.

Referenced by modelChanged(), and Overview().

ViewSet Overview::m_views [protected]

Definition at line 69 of file Overview.h.

Referenced by mousePressEvent(), paintEvent(), registerView(), unregisterView(), viewCentreFrameChanged(), and viewZoomLevelChanged().

size_t View::m_centreFrame [protected, inherited]

Definition at line 340 of file View.h.

Referenced by Pane::dragTopLayer(), Pane::drawCentreLine(), Pane::edgeScrollMaybe(), View::getCentreFrame(), View::getFrameForX(), mouseMoveEvent(), Pane::mousePressEvent(), View::paintEvent(), paintEvent(), View::render(), View::scroll(), View::setCentreFrame(), View::toXml(), and Pane::wheelEvent().

int View::m_zoomLevel [protected, inherited]

Definition at line 341 of file View.h.

Referenced by View::getFrameForX(), View::getXForFrame(), View::getZoomLevel(), modelChanged(), mouseMoveEvent(), View::paintEvent(), paintEvent(), View::render(), View::setCentreFrame(), View::setStartFrame(), View::setZoomLevel(), View::toXml(), Pane::wheelEvent(), View::zoom(), and Pane::zoomToRegion().

bool View::m_followPan [protected, inherited]

Definition at line 342 of file View.h.

Referenced by View::getFollowGlobalPan(), View::globalCentreFrameChanged(), Overview(), View::setCentreFrame(), View::setFollowGlobalPan(), View::setViewManager(), and View::toXml().

bool View::m_followZoom [protected, inherited]

Definition at line 343 of file View.h.

Referenced by View::getFollowGlobalZoom(), Overview(), paintEvent(), View::setFollowGlobalZoom(), View::setViewManager(), View::setZoomLevel(), View::toXml(), View::viewZoomLevelChanged(), and Pane::viewZoomLevelChanged().

PlaybackFollowMode View::m_followPlay [protected, inherited]

Definition at line 344 of file View.h.

Referenced by Pane::edgeScrollMaybe(), View::getPlaybackFollow(), View::paintEvent(), View::setCentreFrame(), View::setPlaybackFollow(), View::setViewManager(), View::toXml(), and View::viewManagerPlaybackFrameChanged().

size_t View::m_playPointerFrame [protected, inherited]

Definition at line 345 of file View.h.

Referenced by modelReplaced(), View::paintEvent(), View::viewManagerPlaybackFrameChanged(), and viewManagerPlaybackFrameChanged().

bool View::m_lightBackground [protected, inherited]

Definition at line 346 of file View.h.

bool View::m_showProgress [protected, inherited]

Definition at line 347 of file View.h.

Referenced by View::checkProgress().

QPixmap* View::m_cache [protected, inherited]

Definition at line 349 of file View.h.

Referenced by View::addLayer(), View::layerParametersChanged(), View::modelChanged(), View::modelReplaced(), View::overlayModeChanged(), View::paintEvent(), View::propertyContainerSelected(), View::removeLayer(), and View::selectionChanged().

size_t View::m_cacheCentreFrame [protected, inherited]

Definition at line 350 of file View.h.

Referenced by View::paintEvent().

int View::m_cacheZoomLevel [protected, inherited]

Definition at line 351 of file View.h.

Referenced by View::paintEvent().

bool View::m_selectionCached [protected, inherited]

Definition at line 352 of file View.h.

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

bool View::m_deleting [protected, inherited]

Definition at line 354 of file View.h.

Referenced by View::removeLayer(), and View::~View().

LayerList View::m_layers [protected, inherited]

Definition at line 356 of file View.h.

Referenced by View::addLayer(), View::areLayerColoursSignificant(), View::areLayersScrollable(), Pane::drawCentreLine(), Pane::drawLayerNames(), Pane::drawVerticalScale(), View::getAligningModel(), Pane::getImageSize(), View::getLayer(), View::getLayerCount(), View::getModelsEndFrame(), View::getModelsSampleRate(), View::getModelsStartFrame(), View::getNonScrollableFrontLayers(), View::getPropertyContainer(), View::getPropertyContainerCount(), View::getScrollableBackLayers(), View::getSelectedLayer(), View::getTextLabelHeight(), View::getTopLayer(), View::getValueExtents(), View::getZoomConstraintBlockSize(), View::hasLightBackground(), View::hasTopLayerTimeXAxis(), Pane::horizontalThumbwheelMoved(), modelChanged(), View::paintEvent(), Pane::paintEvent(), View::propertyContainerSelected(), View::removeLayer(), View::render(), Pane::render(), Pane::toNewImage(), View::toXml(), Pane::updateHeadsUpDisplay(), and Pane::zoomToRegion().

bool View::m_haveSelectedLayer [protected, inherited]

Definition at line 357 of file View.h.

Referenced by View::getSelectedLayer(), and View::propertyContainerSelected().

LayerList View::m_lastScrollableBackLayers [mutable, protected, inherited]

Definition at line 360 of file View.h.

Referenced by View::getScrollableBackLayers().

LayerList View::m_lastNonScrollableBackLayers [mutable, protected, inherited]

Definition at line 361 of file View.h.

Referenced by View::getNonScrollableFrontLayers().

ProgressMap View::m_progressBars [protected, inherited]

Definition at line 373 of file View.h.

Referenced by View::addLayer(), View::checkProgress(), and View::removeLayer().

ViewManager* View::m_manager [protected, inherited]

Definition at line 375 of file View.h.

Referenced by View::alignFromReference(), View::alignToReference(), Pane::dragExtendSelection(), Pane::dragTopLayer(), Pane::drawCentreLine(), Pane::drawDurationAndRate(), Pane::drawLayerNames(), View::drawSelections(), Pane::edgeScrollMaybe(), Pane::editSelectionEnd(), Pane::editSelectionStart(), Pane::editVerticalPannerExtents(), View::getAlignedPlaybackFrame(), View::getAligningModel(), Pane::getImageSize(), Pane::getSelectionAt(), View::getViewManager(), View::hasLightBackground(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), View::paintEvent(), Pane::paintEvent(), View::setViewManager(), Pane::shouldIlluminateLocalFeatures(), Pane::shouldIlluminateLocalSelection(), Pane::toNewImage(), Pane::toolModeChanged(), Pane::updateContextHelp(), Pane::updateHeadsUpDisplay(), Pane::updateVerticalPanner(), View::viewManagerPlaybackFrameChanged(), and Pane::viewZoomLevelChanged().

ViewPropertyContainer* View::m_propertyContainer [protected, inherited]

Definition at line 376 of file View.h.

Referenced by View::getPropertyContainer(), View::propertyContainerSelected(), View::setFollowGlobalPan(), View::setFollowGlobalZoom(), View::setPlaybackFollow(), and View::~View().


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