kpresenter

KPrPropertyEditor.h
1/* This file is part of the KDE project
2 Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
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#ifndef PROPERTYEDITOR_H
20#define PROPERTYEDITOR_H
21
22#include <tqtabdialog.h>
23#include <KPrGeneralProperty.h>
24
25class KCommand;
26class KPrObject;
27class KPrPage;
28class KPrDocument;
29class KPrPenStyleWidget;
30class KPrBrushProperty;
31class KPrRectProperty;
32class KPrPolygonProperty;
33class KPrPieProperty;
34class KPrPictureProperty;
35class KPrTextProperty;
36class KPrObjectProperties;
37
38class KPrPropertyEditor : public TQTabDialog
39{
40 TQ_OBJECT
41
42
43public:
44 KPrPropertyEditor( TQWidget *parent = 0, const char *name = 0, KPrPage *page = 0, KPrDocument *doc = 0 );
45 ~KPrPropertyEditor();
46
47 KCommand * getCommand();
48
49private slots:
50 void slotDone();
51
52private:
53 void setupTabs();
54 void setupTabPen( bool configureLineEnds );
55 void setupTabBrush();
56 void setupTabRect();
57 void setupTabPolygon();
58 void setupTabPie();
59 void setupTabPicture();
60 void setupTabText();
61 void setupTabGeneral();
62
63 KPrGeneralProperty::GeneralValue getGeneralValue();
64
65 KPrPage *m_page;
66 KPrDocument *m_doc;
67 TQPtrList<KPrObject> m_objects;
68
69 KPrPenStyleWidget *m_penProperty;
70 KPrBrushProperty *m_brushProperty;
71 KPrRectProperty *m_rectProperty;
72 KPrPolygonProperty *m_polygonProperty;
73 KPrPieProperty *m_pieProperty;
74 KPrPictureProperty *m_pictureProperty;
75 KPrTextProperty *m_textProperty;
76 KPrGeneralProperty *m_generalProperty;
77
78 KPrObjectProperties *m_objectProperties;
79
80signals:
81 void propertiesOk();
82};
83
84#endif /* PROPERTYEDITOR_H */