diff options
Diffstat (limited to 'src/sources/source.h')
-rw-r--r-- | src/sources/source.h | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/src/sources/source.h b/src/sources/source.h index 6f72666..6ae53c5 100644 --- a/src/sources/source.h +++ b/src/sources/source.h @@ -20,51 +20,52 @@ #ifndef SOURCE_H #define SOURCE_H -#include <qstring.h> +#include <tqstring.h> #include "sourceprefs.h" #include <kconfig.h> // Forward Declarationss -class QVBoxLayout; +class TQVBoxLayout; /** * This abstract Source is the super class of all sources and provides just the basics. * @author Ken Werner */ -class Source : public QObject { - Q_OBJECT //macro which activates signals and slots (moc) +class Source : public TQObject { + Q_OBJECT + TQ_OBJECT //macro which activates signals and slots (tqmoc) public: /** * Creates a new Source */ - Source(QWidget* inParent); + Source(TQWidget* inParent); virtual ~Source(); /** * Returns the internal Name of this source */ - const QString& getID() const; + const TQString& getID() const; /** - * Returns the position of this source in the layout + * Returns the position of this source in the tqlayout */ int getPosition() const; /** - * Sets the position of this source in the layout + * Sets the position of this source in the tqlayout */ void setPosition(int inPosition, KConfig* inKConfig); /** * Returns the Name of this source */ - const QString& getName() const; + const TQString& getName() const; /** * Returns the Description of this source */ - const QString& getDescription() const; + const TQString& getDescription() const; /** * Returns true if this source is currently enabled otherwise false @@ -89,17 +90,17 @@ public: /** * Returns the widget of this source that is displayed in the kicker */ - virtual QWidget* getWidget() = 0; + virtual TQWidget* getWidget() = 0; /** * Returns the formatted value of this source */ - virtual QString getValue() const = 0; + virtual TQString getValue() const = 0; /** * Creates the preference panel of this source and calls createSubPrefs */ - virtual QWidget* createPrefs(QWidget* inParent); + virtual TQWidget* createPrefs(TQWidget* inParent); /** * returnes the preference panel of this source @@ -144,9 +145,9 @@ signals: /** * This signal is emitted whenever the enabled flag (mEnabled) of this source has changed */ - void enabledChanged(bool inEnabled, Source* inSource); // needed by kima.cpp to add sources to its layout + void enabledChanged(bool inEnabled, Source* inSource); // needed by kima.cpp to add sources to its tqlayout /** - * This signal is emitted whenever this Source should be added or removed from the display (layout) of the kicker applet + * This signal is emitted whenever this Source should be added or removed from the display (tqlayout) of the kicker applet */ void displaySource(bool inDisplay, Source* inSource); @@ -154,12 +155,12 @@ protected: /** * This method can be overridden in sub classes to add specific the preference panels */ - virtual void addPrefs(QWidget* inParent); + virtual void addPrefs(TQWidget* inParent); /** * Allows subclasses adding their own preferences using the addPrefs method */ - virtual void createSubPrefs(QWidget* inParent) = 0; + virtual void createSubPrefs(TQWidget* inParent) = 0; /** * This method enables or disables various widgets of the preferences dialog depending on isEnabled and isShownOnApplet @@ -176,19 +177,19 @@ protected: * The ID of the source * must be unique among the sources */ - QString mID; + TQString mID; /** - * The Position of the source in the layout + * The Position of the source in the tqlayout */ int mPosition; /** * The name of that source showed in the kicker */ - QString mName; + TQString mName; /** * The description of that source */ - QString mDescription; + TQString mDescription; /** * Indicates whether that source is enabled (showed on the kicker) or not */ @@ -221,11 +222,11 @@ protected: * formats the given temperature into a string which has * a degree sign / fahrenheit sign depending on the locale used. */ - QString formatTemperature(const QString& temp) const; + TQString formatTemperature(const TQString& temp) const; /** * Translates a given frequency in KHz to a human readable string */ - QString KHzinHumanReadable(uint value) const; + TQString KHzinHumanReadable(uint value) const; /** * Translates degree Celsius to degree Fahrenheit */ |