kivio
kivioarrowheadformatdlg.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 KIVIOARROWHEADFORMATDLG_H 00021 #define KIVIOARROWHEADFORMATDLG_H 00022 00023 #include <kdialogbase.h> 00024 00025 #include <KoUnit.h> 00026 00027 class KoUnitDoubleSpinBox; 00028 class KComboBox; 00029 class KivioView; 00030 00031 class KivioArrowHeadFormatDlg : public KDialogBase 00032 { 00033 Q_OBJECT 00034 public: 00035 KivioArrowHeadFormatDlg(KivioView* parent, const char* name = 0); 00036 00037 int startAHType(); 00038 double startAHWidth(); 00039 double startAHHeight(); 00040 int endAHType(); 00041 double endAHWidth(); 00042 double endAHHeight(); 00043 00044 public slots: 00045 void setUnit(KoUnit::Unit u); 00046 void setStartAHType(int t); 00047 void setStartAHWidth(double w); 00048 void setStartAHHeight(double h); 00049 void setEndAHType(int t); 00050 void setEndAHWidth(double w); 00051 void setEndAHHeight(double h); 00052 00053 protected slots: 00054 void slotDefault(); 00055 00056 protected: 00057 void init(); 00058 void loadArrowHeads(KComboBox* combo); 00059 00060 protected: 00061 KoUnitDoubleSpinBox* m_startAHWidthUSBox; 00062 KoUnitDoubleSpinBox* m_startAHHeightUSBox; 00063 KoUnitDoubleSpinBox* m_endAHWidthUSBox; 00064 KoUnitDoubleSpinBox* m_endAHHeightUSBox; 00065 KComboBox* m_startAHTypeCBox; 00066 KComboBox* m_endAHTypeCBox; 00067 KoUnit::Unit m_unit; 00068 }; 00069 00070 #endif