kchart

kchartConfigDialog.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 1999 Matthias Kalle Dalheimer <kalle@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 
00021 #ifndef __KCHARTCONFIGDIALOG_H__
00022 #define __KCHARTCONFIGDIALOG_H__
00023 
00024 
00025 #include <qtabdialog.h>
00026 
00027 #include "koChart.h"
00028 
00029 
00030 class QWidget;
00031 
00032 class KDChartParams;
00033 
00034 
00035 namespace KChart
00036 {
00037 
00038 class KChartParams;
00039 class KChartAuxiliary;
00040 
00041 class KChartSubTypeChartPage;
00042 class KChartHeaderFooterConfigPage;
00043 
00044 class KChartColorConfigPage;
00045 class KChartParameterConfigPage;
00046 class KChartParameter3dConfigPage;
00047 class KChartBarslinesConfigPage;
00048 class KChartParameterPieConfigPage;
00049 class KChartFontConfigPage;
00050 class KChartDataConfigPage;
00051 class KChartPieConfigPage;
00052 class KChartComboPage;
00053 class KChartBackgroundPixmapConfigPage;
00054 class KChartLegendConfigPage;
00055 class KChartLine3dConfigPage;
00056 class KChartParameterPolarConfigPage;
00057 
00058 class KChartConfigDialog : public QTabDialog
00059 {
00060     Q_OBJECT
00061 
00062 public:
00063     enum {
00064       KC_FONT         = 1,
00065       KC_COLORS       = 2,
00066       KC_BACK         = 4,
00067       KC_LEGEND       = 8,
00068       KC_SUBTYPE      = 16,
00069       KC_HEADERFOOTER = 32,
00070       KC_DATAFORMAT   = 64,
00071       KC_ALL          = 256
00072     };
00073 
00074 
00075     KChartConfigDialog( KChartParams* params,
00076                         QWidget* parent, int flags,
00077             KDChartTableData *dat );
00078 
00079     void subtypePage();
00080 
00081 signals:
00082     void dataChanged();
00083 
00084 protected:
00085     KChartParams                     *m_params;
00086 
00087     KChartDataConfigPage             *m_dataPage;
00088     KChartSubTypeChartPage           *m_subTypePage;
00089 
00090     KChartParameter3dConfigPage      *_parameter3dpage;
00091     KChartLine3dConfigPage           *_linepage3d;
00092     KChartBarslinesConfigPage        *m_barslinesPage;
00093     KChartParameterPieConfigPage     *_parameterpiepage;
00094     KChartParameterPolarConfigPage   *_polarpage;
00095 
00096     KChartHeaderFooterConfigPage     *m_headerfooterpage;
00097     KChartLegendConfigPage           *m_legendPage;
00098     KChartParameterConfigPage        *m_axespage;
00099     KChartColorConfigPage            *_colorpage;
00100     KChartFontConfigPage             *_parameterfontpage;
00101     KChartBackgroundPixmapConfigPage *_backgroundpixpage;
00102 
00103     //KChartGeometryConfigPage* _geompage;
00104     //KChartPieConfigPage*_piepage;
00105     //KChartComboPage *_hlcChart;
00106 
00107 protected slots:
00108     void         init();
00109     virtual void apply();
00110     virtual void defaults();
00111 };
00112 
00113 }  //KChart namespace
00114 
00115 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys