comparison view/Pane.h @ 1203:ff042979331b 3.0-integration

Merge from branch svg, and thus (in some subrepos) from levelpanwidget
author Chris Cannam
date Mon, 19 Dec 2016 16:34:38 +0000
parents 6828735468c9
children 67f437277069
comparison
equal deleted inserted replaced
1185:f32828ea63d9 1203:ff042979331b
35 { 35 {
36 Q_OBJECT 36 Q_OBJECT
37 37
38 public: 38 public:
39 Pane(QWidget *parent = 0); 39 Pane(QWidget *parent = 0);
40 virtual QString getPropertyContainerIconName() const { return "pane"; } 40 virtual QString getPropertyContainerIconName() const override { return "pane"; }
41 41
42 virtual bool shouldIlluminateLocalFeatures(const Layer *layer, 42 virtual bool shouldIlluminateLocalFeatures(const Layer *layer,
43 QPoint &pos) const; 43 QPoint &pos) const override;
44 virtual bool shouldIlluminateLocalSelection(QPoint &pos, 44 virtual bool shouldIlluminateLocalSelection(QPoint &pos,
45 bool &closeToLeft, 45 bool &closeToLeft,
46 bool &closeToRight) const; 46 bool &closeToRight) const override;
47 47
48 void setCentreLineVisible(bool visible); 48 void setCentreLineVisible(bool visible);
49 bool getCentreLineVisible() const { return m_centreLineVisible; } 49 bool getCentreLineVisible() const { return m_centreLineVisible; }
50 50
51 virtual sv_frame_t getFirstVisibleFrame() const; 51 virtual sv_frame_t getFirstVisibleFrame() const override;
52 52
53 virtual int getVerticalScaleWidth() const; 53 int getVerticalScaleWidth() const;
54 54
55 virtual QImage *toNewImage(sv_frame_t f0, sv_frame_t f1); 55 virtual QImage *renderToNewImage() override {
56 virtual QImage *toNewImage() { return View::toNewImage(); } 56 return View::renderToNewImage();
57 virtual QSize getImageSize(sv_frame_t f0, sv_frame_t f1); 57 }
58 virtual QSize getImageSize() { return View::getImageSize(); } 58
59 virtual QImage *renderPartToNewImage(sv_frame_t f0, sv_frame_t f1) override;
60
61 virtual QSize getRenderedImageSize() override {
62 return View::getRenderedImageSize();
63 }
64
65 virtual QSize getRenderedPartImageSize(sv_frame_t f0, sv_frame_t f1) override;
59 66
60 virtual void toXml(QTextStream &stream, QString indent = "", 67 virtual void toXml(QTextStream &stream, QString indent = "",
61 QString extraAttributes = "") const; 68 QString extraAttributes = "") const override;
62 69
63 static void registerShortcuts(KeyReference &kr); 70 static void registerShortcuts(KeyReference &kr);
64 71
65 enum PaneType { 72 enum PaneType {
66 Normal = 0, 73 Normal = 0,