lib
ko_gray_widget.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KO_GRAY_WIDGET_H
00020 #define KO_GRAY_WIDGET_H
00021
00022 #include "qwidget.h"
00023
00024 #include <koffice_export.h>
00025 #include <kdualcolorbutton.h>
00026
00027 class KoFrameButton;
00028 class QGridLayout;
00029 class QColor;
00030 class KoColorSlider;
00031 class QLabel;
00032 class QSpinBox;
00033 class KDualColorButton;
00034
00035 class KoGrayWidget
00036 : public QWidget
00037 {
00038 Q_OBJECT
00039 typedef QWidget super;
00040
00041 public:
00042 KoGrayWidget(QWidget *parent = 0L, const char *name = 0);
00043 virtual ~KoGrayWidget() {}
00044
00045 public slots:
00049 virtual void setFgColor(const QColor & c);
00050 virtual void setBgColor(const QColor & c);
00051
00052 signals:
00053
00057 virtual void sigFgColorChanged(const QColor & c);
00058 virtual void sigBgColorChanged(const QColor & c);
00059
00060 protected slots:
00061 virtual void slotChanged(int v);
00062
00063 void slotFGColorSelected(const QColor& c);
00064 void slotBGColorSelected(const QColor& c);
00065 void currentChanged(KDualColorButton::DualColor);
00066
00067 private:
00068
00069 void update(const QColor & fgColor, const QColor & bgColor);
00070
00071 KoColorSlider *mSlider;
00072 QLabel *mLabel;
00073 QSpinBox *mIn;
00074 KDualColorButton *m_ColorButton;
00075
00076 QColor m_fgColor;
00077 QColor m_bgColor;
00078 };
00079
00080 #endif
|