kchart

kchartWizardSelectChartTypePage.h
1#ifndef _kchartWIZARDSELECTCHARTTYPEPAGE_H
2#define _kchartWIZARDSELECTCHARTTYPEPAGE_H
3
4#include <tqlayout.h>
5#include <tqvbox.h>
6#include <tqwidget.h>
7
8#include "kchart_params.h"
9
10class TQFrame;
11class TQPushButton;
12class TQButtonGroup;
13
14namespace KChart
15{
16
17class KChartPart;
18
19// Contains a button with a text label below it
20//
21// FIXME: Move to kchartWizardSelectChartTypePage.cpp
22class KChartButton : public TQVBox
23{
24 TQ_OBJECT
25
26 public:
27 KChartButton(TQWidget* parent, const TQString &, const TQPixmap &);
28 ~KChartButton();
29
30 TQPushButton *button() const { return m_button;}
31 private:
32 TQPushButton *m_button;
33};
34
35class KChartWizardSelectChartTypePage : public TQWidget
36{
37 TQ_OBJECT
38
39
40public:
41 KChartWizardSelectChartTypePage( TQWidget* parent, KChartPart* chart );
42
43public slots:
44 void apply();
45
46private slots:
47 void chartTypeSelected( int type );
48
49signals:
50 void chartChange(int);
51
52private:
53 void addButton(const TQString &name, const TQString &icon_name, int type);
54 void incPos();
55
56private:
57 KChartPart *m_chart;
58
59 TQButtonGroup *m_typeBG;
60 TQGridLayout *m_layout;
61
62 // column and row position (used by addButton() to know where to put
63 // the new button)
64 int m_colPos;
65 int m_rowPos;
66
68
69};
70
71} //namespace KChart
72
73#endif
ChartType
The chart type.