Mercurial > hg > svgui
comparison view/View.h @ 1486:ac0a8addabcf
Merge from branch by-id
author | Chris Cannam |
---|---|
date | Wed, 17 Jul 2019 14:25:16 +0100 |
parents | 3943d0720167 |
children | c83504eb2649 |
comparison
equal
deleted
inserted
replaced
1468:de41a11cabc2 | 1486:ac0a8addabcf |
---|---|
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); } |
404 void propertyContainerSelected(PropertyContainer *pc); | 406 void propertyContainerSelected(PropertyContainer *pc); |
405 void propertyChanged(PropertyContainer::PropertyName); | 407 void propertyChanged(PropertyContainer::PropertyName); |
406 | 408 |
407 void layerModelChanged(); | 409 void layerModelChanged(); |
408 | 410 |
411 void cancelButtonPressed(Layer *); | |
412 | |
409 void centreFrameChanged(sv_frame_t frame, | 413 void centreFrameChanged(sv_frame_t frame, |
410 bool globalScroll, | 414 bool globalScroll, |
411 PlaybackFollowMode followMode); | 415 PlaybackFollowMode followMode); |
412 | 416 |
413 void zoomLevelChanged(ZoomLevel level, bool locked); | 417 void zoomLevelChanged(ZoomLevel level, bool locked); |
414 | 418 |
415 void contextHelpChanged(const QString &); | 419 void contextHelpChanged(const QString &); |
416 | 420 |
417 public slots: | 421 public slots: |
418 virtual void modelChanged(); | 422 virtual void modelChanged(ModelId); |
419 virtual void modelChangedWithin(sv_frame_t startFrame, sv_frame_t endFrame); | 423 virtual void modelChangedWithin(ModelId, sv_frame_t startFrame, sv_frame_t endFrame); |
420 virtual void modelCompletionChanged(); | 424 virtual void modelCompletionChanged(ModelId); |
421 virtual void modelAlignmentCompletionChanged(); | 425 virtual void modelAlignmentCompletionChanged(ModelId); |
422 virtual void modelReplaced(); | 426 virtual void modelReplaced(); |
423 virtual void layerParametersChanged(); | 427 virtual void layerParametersChanged(); |
424 virtual void layerParameterRangesChanged(); | 428 virtual void layerParameterRangesChanged(); |
425 virtual void layerMeasurementRectsChanged(); | 429 virtual void layerMeasurementRectsChanged(); |
426 virtual void layerNameChanged(); | 430 virtual void layerNameChanged(); |
500 | 504 |
501 bool setCentreFrame(sv_frame_t f, bool doEmit); | 505 bool setCentreFrame(sv_frame_t f, bool doEmit); |
502 | 506 |
503 void movePlayPointer(sv_frame_t f); | 507 void movePlayPointer(sv_frame_t f); |
504 | 508 |
505 void checkProgress(void *object); | 509 void checkProgress(ModelId); |
506 int getProgressBarWidth() const; // if visible | 510 int getProgressBarWidth() const; // if visible |
507 | 511 |
508 int effectiveDevicePixelRatio() const; | 512 int effectiveDevicePixelRatio() const; |
509 | 513 |
510 sv_frame_t m_centreFrame; | 514 sv_frame_t m_centreFrame; |