#include <View.h>
Inherits XmlExportable.
Inherited by Overview, and Pane.
Inheritance diagram for View:


A View may have any number of attached Layers, each of which is expected to have one data Model (although multiple views may share the same model).
A View may be panned in time and zoomed, although the mechanisms for doing so (as well as any other operations and properties available) depend on the subclass.
Definition at line 48 of file View.h.
Public Types | |
| enum | TextStyle { BoxedText, OutlinedText } |
| typedef PropertyContainer::PropertyName | PropertyName |
| typedef std::set< Model * > | ModelSet |
Public Slots | |
| virtual void | modelChanged () |
| virtual void | modelChanged (size_t startFrame, size_t endFrame) |
| virtual void | modelCompletionChanged () |
| virtual void | modelAlignmentCompletionChanged () |
| virtual void | modelReplaced () |
| virtual void | layerParametersChanged () |
| virtual void | layerParameterRangesChanged () |
| virtual void | layerMeasurementRectsChanged () |
| virtual void | layerNameChanged () |
| virtual void | globalCentreFrameChanged (unsigned long) |
| virtual void | viewCentreFrameChanged (View *, unsigned long) |
| virtual void | viewManagerPlaybackFrameChanged (unsigned long) |
| virtual void | viewZoomLevelChanged (View *, unsigned long, bool) |
| virtual void | propertyContainerSelected (View *, PropertyContainer *pc) |
| 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 | |
| virtual | ~View () |
| Deleting a View does not delete any of its layers. | |
| 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 Layer * | getLayer (int n) |
| Return a layer, counted in stacking order. | |
| virtual Layer * | getTopLayer () |
| Return the top layer. | |
| virtual Layer * | getSelectedLayer () |
| Return the layer last selected by the user. | |
| virtual const Layer * | getSelectedLayer () const |
| virtual void | setViewManager (ViewManager *m) |
| virtual ViewManager * | getViewManager () 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 QString | getPropertyContainerIconName () const=0 |
| virtual size_t | getPropertyContainerCount () const |
| virtual const PropertyContainer * | getPropertyContainer (size_t i) const |
| virtual PropertyContainer * | getPropertyContainer (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 () |
| Model * | getAligningModel () 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::vector< Layer * > | LayerList |
| typedef std::map< Layer *, LayerProgressBar * > | ProgressMap |
Protected Member Functions | |
| View (QWidget *, bool showProgress) | |
| virtual void | paintEvent (QPaintEvent *e) |
| virtual void | drawSelections (QPainter &) |
| virtual bool | shouldLabelSelections () const |
| 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 |
| bool | setCentreFrame (size_t f, bool doEmit) |
| void | checkProgress (void *object) |
Protected Attributes | |
| 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 |
| ViewManager * | m_manager |
| ViewPropertyContainer * | m_propertyContainer |
Classes | |
| class | LayerProgressBar |
| typedef std::set<Model *> View::ModelSet |
typedef std::vector<Layer *> View::LayerList [protected] |
typedef std::map<Layer *, LayerProgressBar *> View::ProgressMap [protected] |
| enum View::TextStyle |
| View::~View | ( | ) | [virtual] |
Deleting a View does not delete any of its layers.
They should be managed elsewhere (e.g. by the Document).
Definition at line 66 of file View.cpp.
References m_deleting, and m_propertyContainer.
| long View::getStartFrame | ( | ) | const |
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 getFrameForX().
Referenced by Pane::edgeScrollMaybe(), getFirstVisibleFrame(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeRulerLayer::getMajorTickSpacing(), WaveformLayer::getNormalizeGain(), getXForFrame(), modelChanged(), SpectrogramLayer::paint(), paintEvent(), Layer::paintMeasurementRect(), scroll(), MainWindowBase::selectVisible(), TimeRulerLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), viewManagerPlaybackFrameChanged(), Pane::wheelEvent(), and Pane::zoomToRegion().
| void View::setStartFrame | ( | long | ) |
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 m_zoomLevel, and setCentreFrame().
Referenced by Pane::zoomToRegion().
| size_t View::getCentreFrame | ( | ) | const [inline] |
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 m_centreFrame.
Referenced by SpectrumLayer::paint(), SliceLayer::paint(), and paintEvent().
| void View::setCentreFrame | ( | size_t | f | ) | [inline] |
Set the centre frame of the visible widget.
Definition at line 84 of file View.h.
Referenced by Pane::dragTopLayer(), Pane::edgeScrollMaybe(), globalCentreFrameChanged(), Pane::mouseDoubleClickEvent(), SVFileReader::readView(), scroll(), setStartFrame(), setViewManager(), viewManagerPlaybackFrameChanged(), Pane::wheelEvent(), and MainWindowBase::zoomToFit().
| size_t View::getEndFrame | ( | ) | const |
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 getFrameForX().
Referenced by Pane::edgeScrollMaybe(), getLastVisibleFrame(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeRulerLayer::getMajorTickSpacing(), WaveformLayer::getNormalizeGain(), modelChanged(), paintEvent(), Layer::paintMeasurementRect(), scroll(), MainWindowBase::selectVisible(), TimeRulerLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), viewManagerPlaybackFrameChanged(), Pane::wheelEvent(), and Pane::zoomToRegion().
| int View::getXForFrame | ( | long | frame | ) | const |
Return the pixel x-coordinate corresponding to a given sample frame (which may be negative).
Definition at line 346 of file View.cpp.
References getStartFrame(), and m_zoomLevel.
Referenced by Pane::dragTopLayer(), Pane::drawEditingSelection(), 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(), paintEvent(), Overview::paintEvent(), Layer::paintMeasurementRect(), TimeValueLayer::snapToFeatureFrame(), TimeRulerLayer::snapToFeatureFrame(), TimeInstantLayer::snapToFeatureFrame(), TextLayer::snapToFeatureFrame(), NoteLayer::snapToFeatureFrame(), ImageLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), viewManagerPlaybackFrameChanged(), and Overview::viewManagerPlaybackFrameChanged().
| long View::getFrameForX | ( | int | x | ) | const |
Return the closest frame to the given pixel x-coordinate.
Definition at line 352 of file View.cpp.
References m_centreFrame, and m_zoomLevel.
Referenced by Pane::dragExtendSelection(), Pane::dragTopLayer(), TimeValueLayer::drawDrag(), TimeInstantLayer::drawDrag(), TextLayer::drawDrag(), NoteLayer::drawDrag(), ImageLayer::drawDrag(), 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(), getEndFrame(), Colour3DPlotLayer::getFeatureDescription(), Pane::getFirstVisibleFrame(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), TextLayer::getLocalPoints(), NoteLayer::getLocalPoints(), Pane::getSelectionAt(), WaveformLayer::getSourceFramesForX(), getStartFrame(), SpectrogramLayer::getXBinRange(), Layer::getXScaleValue(), Pane::mouseDoubleClickEvent(), Overview::mouseDoubleClickEvent(), Pane::mousePressEvent(), Overview::mousePressEvent(), TimeValueLayer::paint(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), TextLayer::paint(), SliceLayer::paint(), NoteLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), SpectrogramLayer::paintCrosshairs(), Colour3DPlotLayer::paintDense(), Overview::paintEvent(), Pane::selectionIsBeingEdited(), Layer::setMeasureRectFromPixrect(), viewManagerPlaybackFrameChanged(), and Pane::zoomToRegion().
| float View::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.
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 |
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 |
Return the zoom level, i.e.
the number of frames per pixel
Definition at line 430 of file View.cpp.
References m_zoomLevel.
Referenced by WaveformLayer::getFeatureDescription(), getImageSize(), WaveformLayer::paint(), TimeRulerLayer::paint(), SpectrogramLayer::paint(), Colour3DPlotLayer::paint(), toNewImage(), Pane::toNewImage(), and Pane::updateHeadsUpDisplay().
| void View::setZoomLevel | ( | size_t | z | ) | [virtual] |
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 m_followZoom, m_zoomLevel, and zoomLevelChanged().
Referenced by MainWindow::addPane(), MainWindow::handleOSCMessage(), Pane::horizontalThumbwheelMoved(), SVFileReader::readView(), setViewManager(), viewZoomLevelChanged(), Pane::wheelEvent(), zoom(), MainWindowBase::zoomDefault(), MainWindowBase::zoomToFit(), and Pane::zoomToRegion().
| void View::zoom | ( | bool | in | ) | [virtual] |
Zoom in or out.
Definition at line 1330 of file View.cpp.
References getZoomConstraintBlockSize(), m_zoomLevel, ZoomConstraint::RoundDown, ZoomConstraint::RoundUp, and setZoomLevel().
Referenced by MainWindowBase::zoomIn(), and MainWindowBase::zoomOut().
| void View::scroll | ( | bool | right, | |
| bool | lots | |||
| ) | [virtual] |
Scroll left or right by a smallish or largish amount.
Definition at line 1348 of file View.cpp.
References getEndFrame(), getModelsEndFrame(), getStartFrame(), m_centreFrame, and setCentreFrame().
Referenced by MainWindowBase::jumpLeft(), MainWindowBase::jumpRight(), MainWindowBase::scrollLeft(), and MainWindowBase::scrollRight().
| void View::addLayer | ( | Layer * | v | ) | [virtual] |
Definition at line 518 of file View.cpp.
References Preferences::getInstance(), Preferences::getViewFontSize(), layerMeasurementRectsChanged(), layerNameChanged(), layerParameterRangesChanged(), layerParametersChanged(), m_cache, m_layers, m_progressBars, modelAlignmentCompletionChanged(), modelChanged(), modelCompletionChanged(), modelReplaced(), propertyContainerAdded(), and SingleColourLayer::setDefaultColourFor().
Referenced by Document::AddLayerCommand::execute(), MainWindow::MainWindow(), and Document::RemoveLayerCommand::unexecute().
| void View::removeLayer | ( | Layer * | v | ) | [virtual] |
Definition at line 565 of file View.cpp.
References layerNameChanged(), layerParameterRangesChanged(), layerParametersChanged(), m_cache, m_deleting, m_layers, m_progressBars, modelAlignmentCompletionChanged(), modelChanged(), modelCompletionChanged(), modelReplaced(), and propertyContainerRemoved().
Referenced by Document::RemoveLayerCommand::execute(), and Document::AddLayerCommand::unexecute().
| virtual int View::getLayerCount | ( | ) | const [inline, virtual] |
Definition at line 148 of file View.h.
References m_layers.
Referenced by MainWindow::addLayer(), MainWindow::currentPaneChanged(), LayerTreeModel::data(), MainWindowBase::deleteCurrentPane(), Document::RemoveLayerCommand::execute(), Document::AddLayerCommand::execute(), getModels(), 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] |
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 m_layers.
Referenced by MainWindow::addLayer(), MainWindow::currentPaneChanged(), LayerTreeModel::data(), MainWindowBase::deleteCurrentPane(), Document::RemoveLayerCommand::execute(), Document::AddLayerCommand::execute(), getModels(), 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] |
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 m_layers.
Referenced by Pane::getTopLayerDisplayExtents(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::paintEvent(), and Pane::setTopLayerDisplayExtents().
| Layer * View::getSelectedLayer | ( | ) | [virtual] |
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 getLayer(), getLayerCount(), m_haveSelectedLayer, and m_layers.
Referenced by MainWindowBase::copy(), MainWindowBase::cut(), MainWindowBase::deleteCurrentLayer(), MainWindowBase::deleteSelected(), Pane::dragExtendSelection(), Pane::editSelectionEnd(), MainWindow::exportLayer(), 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] |
| void View::setViewManager | ( | ViewManager * | m | ) | [virtual] |
Definition at line 624 of file View.cpp.
References centreFrameChanged(), ViewManager::getGlobalCentreFrame(), ViewManager::getGlobalZoom(), ViewManager::getPlaybackFrame(), globalCentreFrameChanged(), m_followPan, m_followPlay, m_followZoom, m_manager, overlayModeChanged(), PlaybackScrollContinuous, PlaybackScrollPage, selectionChanged(), setCentreFrame(), setZoomLevel(), toolModeChanged(), viewCentreFrameChanged(), viewManagerPlaybackFrameChanged(), viewZoomLevelChanged(), zoomLevelChanged(), and zoomWheelsEnabledChanged().
Referenced by PaneStack::addPane(), and MainWindow::MainWindow().
| virtual ViewManager* View::getViewManager | ( | ) | const [inline, virtual] |
Definition at line 178 of file View.h.
References m_manager.
Referenced by Colour3DPlotLayer::getFeatureDescription(), WaveformLayer::paint(), TimeRulerLayer::paint(), SliceLayer::paint(), Colour3DPlotLayer::paint(), and Colour3DPlotLayer::paintDense().
| void View::setFollowGlobalPan | ( | bool | f | ) | [virtual] |
Definition at line 686 of file View.cpp.
References m_followPan, m_propertyContainer, and propertyContainerPropertyChanged().
Referenced by SVFileReader::readView().
| virtual bool View::getFollowGlobalPan | ( | ) | const [inline, virtual] |
Definition at line 181 of file View.h.
References m_followPan.
Referenced by MainWindowBase::globalCentreFrameChanged().
| void View::setFollowGlobalZoom | ( | bool | f | ) | [virtual] |
Definition at line 693 of file View.cpp.
References m_followZoom, m_propertyContainer, and propertyContainerPropertyChanged().
Referenced by MainWindow::addPane(), and SVFileReader::readView().
| virtual bool View::getFollowGlobalZoom | ( | ) | const [inline, virtual] |
| bool View::hasLightBackground | ( | ) | const [virtual] |
Definition at line 449 of file View.cpp.
References Layer::ColourAbsent, Layer::ColourAndBackgroundSignificant, ViewManager::getGlobalDarkBackground(), m_layers, and m_manager.
Referenced by Pane::drawCentreLine(), Pane::drawFeatureDescription(), drawMeasurementRect(), getBackground(), getForeground(), WaveformLayer::paint(), and SingleColourLayer::setDefaultColourFor().
| QColor View::getForeground | ( | ) | const [virtual] |
Definition at line 499 of file View.cpp.
References hasLightBackground().
Referenced by Pane::drawEditingSelection(), Pane::drawLayerNames(), drawSelections(), Pane::drawVerticalScale(), drawVisibleText(), SingleColourLayer::getForegroundQColor(), SpectrogramLayer::illuminateLocalFeatures(), TextLayer::paint(), NoteLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), paintEvent(), Overview::paintEvent(), SpectrogramLayer::paintVerticalScale(), Colour3DPlotLayer::paintVerticalScale(), render(), and Pane::render().
| QColor View::getBackground | ( | ) | const [virtual] |
Definition at line 479 of file View.cpp.
References hasLightBackground().
Referenced by Pane::drawVerticalScale(), drawVisibleText(), SingleColourLayer::getBackgroundQColor(), TextLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), paintEvent(), SpectrogramLayer::paintVerticalScale(), render(), and Pane::render().
| void View::drawVisibleText | ( | QPainter & | p, | |
| int | x, | |||
| int | y, | |||
| QString | text, | |||
| TextStyle | style | |||
| ) | const [virtual] |
Definition at line 700 of file View.cpp.
References getBackground(), getForeground(), and OutlinedText.
Referenced by Pane::drawAlignmentStatus(), Pane::drawCentreLine(), Pane::drawDurationAndRate(), Pane::drawLayerNames(), drawMeasurementRect(), Pane::drawWorkTitle(), TimeRulerLayer::paint(), SpectrumLayer::paintCrosshairs(), and SpectrogramLayer::paintCrosshairs().
| void View::drawMeasurementRect | ( | QPainter & | p, | |
| const Layer * | , | |||
| QRect | rect, | |||
| bool | focus | |||
| ) | const [virtual] |
Definition at line 1856 of file View.cpp.
References drawVisibleText(), Pitch::getLabelForPitchRange(), Pitch::getPitchForFrequencyDifference(), Pitch::getPitchLabelForFrequency(), Layer::getXScaleValue(), Layer::getYScaleDifference(), Layer::getYScaleValue(), hasLightBackground(), Pitch::isFrequencyInMidiRange(), and OutlinedText.
Referenced by Layer::paintMeasurementRect().
| virtual bool View::shouldIlluminateLocalFeatures | ( | const Layer * | , | |
| QPoint & | ||||
| ) | const [inline, virtual] |
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] |
Reimplemented in Pane.
Definition at line 204 of file View.h.
Referenced by drawSelections(), and paintEvent().
| void View::setPlaybackFollow | ( | PlaybackFollowMode | m | ) | [virtual] |
Definition at line 733 of file View.cpp.
References m_followPlay, m_propertyContainer, and propertyContainerPropertyChanged().
Referenced by MainWindow::addPane(), Overview::Overview(), and SVFileReader::readView().
| virtual PlaybackFollowMode View::getPlaybackFollow | ( | ) | const [inline, virtual] |
| PropertyContainer::PropertyList View::getProperties | ( | ) | const [virtual] |
| QString View::getPropertyLabel | ( | const PropertyName & | ) | const [virtual] |
| virtual PropertyContainer::PropertyType View::getPropertyType | ( | const PropertyName & | ) | const [virtual] |
Referenced by ViewPropertyContainer::getPropertyType().
| virtual int View::getPropertyRangeAndValue | ( | const PropertyName & | , | |
| int * | min, | |||
| int * | max, | |||
| int * | deflt | |||
| ) | const [virtual] |
Referenced by ViewPropertyContainer::getPropertyRangeAndValue().
| virtual QString View::getPropertyValueLabel | ( | const PropertyName & | , | |
| int | value | |||
| ) | const [virtual] |
Referenced by ViewPropertyContainer::getPropertyValueLabel().
| virtual void View::setProperty | ( | const PropertyName & | , | |
| int | value | |||
| ) | [virtual] |
Referenced by ViewPropertyContainer::setProperty().
| virtual QString View::getPropertyContainerName | ( | ) | const [inline, virtual] |
Definition at line 225 of file View.h.
Referenced by ViewPropertyContainer::getPropertyContainerName().