KoGuideLineDia.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Montel Laurent <lmontel@mandrakesoft.com>
3 Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KOGUIDELINEDIA_H
22#define KOGUIDELINEDIA_H
23
24#include <kdialogbase.h>
25#include <KoUnit.h>
26#include "KoRect.h"
27#include "KoPoint.h"
28
29
31class TQRadioButton;
32
37{
38 TQ_OBJECT
39
40public:
51 KoGuideLineDia( TQWidget *parent, double pos, double minPos, double maxPos,
52 KoUnit::Unit unit, const char *name = 0L );
53
67 KoGuideLineDia( TQWidget *parent, KoPoint &pos, KoRect &rect,
68 KoUnit::Unit unit, const char *name = 0L );
74 double pos() const;
75
81 TQt::Orientation orientation() const;
82
83protected slots:
84 void slotOrientationChanged();
85 void slotPositionChanged();
86
87protected:
88 KoRect m_rect;
89 KoPoint m_pos;
90 bool m_positionChanged;
91 TQRadioButton * m_hButton;
92 TQRadioButton * m_vButton;
93 KoUnitDoubleSpinBox* m_position;
94};
95
96#endif // KOGUIDELINEDIA_H
Class for setting a guide line position.
double pos() const
the position
TQt::Orientation orientation() const
the orientation
A point whose coordinates are floating-point values ( "double"s ).
Definition KoPoint.h:30
A rect whose coordinates are floating-point values ( "double"s ).
Definition KoRect.h:31
Spin box for double precision numbers with unit display.
Unit
Length units supported by KOffice.
Definition KoUnit.h:63