comparison base/Selection.h @ 8:214054a0d8b8

* Hook up tool selection buttons to switch the cursor mode * Implement simple and multi-selection, snapping to the resolution of the current layer. You can't actually do anything with a selection yet
author Chris Cannam
date Mon, 23 Jan 2006 17:02:57 +0000
parents
children 73d85d19919f
comparison
equal deleted inserted replaced
7:49a95b174050 8:214054a0d8b8
1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 A waveform viewer and audio annotation editor.
5 Chris Cannam, Queen Mary University of London, 2005-2006
6
7 This is experimental software. Not for distribution.
8 */
9
10 #ifndef _SELECTION_H_
11 #define _SELECTION_H_
12
13 #include <cstddef>
14
15 class Selection
16 {
17 public:
18 Selection();
19 Selection(size_t startFrame, size_t endFrame);
20 Selection(const Selection &);
21 Selection &operator=(const Selection &);
22 virtual ~Selection();
23
24 bool isEmpty() const;
25 size_t getStartFrame() const;
26 size_t getEndFrame() const;
27
28 bool operator<(const Selection &) const;
29 bool operator==(const Selection &) const;
30
31 protected:
32 size_t m_startFrame;
33 size_t m_endFrame;
34 };
35
36 #endif