kpresenter
KPrPenStyleWidget.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef PENSTYLEWIDGET_H
00022 #define PENSTYLEWIDGET_H
00023
00024 #include "global.h"
00025
00026 #include <qwidget.h>
00027
00028 #include "KPrCommand.h"
00029 #include <KoPen.h>
00030
00031 class PenStyleUI;
00032
00033
00034 class KPrPenStyleWidget : public QWidget
00035 {
00036 Q_OBJECT
00037 public:
00038 KPrPenStyleWidget( QWidget *parent, const char *name, const KoPenCmd::Pen &pen, bool configureLineEnds = true );
00039 ~KPrPenStyleWidget();
00040
00041 int getPenConfigChange() const;
00042 KoPenCmd::Pen getPen() const;
00043
00044 void setPen( const KoPenCmd::Pen &pen );
00045 void apply();
00046
00047 private:
00048 KoPen getKPPen() const;
00049 LineEnd getLineBegin() const;
00050 LineEnd getLineEnd() const;
00051
00052 void setPen( const KoPen &pen );
00053 void setLineBegin( LineEnd lb );
00054 void setLineEnd( LineEnd le );
00055
00056 KoPenCmd::Pen m_pen;
00057
00058 PenStyleUI *m_ui;
00059
00060 private slots:
00061 void slotReset();
00062 void slotPenChanged();
00063 void slotLineBeginChanged();
00064 void slotLineEndChanged();
00065 };
00066
00067 #endif
|