kchart

kchartWizardLabelsLegendPage.h
1#ifndef _kchartWIZARDLABELSLEGENDPAGE_H
2#define _kchartWIZARDLABELSLEGENDPAGE_H
3
4#include <tqwidget.h>
5#include <kcolorbutton.h>
6
7class TQColor;
8class TQPushButton;
9class TQLineEdit;
10class TQRadioButton;
11
12namespace KChart
13{
14
15class KChartPart;
16
17class KChartWizardLabelsLegendPage : public TQWidget
18{
19 TQ_OBJECT
20
21
22public:
23 KChartWizardLabelsLegendPage( TQWidget* parent, KChartPart* chart );
24 ~KChartWizardLabelsLegendPage();
25
26#if 0
27 bool ytitle2;
28#endif
29public slots:
30 void apply();
31 void changeXLabelFont();
32 void changeYLabelFont();
33#if 0
34 //void changeY2LabelFont();
35#endif
36 void changeTitleFont();
37 void changeLegendTitleFont();
38 void changeLegendTextFont();
39 void changeXLabelColor(const TQColor &);
40 void changeYLabelColor(const TQColor &);
41 void changeTitleColor(const TQColor &);
42#if 0
43 //void changeYTitle2Color(const TQColor &);
44#endif
45 void changeLegendTitleColor(const TQColor &);
46 void changeLegendTextColor(const TQColor &);
47
48protected:
49 void paintEvent( TQPaintEvent * );
50
51private:
52 KChartPart* _chart;
53 //kchartWidget* preview;
54 TQLineEdit* _xlabelED;
55 TQLineEdit* _ylabelED;
56 TQLineEdit* _titleED;
57#if 0
58 TQLineEdit* _ylabel2ED;
59#endif
60 TQPushButton *xtitlefont;
61 TQPushButton *ytitlefont;
62 TQPushButton *titlefont;
63#if 0
64 TQPushButton *ytitle2font;
65#endif
66 KColorButton *xtitlecolor;
67 KColorButton *ytitlecolor;
68 KColorButton *titlecolor;
69#if 0
70 KColorButton *ytitle2color;
71#endif
72
73 TQLineEdit *_legendTitleText;
74
75 KColorButton *legendTextColor;
76 KColorButton *legendTitleColor;
77
78 TQPushButton *legendTextFont;
79 TQPushButton *legendTitleFont;
80
81 TQFont xlabel;
82 TQFont ylabel;
83#if 0
84 TQFont ylabel2;
85#endif
86 TQFont title;
87 TQColor x_color;
88 TQColor y_color;
89#if 0
90 TQColor y_color2;
91#endif
92 TQColor title_color;
93
94 TQColor _legendTextColor;
95 TQColor _legendTitleColor;
96
97 TQFont _legendTextFont;
98 TQFont _legendTitleFont;
99
100};
101
102} //KChart namespace
103
104#endif