Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/geometrywidget.h
Show All 24 Lines | |||||
25 | #include <QWidget> | 25 | #include <QWidget> | ||
26 | #include <kselectaction.h> | 26 | #include <kselectaction.h> | ||
27 | 27 | | |||
28 | class QAction; | 28 | class QAction; | ||
29 | class QMenu; | 29 | class QMenu; | ||
30 | class KSelectAction; | 30 | class KSelectAction; | ||
31 | class DragValue; | 31 | class DragValue; | ||
32 | class Monitor; | 32 | class Monitor; | ||
33 | class DoubleWidget; | ||||
33 | 34 | | |||
34 | /** | 35 | /** | ||
35 | * @brief A widget for modifying numbers by dragging, using the mouse wheel or entering them with the keyboard. | 36 | * @brief A widget for modifying numbers by dragging, using the mouse wheel or entering them with the keyboard. | ||
36 | */ | 37 | */ | ||
37 | 38 | | |||
38 | class GeometryWidget : public QWidget | 39 | class GeometryWidget : public QWidget | ||
39 | { | 40 | { | ||
40 | Q_OBJECT | 41 | Q_OBJECT | ||
Show All 17 Lines | 56 | private: | |||
58 | bool m_active; | 59 | bool m_active; | ||
59 | Monitor *m_monitor; | 60 | Monitor *m_monitor; | ||
60 | DragValue *m_spinX; | 61 | DragValue *m_spinX; | ||
61 | DragValue *m_spinY; | 62 | DragValue *m_spinY; | ||
62 | DragValue *m_spinWidth; | 63 | DragValue *m_spinWidth; | ||
63 | DragValue *m_spinHeight; | 64 | DragValue *m_spinHeight; | ||
64 | DragValue *m_spinSize; | 65 | DragValue *m_spinSize; | ||
65 | DragValue *m_opacity; | 66 | DragValue *m_opacity; | ||
67 | DoubleWidget *m_rotationWidget; | ||||
66 | QSize m_defaultSize; | 68 | QSize m_defaultSize; | ||
67 | QSize m_sourceSize; | 69 | QSize m_sourceSize; | ||
68 | QAction *m_originalSize; | 70 | QAction *m_originalSize; | ||
69 | QAction *m_lockRatio; | 71 | QAction *m_lockRatio; | ||
70 | const QString getValue() const; | 72 | const QString getValue() const; | ||
71 | void adjustSizeValue(); | 73 | void adjustSizeValue(); | ||
72 | 74 | | |||
73 | public slots: | 75 | public slots: | ||
74 | void slotUpdateGeometryRect(const QRect r); | 76 | void slotUpdateGeometryRect(const QRect r); | ||
75 | void slotSetRange(QPair<int, int>); | 77 | void slotSetRange(QPair<int, int>); | ||
78 | void slotUpdateOpacity(double); | ||||
79 | // void slotUpdateRotation(double); | ||||
76 | 80 | | |||
77 | private slots: | 81 | private slots: | ||
78 | void slotAdjustRectKeyframeValue(); | 82 | void slotAdjustRectKeyframeValue(); | ||
79 | void slotAdjustToSource(); | 83 | void slotAdjustToSource(); | ||
80 | void slotAdjustToFrameSize(); | 84 | void slotAdjustToFrameSize(); | ||
81 | void slotFitToWidth(); | 85 | void slotFitToWidth(); | ||
82 | void slotFitToHeight(); | 86 | void slotFitToHeight(); | ||
83 | void slotResize(double value); | 87 | void slotResize(double value); | ||
Show All 11 Lines | |||||
95 | void slotMoveBottom(); | 99 | void slotMoveBottom(); | ||
96 | /** @brief Un/Lock aspect ratio for size in effect parameter. */ | 100 | /** @brief Un/Lock aspect ratio for size in effect parameter. */ | ||
97 | void slotLockRatio(); | 101 | void slotLockRatio(); | ||
98 | void slotAdjustRectHeight(); | 102 | void slotAdjustRectHeight(); | ||
99 | void slotAdjustRectWidth(); | 103 | void slotAdjustRectWidth(); | ||
100 | 104 | | |||
101 | signals: | 105 | signals: | ||
102 | void valueChanged(const QString val); | 106 | void valueChanged(const QString val); | ||
107 | void opacityChanged(double opacity); | ||||
108 | // void angleChanged(double rotation); | ||||
103 | }; | 109 | }; | ||
104 | 110 | | |||
105 | #endif | 111 | #endif |