comparison base/View.h @ 46:5364a9d338a2

* Add Insert Instant function in main window * Ensure selections and window geometry are saved in session file * Add wait cursor on session file save * Various improvements to display of texts in pane (clearer readability) * Use commands for setting properties on layers and panes (still need to batch up multiple sets on the same property) * Fix failure of spectrogram to refresh when initial part became visible * Some fixes & paint optimisations in View &c * Make curve mode for time value layers work properly when resolution == 1 * Some vague improvements for time value layer vertical scale
author Chris Cannam
date Thu, 16 Mar 2006 18:46:00 +0000
parents b11edc8b8ea0
children 39ae3dee27b9
comparison
equal deleted inserted replaced
45:b11edc8b8ea0 46:5364a9d338a2
168 enum TextStyle { 168 enum TextStyle {
169 BoxedText, 169 BoxedText,
170 OutlinedText 170 OutlinedText
171 }; 171 };
172 172
173 virtual void drawVisibleText(int x, int y, QString text, TextStyle style); 173 virtual void drawVisibleText(QPainter &p, int x, int y,
174 QString text, TextStyle style);
174 175
175 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const { 176 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const {
176 return false; 177 return false;
177 } 178 }
178 virtual bool shouldIlluminateLocalSelection(QPoint &, bool &, bool &) const { 179 virtual bool shouldIlluminateLocalSelection(QPoint &, bool &, bool &) const {