kivio

kivio_stencil_geometry_panel.h

00001 #ifndef KIVIO_STENCIL_GEOMETRY_PANEL_H
00002 #define KIVIO_STENCIL_GEOMETRY_PANEL_H
00003 
00004 #include <qwidget.h>
00005 #include <KoUnit.h>
00006 
00007 class KoPageLayout;
00008 class KoUnitDoubleSpinBox;
00009 class KIntSpinBox;
00010 
00011 class KivioStencilGeometryPanel : public QWidget
00012 {
00013   Q_OBJECT
00014   protected:
00015     KoUnitDoubleSpinBox *m_pX, *m_pY, *m_pW, *m_pH;
00016     KIntSpinBox* m_rotationSBox;
00017     KoUnit::Unit m_unit;
00018     bool m_emitSignals;
00019 
00020   public slots:
00021     void setUnit(KoUnit::Unit);
00022     void setPosition(double, double);
00023     void setSize(double, double);
00024     void setPageLayout(const KoPageLayout& l);
00025     void setRotation(int d);
00026 
00027     void setEmitSignals(bool e);
00028 
00029   protected slots:
00030     void xChange(double);
00031     void yChange(double);
00032     void wChange(double);
00033     void hChange(double);
00034     void rotationChange(int);
00035 
00036   signals:
00037     void positionChanged(double, double);
00038     void sizeChanged(double, double);
00039     void rotationChanged(int);
00040 
00041   public:
00042     KivioStencilGeometryPanel(QWidget* parent);
00043     virtual ~KivioStencilGeometryPanel();
00044 };
00045 
00046 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys