Mercurial > hg > svgui
comparison layer/TimeInstantLayer.h @ 374:64e84e5efb76 spectrogram-cache-rejig
* Merge from trunk
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 11:59:42 +0000 |
parents | c0b9eec70639 |
children |
comparison
equal
deleted
inserted
replaced
332:6440e280122e | 374:64e84e5efb76 |
---|---|
43 | 43 |
44 virtual void drawStart(View *v, QMouseEvent *); | 44 virtual void drawStart(View *v, QMouseEvent *); |
45 virtual void drawDrag(View *v, QMouseEvent *); | 45 virtual void drawDrag(View *v, QMouseEvent *); |
46 virtual void drawEnd(View *v, QMouseEvent *); | 46 virtual void drawEnd(View *v, QMouseEvent *); |
47 | 47 |
48 virtual void eraseStart(View *v, QMouseEvent *); | |
49 virtual void eraseDrag(View *v, QMouseEvent *); | |
50 virtual void eraseEnd(View *v, QMouseEvent *); | |
51 | |
48 virtual void editStart(View *v, QMouseEvent *); | 52 virtual void editStart(View *v, QMouseEvent *); |
49 virtual void editDrag(View *v, QMouseEvent *); | 53 virtual void editDrag(View *v, QMouseEvent *); |
50 virtual void editEnd(View *v, QMouseEvent *); | 54 virtual void editEnd(View *v, QMouseEvent *); |
51 | 55 |
52 virtual bool editOpen(View *, QMouseEvent *); | 56 virtual bool editOpen(View *, QMouseEvent *); |
53 | 57 |
54 virtual void moveSelection(Selection s, size_t newStartFrame); | 58 virtual void moveSelection(Selection s, size_t newStartFrame); |
55 virtual void resizeSelection(Selection s, Selection newSize); | 59 virtual void resizeSelection(Selection s, Selection newSize); |
56 virtual void deleteSelection(Selection s); | 60 virtual void deleteSelection(Selection s); |
57 | 61 |
58 virtual void copy(Selection s, Clipboard &to); | 62 virtual void copy(View *v, Selection s, Clipboard &to); |
59 virtual bool paste(const Clipboard &from, int frameOffset, | 63 virtual bool paste(View *v, const Clipboard &from, int frameOffset, |
60 bool interactive); | 64 bool interactive); |
61 | 65 |
62 virtual const Model *getModel() const { return m_model; } | 66 virtual const Model *getModel() const { return m_model; } |
63 void setModel(SparseOneDimensionalModel *model); | 67 void setModel(SparseOneDimensionalModel *model); |
64 | 68 |
99 protected: | 103 protected: |
100 SparseOneDimensionalModel::PointList getLocalPoints(View *v, int) const; | 104 SparseOneDimensionalModel::PointList getLocalPoints(View *v, int) const; |
101 | 105 |
102 virtual int getDefaultColourHint(bool dark, bool &impose); | 106 virtual int getDefaultColourHint(bool dark, bool &impose); |
103 | 107 |
108 bool clipboardAlignmentDiffers(View *v, const Clipboard &) const; | |
109 | |
104 SparseOneDimensionalModel *m_model; | 110 SparseOneDimensionalModel *m_model; |
105 bool m_editing; | 111 bool m_editing; |
106 SparseOneDimensionalModel::Point m_editingPoint; | 112 SparseOneDimensionalModel::Point m_editingPoint; |
107 SparseOneDimensionalModel::EditCommand *m_editingCommand; | 113 SparseOneDimensionalModel::EditCommand *m_editingCommand; |
108 PlotStyle m_plotStyle; | 114 PlotStyle m_plotStyle; |