comparison base/Selection.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 935a2419a77c
children 39ae3dee27b9
comparison
equal deleted inserted replaced
45:b11edc8b8ea0 46:5364a9d338a2
10 #ifndef _SELECTION_H_ 10 #ifndef _SELECTION_H_
11 #define _SELECTION_H_ 11 #define _SELECTION_H_
12 12
13 #include <cstddef> 13 #include <cstddef>
14 #include <set> 14 #include <set>
15
16 #include "XmlExportable.h"
15 17
16 class Selection 18 class Selection
17 { 19 {
18 public: 20 public:
19 Selection(); 21 Selection();
33 protected: 35 protected:
34 size_t m_startFrame; 36 size_t m_startFrame;
35 size_t m_endFrame; 37 size_t m_endFrame;
36 }; 38 };
37 39
38 class MultiSelection 40 class MultiSelection : public XmlExportable
39 { 41 {
40 public: 42 public:
41 MultiSelection(); 43 MultiSelection();
42 virtual ~MultiSelection(); 44 virtual ~MultiSelection();
43 45
55 * selected area, return the next selection after the given frame. 57 * selected area, return the next selection after the given frame.
56 * Return the empty selection if no appropriate selection is found. 58 * Return the empty selection if no appropriate selection is found.
57 */ 59 */
58 Selection getContainingSelection(size_t frame, bool defaultToFollowing) const; 60 Selection getContainingSelection(size_t frame, bool defaultToFollowing) const;
59 61
62 virtual QString toXmlString(QString indent = "",
63 QString extraAttributes = "") const;
64
60 protected: 65 protected:
61 SelectionList m_selections; 66 SelectionList m_selections;
62 }; 67 };
63 68
64 69