F:/KPlato/koffice/libs/kofficeui/KoGuideLineDia.h

Aller à la documentation de ce fichier.
00001 // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
00002 /* This file is part of the KDE project
00003    Copyright (C)  2002 Montel Laurent <lmontel@mandrakesoft.com>
00004    Copyright (C)  2005 Thorsten Zachmann <zachmann@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KOGUIDELINEDIA_H
00023 #define KOGUIDELINEDIA_H
00024 
00025 #include <kdialog.h>
00026 #include <KoUnit.h>
00027 #include "KoRect.h"
00028 #include "KoPoint.h"
00029 
00030 #include <koffice_export.h>
00031 class KoUnitDoubleSpinBox;
00032 class QRadioButton;
00033 
00037 class KOFFICEUI_EXPORT KoGuideLineDia : public KDialog
00038 {
00039     Q_OBJECT
00040 public:
00051     KoGuideLineDia( QWidget *parent, double pos, double minPos, double maxPos,
00052                     KoUnit::Unit unit, const char *name = 0L );
00053 
00067     KoGuideLineDia( QWidget *parent, KoPoint &pos, KoRect &rect,
00068                     KoUnit::Unit unit, const char *name = 0L );
00074     double pos() const;
00075 
00081     Qt::Orientation orientation() const;
00082 
00083 protected slots:
00084     void slotOrientationChanged();
00085     void slotPositionChanged();
00086 
00087 protected:
00088     KoRect m_rect;
00089     KoPoint m_pos;
00090     bool m_positionChanged;
00091     QRadioButton * m_hButton;
00092     QRadioButton * m_vButton;
00093     KoUnitDoubleSpinBox* m_position;
00094 };
00095 
00096 #endif // KOGUIDELINEDIA_H

Généré le Wed Nov 22 23:41:04 2006 pour KPlato par  doxygen 1.5.1-p1