diff options
Diffstat (limited to 'kscreensaver/kxsconfig/kxsitem.h')
-rw-r--r-- | kscreensaver/kxsconfig/kxsitem.h | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/kscreensaver/kxsconfig/kxsitem.h b/kscreensaver/kxsconfig/kxsitem.h deleted file mode 100644 index 9e4bed3e..00000000 --- a/kscreensaver/kxsconfig/kxsitem.h +++ /dev/null @@ -1,132 +0,0 @@ -//----------------------------------------------------------------------------- -// -// KDE xscreensaver configuration dialog -// -// Copyright (c) Martin R. Jones <[email protected]> 1999 -// -// 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; -// version 2 of the License. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; see the file COPYING. If not, write to -// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -// Boston, MA 02110-1301, USA. - -#ifndef __KXSITEM_H__ -#define __KXSITEM_H__ - -#include <kconfig.h> - -class TQXmlAttributes; - -class KXSConfigItem -{ -public: - KXSConfigItem(const TQString &name, TDEConfig &config); - KXSConfigItem(const TQString &name, const TQXmlAttributes &attr); - virtual ~KXSConfigItem() {} - - virtual TQString command() = 0; - virtual void save(TDEConfig &config) = 0; - virtual void read(TDEConfig &config) = 0; - -protected: - TQString mName; - TQString mLabel; -}; - -class KXSRangeItem : public KXSConfigItem -{ -public: - KXSRangeItem(const TQString &name, TDEConfig &config); - KXSRangeItem(const TQString &name, const TQXmlAttributes &attr); - - virtual TQString command(); - virtual void save(TDEConfig &config); - virtual void read(TDEConfig &config); - -protected: - TQString mSwitch; - int mMinimum; - int mMaximum; - int mValue; - bool mInvert; -}; - -class KXSDoubleRangeItem : public KXSConfigItem -{ -public: - KXSDoubleRangeItem(const TQString &name, TDEConfig &config); - KXSDoubleRangeItem(const TQString &name, const TQXmlAttributes &attr); - - virtual TQString command(); - virtual void read(TDEConfig &config); - virtual void save(TDEConfig &config); - -protected: - TQString mSwitch; - double mMinimum; - double mMaximum; - double mValue; - bool mInvert; -}; - -class KXSBoolItem : public KXSConfigItem -{ -public: - KXSBoolItem(const TQString &name, TDEConfig &config); - KXSBoolItem(const TQString &name, const TQXmlAttributes &attr); - - virtual TQString command(); - virtual void read(TDEConfig &config); - virtual void save(TDEConfig &config); - -protected: - TQString mSwitchOn; - TQString mSwitchOff; - bool mValue; -}; - -class KXSSelectItem : public KXSConfigItem -{ -public: - KXSSelectItem(const TQString &name, TDEConfig &config); - KXSSelectItem(const TQString &name, const TQXmlAttributes &attr); - - virtual void addOption(const TQXmlAttributes &attr); - - virtual TQString command(); - - virtual void read(TDEConfig &config); - virtual void save(TDEConfig &config); - -protected: - TQStringList mOptions; - TQStringList mSwitches; - int mValue; -}; - -class KXSStringItem : public KXSConfigItem -{ -public: - KXSStringItem(const TQString &name, TDEConfig &config); - KXSStringItem(const TQString &name, const TQXmlAttributes &attr); - - virtual TQString command(); - virtual void save(TDEConfig &config); - virtual void read(TDEConfig &config); - -protected: - TQString mSwitch; - TQString mValue; -}; - -#endif - |