kchart

kchartParameterConfigPage.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001,2002,2003,2004 Laurent Montel <montel@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __KCHARTPARAMETERCONFIGPAGE_H__
00021 #define __KCHARTPARAMETERCONFIGPAGE_H__
00022 
00023 #include <qwidget.h>
00024 #include <kcolorbutton.h>
00025 
00026 class QSpinBox;
00027 class QCheckBox;
00028 class QLineEdit;
00029 class QRadioButton;
00030 
00031 namespace KChart
00032 {
00033 
00034 class KChartParams;
00035 
00036 class KChartParameterConfigPage : public QWidget
00037 {
00038     Q_OBJECT
00039 
00040 public:
00041     KChartParameterConfigPage( KChartParams* params, QWidget* parent );
00042     void init();
00043     void apply();
00044 public slots:
00045     void changeXaxisState( bool );
00046     void automatic_precision_toggled( bool );
00047     void axisChanged();
00048 private:
00049     KChartParams* _params;
00050 
00051     // Checkboxes on the left side of the tab.
00052     QCheckBox *grid;
00053     QCheckBox *xaxis;
00054     QCheckBox *yaxis;
00055     //QCheckBox *yaxis2;
00056     //QCheckBox *xlabel;
00057     QCheckBox *lineMarker;
00058     //QCheckBox *llabel;
00059 
00060     // Lineedits on the right side of the tab.
00061     QLineEdit *xtitle;
00062     QLineEdit *ytitle;
00063 
00064     QRadioButton *lin;
00065     QRadioButton *log;
00066 
00067     QRadioButton *max;
00068     QSpinBox *maximum_length;
00069     //QLineEdit *ylabel_fmt;
00070     //QLineEdit *ytitle2;
00071     //QLineEdit *ylabel2_fmt;
00072     //QLineEdit *annotation;
00073 };
00074 
00075 }  //KChart namespace
00076 
00077 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys