svgui  1.9
Overview Class Reference

#include <Overview.h>

Inheritance diagram for Overview:
Collaboration diagram for Overview:

List of all members.

Public Types

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

Public Slots

virtual void modelChangedWithin (int startFrame, int endFrame)
virtual void modelReplaced ()
virtual void globalCentreFrameChanged (int)
virtual void viewCentreFrameChanged (View *, int)
virtual void viewZoomLevelChanged (View *, int, bool)
virtual void viewManagerPlaybackFrameChanged (int)
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 ()
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

 Overview (QWidget *parent=0)
void registerView (View *view)
void unregisterView (View *view)
virtual QString getPropertyContainerIconName () const
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 LayergetLayer (int n)
 Return the nth layer, counted in stacking order.
virtual LayergetFixedOrderLayer (int n)
 Return the nth layer, counted in the order they were added.
virtual LayergetInteractionLayer ()
 Return the layer currently active for tool interaction.
virtual const LayergetInteractionLayer () const
virtual LayergetSelectedLayer ()
 Return the layer most recently selected by the user.
virtual const LayergetSelectedLayer () const
virtual LayergetTopLayer ()
 Return the "top" layer in the view, whether visible or dormant.
virtual void setViewManager (ViewManager *m)
virtual void setViewManager (ViewManager *m, int initialFrame)
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 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 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::set< View * > ViewSet
typedef std::vector< Layer * > LayerList
typedef std::map< Layer
*, ProgressBarRec
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 (int f, bool doEmit)
virtual void drawSelections (QPainter &)
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
void movePlayPointer (int f)
void checkProgress (void *object)
int getProgressBarWidth () const

Protected Attributes

QPoint m_clickPos
QPoint m_mousePos
bool m_clickedInRange
int m_dragCentreFrame
QTime m_modelTestTime
ViewSet m_views
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
ViewManagerm_manager
ViewPropertyContainerm_propertyContainer

Detailed Description

Definition at line 31 of file Overview.h.


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 270 of file View.h.

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

Definition at line 317 of file View.h.

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

Definition at line 380 of file View.h.

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

Definition at line 441 of file View.h.


Member Enumeration Documentation

enum View::TextStyle [inherited]
Enumerator:
BoxedText 
OutlinedText 
OutlinedItalicText 

Definition at line 245 of file View.h.


Constructor & Destructor Documentation

Overview::Overview ( QWidget *  parent = 0)

Member Function Documentation

void Overview::registerView ( View view)

Definition at line 80 of file Overview.cpp.

References m_views.

void Overview::unregisterView ( View view)

Definition at line 87 of file Overview.cpp.

References m_views.

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

Implements View.

Definition at line 41 of file Overview.h.

void Overview::modelChangedWithin ( int  startFrame,
int  endFrame 
) [virtual, slot]
void Overview::modelReplaced ( ) [virtual, slot]

Reimplemented from View.

Definition at line 73 of file Overview.cpp.

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

void Overview::globalCentreFrameChanged ( int  ) [virtual, slot]

Reimplemented from View.

Definition at line 94 of file Overview.cpp.

void Overview::viewCentreFrameChanged ( View v,
int   
) [virtual, slot]

Reimplemented from View.

Definition at line 107 of file Overview.cpp.

References m_views.

void Overview::viewZoomLevelChanged ( View v,
int  ,
bool   
) [virtual, slot]

Reimplemented from View.

Definition at line 122 of file Overview.cpp.

References m_views.

void Overview::viewManagerPlaybackFrameChanged ( int  f) [virtual, slot]

Reimplemented from View.

Definition at line 131 of file Overview.cpp.

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

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

Definition at line 254 of file Overview.cpp.

References m_clickedInRange, and mouseMoveEvent().

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

Definition at line 313 of file Overview.cpp.

References View::contextHelpChanged().

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

Definition at line 319 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.

void View::setStartFrame ( int  f) [inherited]

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 View::m_zoomLevel, and View::setCentreFrame().

Referenced by Pane::zoomToRegion().

int 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 81 of file View.h.

References View::m_centreFrame.

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

bool View::setCentreFrame ( int  f,
bool  doEmit 
) [protected, inherited]
int View::getXForFrame ( int  frame) const [inherited]

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

Definition at line 357 of file View.cpp.

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

Referenced by Pane::dragTopLayer(), Pane::drawEditingSelection(), Pane::drawModelTimeExtents(), View::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(), View::movePlayPointer(), TextLayer::paint(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), NoteLayer::paint(), TimeValueLayer::paint(), FlexiNoteLayer::paint(), ImageLayer::paint(), SliceLayer::paint(), RegionLayer::paint(), Colour3DPlotLayer::paint(), SpectrogramLayer::paint(), paintEvent(), View::paintEvent(), Layer::paintMeasurementRect(), TextLayer::snapToFeatureFrame(), TimeInstantLayer::snapToFeatureFrame(), TimeRulerLayer::snapToFeatureFrame(), NoteLayer::snapToFeatureFrame(), ImageLayer::snapToFeatureFrame(), FlexiNoteLayer::snapToFeatureFrame(), TimeValueLayer::snapToFeatureFrame(), RegionLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), and viewManagerPlaybackFrameChanged().

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

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

Definition at line 363 of file View.cpp.

References View::m_centreFrame, and View::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(), View::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(), View::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(), View::getStartFrame(), SpectrogramLayer::getXBinRange(), Layer::getXScaleValue(), mouseDoubleClickEvent(), Pane::mouseDoubleClickEvent(), mousePressEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), View::movePlayPointer(), TextLayer::paint(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), NoteLayer::paint(), TimeValueLayer::paint(), SliceLayer::paint(), ImageLayer::paint(), FlexiNoteLayer::paint(), RegionLayer::paint(), Colour3DPlotLayer::paint(), SpectrogramLayer::paint(), SpectrogramLayer::paintCrosshairs(), Colour3DPlotLayer::paintDense(), paintEvent(), Pane::selectionIsBeingEdited(), Layer::setMeasureRectFromPixrect(), FlexiNoteLayer::splitEnd(), 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 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 [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 411 of file View.cpp.

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

void View::setZoomLevel ( int  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 452 of file View.cpp.

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

Referenced by Pane::horizontalThumbwheelMoved(), View::setViewManager(), View::viewZoomLevelChanged(), Pane::wheelVertical(), View::zoom(), and Pane::zoomToRegion().

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

Zoom in or out.

Definition at line 1475 of file View.cpp.

References View::getZoomConstraintBlockSize(), View::m_zoomLevel, and View::setZoomLevel().

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

Scroll left or right by a smallish or largish amount.

Definition at line 1493 of file View.cpp.

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

void View::removeLayer ( Layer v) [virtual, inherited]
virtual Layer* View::getFixedOrderLayer ( int  n) [inline, virtual, inherited]

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 View::m_fixedOrderLayers.

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

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 View::getLayer(), View::getLayerCount(), View::getSelectedLayer(), Layer::isLayerDormant(), and View::m_layerStack.

Referenced by Pane::dragExtendSelection(), Pane::editSelectionEnd(), View::getInteractionLayer(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::shouldIlluminateLocalFeatures(), Pane::shouldIlluminateLocalSelection(), and Pane::updateContextHelp().

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

Definition at line 670 of file View.cpp.

References View::getInteractionLayer().

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

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 View::getLayer(), View::getLayerCount(), View::m_haveSelectedLayer, and View::m_layerStack.

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

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

Definition at line 686 of file View.cpp.

References View::getSelectedLayer().

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

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 View::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,
int  initialFrame 
) [virtual, inherited]

Definition at line 766 of file View.cpp.

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

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

Definition at line 236 of file View.h.

References View::m_followPan.

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

Definition at line 239 of file View.h.

References View::m_followZoom.

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

Definition at line 257 of file View.h.

References View::m_manager, and ViewManager::shouldShowFeatureLabels().

Referenced by TimeValueLayer::paint().

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

Reimplemented in Pane.

Definition at line 263 of file View.h.

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

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

Definition at line 268 of file View.h.

References View::m_followPlay.

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

Definition at line 82 of file View.cpp.

Referenced by ViewPropertyContainer::getProperties().

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

Definition at line 92 of file View.cpp.

Referenced by ViewPropertyContainer::getPropertyLabel().

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

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, inherited]
QString View::getPropertyValueLabel ( const PropertyName name,
int  value 
) const [virtual, inherited]

Definition at line 133 of file View.cpp.

Referenced by ViewPropertyContainer::getPropertyValueLabel().

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

Definition at line 284 of file View.h.

Referenced by ViewPropertyContainer::getPropertyContainerName().

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

Definition at line 165 of file View.cpp.

References View::m_fixedOrderLayers.

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

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

Definition at line 178 of file View.cpp.

References View::m_fixedOrderLayers, and View::m_propertyContainer.

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

Reimplemented in Pane.

Definition at line 2450 of file View.cpp.

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

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

Reimplemented in Pane.

Definition at line 2441 of file View.cpp.

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

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

Reimplemented in Pane.

Definition at line 2478 of file View.cpp.

References View::getZoomLevel().

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

Reimplemented in Pane.

Definition at line 2469 of file View.cpp.

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

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

Definition at line 222 of file View.cpp.

References View::m_layerStack.

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

bool View::getValueExtents ( QString  unit,
float &  min,
float &  max,
bool &  log 
) const [virtual, inherited]
void View::toXml ( QTextStream &  stream,
QString  indent = "",
QString  extraAttributes = "" 
) const [virtual, inherited]
int View::getFirstVisibleFrame ( ) const [virtual, inherited]

Reimplemented in Pane.

Definition at line 1172 of file View.cpp.

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

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

Definition at line 1181 of file View.cpp.

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

Definition at line 1251 of file View.cpp.

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

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

Referenced by View::addLayer().

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

Referenced by View::removeLayer().

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

Referenced by View::layerNameChanged().

void View::propertyContainerSelected ( PropertyContainer *  pc) [signal, inherited]
void View::propertyContainerSelected ( View client,
PropertyContainer *  pc 
) [virtual, slot, inherited]
void View::propertyChanged ( PropertyContainer::PropertyName  ) [signal, inherited]
void View::layerModelChanged ( ) [signal, inherited]

Referenced by View::modelChanged().

void View::centreFrameChanged ( int  frame,
bool  globalScroll,
PlaybackFollowMode  followMode 
) [signal, inherited]
void View::zoomLevelChanged ( int  ,
bool   
) [signal, inherited]
void View::modelChanged ( ) [virtual, slot, inherited]
void View::modelCompletionChanged ( ) [virtual, slot, inherited]

Definition at line 929 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 938 of file View.cpp.

References View::checkProgress().

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

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

Reimplemented in Pane.

Definition at line 959 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 977 of file View.cpp.

References View::propertyContainerPropertyRangeChanged().

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

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

Definition at line 984 of file View.cpp.

Referenced by View::addLayer().

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

Definition at line 991 of file View.cpp.

References View::propertyContainerNameChanged().

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

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

Definition at line 1161 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 282 of file View.cpp.

Referenced by View::setViewManager().

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

Definition at line 288 of file View.cpp.

References View::m_cache.

Referenced by View::setViewManager().

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

Reimplemented in Pane.

Definition at line 296 of file View.cpp.

Referenced by View::setViewManager().

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

Definition at line 1513 of file View.cpp.

References Layer::getModel(), and View::m_progressBars.

Referenced by View::addLayer().

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

Definition at line 1622 of file View.cpp.

References View::m_progressBars.

Referenced by View::addLayer().

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

Reimplemented in Pane.

Definition at line 2336 of file View.cpp.

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

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

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

Definition at line 1654 of file View.cpp.

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

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

!! 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 View::m_layerStack.

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

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

Definition at line 1346 of file View.cpp.

References View::m_layerStack.

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

Definition at line 1392 of file View.cpp.

References View::m_lastNonScrollableBackLayers, and View::m_layerStack.

Referenced by View::paintEvent().

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

Definition at line 1455 of file View.cpp.

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

Referenced by View::drawSelections().

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

Definition at line 1641 of file View.cpp.

References View::m_progressBars.

Referenced by Pane::drawDurationAndRate().


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.

int 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 modelChangedWithin(), and Overview().

bool View::m_followPlayIsDetached [protected, inherited]

Definition at line 413 of file View.h.

Referenced by View::movePlayPointer().

int View::m_playPointerFrame [protected, inherited]
bool View::m_lightBackground [protected, inherited]

Definition at line 415 of file View.h.

bool View::m_showProgress [protected, inherited]

Definition at line 416 of file View.h.

Referenced by View::checkProgress().

int View::m_cacheCentreFrame [protected, inherited]

Definition at line 419 of file View.h.

Referenced by View::paintEvent().

int View::m_cacheZoomLevel [protected, inherited]

Definition at line 420 of file View.h.

Referenced by View::paintEvent().

bool View::m_selectionCached [protected, inherited]

Definition at line 421 of file View.h.

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

bool View::m_deleting [protected, inherited]

Definition at line 423 of file View.h.

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

bool View::m_haveSelectedLayer [protected, inherited]

Definition at line 427 of file View.h.

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

QString View::m_lastError [protected, inherited]

Definition at line 429 of file View.h.

Referenced by View::checkProgress().

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

Definition at line 432 of file View.h.

Referenced by View::getScrollableBackLayers().

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

Definition at line 433 of file View.h.

Referenced by View::getNonScrollableFrontLayers().


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