kivio
kiviostencilformatdlg.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KIVIOSTENCILFORMATDLG_H
00021 #define KIVIOSTENCILFORMATDLG_H
00022
00023 #include <kdialogbase.h>
00024
00025 #include <KoUnit.h>
00026
00027 class KoUnitDoubleSpinBox;
00028 class KColorButton;
00029 class KComboBox;
00030 class KivioView;
00031 class QColor;
00032
00033 class KivioStencilFormatDlg : public KDialogBase
00034 {
00035 Q_OBJECT
00036 public:
00037 KivioStencilFormatDlg(KivioView* parent, const char* name = 0);
00038
00039 double lineWidth();
00040 QColor lineColor();
00041 int linePattern();
00042 QColor fillColor();
00043 int fillPattern();
00044 int lineEndStyle();
00045
00046 public slots:
00047 void setLineWidth(double w, KoUnit::Unit u);
00048 void setLineColor(QColor c);
00049 void setLinePattern(int p);
00050 void setFillColor(QColor c);
00051 void setFillPattern(int p);
00052 void setLineEndStyle(int s);
00053
00054 protected slots:
00055 void slotDefault();
00056
00057 protected:
00058 void init();
00059 void initLinePatterns();
00060 void initFillPatterns();
00061 void initLineEndStyles();
00062
00063 protected:
00064 KoUnitDoubleSpinBox* m_lineWidthUSBox;
00065 KColorButton* m_lineCBtn;
00066 KColorButton* m_fillCBtn;
00067 KComboBox* m_patternCBox;
00068 KComboBox* m_fillPatternCBox;
00069 KComboBox* m_lineEndStyleCBox;
00070 KoUnit::Unit m_unit;
00071 };
00072
00073 #endif
|