Plasma
color.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef COLOR_HEADER
00021 #define COLOR_HEADER
00022
00023 #include <QColor>
00024 #include <Plasma/Wallpaper>
00025 #include "ui_config.h"
00026
00027 class Color : public Plasma::Wallpaper
00028 {
00029 Q_OBJECT
00030 public:
00031 Color(QObject* parent, const QVariantList& args);
00032
00033 virtual void save(KConfigGroup &config);
00034 virtual void paint(QPainter* painter, const QRectF& exposedRect);
00035 virtual QWidget* createConfigurationInterface(QWidget* parent);
00036
00037 Q_SIGNALS:
00038 void settingsChanged(bool modified);
00039
00040 protected:
00041 virtual void init(const KConfigGroup &config);
00042
00043 protected slots:
00044 void settingsModified();
00045
00046 private:
00047 Ui::Config m_ui;
00048 QColor m_color1;
00049 QColor m_color2;
00050
00051 int m_backgroundMode;
00052 };
00053
00054 K_EXPORT_PLASMA_WALLPAPER(color, Color)
00055
00056 #endif