kchart

kchartConfigDialog.h
1/* This file is part of the KDE project
2 Copyright (C) 1999 Matthias Kalle Dalheimer <kalle@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
20
21#ifndef __KCHARTCONFIGDIALOG_H__
22#define __KCHARTCONFIGDIALOG_H__
23
24
25#include <tqtabdialog.h>
26
27#include "koChart.h"
28
29
30class TQWidget;
31
32class KDChartParams;
33
34
35namespace KChart
36{
37
38class KChartParams;
39class KChartAuxiliary;
40
41class KChartSubTypeChartPage;
42class KChartHeaderFooterConfigPage;
43
44class KChartColorConfigPage;
45class KChartParameterConfigPage;
46class KChartParameter3dConfigPage;
47class KChartBarslinesConfigPage;
48class KChartParameterPieConfigPage;
49class KChartFontConfigPage;
50class KChartDataConfigPage;
51class KChartPieConfigPage;
52class KChartComboPage;
53class KChartBackgroundPixmapConfigPage;
54class KChartLegendConfigPage;
55class KChartLine3dConfigPage;
56class KChartParameterPolarConfigPage;
57
58class KChartConfigDialog : public TQTabDialog
59{
60 TQ_OBJECT
61
62
63public:
64 enum {
65 KC_FONT = 1,
66 KC_COLORS = 2,
67 KC_BACK = 4,
68 KC_LEGEND = 8,
69 KC_SUBTYPE = 16,
70 KC_HEADERFOOTER = 32,
71 KC_DATAFORMAT = 64,
72 KC_ALL = 256
73 };
74
75
76 KChartConfigDialog( KChartParams* params,
77 TQWidget* parent, int flags,
78 KDChartTableData *dat );
79
80 void subtypePage();
81
82signals:
83 void dataChanged();
84
85protected:
86 KChartParams *m_params;
87
88 KChartDataConfigPage *m_dataPage;
89 KChartSubTypeChartPage *m_subTypePage;
90
91 KChartParameter3dConfigPage *_parameter3dpage;
92 KChartLine3dConfigPage *_linepage3d;
93 KChartBarslinesConfigPage *m_barslinesPage;
94 KChartParameterPieConfigPage *_parameterpiepage;
95 KChartParameterPolarConfigPage *_polarpage;
96
97 KChartHeaderFooterConfigPage *m_headerfooterpage;
98 KChartLegendConfigPage *m_legendPage;
99 KChartParameterConfigPage *m_axespage;
100 KChartColorConfigPage *_colorpage;
101 KChartFontConfigPage *_parameterfontpage;
102 KChartBackgroundPixmapConfigPage *_backgroundpixpage;
103
104 //KChartGeometryConfigPage* _geompage;
105 //KChartPieConfigPage*_piepage;
106 //KChartComboPage *_hlcChart;
107
108protected slots:
109 void init();
110 virtual void apply();
111 virtual void defaults();
112};
113
114} //KChart namespace
115
116#endif
Bundles the display parameters of a chart.