comparison 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
comparison
equal deleted inserted replaced
43:78515b1e29eb 44:ad214997dddb
28 28
29 public: 29 public:
30 Pane(QWidget *parent = 0); 30 Pane(QWidget *parent = 0);
31 virtual QString getPropertyContainerIconName() const { return "pane"; } 31 virtual QString getPropertyContainerIconName() const { return "pane"; }
32 32
33 virtual bool shouldIlluminateLocalFeatures(const Layer *layer, QPoint &pos); 33 virtual bool shouldIlluminateLocalFeatures(const Layer *layer,
34 QPoint &pos) const;
34 virtual bool shouldIlluminateLocalSelection(QPoint &pos, 35 virtual bool shouldIlluminateLocalSelection(QPoint &pos,
35 bool &closeToLeft, 36 bool &closeToLeft,
36 bool &closeToRight); 37 bool &closeToRight) const;
37 38
38 void setCentreLineVisible(bool visible); 39 void setCentreLineVisible(bool visible);
39 bool getCentreLineVisible() const { return m_centreLineVisible; } 40 bool getCentreLineVisible() const { return m_centreLineVisible; }
40 41
41 virtual QString toXmlString(QString indent = "", 42 virtual QString toXmlString(QString indent = "",
54 virtual void mouseMoveEvent(QMouseEvent *e); 55 virtual void mouseMoveEvent(QMouseEvent *e);
55 virtual void mouseDoubleClickEvent(QMouseEvent *e); 56 virtual void mouseDoubleClickEvent(QMouseEvent *e);
56 virtual void leaveEvent(QEvent *e); 57 virtual void leaveEvent(QEvent *e);
57 virtual void wheelEvent(QWheelEvent *e); 58 virtual void wheelEvent(QWheelEvent *e);
58 59
59 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight); 60 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight) const;
60 61
61 bool editSelectionStart(QMouseEvent *e); 62 bool editSelectionStart(QMouseEvent *e);
62 bool editSelectionDrag(QMouseEvent *e); 63 bool editSelectionDrag(QMouseEvent *e);
63 bool editSelectionEnd(QMouseEvent *e); 64 bool editSelectionEnd(QMouseEvent *e);
64 bool selectionIsBeingEdited() const; 65 bool selectionIsBeingEdited() const;