koToolBox.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TOOLBOX_H
00021 #define TOOLBOX_H
00022
00023 #include <qframe.h>
00024 #include <qpoint.h>
00025 #include <koffice_export.h>
00026 class QVBoxLayout;
00027 class QSpinBox;
00028
00029 class KoDocumentChild;
00030
00031 class KoToolBox : public QFrame
00032 {
00033 Q_OBJECT
00034 public:
00035 KoToolBox( QWidget* parent = 0, const char* name = 0 );
00036
00037 public slots:
00038 void setEnabled( bool enable );
00039
00040 protected:
00041
00042 void childEvent( QChildEvent* ev );
00043 void mousePressEvent( QMouseEvent* ev );
00044 void mouseMoveEvent( QMouseEvent* ev );
00045
00046 private:
00047 QVBoxLayout* m_layout;
00048 QPoint m_mousePos;
00049 QPoint m_startPos;
00050 class KoToolBoxPrivate;
00051 KoToolBoxPrivate *d;
00052 };
00053
00054 class KOFFICEUI_EXPORT KoTransformToolBox : public KoToolBox
00055 {
00056 Q_OBJECT
00057 public:
00058 KoTransformToolBox( KoDocumentChild* child, QWidget* parent = 0, const char* name = 0 );
00059
00060 double rotation() const;
00061 double scaling() const;
00062 double xShearing() const;
00063 double yShearing() const;
00064
00065 void setRotation( double );
00066 void setScaling( double );
00067 void setXShearing( double );
00068 void setYShearing( double );
00069
00070 signals:
00071 void rotationChanged( double );
00072 void scalingChanged( double );
00073 void xShearingChanged( double );
00074 void yShearingChanged( double );
00075
00076 public slots:
00077 void setDocumentChild( KoDocumentChild* );
00078
00079 private slots:
00080 void slotRotationChanged( int );
00081 void slotScalingChanged( int );
00082 void slotXShearingChanged( int );
00083 void slotYShearingChanged( int );
00084
00085 private:
00086 QSpinBox* m_rotation;
00087 QSpinBox* m_scale;
00088 QSpinBox* m_shearX;
00089 QSpinBox* m_shearY;
00090 KoDocumentChild* m_child;
00091 class KoTransformToolBoxPrivate;
00092 KoTransformToolBoxPrivate *d;
00093 };
00094
00095 #endif
This file is part of the documentation for lib Library Version 1.4.2.