comparison view/Pane.h @ 222:cd81066ac7ad

* More useful status bar text -- show the current play time and the extents of the visible area * Add update-i18n.sh to update the i18n/ts and qm files -- I can't get qmake to do the right thing now that the project file has been split up into several project files * Fix missing Q_OBJECTs, etc, reported by lupdate * Update Russian translation from AlexandrE
author Chris Cannam
date Wed, 07 Mar 2007 17:07:02 +0000
parents 5b7472db612b
children 6dab3ac2fe73
comparison
equal deleted inserted replaced
221:9e739f92c0b8 222:cd81066ac7ad
46 bool &closeToRight) const; 46 bool &closeToRight) const;
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 size_t getFirstVisibleFrame() const;
52
51 virtual QString toXmlString(QString indent = "", 53 virtual QString toXmlString(QString indent = "",
52 QString extraAttributes = "") const; 54 QString extraAttributes = "") const;
53 55
54 signals: 56 signals:
55 void paneInteractedWith(); 57 void paneInteractedWith();
56 void rightButtonMenuRequested(QPoint position); 58 void rightButtonMenuRequested(QPoint position);
57 59
58 public slots: 60 public slots:
59 virtual void toolModeChanged(); 61 virtual void toolModeChanged();
60 virtual void zoomWheelsEnabledChanged(); 62 virtual void zoomWheelsEnabledChanged();
61 virtual void zoomLevelChanged(); 63 virtual void viewZoomLevelChanged(View *v, unsigned long z, bool locked);
62 64
63 virtual void horizontalThumbwheelMoved(int value); 65 virtual void horizontalThumbwheelMoved(int value);
64 virtual void verticalThumbwheelMoved(int value); 66 virtual void verticalThumbwheelMoved(int value);
65 virtual void verticalZoomChanged(); 67 virtual void verticalZoomChanged();
66 virtual void verticalPannerMoved(float x, float y, float w, float h); 68 virtual void verticalPannerMoved(float x, float y, float w, float h);
115 float m_dragStartMinValue; 117 float m_dragStartMinValue;
116 bool m_centreLineVisible; 118 bool m_centreLineVisible;
117 size_t m_selectionStartFrame; 119 size_t m_selectionStartFrame;
118 Selection m_editingSelection; 120 Selection m_editingSelection;
119 int m_editingSelectionEdge; 121 int m_editingSelectionEdge;
122 mutable int m_scaleWidth;
120 123
121 enum DragMode { 124 enum DragMode {
122 UnresolvedDrag, 125 UnresolvedDrag,
123 VerticalDrag, 126 VerticalDrag,
124 HorizontalDrag, 127 HorizontalDrag,