Mercurial > hg > svcore
annotate base/ProgressPrinter.h @ 875:3e6ed8a8577b tonioni
Use a sparse time-value model only for outputs with fixed bin count of 1, not for those with unknown bin count.
(Precursor to using more than one model for outputs with unknown bin count)
author | Chris Cannam |
---|---|
date | Tue, 28 Jan 2014 18:52:22 +0000 |
parents | 1aefb666ecfc |
children | c01cbe41aeb5 |
rev | line source |
---|---|
Chris@392 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@392 | 2 |
Chris@392 | 3 /* |
Chris@392 | 4 Sonic Visualiser |
Chris@392 | 5 An audio file viewer and annotation editor. |
Chris@392 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@392 | 7 This file copyright 2007 QMUL. |
Chris@392 | 8 |
Chris@392 | 9 This program is free software; you can redistribute it and/or |
Chris@392 | 10 modify it under the terms of the GNU General Public License as |
Chris@392 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@392 | 12 License, or (at your option) any later version. See the file |
Chris@392 | 13 COPYING included with this distribution for more information. |
Chris@392 | 14 */ |
Chris@392 | 15 |
Chris@392 | 16 #ifndef _PROGRESS_PRINTER_H_ |
Chris@392 | 17 #define _PROGRESS_PRINTER_H_ |
Chris@392 | 18 |
Chris@392 | 19 #include "ProgressReporter.h" |
Chris@392 | 20 |
Chris@392 | 21 class ProgressPrinter : public ProgressReporter |
Chris@392 | 22 { |
Chris@392 | 23 Q_OBJECT |
Chris@392 | 24 |
Chris@392 | 25 public: |
Chris@392 | 26 ProgressPrinter(QString message, QObject *parent = 0); |
Chris@392 | 27 virtual ~ProgressPrinter(); |
Chris@392 | 28 |
Chris@439 | 29 virtual bool isDefinite() const; |
Chris@439 | 30 virtual void setDefinite(bool definite); |
Chris@439 | 31 |
Chris@439 | 32 virtual bool wasCancelled() const { return false; } // no mechanism |
Chris@439 | 33 |
Chris@392 | 34 public slots: |
Chris@393 | 35 virtual void setMessage(QString); |
Chris@392 | 36 virtual void setProgress(int); |
Chris@515 | 37 virtual void done(); |
Chris@392 | 38 |
Chris@392 | 39 protected: |
Chris@392 | 40 QString m_prefix; |
Chris@392 | 41 int m_lastProgress; |
Chris@439 | 42 bool m_definite; |
Chris@392 | 43 }; |
Chris@392 | 44 |
Chris@392 | 45 #endif |