kchart
kchartWizardLabelsLegendPage.h00001 #ifndef _kchartWIZARDLABELSLEGENDPAGE_H
00002 #define _kchartWIZARDLABELSLEGENDPAGE_H
00003
00004 #include <qwidget.h>
00005 #include <kcolorbutton.h>
00006
00007 class QColor;
00008 class QPushButton;
00009 class QLineEdit;
00010 class QRadioButton;
00011
00012 namespace KChart
00013 {
00014
00015 class KChartPart;
00016
00017 class KChartWizardLabelsLegendPage : public QWidget
00018 {
00019 Q_OBJECT
00020
00021 public:
00022 KChartWizardLabelsLegendPage( QWidget* parent, KChartPart* chart );
00023 ~KChartWizardLabelsLegendPage();
00024
00025 #if 0
00026 bool ytitle2;
00027 #endif
00028 public slots:
00029 void apply();
00030 void changeXLabelFont();
00031 void changeYLabelFont();
00032 #if 0
00033
00034 #endif
00035 void changeTitleFont();
00036 void changeLegendTitleFont();
00037 void changeLegendTextFont();
00038 void changeXLabelColor(const QColor &);
00039 void changeYLabelColor(const QColor &);
00040 void changeTitleColor(const QColor &);
00041 #if 0
00042
00043 #endif
00044 void changeLegendTitleColor(const QColor &);
00045 void changeLegendTextColor(const QColor &);
00046
00047 protected:
00048 void paintEvent( QPaintEvent * );
00049
00050 private:
00051 KChartPart* _chart;
00052
00053 QLineEdit* _xlabelED;
00054 QLineEdit* _ylabelED;
00055 QLineEdit* _titleED;
00056 #if 0
00057 QLineEdit* _ylabel2ED;
00058 #endif
00059 QPushButton *xtitlefont;
00060 QPushButton *ytitlefont;
00061 QPushButton *titlefont;
00062 #if 0
00063 QPushButton *ytitle2font;
00064 #endif
00065 KColorButton *xtitlecolor;
00066 KColorButton *ytitlecolor;
00067 KColorButton *titlecolor;
00068 #if 0
00069 KColorButton *ytitle2color;
00070 #endif
00071
00072 QLineEdit *_legendTitleText;
00073
00074 KColorButton *legendTextColor;
00075 KColorButton *legendTitleColor;
00076
00077 QPushButton *legendTextFont;
00078 QPushButton *legendTitleFont;
00079
00080 QFont xlabel;
00081 QFont ylabel;
00082 #if 0
00083 QFont ylabel2;
00084 #endif
00085 QFont title;
00086 QColor x_color;
00087 QColor y_color;
00088 #if 0
00089 QColor y_color2;
00090 #endif
00091 QColor title_color;
00092
00093 QColor _legendTextColor;
00094 QColor _legendTitleColor;
00095
00096 QFont _legendTextFont;
00097 QFont _legendTitleFont;
00098
00099 };
00100
00101 }
00102
00103 #endif
|