kchart

kchartSubTypeChartPage.h
1/* This file is part of the KDE project
2 Copyright (C) 1999,2000 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 __KCHARTSUBTYPECHARTPAGE_H__
22#define __KCHARTSUBTYPECHARTPAGE_H__
23
24#include <tqwidget.h>
25
26class KDChartParams;
27class TQLabel;
28class TQRadioButton;
29class TQSpinBox;
30
31namespace KChart
32{
33
34class KChartParams;
35
36class KChartSubTypeChartPage : public TQWidget
37{
38 TQ_OBJECT
39
40
41public:
42 KChartSubTypeChartPage( KChartParams* params, TQWidget* parent ) :
43 TQWidget( parent ), m_params( params ) {}
44 virtual void init() = 0;
45 virtual void apply() = 0;
46
47protected:
48 KChartParams* m_params;
49};
50
51class KChartLineSubTypeChartPage : public KChartSubTypeChartPage
52{
53 TQ_OBJECT
54
55
56public:
57 KChartLineSubTypeChartPage( KChartParams* params,
58 TQWidget* parent );
59 virtual void init();
60 virtual void apply();
61
62private slots:
63 void slotChangeSubType( int type );
64
65private:
66 TQRadioButton* normal;
67 TQRadioButton* stacked;
68 TQRadioButton* percent;
69 TQLabel* exampleLA;
70};
71
72
73class KChartAreaSubTypeChartPage : public KChartSubTypeChartPage
74{
75 TQ_OBJECT
76
77
78public:
79 KChartAreaSubTypeChartPage( KChartParams* params,
80 TQWidget* parent );
81 virtual void init();
82 virtual void apply();
83
84private slots:
85 void slotChangeSubType( int type );
86
87private:
88 TQRadioButton* normal;
89 TQRadioButton* stacked;
90 TQRadioButton* percent;
91 TQLabel* exampleLA;
92};
93
94class KChartBarSubTypeChartPage : public KChartSubTypeChartPage
95{
96 TQ_OBJECT
97
98
99public:
100 KChartBarSubTypeChartPage( KChartParams* params, TQWidget* parent );
101 virtual void init();
102 virtual void apply();
103
104private slots:
105 void slotChangeSubType( int type );
106
107private:
108 TQRadioButton *normal;
109 TQRadioButton *stacked;
110 TQRadioButton *percent;
111 TQLabel *exampleLA;
112 TQSpinBox *m_numLines;
113};
114
115
116class KChartHiloSubTypeChartPage : public KChartSubTypeChartPage
117{
118 TQ_OBJECT
119
120
121public:
122 KChartHiloSubTypeChartPage( KChartParams* params,
123 TQWidget* parent );
124 virtual void init();
125 virtual void apply();
126
127private slots:
128 void slotChangeSubType( int type );
129
130private:
131 TQRadioButton* normal;
132 TQRadioButton* stacked;
133 TQRadioButton* percent;
134 TQLabel* exampleLA;
135};
136
137class KChartPolarSubTypeChartPage : public KChartSubTypeChartPage
138{
139 TQ_OBJECT
140
141
142public:
143 KChartPolarSubTypeChartPage( KChartParams* params,
144 TQWidget* parent );
145 virtual void init();
146 virtual void apply();
147
148private slots:
149 void slotChangeSubType( int type );
150
151private:
152 TQRadioButton* normal;
153 TQRadioButton* stacked;
154 TQRadioButton* percent;
155 TQLabel* exampleLA;
156};
157
158} //KChart namespace
159
160#endif
Bundles the display parameters of a chart.