kivio

kiviostencilformatdlg.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Peter Simonsson <psn@linux.se>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KIVIOSTENCILFORMATDLG_H
21#define KIVIOSTENCILFORMATDLG_H
22
23#include <kdialogbase.h>
24
25#include <KoUnit.h>
26
27class KoUnitDoubleSpinBox;
28class KColorButton;
29class KComboBox;
30class KivioView;
31class TQColor;
32
33class KivioStencilFormatDlg : public KDialogBase
34{
35 TQ_OBJECT
36
37 public:
38 KivioStencilFormatDlg(KivioView* parent, const char* name = 0);
39
40 double lineWidth();
41 TQColor lineColor();
42 int linePattern();
43 TQColor fillColor();
44 int fillPattern();
45 int lineEndStyle();
46
47 public slots:
48 void setLineWidth(double w, KoUnit::Unit u);
49 void setLineColor(TQColor c);
50 void setLinePattern(int p);
51 void setFillColor(TQColor c);
52 void setFillPattern(int p);
53 void setLineEndStyle(int s);
54
55 protected slots:
56 void slotDefault();
57
58 protected:
59 void init();
60 void initLinePatterns();
61 void initFillPatterns();
62 void initLineEndStyles();
63
64 protected:
65 KoUnitDoubleSpinBox* m_lineWidthUSBox;
66 KColorButton* m_lineCBtn;
67 KColorButton* m_fillCBtn;
68 KComboBox* m_patternCBox;
69 KComboBox* m_fillPatternCBox;
70 KComboBox* m_lineEndStyleCBox;
71 KoUnit::Unit m_unit;
72};
73
74#endif