Mercurial > hg > svapp
comparison align/Aligner.h @ 761:6429a164b7e1 pitch-align
Schedule alignments with a small delay to avoid too much UI unresponsiveness. Also overhaul error reporting to use signals throughout.
author | Chris Cannam |
---|---|
date | Wed, 06 May 2020 11:45:27 +0100 |
parents | 31289e8592c7 |
children | a316cb6fed81 |
comparison
equal
deleted
inserted
replaced
757:f32df46d0c84 | 761:6429a164b7e1 |
---|---|
24 Q_OBJECT | 24 Q_OBJECT |
25 | 25 |
26 public: | 26 public: |
27 virtual ~Aligner() { } | 27 virtual ~Aligner() { } |
28 | 28 |
29 virtual bool begin(QString &error) = 0; | 29 public slots: |
30 virtual void begin() = 0; | |
30 | 31 |
31 signals: | 32 signals: |
32 /** | 33 /** |
33 * Emitted when alignment is successfully completed. The reference | 34 * Emitted when alignment is successfully completed. The reference |
34 * and toAlign models can be queried from the alignment model. | 35 * and toAlign models can be queried from the alignment model. |
35 */ | 36 */ |
36 void complete(ModelId alignmentModel); // an AlignmentModel | 37 void complete(ModelId alignmentModel); // an AlignmentModel |
38 | |
39 /** | |
40 * Emitted when alignment fails. | |
41 */ | |
42 void failed(ModelId toAlign, QString errorText); // the toAlign model | |
37 }; | 43 }; |
38 | 44 |
39 #endif | 45 #endif |