From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- quanta/components/csseditor/specialsb.h | 79 +++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 quanta/components/csseditor/specialsb.h (limited to 'quanta/components/csseditor/specialsb.h') diff --git a/quanta/components/csseditor/specialsb.h b/quanta/components/csseditor/specialsb.h new file mode 100644 index 00000000..43d6273e --- /dev/null +++ b/quanta/components/csseditor/specialsb.h @@ -0,0 +1,79 @@ +/*************************************************************************** + specialsb.h - description + ------------------- + begin : dom ago 3 2003 + copyright : (C) 2003 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 SPECIALSB_H +#define SPECIALSB_H + +#include "minieditor.h" +#include +class mySpinBox; +class KLineEdit; + +/** + *@author gulmini luciano + */ + +class specialSB : public miniEditor { + Q_OBJECT + protected: + QComboBox *m_cb; + mySpinBox *m_sb; + KLineEdit *m_lineEdit; + + public: + specialSB(QWidget *parent=0, const char *name=0, bool useLineEdit = false); + ~specialSB(); + void insertItem(const QString& s){ m_cb->insertItem(s); } + void setInitialValue(const QString& s); + QStringList cbValueList(); + virtual void connectToPropertySetter(propertySetter* p); + + public slots: + void cbValueSlot(const QString&); + void sbValueSlot(const QString&); + void lineEditValueSlot(const QString&); + + signals: + void valueChanged(const QString&); + +}; + +class angleEditor : public specialSB { + Q_OBJECT + public: + angleEditor(QWidget *parent=0, const char *name=0); +}; + +class frequencyEditor : public specialSB { + Q_OBJECT + public: + frequencyEditor(QWidget *parent=0, const char *name=0); +}; + +class timeEditor : public specialSB { + Q_OBJECT + public: + timeEditor(QWidget *parent=0, const char *name=0); +}; + +class lengthEditor : public specialSB { + Q_OBJECT + public: + lengthEditor(QWidget *parent=0, const char *name=0); +}; + +#endif -- cgit v1.2.1