diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e9ae80694875f869892f13f4fcaf1170a00dea41 (patch) | |
tree | aa2f8d8a217e2d376224c8d46b7397b68d35de2d /quanta/components/csseditor/colorslider.h | |
download | tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/components/csseditor/colorslider.h')
-rw-r--r-- | quanta/components/csseditor/colorslider.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/quanta/components/csseditor/colorslider.h b/quanta/components/csseditor/colorslider.h new file mode 100644 index 00000000..41a78fa9 --- /dev/null +++ b/quanta/components/csseditor/colorslider.h @@ -0,0 +1,69 @@ +/*************************************************************************** + colorslider.h - description + ------------------- + begin : lun ago 9 2004 + copyright : (C) 2004 by gulmini luciano + email : gulmini.luciano@student.unife.it + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef COLORSLIDER_H +#define COLORSLIDER_H + +#include <qslider.h> + +#include "minieditor.h" + + + +/** + *@author gulmini luciano + */ + +class colorSlider : public miniEditor { + Q_OBJECT + private : + QString m_functionName; + protected: + QSlider *m_leftValue, + *m_centerValue, + *m_rightValue; + public: + colorSlider(const QString& functionName,const QString& l=QString::null,const QString& c=QString::null,const QString& r=QString::null,QWidget *parent=0, const char *name=0); + virtual ~colorSlider(); + virtual void connectToPropertySetter(propertySetter* p); + + private slots: + void convertLeftValue(int i); + void convertCenterValue(int i); + void convertRightValue(int i); + + signals: + void valueChanged(const QString&); +}; + +class RGBcolorSlider : public colorSlider { + Q_OBJECT + public: + RGBcolorSlider(QWidget *parent=0, const char *name=0); + ~RGBcolorSlider(){} +}; + +//FOR CSS3 +/*class HSLcolorSlider : public colorSlider { + Q_OBJECT + public: + HSLcolorSlider(QWidget *parent=0, const char *name=0); + ~HSLcolorSlider(); +};*/ + + +#endif |