comparison framework/Document.h @ 520:c3648c667a0b 3.0-integration

Merge from branch "alignment-simple"
author Chris Cannam
date Thu, 21 Apr 2016 15:06:43 +0100
parents b23db4cef02f
children d122d3595a32
comparison
equal deleted inserted replaced
518:f7ec9e410108 520:c3648c667a0b
29 class Layer; 29 class Layer;
30 class View; 30 class View;
31 class WaveFileModel; 31 class WaveFileModel;
32 32
33 class AdditionalModelConverter; 33 class AdditionalModelConverter;
34
35 class Align;
34 36
35 /** 37 /**
36 * A Sonic Visualiser document consists of a set of data models, and 38 * A Sonic Visualiser document consists of a set of data models, and
37 * also the visualisation layers used to display them. Changes to the 39 * also the visualisation layers used to display them. Changes to the
38 * layers and their layout need to be stored and managed in much the 40 * layers and their layout need to be stored and managed in much the
299 void modelGenerationWarning(QString transformName, QString message); 301 void modelGenerationWarning(QString transformName, QString message);
300 void modelRegenerationFailed(QString layerName, QString transformName, 302 void modelRegenerationFailed(QString layerName, QString transformName,
301 QString message); 303 QString message);
302 void modelRegenerationWarning(QString layerName, QString transformName, 304 void modelRegenerationWarning(QString layerName, QString transformName,
303 QString message); 305 QString message);
304 void alignmentFailed(QString transformName, QString message); 306
307 void alignmentComplete(AlignmentModel *);
308 void alignmentFailed(QString message);
305 309
306 void activity(QString); 310 void activity(QString);
307 311
308 protected: 312 protected:
309 void releaseModel(Model *model); 313 void releaseModel(Model *model);
405 409
406 QString getUniqueLayerName(QString candidate); 410 QString getUniqueLayerName(QString candidate);
407 void writeBackwardCompatibleDerivation(QTextStream &, QString, Model *, 411 void writeBackwardCompatibleDerivation(QTextStream &, QString, Model *,
408 const ModelRecord &) const; 412 const ModelRecord &) const;
409 413
410 static TransformId getAlignmentTransformName();
411
412 void toXml(QTextStream &, QString, QString, bool asTemplate) const; 414 void toXml(QTextStream &, QString, QString, bool asTemplate) const;
413 void writePlaceholderMainModel(QTextStream &, QString) const; 415 void writePlaceholderMainModel(QTextStream &, QString) const;
414 416
415 std::vector<Layer *> createLayersForDerivedModels(std::vector<Model *>, 417 std::vector<Layer *> createLayersForDerivedModels(std::vector<Model *>,
416 QStringList names); 418 QStringList names);
421 */ 423 */
422 typedef std::set<Layer *> LayerSet; 424 typedef std::set<Layer *> LayerSet;
423 LayerSet m_layers; 425 LayerSet m_layers;
424 426
425 bool m_autoAlignment; 427 bool m_autoAlignment;
428 Align *m_align;
426 }; 429 };
427 430
428 #endif 431 #endif