kpresenter

KPrMoveHelpLineDia.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Montel Laurent <lmontel@mandrakesoft.com>
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 __kprhelplinedia__
21#define __kprhelplinedia__
22
23#include <kdialogbase.h>
24#include <KoRect.h>
25
26class TQRadioButton;
27class KPrDocument;
28class KLineEdit;
29class KFloatValidator;
30class KoUnitDoubleSpinBox;
31
32class KPrMoveHelpLineDia : public KDialogBase
33{
34 TQ_OBJECT
35
36public:
37 KPrMoveHelpLineDia( TQWidget *parent, double value, double limitTop, double limitBottom,
38 KPrDocument *_doc, const char *name=0L);
39
40 double newPosition() const;
41 bool removeLine() const { return m_bRemoveLine;}
42
43private slots:
44 void slotRemoveHelpLine();
45
46protected:
47 KoUnitDoubleSpinBox* position;
48 KPrDocument *m_doc;
49 bool m_bRemoveLine;
50};
51
52class KPrInsertHelpLineDia : public KDialogBase
53{
54 TQ_OBJECT
55
56public:
57 KPrInsertHelpLineDia( TQWidget *parent, const KoRect &r, KPrDocument *_doc, const char *name=0L);
58
59 double newPosition() const;
60 //return true if we add a new horizontal line help
61 bool addHorizontalHelpLine();
62
63private slots:
64 void slotRadioButtonClicked();
65
66protected:
67 KoRect limitOfPage;
68 KoUnitDoubleSpinBox* position;
69 TQRadioButton *m_rbHoriz;
70 TQRadioButton *m_rbVert;
71 KPrDocument *m_doc;
72};
73
74
75class KPrInsertHelpPointDia : public KDialogBase
76{
77 TQ_OBJECT
78
79public:
80 KPrInsertHelpPointDia( TQWidget *parent, const KoRect &r, KPrDocument *_doc, double poxX=0.0,
81 double posY=0.0, const char *name=0L);
82
83 KoPoint newPosition() const;
84 bool removePoint() const { return m_bRemovePoint;}
85private slots:
86 void slotRemoveHelpPoint();
87
88protected:
89 KoRect limitOfPage;
90 bool m_bRemovePoint;
91 KoUnitDoubleSpinBox* positionX;
92 KoUnitDoubleSpinBox* positionY;
93 KPrDocument *m_doc;
94};
95
96
97#endif