Mercurial > hg > svcore
diff base/View.h @ 9:73d85d19919f
* Add play-selection and looping modes. Looping seems to work OK, but
the plain play-selection is miscalculating current frame number to
feed back to the GUI.
* Cache selection rectanges wherever possible in View::paintEvent.
author | Chris Cannam |
---|---|
date | Tue, 24 Jan 2006 16:20:58 +0000 |
parents | 214054a0d8b8 |
children | ec6886f0e673 |
line wrap: on
line diff
--- a/base/View.h Mon Jan 23 17:02:57 2006 +0000 +++ b/base/View.h Tue Jan 24 16:20:58 2006 +0000 @@ -185,11 +185,13 @@ virtual void propertyContainerSelected(PropertyContainer *pc); + virtual void selectionChanged(); virtual void toolModeChanged(); protected: View(QWidget *, bool showProgress); virtual void paintEvent(QPaintEvent *e); + virtual void drawSelections(QPainter &); typedef std::vector<Layer *> LayerList; @@ -220,6 +222,7 @@ QPixmap *m_cache; size_t m_cacheCentreFrame; int m_cacheZoomLevel; + bool m_selectionCached; bool m_deleting;