Mercurial > hg > svgui
diff widgets/Pane.h @ 44:ad214997dddb
* Refactor Layer classes so as no longer to store a single View pointer;
instead they need to be able to draw themselves on any View on demand.
Layers with caches (e.g. spectrogram) will need to be further refactored
so as to maintain a per-View cache
* Begin refactoring MainWindow by pulling out the document stuff (set of
layers, models etc) into a Document class. Not yet in use.
This revision is fairly unstable.
author | Chris Cannam |
---|---|
date | Thu, 02 Mar 2006 16:58:49 +0000 |
parents | 1bdf285c4eac |
children | 01ab51f72e84 |
line wrap: on
line diff
--- a/widgets/Pane.h Wed Mar 01 18:13:01 2006 +0000 +++ b/widgets/Pane.h Thu Mar 02 16:58:49 2006 +0000 @@ -30,10 +30,11 @@ Pane(QWidget *parent = 0); virtual QString getPropertyContainerIconName() const { return "pane"; } - virtual bool shouldIlluminateLocalFeatures(const Layer *layer, QPoint &pos); + virtual bool shouldIlluminateLocalFeatures(const Layer *layer, + QPoint &pos) const; virtual bool shouldIlluminateLocalSelection(QPoint &pos, bool &closeToLeft, - bool &closeToRight); + bool &closeToRight) const; void setCentreLineVisible(bool visible); bool getCentreLineVisible() const { return m_centreLineVisible; } @@ -56,7 +57,7 @@ virtual void leaveEvent(QEvent *e); virtual void wheelEvent(QWheelEvent *e); - Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight); + Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight) const; bool editSelectionStart(QMouseEvent *e); bool editSelectionDrag(QMouseEvent *e);