summaryrefslogtreecommitdiffstats
path: root/kchart/kchartWizardLabelsLegendPage.h
blob: 8144ea3eebf91a6caef46d160f329a593ac8dd0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#ifndef _kchartWIZARDLABELSLEGENDPAGE_H
#define _kchartWIZARDLABELSLEGENDPAGE_H

#include <tqwidget.h>
#include <kcolorbutton.h>

class TQColor;
class TQPushButton;
class TQLineEdit;
class TQRadioButton;

namespace KChart
{

class KChartPart;

class KChartWizardLabelsLegendPage : public TQWidget
{
  Q_OBJECT
  TQ_OBJECT

public:
  KChartWizardLabelsLegendPage( TQWidget* tqparent, KChartPart* chart );
  ~KChartWizardLabelsLegendPage();

#if 0
  bool ytitle2;
#endif
public slots:
  void apply();
  void changeXLabelFont();
  void changeYLabelFont();
#if 0
  //void changeY2LabelFont();
#endif
  void changeTitleFont();
  void changeLegendTitleFont();
  void changeLegendTextFont();
  void changeXLabelColor(const TQColor &);
  void changeYLabelColor(const TQColor &);
  void changeTitleColor(const TQColor &);
#if 0
  //void changeYTitle2Color(const TQColor &);
#endif
  void changeLegendTitleColor(const TQColor &);
  void changeLegendTextColor(const TQColor &);

protected:
  void paintEvent( TQPaintEvent * );

private:
  KChartPart* _chart;
  //kchartWidget* preview;
  TQLineEdit* _xlabelED;
  TQLineEdit* _ylabelED;
  TQLineEdit* _titleED;
#if 0
  TQLineEdit* _ylabel2ED;
#endif
  TQPushButton *xtitlefont;
  TQPushButton *ytitlefont;
  TQPushButton *titlefont;
#if 0
  TQPushButton *ytitle2font;
#endif
  KColorButton *xtitlecolor;
  KColorButton *ytitlecolor;
  KColorButton *titlecolor;
#if 0
  KColorButton *ytitle2color;
#endif

  TQLineEdit *_legendTitleText;

  KColorButton *legendTextColor;
  KColorButton *legendTitleColor;

  TQPushButton *legendTextFont;
  TQPushButton *legendTitleFont;

  TQFont xlabel;
  TQFont ylabel;
#if 0
  TQFont ylabel2;
#endif
  TQFont title;
  TQColor x_color;
  TQColor y_color;
#if 0
  TQColor y_color2;
#endif
  TQColor title_color;

  TQColor _legendTextColor;
  TQColor _legendTitleColor;

  TQFont _legendTextFont;
  TQFont _legendTitleFont;

};

}  //KChart namespace

#endif