comparison view/View.h @ 1475:84c4ddb38415 by-id

Further layer updates
author Chris Cannam
date Tue, 02 Jul 2019 15:29:17 +0100
parents 8d5bf4ab98ef
children e540aa5d89cd
comparison
equal deleted inserted replaced
1474:36ad3cdabf55 1475:84c4ddb38415
24 #include "base/ZoomConstraint.h" 24 #include "base/ZoomConstraint.h"
25 #include "base/PropertyContainer.h" 25 #include "base/PropertyContainer.h"
26 #include "ViewManager.h" 26 #include "ViewManager.h"
27 #include "base/XmlExportable.h" 27 #include "base/XmlExportable.h"
28 #include "base/BaseTypes.h" 28 #include "base/BaseTypes.h"
29
30 #include "data/model/Model.h"
29 31
30 // #define DEBUG_VIEW_WIDGET_PAINT 1 32 // #define DEBUG_VIEW_WIDGET_PAINT 1
31 33
32 class Layer; 34 class Layer;
33 class ViewPropertyContainer; 35 class ViewPropertyContainer;
379 double scaleSize(double size) const override; 381 double scaleSize(double size) const override;
380 int scalePixelSize(int size) const override; 382 int scalePixelSize(int size) const override;
381 double scalePenWidth(double width) const override; 383 double scalePenWidth(double width) const override;
382 QPen scalePen(QPen pen) const override; 384 QPen scalePen(QPen pen) const override;
383 385
384 typedef std::set<Model *> ModelSet; 386 typedef std::set<ModelId> ModelSet;
385 ModelSet getModels(); 387 ModelSet getModels();
386 388
387 //!!! 389 //!!!
388 Model *getAligningModel() const; 390 ModelId getAligningModel() const;
389 sv_frame_t alignFromReference(sv_frame_t) const; 391 sv_frame_t alignFromReference(sv_frame_t) const;
390 sv_frame_t alignToReference(sv_frame_t) const; 392 sv_frame_t alignToReference(sv_frame_t) const;
391 sv_frame_t getAlignedPlaybackFrame() const; 393 sv_frame_t getAlignedPlaybackFrame() const;
392 394
393 void updatePaintRect(QRect r) override { update(r); } 395 void updatePaintRect(QRect r) override { update(r); }