kchart

kchartWizard.h

00001 #ifndef kchartWIZARD_H
00002 #define kchartWIZARD_H
00003 
00004 #include <klocale.h>
00005 #include "kwizard.h"
00006 #include "kchart_part.h"
00007 
00008 namespace KChart
00009 {
00010 
00011 class KChartPart;
00012 class KChartWizardSetupAxesPage;
00013 class KChartWizardLabelsLegendPage;
00014 class KChartWizardSelectChartSubTypePage;
00015 class KChartWizardSelectDataPage;
00016 class KChartWizardSetupDataPage;
00017 class KChartWizardSelectChartTypePage;
00018 class KChartWizardSelectDataFormatPage;
00019 
00020 class KChartWizard : public KWizard
00021 {
00022     Q_OBJECT
00023 public:
00024     KChartWizard ( KChartPart* chart, QWidget *parent, const char* name,
00025            bool modal = true, WFlags f = 0 );
00026     ~KChartWizard();
00027 
00028     KChartPart* chart() const { return m_chart; };
00029 
00030     // Set and get the string for the data area.
00031     void setDataArea( const QString &dataArea );
00032     QString dataArea() const;
00033 
00034     enum RowCol { Row, Col };
00035 
00036     void emitNeedNewData( const char* area, int rowcol, 
00037               bool firstRowIsLegend, bool firstColIsLabel );
00038 
00039     virtual bool appropriate( QWidget * w ) const;
00040 
00041 signals:
00042     // valid values for rowcol: Row: data is in rows, Col: data is in cols
00043     void needNewData( const char* area, int rowcol, 
00044               bool firstRowIsLegend, bool firstColIsLabel );
00045     void finished();
00046     void cancelled();
00047 
00048 protected slots:
00049     virtual void next();
00050     virtual void reject();
00051     virtual void accept();
00052     virtual void subType(int);
00053 
00054 private:
00055     // The chart itself.
00056     KChartPart                          *m_chart;
00057 
00058     //KChartWizardSelectDataPage          *_selectdatapage;
00059     KChartWizardSelectDataFormatPage    *m_dataFormatPage;
00060     KChartWizardSelectChartTypePage     *m_chartTypePage;
00061     KChartWizardSelectChartSubTypePage  *m_chartSubtypePage;
00062     //KChartWizardSetupDataPage           *_setupdatapage;
00063     KChartWizardLabelsLegendPage        *m_labelsLegendPage;
00064     KChartWizardSetupAxesPage           *m_axespage;
00065 };
00066 
00067 }  //KChart namespace
00068 
00069 #endif
00070 
00071 
KDE Home | KDE Accessibility Home | Description of Access Keys