kchart

kchartParameterConfigPage.h
1/* This file is part of the KDE project
2 Copyright (C) 2001,2002,2003,2004 Laurent Montel <montel@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#ifndef __KCHARTPARAMETERCONFIGPAGE_H__
21#define __KCHARTPARAMETERCONFIGPAGE_H__
22
23#include <tqwidget.h>
24#include <kcolorbutton.h>
25
26class TQSpinBox;
27class TQCheckBox;
28class TQLineEdit;
29class TQRadioButton;
30
31namespace KChart
32{
33
34class KChartParams;
35
36class KChartParameterConfigPage : public TQWidget
37{
38 TQ_OBJECT
39
40
41public:
42 KChartParameterConfigPage( KChartParams* params, TQWidget* parent );
43 void init();
44 void apply();
45public slots:
46 void changeXaxisState( bool );
47 void automatic_precision_toggled( bool );
48 void axisChanged();
49private:
50 KChartParams* _params;
51
52 // Checkboxes on the left side of the tab.
53 TQCheckBox *grid;
54 TQCheckBox *xaxis;
55 TQCheckBox *yaxis;
56 //TQCheckBox *yaxis2;
57 //TQCheckBox *xlabel;
58 TQCheckBox *lineMarker;
59 //TQCheckBox *llabel;
60
61 // Lineedits on the right side of the tab.
62 TQLineEdit *xtitle;
63 TQLineEdit *ytitle;
64
65 TQRadioButton *lin;
66 TQRadioButton *log;
67
68 TQRadioButton *max;
69 TQSpinBox *maximum_length;
70 //TQLineEdit *ylabel_fmt;
71 //TQLineEdit *ytitle2;
72 //TQLineEdit *ylabel2_fmt;
73 //TQLineEdit *annotation;
74};
75
76} //KChart namespace
77
78#endif