diff options
Diffstat (limited to 'kchart/kchartWizard.h')
| -rw-r--r-- | kchart/kchartWizard.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/kchart/kchartWizard.h b/kchart/kchartWizard.h new file mode 100644 index 000000000..88d309acc --- /dev/null +++ b/kchart/kchartWizard.h @@ -0,0 +1,71 @@ +#ifndef kchartWIZARD_H +#define kchartWIZARD_H + +#include <klocale.h> +#include "kwizard.h" +#include "kchart_part.h" + +namespace KChart +{ + +class KChartPart; +class KChartWizardSetupAxesPage; +class KChartWizardLabelsLegendPage; +class KChartWizardSelectChartSubTypePage; +class KChartWizardSelectDataPage; +class KChartWizardSetupDataPage; +class KChartWizardSelectChartTypePage; +class KChartWizardSelectDataFormatPage; + +class KChartWizard : public KWizard +{ + Q_OBJECT +public: + KChartWizard ( KChartPart* chart, QWidget *parent, const char* name, + bool modal = true, WFlags f = 0 ); + ~KChartWizard(); + + KChartPart* chart() const { return m_chart; }; + + // Set and get the string for the data area. + void setDataArea( const QString &dataArea ); + QString dataArea() const; + + enum RowCol { Row, Col }; + + void emitNeedNewData( const char* area, int rowcol, + bool firstRowIsLegend, bool firstColIsLabel ); + + virtual bool appropriate( QWidget * w ) const; + +signals: + // valid values for rowcol: Row: data is in rows, Col: data is in cols + void needNewData( const char* area, int rowcol, + bool firstRowIsLegend, bool firstColIsLabel ); + void finished(); + void cancelled(); + +protected slots: + virtual void next(); + virtual void reject(); + virtual void accept(); + virtual void subType(int); + +private: + // The chart itself. + KChartPart *m_chart; + + //KChartWizardSelectDataPage *_selectdatapage; + KChartWizardSelectDataFormatPage *m_dataFormatPage; + KChartWizardSelectChartTypePage *m_chartTypePage; + KChartWizardSelectChartSubTypePage *m_chartSubtypePage; + //KChartWizardSetupDataPage *_setupdatapage; + KChartWizardLabelsLegendPage *m_labelsLegendPage; + KChartWizardSetupAxesPage *m_axespage; +}; + +} //KChart namespace + +#endif + + |
