You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koffice/kchart/kchartWizard.h

73 lines
1.8 KiB

#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
TQ_OBJECT
public:
KChartWizard ( KChartPart* chart, TQWidget *tqparent, 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 TQString &dataArea );
TQString dataArea() const;
enum RowCol { Row, Col };
void emitNeedNewData( const char* area, int rowcol,
bool firstRowIsLegend, bool firstColIsLabel );
virtual bool appropriate( TQWidget * 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