svgui
1.9
|
View is the base class of widgets that display one or more overlaid views of data against a horizontal time scale. More...
#include <View.h>
Classes | |
struct | ProgressBarRec |
Public Types | |
enum | TextStyle { BoxedText, OutlinedText, OutlinedItalicText } |
typedef PropertyContainer::PropertyName | PropertyName |
typedef std::set< Model * > | ModelSet |
Public Slots | |
virtual void | modelChanged () |
virtual void | modelChangedWithin (int startFrame, int 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 (int) |
virtual void | viewCentreFrameChanged (View *, int) |
virtual void | viewManagerPlaybackFrameChanged (int) |
virtual void | viewZoomLevelChanged (View *, int, bool) |
virtual void | propertyContainerSelected (View *, PropertyContainer *pc) |
virtual void | selectionChanged () |
virtual void | toolModeChanged () |
virtual void | overlayModeChanged () |
virtual void | zoomWheelsEnabledChanged () |
virtual void | cancelClicked () |
virtual void | progressCheckStalledTimerElapsed () |
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 (int frame, bool globalScroll, PlaybackFollowMode followMode) |
void | zoomLevelChanged (int, bool) |
void | contextHelpChanged (const QString &) |
Public Member Functions | |
virtual | ~View () |
Deleting a View does not delete any of its layers. | |
int | getStartFrame () const |
Retrieve the first visible sample frame on the widget. | |
void | setStartFrame (int) |
Set the widget pan based on the given first visible frame. | |
int | getCentreFrame () const |
Return the centre frame of the visible widget. | |
void | setCentreFrame (int f) |
Set the centre frame of the visible widget. | |
int | getEndFrame () const |
Retrieve the last visible sample frame on the widget. | |
int | getXForFrame (int frame) const |
Return the pixel x-coordinate corresponding to a given sample frame (which may be negative). | |
int | 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 (int z) |
Set the zoom level, i.e. | |
virtual void | zoom (bool in) |
Zoom in or out. | |
virtual void | scroll (bool right, bool lots, bool doEmit=true) |
Scroll left or right by a smallish or largish amount. | |
virtual void | addLayer (Layer *v) |
Add a layer to the view. | |
virtual void | removeLayer (Layer *v) |
Remove a layer from the view. | |
virtual int | getLayerCount () const |
Return the number of layers, regardless of whether visible or dormant, i.e. | |
virtual Layer * | getLayer (int n) |
Return the nth layer, counted in stacking order. | |
virtual Layer * | getFixedOrderLayer (int n) |
Return the nth layer, counted in the order they were added. | |
virtual Layer * | getInteractionLayer () |
Return the layer currently active for tool interaction. | |
virtual const Layer * | getInteractionLayer () const |
virtual Layer * | getSelectedLayer () |
Return the layer most recently selected by the user. | |
virtual const Layer * | getSelectedLayer () const |
virtual Layer * | getTopLayer () |
Return the "top" layer in the view, whether visible or dormant. | |
virtual void | setViewManager (ViewManager *m) |
virtual void | setViewManager (ViewManager *m, int initialFrame) |
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 | shouldShowFeatureLabels () 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 int | getPropertyContainerCount () const |
virtual const PropertyContainer * | getPropertyContainer (int i) const |
virtual PropertyContainer * | getPropertyContainer (int i) |
virtual QImage * | toNewImage (int f0, int f1) |
virtual QImage * | toNewImage () |
virtual QSize | getImageSize (int f0, int 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 |
virtual int | getFirstVisibleFrame () const |
virtual int | getLastVisibleFrame () const |
int | getModelsStartFrame () const |
int | getModelsEndFrame () const |
ModelSet | getModels () |
Model * | getAligningModel () const |
!! | |
int | alignFromReference (int) const |
int | alignToReference (int) const |
int | getAlignedPlaybackFrame () const |
Protected Types | |
typedef std::vector< Layer * > | LayerList |
typedef std::map< Layer *, ProgressBarRec > | 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, int f0, int 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 |
int | getZoomConstraintBlockSize (int blockSize, ZoomConstraint::RoundingDirection dir=ZoomConstraint::RoundNearest) const |
bool | areLayerColoursSignificant () const |
bool | hasTopLayerTimeXAxis () const |
bool | setCentreFrame (int f, bool doEmit) |
void | movePlayPointer (int f) |
void | checkProgress (void *object) |
int | getProgressBarWidth () const |
Protected Attributes | |
int | m_centreFrame |
int | m_zoomLevel |
bool | m_followPan |
bool | m_followZoom |
PlaybackFollowMode | m_followPlay |
bool | m_followPlayIsDetached |
int | m_playPointerFrame |
bool | m_lightBackground |
bool | m_showProgress |
QPixmap * | m_cache |
int | m_cacheCentreFrame |
int | m_cacheZoomLevel |
bool | m_selectionCached |
bool | m_deleting |
LayerList | m_layerStack |
LayerList | m_fixedOrderLayers |
bool | m_haveSelectedLayer |
QString | m_lastError |
LayerList | m_lastScrollableBackLayers |
LayerList | m_lastNonScrollableBackLayers |
ProgressMap | m_progressBars |
ViewManager * | m_manager |
ViewPropertyContainer * | m_propertyContainer |
View is the base class of widgets that display one or more overlaid views of data against a horizontal time scale.
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.
typedef PropertyContainer::PropertyName View::PropertyName |
typedef std::set<Model *> View::ModelSet |
typedef std::vector<Layer *> View::LayerList [protected] |
typedef std::map<Layer *, ProgressBarRec> 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 73 of file View.cpp.
References m_deleting, and m_propertyContainer.
View::View | ( | QWidget * | w, |
bool | showProgress | ||
) | [protected] |
int 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 302 of file View.cpp.
References getFrameForX().
Referenced by Pane::edgeScrollMaybe(), getFirstVisibleFrame(), TimeInstantLayer::getLocalPoints(), RegionLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeValueLayer::getLocalPoints(), FlexiNoteLayer::getLocalPoints(), TimeRulerLayer::getMajorTickSpacing(), WaveformLayer::getNormalizeGain(), getXForFrame(), SpectrogramLayer::invalidateImageCaches(), modelChangedWithin(), movePlayPointer(), SpectrogramLayer::paint(), Overview::paintEvent(), paintEvent(), Layer::paintMeasurementRect(), scroll(), TimeRulerLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), Pane::wheelHorizontalFine(), and Pane::zoomToRegion().
void View::setStartFrame | ( | int | f | ) |
Set the widget pan based on the given first visible frame.
The frame value may be negative.
Definition at line 314 of file View.cpp.
References m_zoomLevel, and setCentreFrame().
Referenced by Pane::zoomToRegion().
int 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 81 of file View.h.
References m_centreFrame.
Referenced by SliceLayer::paint(), SpectrumLayer::paint(), and paintEvent().
void View::setCentreFrame | ( | int | f | ) | [inline] |
Set the centre frame of the visible widget.
Definition at line 86 of file View.h.
References setCentreFrame().
Referenced by Pane::dragTopLayer(), Pane::edgeScrollMaybe(), globalCentreFrameChanged(), Pane::mouseDoubleClickEvent(), movePlayPointer(), scroll(), setCentreFrame(), setStartFrame(), setViewManager(), and Pane::wheelHorizontalFine().
int 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 308 of file View.cpp.
References getFrameForX().
Referenced by Pane::edgeScrollMaybe(), getLastVisibleFrame(), TimeInstantLayer::getLocalPoints(), RegionLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeValueLayer::getLocalPoints(), FlexiNoteLayer::getLocalPoints(), TimeRulerLayer::getMajorTickSpacing(), WaveformLayer::getNormalizeGain(), SpectrogramLayer::invalidateImageCaches(), modelChangedWithin(), movePlayPointer(), paintEvent(), Layer::paintMeasurementRect(), scroll(), TimeRulerLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), Pane::wheelHorizontalFine(), and Pane::zoomToRegion().
int View::getXForFrame | ( | int | frame | ) | const |
Return the pixel x-coordinate corresponding to a given sample frame (which may be negative).
Definition at line 357 of file View.cpp.
References getStartFrame(), and m_zoomLevel.
Referenced by Pane::dragTopLayer(), Pane::drawEditingSelection(), Pane::drawModelTimeExtents(), drawSelections(), Pane::editSelectionEnd(), NoteLayer::editStart(), FlexiNoteLayer::editStart(), RegionLayer::editStart(), TextLayer::getFeatureDescription(), TimeInstantLayer::getFeatureDescription(), NoteLayer::getFeatureDescription(), TimeValueLayer::getFeatureDescription(), FlexiNoteLayer::getFeatureDescription(), RegionLayer::getFeatureDescription(), TextLayer::getLocalPoints(), ImageLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), RegionLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeValueLayer::getLocalPoints(), FlexiNoteLayer::getLocalPoints(), TextLayer::getPointToDrag(), FlexiNoteLayer::getRelativeMousePosition(), Pane::getSelectionAt(), SpectrogramLayer::illuminateLocalFeatures(), SpectrogramLayer::invalidateImageCaches(), movePlayPointer(), TextLayer::paint(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), NoteLayer::paint(), TimeValueLayer::paint(), ImageLayer::paint(), SliceLayer::paint(), FlexiNoteLayer::paint(), RegionLayer::paint(), Colour3DPlotLayer::paint(), SpectrogramLayer::paint(), Overview::paintEvent(), paintEvent(), Layer::paintMeasurementRect(), TextLayer::snapToFeatureFrame(), TimeInstantLayer::snapToFeatureFrame(), TimeRulerLayer::snapToFeatureFrame(), NoteLayer::snapToFeatureFrame(), ImageLayer::snapToFeatureFrame(), FlexiNoteLayer::snapToFeatureFrame(), TimeValueLayer::snapToFeatureFrame(), RegionLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), and Overview::viewManagerPlaybackFrameChanged().
int View::getFrameForX | ( | int | x | ) | const |
Return the closest frame to the given pixel x-coordinate.
Definition at line 363 of file View.cpp.
References m_centreFrame, and m_zoomLevel.
Referenced by FlexiNoteLayer::addNote(), Pane::dragExtendSelection(), Pane::dragTopLayer(), TextLayer::drawDrag(), TimeInstantLayer::drawDrag(), NoteLayer::drawDrag(), ImageLayer::drawDrag(), FlexiNoteLayer::drawDrag(), TimeValueLayer::drawDrag(), RegionLayer::drawDrag(), Pane::drawEditingSelection(), drawSelections(), TextLayer::drawStart(), TimeInstantLayer::drawStart(), NoteLayer::drawStart(), ImageLayer::drawStart(), FlexiNoteLayer::drawStart(), TimeValueLayer::drawStart(), RegionLayer::drawStart(), Pane::edgeScrollMaybe(), TextLayer::editDrag(), ImageLayer::editDrag(), TimeInstantLayer::editDrag(), NoteLayer::editDrag(), FlexiNoteLayer::editDrag(), TimeValueLayer::editDrag(), RegionLayer::editDrag(), Pane::editSelectionEnd(), getEndFrame(), Colour3DPlotLayer::getFeatureDescription(), Pane::getFirstVisibleFrame(), TextLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), RegionLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeValueLayer::getLocalPoints(), FlexiNoteLayer::getLocalPoints(), FlexiNoteLayer::getNoteToEdit(), TextLayer::getPointToDrag(), RegionLayer::getPointToDrag(), NoteLayer::getPointToDrag(), FlexiNoteLayer::getPointToDrag(), Pane::getSelectionAt(), WaveformLayer::getSourceFramesForX(), getStartFrame(), SpectrogramLayer::getXBinRange(), Layer::getXScaleValue(), Overview::mouseDoubleClickEvent(), Pane::mouseDoubleClickEvent(), Overview::mousePressEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), movePlayPointer(), TextLayer::paint(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), NoteLayer::paint(), TimeValueLayer::paint(), ImageLayer::paint(), FlexiNoteLayer::paint(), SliceLayer::paint(), RegionLayer::paint(), Colour3DPlotLayer::paint(), SpectrogramLayer::paint(), SpectrogramLayer::paintCrosshairs(), Colour3DPlotLayer::paintDense(), Overview::paintEvent(), Pane::selectionIsBeingEdited(), Layer::setMeasureRectFromPixrect(), FlexiNoteLayer::splitEnd(), 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 377 of file View.cpp.
Referenced by SpectrogramLayer::getYForFrequency(), SpectrogramLayer::paintDrawBufferPeakFrequencies(), and PianoScale::paintPianoVertical().
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 411 of file View.cpp.
Referenced by SpectrogramLayer::getFrequencyForY(), SpectrogramLayer::getSmoothedYBinRange(), and SpectrogramLayer::getYBinRange().
int View::getZoomLevel | ( | ) | const |
Return the zoom level, i.e.
the number of frames per pixel
Definition at line 443 of file View.cpp.
References m_zoomLevel.
Referenced by WaveformLayer::getFeatureDescription(), getImageSize(), TimeRulerLayer::paint(), WaveformLayer::paint(), Colour3DPlotLayer::paint(), SpectrogramLayer::paint(), Colour3DPlotLayer::paintDense(), Colour3DPlotLayer::shouldPaintDenseIn(), Pane::toNewImage(), toNewImage(), and Pane::updateHeadsUpDisplay().
void View::setZoomLevel | ( | int | 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 452 of file View.cpp.
References m_followZoom, m_zoomLevel, and zoomLevelChanged().
Referenced by Pane::horizontalThumbwheelMoved(), setViewManager(), viewZoomLevelChanged(), Pane::wheelVertical(), zoom(), and Pane::zoomToRegion().
void View::zoom | ( | bool | in | ) | [virtual] |
Zoom in or out.
Definition at line 1475 of file View.cpp.
References getZoomConstraintBlockSize(), m_zoomLevel, and setZoomLevel().
void View::scroll | ( | bool | right, |
bool | lots, | ||
bool | doEmit = true |
||
) | [virtual] |
Scroll left or right by a smallish or largish amount.
Definition at line 1493 of file View.cpp.
References getEndFrame(), getModelsEndFrame(), getStartFrame(), m_centreFrame, and setCentreFrame().
void View::addLayer | ( | Layer * | v | ) | [virtual] |
Add a layer to the view.
(Normally this should be handled through some command abstraction instead of using this function directly.)
Definition at line 527 of file View.cpp.
References View::ProgressBarRec::bar, View::ProgressBarRec::cancel, cancelClicked(), View::ProgressBarRec::checkTimer, View::ProgressBarRec::lastCheck, layerMeasurementRectsChanged(), layerNameChanged(), layerParameterRangesChanged(), layerParametersChanged(), m_cache, m_fixedOrderLayers, m_layerStack, m_progressBars, modelAlignmentCompletionChanged(), modelChanged(), modelChangedWithin(), modelCompletionChanged(), modelReplaced(), progressCheckStalledTimerElapsed(), propertyContainerAdded(), and SingleColourLayer::setDefaultColourFor().
void View::removeLayer | ( | Layer * | v | ) | [virtual] |
Remove a layer from the view.
Does not delete the layer. (Normally this should be handled through some command abstraction instead of using this function directly.)
Definition at line 594 of file View.cpp.
References layerNameChanged(), layerParameterRangesChanged(), layerParametersChanged(), m_cache, m_deleting, m_fixedOrderLayers, m_layerStack, m_progressBars, modelAlignmentCompletionChanged(), modelChanged(), modelChangedWithin(), modelCompletionChanged(), modelReplaced(), and propertyContainerRemoved().
virtual int View::getLayerCount | ( | ) | const [inline, virtual] |
Return the number of layers, regardless of whether visible or dormant, i.e.
invisible, in this view.
Definition at line 166 of file View.h.
References m_layerStack.
Referenced by LayerTreeModel::data(), FlexiNoteLayer::getAssociatedPitchModel(), getInteractionLayer(), getModels(), getSelectedLayer(), LayerTreeModel::LayerTreeModel(), LayerTreeModel::playParametersAudibilityChanged(), LayerTreeModel::propertyContainerPropertyChanged(), Pane::propertyContainerSelected(), ModelMetadataModel::rebuildModelSet(), LayerTreeModel::rowCount(), LayerTreeModel::setData(), Pane::updateHeadsUpDisplay(), Pane::updateVerticalPanner(), Pane::verticalThumbwheelMoved(), and Pane::verticalZoomChanged().
virtual Layer* View::getLayer | ( | int | n | ) | [inline, virtual] |
Return the nth layer, counted in stacking order.
That is, layer 0 is the bottom layer and layer "getLayerCount()-1" is the top one. The returned layer may be visible or it may be dormant, i.e. invisible.
Definition at line 174 of file View.h.
References m_layerStack.
Referenced by LayerTreeModel::data(), FlexiNoteLayer::getAssociatedPitchModel(), getInteractionLayer(), getModels(), getSelectedLayer(), LayerTreeModel::LayerTreeModel(), TimeRulerLayer::paint(), LayerTreeModel::playParametersAudibilityChanged(), LayerTreeModel::propertyContainerPropertyChanged(), Pane::propertyContainerSelected(), ModelMetadataModel::rebuildModelSet(), LayerTreeModel::setData(), FlexiNoteLayer::setVerticalRangeToNoteRange(), Pane::updateHeadsUpDisplay(), Pane::updateVerticalPanner(), Pane::verticalThumbwheelMoved(), and Pane::verticalZoomChanged().
virtual Layer* View::getFixedOrderLayer | ( | int | n | ) | [inline, virtual] |
Return the nth layer, counted in the order they were added.
Unlike the stacking order used in getLayer(), which changes each time a layer is selected, this ordering remains fixed. The returned layer may be visible or it may be dormant, i.e. invisible.
Definition at line 186 of file View.h.
References m_fixedOrderLayers.
Layer * View::getInteractionLayer | ( | ) | [virtual] |
Return the layer currently active for tool interaction.
This is the topmost non-dormant (i.e. visible) layer in the view. If there are no visible layers in the view, return 0.
Definition at line 650 of file View.cpp.
References getLayer(), getLayerCount(), getSelectedLayer(), Layer::isLayerDormant(), and m_layerStack.
Referenced by Pane::dragExtendSelection(), Pane::editSelectionEnd(), getInteractionLayer(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::shouldIlluminateLocalFeatures(), Pane::shouldIlluminateLocalSelection(), and Pane::updateContextHelp().
const Layer * View::getInteractionLayer | ( | ) | const [virtual] |
Definition at line 670 of file View.cpp.
References getInteractionLayer().
Layer * View::getSelectedLayer | ( | ) | [virtual] |
Return the layer most recently selected by the user.
This is the layer that any non-tool-driven commands should operate on, in the case where this view is the "current" one.
If the user has selected the view itself more recently than any of the layers on it, this function will return 0, and any non-tool-driven layer commands should be deactivated while this view is current. It will also return 0 if there are no layers in the view.
Note that, unlike getInteractionLayer(), this could return an invisible (dormant) layer.
Definition at line 676 of file View.cpp.
References getLayer(), getLayerCount(), m_haveSelectedLayer, and m_layerStack.
Referenced by getInteractionLayer(), and getSelectedLayer().
const Layer * View::getSelectedLayer | ( | ) | const [virtual] |
Definition at line 686 of file View.cpp.
References getSelectedLayer().
virtual Layer* View::getTopLayer | ( | ) | [inline, virtual] |
Return the "top" layer in the view, whether visible or dormant.
This is the same as getLayer(getLayerCount()-1) if there is at least one layer, and 0 otherwise.
For most purposes involving interaction or commands, you probably want either getInteractionLayer() or getSelectedLayer() instead.
Definition at line 227 of file View.h.
References m_layerStack.
Referenced by Pane::getImageSize(), Pane::getTopLayerDisplayExtents(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::paintEvent(), Pane::render(), Pane::setTopLayerDisplayExtents(), and Pane::toNewImage().
void View::setViewManager | ( | ViewManager * | m | ) | [virtual] |
Definition at line 692 of file View.cpp.
References centreFrameChanged(), getAlignedPlaybackFrame(), ViewManager::getGlobalCentreFrame(), ViewManager::getGlobalZoom(), ViewManager::getPlaybackFrame(), globalCentreFrameChanged(), m_followPan, m_followPlay, m_followZoom, m_manager, movePlayPointer(), overlayModeChanged(), PlaybackIgnore, PlaybackScrollContinuous, PlaybackScrollPage, PlaybackScrollPageWithCentre, selectionChanged(), setCentreFrame(), setZoomLevel(), toolModeChanged(), viewCentreFrameChanged(), viewManagerPlaybackFrameChanged(), viewZoomLevelChanged(), zoomLevelChanged(), and zoomWheelsEnabledChanged().
Referenced by PaneStack::insertPane(), and setViewManager().
void View::setViewManager | ( | ViewManager * | m, |
int | initialFrame | ||
) | [virtual] |
Definition at line 766 of file View.cpp.
References setCentreFrame(), and setViewManager().
virtual ViewManager* View::getViewManager | ( | ) | const [inline, virtual] |
Definition at line 233 of file View.h.
References m_manager.
Referenced by Colour3DPlotLayer::getFeatureDescription(), TimeRulerLayer::paint(), SliceLayer::paint(), WaveformLayer::paint(), Colour3DPlotLayer::paint(), Colour3DPlotLayer::paintDense(), and Colour3DPlotLayer::shouldPaintDenseIn().
void View::setFollowGlobalPan | ( | bool | f | ) | [virtual] |
Definition at line 773 of file View.cpp.
References m_followPan, m_propertyContainer, and propertyContainerPropertyChanged().
Referenced by setProperty().
virtual bool View::getFollowGlobalPan | ( | ) | const [inline, virtual] |
Definition at line 236 of file View.h.
References m_followPan.
void View::setFollowGlobalZoom | ( | bool | f | ) | [virtual] |
Definition at line 780 of file View.cpp.
References m_followZoom, m_propertyContainer, and propertyContainerPropertyChanged().
Referenced by setProperty().
virtual bool View::getFollowGlobalZoom | ( | ) | const [inline, virtual] |
Definition at line 239 of file View.h.
References m_followZoom.
bool View::hasLightBackground | ( | ) | const [virtual] |
Definition at line 463 of file View.cpp.
References Layer::ColourAbsent, Layer::ColourAndBackgroundSignificant, ViewManager::getGlobalDarkBackground(), m_layerStack, and m_manager.
Referenced by Pane::drawCentreLine(), Pane::drawFeatureDescription(), drawMeasurementRect(), Pane::drawModelTimeExtents(), getBackground(), getForeground(), WaveformLayer::paint(), and SingleColourLayer::setDefaultColourFor().
QColor View::getForeground | ( | ) | const [virtual] |
Definition at line 513 of file View.cpp.
References hasLightBackground().
Referenced by Pane::drawEditingSelection(), Pane::drawLayerNames(), drawSelections(), Pane::drawVerticalScale(), drawVisibleText(), SingleColourLayer::getForegroundQColor(), SpectrogramLayer::illuminateLocalFeatures(), TextLayer::paint(), NoteLayer::paint(), FlexiNoteLayer::paint(), ImageLayer::paint(), RegionLayer::paint(), Colour3DPlotLayer::paint(), Overview::paintEvent(), paintEvent(), Colour3DPlotLayer::paintVerticalScale(), SpectrogramLayer::paintVerticalScale(), Pane::render(), and render().
QColor View::getBackground | ( | ) | const [virtual] |
Definition at line 493 of file View.cpp.
References hasLightBackground().
Referenced by Pane::drawVerticalScale(), drawVisibleText(), SingleColourLayer::getBackgroundQColor(), TextLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), paintEvent(), SpectrogramLayer::paintVerticalScale(), Pane::render(), and render().
void View::drawVisibleText | ( | QPainter & | p, |
int | x, | ||
int | y, | ||
QString | text, | ||
TextStyle | style | ||
) | const [virtual] |
Definition at line 787 of file View.cpp.
References getBackground(), getForeground(), OutlinedItalicText, and OutlinedText.
Referenced by Pane::drawAlignmentStatus(), Pane::drawCentreLine(), Pane::drawDurationAndRate(), Pane::drawEditingSelection(), Pane::drawLayerNames(), drawMeasurementRect(), Pane::drawWorkTitle(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), NoteLayer::paint(), TimeValueLayer::paint(), FlexiNoteLayer::paint(), RegionLayer::paint(), SpectrumLayer::paintCrosshairs(), SpectrogramLayer::paintCrosshairs(), and Colour3DPlotLayer::paintVerticalScale().
void View::drawMeasurementRect | ( | QPainter & | p, |
const Layer * | topLayer, | ||
QRect | rect, | ||
bool | focus | ||
) | const [virtual] |
Definition at line 2097 of file View.cpp.
References drawVisibleText(), Layer::getXScaleValue(), Layer::getYScaleDifference(), Layer::getYScaleValue(), hasLightBackground(), and OutlinedText.
Referenced by Layer::paintMeasurementRect().
virtual bool View::shouldShowFeatureLabels | ( | ) | const [inline, virtual] |
Definition at line 257 of file View.h.
References m_manager, and ViewManager::shouldShowFeatureLabels().
Referenced by TimeValueLayer::paint().
virtual bool View::shouldIlluminateLocalFeatures | ( | const Layer * | , |
QPoint & | |||
) | const [inline, virtual] |
Reimplemented in Pane.
Definition at line 260 of file View.h.
Referenced by SpectrogramLayer::illuminateLocalFeatures(), Colour3DPlotLayer::isLayerScrollable(), TextLayer::isLayerScrollable(), TimeInstantLayer::isLayerScrollable(), NoteLayer::isLayerScrollable(), RegionLayer::isLayerScrollable(), FlexiNoteLayer::isLayerScrollable(), TimeValueLayer::isLayerScrollable(), TextLayer::paint(), TimeInstantLayer::paint(), NoteLayer::paint(), TimeValueLayer::paint(), FlexiNoteLayer::paint(), RegionLayer::paint(), and Colour3DPlotLayer::paint().
virtual bool View::shouldIlluminateLocalSelection | ( | QPoint & | , |
bool & | , | ||
bool & | |||
) | const [inline, virtual] |
Reimplemented in Pane.
Definition at line 263 of file View.h.
Referenced by drawSelections(), and paintEvent().
void View::setPlaybackFollow | ( | PlaybackFollowMode | m | ) | [virtual] |
Definition at line 837 of file View.cpp.
References m_followPlay, m_propertyContainer, and propertyContainerPropertyChanged().
Referenced by Overview::Overview(), and setProperty().
virtual PlaybackFollowMode View::getPlaybackFollow | ( | ) | const [inline, virtual] |
Definition at line 268 of file View.h.
References m_followPlay.
PropertyContainer::PropertyList View::getProperties | ( | ) | const [virtual] |
Definition at line 82 of file View.cpp.
Referenced by ViewPropertyContainer::getProperties().
QString View::getPropertyLabel | ( | const PropertyName & | pn | ) | const [virtual] |
Definition at line 92 of file View.cpp.
Referenced by ViewPropertyContainer::getPropertyLabel().
PropertyContainer::PropertyType View::getPropertyType | ( | const PropertyName & | name | ) | const [virtual] |
Definition at line 101 of file View.cpp.
Referenced by ViewPropertyContainer::getPropertyType().
int View::getPropertyRangeAndValue | ( | const PropertyName & | name, |
int * | min, | ||
int * | max, | ||
int * | deflt | ||
) | const [virtual] |
Definition at line 110 of file View.cpp.
References m_followPan, m_followPlay, m_followZoom, PlaybackIgnore, PlaybackScrollContinuous, PlaybackScrollPage, and PlaybackScrollPageWithCentre.
Referenced by ViewPropertyContainer::getPropertyRangeAndValue().
QString View::getPropertyValueLabel | ( | const PropertyName & | name, |
int | value | ||
) | const [virtual] |
Definition at line 133 of file View.cpp.
Referenced by ViewPropertyContainer::getPropertyValueLabel().
void View::setProperty | ( | const PropertyName & | name, |
int | value | ||
) | [virtual] |
Definition at line 148 of file View.cpp.
References PlaybackIgnore, PlaybackScrollContinuous, PlaybackScrollPageWithCentre, setFollowGlobalPan(), setFollowGlobalZoom(), and setPlaybackFollow().
Referenced by ViewPropertyContainer::setProperty().
virtual QString View::getPropertyContainerName | ( | ) | const [inline, virtual] |
Definition at line 284 of file View.h.
Referenced by ViewPropertyContainer::getPropertyContainerName().
virtual QString View::getPropertyContainerIconName | ( | ) | const [pure virtual] |
Implemented in Overview, and Pane.
Referenced by ViewPropertyContainer::getPropertyContainerIconName().
int View::getPropertyContainerCount | ( | ) | const [virtual] |
Definition at line 165 of file View.cpp.
References m_fixedOrderLayers.
Referenced by PropertyStack::containsContainer(), and PropertyStack::repopulate().
const PropertyContainer * View::getPropertyContainer | ( | int | i | ) | const [virtual] |
Definition at line 171 of file View.cpp.
Referenced by PropertyStack::containsContainer(), PropertyStack::repopulate(), and PaneStack::setCurrentLayer().
PropertyContainer * View::getPropertyContainer | ( | int | i | ) | [virtual] |
Definition at line 178 of file View.cpp.
References m_fixedOrderLayers, and m_propertyContainer.
QImage * View::toNewImage | ( | int | f0, |
int | f1 | ||
) | [virtual] |
Reimplemented in Pane.
Definition at line 2450 of file View.cpp.
References getZoomLevel(), and render().
QImage * View::toNewImage | ( | ) | [virtual] |
Reimplemented in Pane.
Definition at line 2441 of file View.cpp.
References getModelsEndFrame(), and getModelsStartFrame().
QSize View::getImageSize | ( | int | f0, |
int | f1 | ||
) | [virtual] |
QSize View::getImageSize | ( | ) | [virtual] |
Reimplemented in Pane.
Definition at line 2469 of file View.cpp.
References getModelsEndFrame(), and getModelsStartFrame().
int View::getTextLabelHeight | ( | const Layer * | layer, |
QPainter & | paint | ||
) | const [virtual] |
Definition at line 222 of file View.cpp.
References m_layerStack.
Referenced by TimeInstantLayer::paint(), TimeValueLayer::paint(), and RegionLayer::paint().
bool View::getValueExtents | ( | QString | unit, |
float & | min, | ||
float & | max, | ||
bool & | log | ||
) | const [virtual] |
Definition at line 185 of file View.cpp.
References m_layerStack.
Referenced by NoteLayer::getScaleExtents(), RegionLayer::getScaleExtents(), TimeValueLayer::getScaleExtents(), and FlexiNoteLayer::getScaleExtents().
void View::toXml | ( | QTextStream & | stream, |
QString | indent = "" , |
||
QString | extraAttributes = "" |
||
) | const [virtual] |
Reimplemented in Pane.
Definition at line 2487 of file View.cpp.
References m_centreFrame, m_fixedOrderLayers, m_followPan, m_followPlay, m_followZoom, m_zoomLevel, PlaybackScrollContinuous, PlaybackScrollPage, and PlaybackScrollPageWithCentre.
int View::getFirstVisibleFrame | ( | ) | const [virtual] |
Reimplemented in Pane.
Definition at line 1172 of file View.cpp.
References getModelsStartFrame(), and getStartFrame().
int View::getLastVisibleFrame | ( | ) | const [virtual] |
Definition at line 1181 of file View.cpp.
References getEndFrame(), and getModelsEndFrame().
int View::getModelsStartFrame | ( | ) | const |
Definition at line 1190 of file View.cpp.
References m_layerStack.
Referenced by getFirstVisibleFrame(), getImageSize(), getModelsEndFrame(), Overview::modelChangedWithin(), Overview::paintEvent(), and toNewImage().
int View::getModelsEndFrame | ( | ) | const |
Definition at line 1211 of file View.cpp.
References getModelsStartFrame(), and m_layerStack.
Referenced by Pane::dragTopLayer(), getImageSize(), getLastVisibleFrame(), Overview::modelChangedWithin(), Overview::mouseMoveEvent(), TimeValueLayer::paint(), Overview::paintEvent(), scroll(), toNewImage(), Pane::wheelHorizontalFine(), and Pane::zoomToRegion().
Definition at line 1251 of file View.cpp.
References getLayer(), getLayerCount(), and Layer::getModel().
Model * View::getAligningModel | ( | ) | const |
!!
Definition at line 1273 of file View.cpp.
References ViewManager::getAlignMode(), Layer::getModel(), ViewManager::getPlaybackModel(), Layer::isLayerOpaque(), m_layerStack, and m_manager.
Referenced by alignFromReference(), alignToReference(), getAlignedPlaybackFrame(), and Overview::mousePressEvent().
int View::alignFromReference | ( | int | f | ) | const |
Definition at line 1313 of file View.cpp.
References getAligningModel(), ViewManager::getAlignMode(), and m_manager.
Referenced by Layer::alignFromReference(), drawSelections(), globalCentreFrameChanged(), and Overview::paintEvent().
int View::alignToReference | ( | int | f | ) | const |
Definition at line 1322 of file View.cpp.
References getAligningModel(), ViewManager::getAlignMode(), and m_manager.
Referenced by Layer::alignToReference(), Pane::dragExtendSelection(), Overview::mouseDoubleClickEvent(), Overview::mouseMoveEvent(), Pane::mousePressEvent(), Overview::paintEvent(), and setCentreFrame().
int View::getAlignedPlaybackFrame | ( | ) | const |
Definition at line 1331 of file View.cpp.
References getAligningModel(), ViewManager::getAlignMode(), ViewManager::getPlaybackFrame(), and m_manager.
Referenced by Overview::modelReplaced(), setViewManager(), Overview::viewManagerPlaybackFrameChanged(), and viewManagerPlaybackFrameChanged().
void View::propertyContainerAdded | ( | PropertyContainer * | pc | ) | [signal] |
Referenced by addLayer().
void View::propertyContainerRemoved | ( | PropertyContainer * | pc | ) | [signal] |
Referenced by removeLayer().
void View::propertyContainerPropertyChanged | ( | PropertyContainer * | pc | ) | [signal] |
Referenced by layerParametersChanged(), setFollowGlobalPan(), setFollowGlobalZoom(), and setPlaybackFollow().
void View::propertyContainerPropertyRangeChanged | ( | PropertyContainer * | pc | ) | [signal] |
Referenced by layerParameterRangesChanged().
void View::propertyContainerNameChanged | ( | PropertyContainer * | pc | ) | [signal] |
Referenced by layerNameChanged().
void View::propertyContainerSelected | ( | PropertyContainer * | pc | ) | [signal] |
Referenced by propertyContainerSelected().
void View::propertyChanged | ( | PropertyContainer::PropertyName | ) | [signal] |
void View::layerModelChanged | ( | ) | [signal] |
Referenced by modelChanged().
void View::centreFrameChanged | ( | int | frame, |
bool | globalScroll, | ||
PlaybackFollowMode | followMode | ||
) | [signal] |
void View::zoomLevelChanged | ( | int | , |
bool | |||
) | [signal] |
Referenced by Overview::paintEvent(), setViewManager(), and setZoomLevel().
void View::contextHelpChanged | ( | const QString & | ) | [signal] |
void View::modelChanged | ( | ) | [virtual, slot] |
Definition at line 844 of file View.cpp.
References checkProgress(), getScrollableBackLayers(), layerModelChanged(), and m_cache.
Referenced by addLayer(), and removeLayer().
void View::modelChangedWithin | ( | int | startFrame, |
int | endFrame | ||
) | [virtual, slot] |
Reimplemented in Overview.
Definition at line 880 of file View.cpp.
References checkProgress(), getEndFrame(), getScrollableBackLayers(), getStartFrame(), and m_cache.
Referenced by addLayer(), and removeLayer().
void View::modelCompletionChanged | ( | ) | [virtual, slot] |
Definition at line 929 of file View.cpp.
References checkProgress().
Referenced by addLayer(), and removeLayer().
void View::modelAlignmentCompletionChanged | ( | ) | [virtual, slot] |
Reimplemented in Pane.
Definition at line 938 of file View.cpp.
References checkProgress().
Referenced by addLayer(), and removeLayer().
void View::modelReplaced | ( | ) | [virtual, slot] |
Reimplemented in Overview.
Definition at line 947 of file View.cpp.
References m_cache.
Referenced by addLayer(), and removeLayer().
void View::layerParametersChanged | ( | ) | [virtual, slot] |
Reimplemented in Pane.
Definition at line 959 of file View.cpp.
References m_cache, and propertyContainerPropertyChanged().
Referenced by addLayer(), and removeLayer().
void View::layerParameterRangesChanged | ( | ) | [virtual, slot] |
Definition at line 977 of file View.cpp.
References propertyContainerPropertyRangeChanged().
Referenced by addLayer(), and removeLayer().
void View::layerMeasurementRectsChanged | ( | ) | [virtual, slot] |
Definition at line 984 of file View.cpp.
Referenced by addLayer().
void View::layerNameChanged | ( | ) | [virtual, slot] |
Definition at line 991 of file View.cpp.
References propertyContainerNameChanged().
Referenced by addLayer(), and removeLayer().
void View::globalCentreFrameChanged | ( | int | rf | ) | [virtual, slot] |
Reimplemented in Overview.
Definition at line 998 of file View.cpp.
References alignFromReference(), m_followPan, and setCentreFrame().
Referenced by setViewManager().
void View::viewCentreFrameChanged | ( | View * | , |
int | |||
) | [virtual, slot] |
Reimplemented in Overview.
Definition at line 1011 of file View.cpp.
Referenced by setViewManager().
void View::viewManagerPlaybackFrameChanged | ( | int | f | ) | [virtual, slot] |
Reimplemented in Overview.
Definition at line 1017 of file View.cpp.
References getAlignedPlaybackFrame(), m_manager, and movePlayPointer().
Referenced by setViewManager().
void View::viewZoomLevelChanged | ( | View * | p, |
int | z, | ||
bool | locked | ||
) | [virtual, slot] |
Reimplemented in Pane, and Overview.
Definition at line 1150 of file View.cpp.
References m_followZoom, and setZoomLevel().
Referenced by setViewManager().
void View::propertyContainerSelected | ( | View * | client, |
PropertyContainer * | pc | ||
) | [virtual, slot] |
Reimplemented in Pane.
Definition at line 245 of file View.cpp.
References m_cache, m_haveSelectedLayer, m_layerStack, m_propertyContainer, and propertyContainerSelected().
void View::selectionChanged | ( | ) | [virtual, slot] |
Definition at line 1161 of file View.cpp.
References m_cache, and m_selectionCached.
Referenced by setViewManager().
void View::toolModeChanged | ( | ) | [virtual, slot] |
void View::overlayModeChanged | ( | ) | [virtual, slot] |
void View::zoomWheelsEnabledChanged | ( | ) | [virtual, slot] |
void View::cancelClicked | ( | ) | [virtual, slot] |
Definition at line 1513 of file View.cpp.
References Layer::getModel(), and m_progressBars.
Referenced by addLayer().
void View::progressCheckStalledTimerElapsed | ( | ) | [virtual, slot] |
void View::paintEvent | ( | QPaintEvent * | e | ) | [protected, virtual] |
!! Should we do this only if we have layers that can't support other zoom levels?
m_zoomLevel = getZoomConstraintBlockSize(m_zoomLevel, ZoomConstraint::RoundUp);
Reimplemented in Pane, and Overview.
Definition at line 1662 of file View.cpp.
References drawSelections(), getBackground(), getCentreFrame(), getEndFrame(), getForeground(), getNonScrollableFrontLayers(), getScrollableBackLayers(), ViewManager::getSelections(), getStartFrame(), getXForFrame(), ViewManager::isPlaying(), m_cache, m_cacheCentreFrame, m_cacheZoomLevel, m_centreFrame, m_followPlay, m_layerStack, m_manager, m_playPointerFrame, m_selectionCached, m_zoomLevel, PlaybackIgnore, PlaybackScrollContinuous, setPaintFont(), shouldIlluminateLocalSelection(), and ViewManager::shouldShowCentreLine().
void View::drawSelections | ( | QPainter & | paint | ) | [protected, virtual] |
Definition at line 1950 of file View.cpp.
References alignFromReference(), areLayerColoursSignificant(), getForeground(), getFrameForX(), ViewManager::getInProgressSelection(), getModelsSampleRate(), ViewManager::getSelections(), getXForFrame(), hasTopLayerTimeXAxis(), ViewManager::haveInProgressSelection(), m_manager, shouldIlluminateLocalSelection(), shouldLabelSelections(), and ViewManager::shouldShowSelectionExtents().
Referenced by paintEvent().
virtual bool View::shouldLabelSelections | ( | ) | const [inline, protected, virtual] |
bool View::render | ( | QPainter & | paint, |
int | x0, | ||
int | f0, | ||
int | f1 | ||
) | [protected, virtual] |
Reimplemented in Pane.
Definition at line 2336 of file View.cpp.
References getBackground(), getForeground(), m_centreFrame, m_layerStack, and m_zoomLevel.
Referenced by Pane::render(), and toNewImage().
void View::setPaintFont | ( | QPainter & | paint | ) | [protected, virtual] |
Definition at line 1654 of file View.cpp.
Referenced by Pane::paintEvent(), and paintEvent().
int View::getModelsSampleRate | ( | ) | const [protected] |
!! Just go for the first, for now. If we were supporting
!! nah, this wants to always return the sr of the main model!
Definition at line 1234 of file View.cpp.
References m_layerStack.
Referenced by Pane::drawEditingSelection(), drawSelections(), and Pane::paintEvent().
bool View::areLayersScrollable | ( | ) | const [protected] |
Definition at line 1346 of file View.cpp.
References m_layerStack.
View::LayerList View::getScrollableBackLayers | ( | bool | testChanged, |
bool & | changed | ||
) | const [protected] |
Definition at line 1356 of file View.cpp.
References m_lastScrollableBackLayers, and m_layerStack.
Referenced by modelChanged(), modelChangedWithin(), and paintEvent().
View::LayerList View::getNonScrollableFrontLayers | ( | bool | testChanged, |
bool & | changed | ||
) | const [protected] |
Definition at line 1392 of file View.cpp.
References m_lastNonScrollableBackLayers, and m_layerStack.
Referenced by paintEvent().
int View::getZoomConstraintBlockSize | ( | int | blockSize, |
ZoomConstraint::RoundingDirection | dir = ZoomConstraint::RoundNearest |
||
) | const [protected] |
Definition at line 1424 of file View.cpp.
References m_layerStack.
Referenced by Pane::horizontalThumbwheelMoved(), Overview::modelChangedWithin(), Overview::paintEvent(), Pane::updateHeadsUpDisplay(), Pane::wheelVertical(), zoom(), and Pane::zoomToRegion().
bool View::areLayerColoursSignificant | ( | ) | const [protected] |
Definition at line 1455 of file View.cpp.
References Layer::ColourHasMeaningfulValue, and m_layerStack.
Referenced by drawSelections().
bool View::hasTopLayerTimeXAxis | ( | ) | const [protected] |
Definition at line 1466 of file View.cpp.
References m_layerStack.
Referenced by drawSelections(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::paintEvent(), and Pane::updateContextHelp().
bool View::setCentreFrame | ( | int | f, |
bool | doEmit | ||
) | [protected] |
Definition at line 320 of file View.cpp.
References alignToReference(), centreFrameChanged(), m_centreFrame, m_followPan, m_followPlay, and m_zoomLevel.
void View::movePlayPointer | ( | int | f | ) | [protected] |
Definition at line 1037 of file View.cpp.
References getEndFrame(), getFrameForX(), ViewManager::getPlaySelectionMode(), ViewManager::getSelections(), getStartFrame(), getXForFrame(), ViewManager::isPlaying(), m_followPlay, m_followPlayIsDetached, m_manager, m_playPointerFrame, PlaybackIgnore, PlaybackScrollContinuous, PlaybackScrollPage, PlaybackScrollPageWithCentre, and setCentreFrame().
Referenced by setViewManager(), and viewManagerPlaybackFrameChanged().
void View::checkProgress | ( | void * | object | ) | [protected] |
!!
Definition at line 1532 of file View.cpp.
References m_lastError, m_progressBars, and m_showProgress.
Referenced by modelAlignmentCompletionChanged(), modelChanged(), modelChangedWithin(), and modelCompletionChanged().
int View::getProgressBarWidth | ( | ) | const [protected] |
Definition at line 1641 of file View.cpp.
References m_progressBars.
Referenced by Pane::drawDurationAndRate().
int View::m_centreFrame [protected] |
Definition at line 408 of file View.h.
Referenced by Pane::dragTopLayer(), Pane::drawCentreLine(), Pane::edgeScrollMaybe(), getCentreFrame(), getFrameForX(), Overview::mouseMoveEvent(), Pane::mousePressEvent(), Overview::paintEvent(), paintEvent(), render(), scroll(), setCentreFrame(), toXml(), and Pane::wheelHorizontalFine().
int View::m_zoomLevel [protected] |
Definition at line 409 of file View.h.
Referenced by getFrameForX(), getXForFrame(), getZoomLevel(), Overview::modelChangedWithin(), Overview::mouseMoveEvent(), Overview::paintEvent(), paintEvent(), render(), setCentreFrame(), setStartFrame(), setZoomLevel(), toXml(), Pane::wheelHorizontalFine(), Pane::wheelVertical(), zoom(), and Pane::zoomToRegion().
bool View::m_followPan [protected] |
Definition at line 410 of file View.h.
Referenced by getFollowGlobalPan(), getPropertyRangeAndValue(), globalCentreFrameChanged(), Overview::Overview(), setCentreFrame(), setFollowGlobalPan(), setViewManager(), and toXml().
bool View::m_followZoom [protected] |
Definition at line 411 of file View.h.
Referenced by getFollowGlobalZoom(), getPropertyRangeAndValue(), Overview::Overview(), Overview::paintEvent(), setFollowGlobalZoom(), setViewManager(), setZoomLevel(), toXml(), Pane::viewZoomLevelChanged(), and viewZoomLevelChanged().
PlaybackFollowMode View::m_followPlay [protected] |
Definition at line 412 of file View.h.
Referenced by Pane::edgeScrollMaybe(), getPlaybackFollow(), getPropertyRangeAndValue(), Overview::mouseMoveEvent(), Pane::mousePressEvent(), movePlayPointer(), paintEvent(), setCentreFrame(), setPlaybackFollow(), setViewManager(), and toXml().
bool View::m_followPlayIsDetached [protected] |
Definition at line 413 of file View.h.
Referenced by movePlayPointer().
int View::m_playPointerFrame [protected] |
Definition at line 414 of file View.h.
Referenced by Overview::modelReplaced(), movePlayPointer(), paintEvent(), and Overview::viewManagerPlaybackFrameChanged().
bool View::m_lightBackground [protected] |
bool View::m_showProgress [protected] |
Definition at line 416 of file View.h.
Referenced by checkProgress().
QPixmap* View::m_cache [protected] |
Definition at line 418 of file View.h.
Referenced by addLayer(), layerParametersChanged(), modelChanged(), modelChangedWithin(), modelReplaced(), overlayModeChanged(), paintEvent(), propertyContainerSelected(), removeLayer(), and selectionChanged().
int View::m_cacheCentreFrame [protected] |
Definition at line 419 of file View.h.
Referenced by paintEvent().
int View::m_cacheZoomLevel [protected] |
Definition at line 420 of file View.h.
Referenced by paintEvent().
bool View::m_selectionCached [protected] |
Definition at line 421 of file View.h.
Referenced by paintEvent(), and selectionChanged().
bool View::m_deleting [protected] |
Definition at line 423 of file View.h.
Referenced by removeLayer(), and ~View().
LayerList View::m_layerStack [protected] |
Definition at line 425 of file View.h.
Referenced by addLayer(), areLayerColoursSignificant(), areLayersScrollable(), Pane::drawCentreLine(), Pane::drawLayerNames(), Pane::drawVerticalScale(), getAligningModel(), getInteractionLayer(), getLayer(), getLayerCount(), getModelsEndFrame(), getModelsSampleRate(), getModelsStartFrame(), getNonScrollableFrontLayers(), getScrollableBackLayers(), getSelectedLayer(), getTextLabelHeight(), Pane::getTopFlexiNoteLayer(), getTopLayer(), getValueExtents(), getZoomConstraintBlockSize(), hasLightBackground(), hasTopLayerTimeXAxis(), Pane::horizontalThumbwheelMoved(), Overview::modelChangedWithin(), Pane::paintEvent(), paintEvent(), propertyContainerSelected(), removeLayer(), render(), Pane::updateHeadsUpDisplay(), and Pane::zoomToRegion().
LayerList View::m_fixedOrderLayers [protected] |
Definition at line 426 of file View.h.
Referenced by addLayer(), getFixedOrderLayer(), getPropertyContainer(), getPropertyContainerCount(), removeLayer(), and toXml().
bool View::m_haveSelectedLayer [protected] |
Definition at line 427 of file View.h.
Referenced by getSelectedLayer(), and propertyContainerSelected().
QString View::m_lastError [protected] |
Definition at line 429 of file View.h.
Referenced by checkProgress().
LayerList View::m_lastScrollableBackLayers [mutable, protected] |
Definition at line 432 of file View.h.
Referenced by getScrollableBackLayers().
LayerList View::m_lastNonScrollableBackLayers [mutable, protected] |
Definition at line 433 of file View.h.
Referenced by getNonScrollableFrontLayers().
ProgressMap View::m_progressBars [protected] |
Definition at line 442 of file View.h.
Referenced by addLayer(), cancelClicked(), checkProgress(), getProgressBarWidth(), progressCheckStalledTimerElapsed(), and removeLayer().
ViewManager* View::m_manager [protected] |
Definition at line 444 of file View.h.
Referenced by alignFromReference(), alignToReference(), Pane::dragExtendSelection(), Pane::dragTopLayer(), Pane::drawCentreLine(), Pane::drawDurationAndRate(), Pane::drawLayerNames(), drawSelections(), Pane::drawVerticalScale(), Pane::edgeScrollMaybe(), Pane::editSelectionEnd(), Pane::editSelectionStart(), Pane::editVerticalPannerExtents(), getAlignedPlaybackFrame(), getAligningModel(), Pane::getImageSize(), Pane::getSelectionAt(), getViewManager(), hasLightBackground(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), movePlayPointer(), Pane::paintEvent(), paintEvent(), Pane::playbackScheduleTimerElapsed(), Pane::render(), setViewManager(), Pane::shouldIlluminateLocalFeatures(), Pane::shouldIlluminateLocalSelection(), shouldShowFeatureLabels(), Pane::toNewImage(), Pane::toolModeChanged(), Pane::updateContextHelp(), Pane::updateHeadsUpDisplay(), Pane::updateVerticalPanner(), viewManagerPlaybackFrameChanged(), and Pane::viewZoomLevelChanged().
ViewPropertyContainer* View::m_propertyContainer [protected] |
Definition at line 445 of file View.h.
Referenced by getPropertyContainer(), propertyContainerSelected(), setFollowGlobalPan(), setFollowGlobalZoom(), setPlaybackFollow(), and ~View().