kchart

kchartWizardSetupAxesPage.h

00001 #ifndef _kchartWIZARDSETUPAXESPAGE_H
00002 #define _kchartWIZARDSETUPAXESPAGE_H
00003 
00004 #include <qwidget.h>
00005 #include <kcolorbutton.h>
00006 
00007 class QColor;
00008 class QLineEdit;
00009 class QSpinBox;
00010 class QPushButton;
00011 class QCheckBox;
00012 
00013 namespace KChart
00014 {
00015 
00016 class KChartPart;
00017 class kchartWidget;
00018 
00019 class KChartWizardSetupAxesPage : public QWidget
00020 {
00021   Q_OBJECT
00022 
00023 public:
00024   KChartWizardSetupAxesPage( QWidget* parent, KChartPart* chart );
00025   ~KChartWizardSetupAxesPage();
00026   bool chart3d;
00027 public slots:
00028       void apply();
00029       void changeLabelColor(const QColor &);
00030       void changeLabelFont();
00031       void changeBorderColor(const QColor &);
00032       void changeGridColor(const QColor &);
00033 protected:
00034       void paintEvent( QPaintEvent *_ev );
00035 
00036 private:
00037   kchartWidget* preview;
00038   KChartPart* _chart;
00039   QCheckBox* gridX;
00040   QCheckBox* gridY;
00041   QCheckBox* border;
00042   QLineEdit *y_interval;
00043   QLineEdit *y_max;
00044   QLineEdit *y_min;
00045   QLineEdit *ylabel_fmt;
00046 #if 0
00047   QLineEdit *ylabel2_fmt;
00048 #endif
00049   QSpinBox *angle;
00050   QSpinBox *depth;
00051   QSpinBox *barWidth;
00052   QPushButton *ylabelFont;
00053   KColorButton *borderColor;
00054   KColorButton *gridColor;
00055   KColorButton *ylabelColor;
00056   QFont ylabel;
00057   QColor ycolor;
00058   QColor colorGrid;
00059   QColor colorBorder;
00060 };
00061 
00062 }  //namespace KChart
00063 
00064 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys