kivio_stencil_geometry_panel.h
1#ifndef KIVIO_STENCIL_GEOMETRY_PANEL_H
2#define KIVIO_STENCIL_GEOMETRY_PANEL_H
3
4#include <tqwidget.h>
5#include <KoUnit.h>
6
7class KoPageLayout;
8class KoUnitDoubleSpinBox;
9class KIntSpinBox;
10
11class KivioStencilGeometryPanel : public TQWidget
12{
13 TQ_OBJECT
14
15 protected:
16 KoUnitDoubleSpinBox *m_pX, *m_pY, *m_pW, *m_pH;
17 KIntSpinBox* m_rotationSBox;
18 KoUnit::Unit m_unit;
19 bool m_emitSignals;
20
21 public slots:
22 void setUnit(KoUnit::Unit);
23 void setPosition(double, double);
24 void setSize(double, double);
25 void setPageLayout(const KoPageLayout& l);
26 void setRotation(int d);
27
28 void setEmitSignals(bool e);
29
30 protected slots:
31 void xChange(double);
32 void yChange(double);
33 void wChange(double);
34 void hChange(double);
35 void rotationChange(int);
36
37 signals:
38 void positionChanged(double, double);
39 void sizeChanged(double, double);
40 void rotationChanged(int);
41
42 public:
43 KivioStencilGeometryPanel(TQWidget* parent);
44 virtual ~KivioStencilGeometryPanel();
45};
46
47#endif