00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KOGUIDELINEDIA_H
00023 #define KOGUIDELINEDIA_H
00024
00025 #include <kdialog.h>
00026 #include <KoUnit.h>
00027 #include "KoRect.h"
00028 #include "KoPoint.h"
00029
00030 #include <koffice_export.h>
00031 class KoUnitDoubleSpinBox;
00032 class QRadioButton;
00033
00037 class KOFFICEUI_EXPORT KoGuideLineDia : public KDialog
00038 {
00039 Q_OBJECT
00040 public:
00051 KoGuideLineDia( QWidget *parent, double pos, double minPos, double maxPos,
00052 KoUnit::Unit unit, const char *name = 0L );
00053
00067 KoGuideLineDia( QWidget *parent, KoPoint &pos, KoRect &rect,
00068 KoUnit::Unit unit, const char *name = 0L );
00074 double pos() const;
00075
00081 Qt::Orientation orientation() const;
00082
00083 protected slots:
00084 void slotOrientationChanged();
00085 void slotPositionChanged();
00086
00087 protected:
00088 KoRect m_rect;
00089 KoPoint m_pos;
00090 bool m_positionChanged;
00091 QRadioButton * m_hButton;
00092 QRadioButton * m_vButton;
00093 KoUnitDoubleSpinBox* m_position;
00094 };
00095
00096 #endif // KOGUIDELINEDIA_H