Mercurial > hg > svcore
annotate base/Clipboard.h @ 1671:82d03c9661f9 single-point
Rework isReady()/getCompletion() on models. Previously the new overhauled models were implementing getCompletion() but inheriting a version of isReady() (from the Model base) that didn't call it, referring only to isOK(). So they were reporting completion as soon as they had begun. Instead hoist getCompletion() to abstract base and call it from Model::isReady().
author | Chris Cannam |
---|---|
date | Wed, 27 Mar 2019 13:15:16 +0000 |
parents | 24dc8cb42755 |
children | d7ae9bfb015e |
rev | line source |
---|---|
Chris@74 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@74 | 2 |
Chris@74 | 3 /* |
Chris@74 | 4 Sonic Visualiser |
Chris@74 | 5 An audio file viewer and annotation editor. |
Chris@74 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@74 | 7 This file copyright 2006 Chris Cannam. |
Chris@74 | 8 |
Chris@74 | 9 This program is free software; you can redistribute it and/or |
Chris@74 | 10 modify it under the terms of the GNU General Public License as |
Chris@74 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@74 | 12 License, or (at your option) any later version. See the file |
Chris@74 | 13 COPYING included with this distribution for more information. |
Chris@74 | 14 */ |
Chris@74 | 15 |
Chris@1581 | 16 #ifndef SV_CLIPBOARD_H |
Chris@1581 | 17 #define SV_CLIPBOARD_H |
Chris@74 | 18 |
Chris@74 | 19 #include <vector> |
Chris@74 | 20 |
Chris@1615 | 21 #include "Event.h" |
Chris@1044 | 22 |
Chris@74 | 23 class Clipboard |
Chris@74 | 24 { |
Chris@74 | 25 public: |
Chris@74 | 26 Clipboard(); |
Chris@74 | 27 ~Clipboard(); |
Chris@74 | 28 |
Chris@74 | 29 void clear(); |
Chris@74 | 30 bool empty() const; |
Chris@1615 | 31 const EventVector &getPoints() const; |
Chris@1615 | 32 void setPoints(const EventVector &points); |
Chris@1615 | 33 void addPoint(const Event &point); |
Chris@74 | 34 |
Chris@370 | 35 bool haveReferenceFrames() const; |
Chris@369 | 36 bool referenceFramesDiffer() const; |
Chris@340 | 37 |
Chris@74 | 38 protected: |
Chris@1615 | 39 EventVector m_points; |
Chris@74 | 40 }; |
Chris@74 | 41 |
Chris@74 | 42 #endif |