kivio

kiviostencilformatdlg.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Peter Simonsson <psn@linux.se>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
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
KDE Home | KDE Accessibility Home | Description of Access Keys