Mercurial > hg > svcore
annotate data/fileio/ProgressPrinter.h @ 377:166c22eff678
* Ensure waveforms are strictly correct even when using a non-power-of-two
non-power-of-sqrt-two block size with cacheing off and painting only small
areas at a time
author | Chris Cannam |
---|---|
date | Thu, 07 Feb 2008 15:25:05 +0000 |
parents | b92513201610 |
children |
rev | line source |
---|---|
Chris@357 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@357 | 2 |
Chris@357 | 3 /* |
Chris@357 | 4 Sonic Visualiser |
Chris@357 | 5 An audio file viewer and annotation editor. |
Chris@357 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@357 | 7 This file copyright 2007 QMUL. |
Chris@357 | 8 |
Chris@357 | 9 This program is free software; you can redistribute it and/or |
Chris@357 | 10 modify it under the terms of the GNU General Public License as |
Chris@357 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@357 | 12 License, or (at your option) any later version. See the file |
Chris@357 | 13 COPYING included with this distribution for more information. |
Chris@357 | 14 */ |
Chris@357 | 15 |
Chris@357 | 16 #ifndef _PROGRESS_PRINTER_H_ |
Chris@357 | 17 #define _PROGRESS_PRINTER_H_ |
Chris@357 | 18 |
Chris@357 | 19 #include <QObject> |
Chris@357 | 20 #include <QString> |
Chris@357 | 21 |
Chris@357 | 22 class ProgressPrinter : public QObject |
Chris@357 | 23 { |
Chris@357 | 24 Q_OBJECT |
Chris@357 | 25 |
Chris@357 | 26 public: |
Chris@357 | 27 ProgressPrinter(QString prefix = "", QObject *parent = 0); |
Chris@357 | 28 virtual ~ProgressPrinter(); |
Chris@357 | 29 |
Chris@357 | 30 public slots: |
Chris@357 | 31 void progress(int); |
Chris@357 | 32 |
Chris@357 | 33 protected: |
Chris@357 | 34 QString m_prefix; |
Chris@357 | 35 int m_lastProgress; |
Chris@357 | 36 }; |
Chris@357 | 37 |
Chris@357 | 38 #endif |