summaryrefslogtreecommitdiffstats
path: root/quanta/plugins/quantaplugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/plugins/quantaplugin.h')
-rw-r--r--quanta/plugins/quantaplugin.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/quanta/plugins/quantaplugin.h b/quanta/plugins/quantaplugin.h
index 08b4dbdc..fb01477c 100644
--- a/quanta/plugins/quantaplugin.h
+++ b/quanta/plugins/quantaplugin.h
@@ -22,8 +22,8 @@
#include <kparts/part.h>
/* QT INCLUDES */
-#include <qguardedptr.h>
-#include <qobject.h>
+#include <tqguardedptr.h>
+#include <tqobject.h>
class QString;
@@ -44,26 +44,26 @@ public:
~QuantaPlugin();
virtual bool isRunning() const;
/** Gets the superficial plugin name */
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
/** Gets the location of the plugin */
- virtual QString location() const;
+ virtual TQString location() const;
/** Gets the plugin's standard attribute */
virtual bool isStandard() const;
/** Gets the output window */
- virtual QString outputWindow() const;
+ virtual TQString outputWindow() const;
/** Returns true if the plugin specified by a_plugin is valid, false otherwise */
static bool validatePlugin(QuantaPlugin *);
/** Returns true if the options of a plugin are valid, otherwise false */
- static bool validatePluginInfo(const QString &, const QString &,
- const QString &, const QString &);
+ static bool validatePluginInfo(const TQString &, const TQString &,
+ const TQString &, const TQString &);
virtual void addWidget();
virtual void removeWidget();
- QWidget *widget();
+ TQWidget *widget();
KParts::ReadOnlyPart *part() {return m_part;}
- QString name() {return m_name;}
+ TQString name() {return m_name;}
/** plugs action into menu */
- void plugAction(QPopupMenu *menu);
+ void plugAction(TQPopupMenu *menu);
public slots:
/** Sets whether the plugin is running or not */
virtual void setRunning(bool);
@@ -76,29 +76,29 @@ public slots:
/** Runs the plugin if it's not running yet, unloads otherwise.*/
virtual bool toggle();
/** Sets the superficial name of the plugin */
- virtual void setPluginName(const QString &);
+ virtual void setPluginName(const TQString &);
/** Sets the output window */
- virtual void setOutputWindow(const QString &);
+ virtual void setOutputWindow(const TQString &);
/** Sets the plugin's standard attribute */
virtual void setStandard(bool isStandard);
/** Sets the location of the plugin */
- virtual void setLocation(const QString &);
+ virtual void setLocation(const TQString &);
/** Sets the file name of the plugin */
- virtual void setFileName(const QString &);
+ virtual void setFileName(const TQString &);
/** Returns the file name of the plugin */
- virtual QString fileName() const;
+ virtual TQString fileName() const;
virtual int input() {return m_input;}
virtual void setInput(int a_input) { m_input = a_input;}
/** Returns whether the plugin is loaded or not */
virtual bool isLoaded();
/** No descriptions */
- void setIcon(const QString& a_icon);
+ void setIcon(const TQString& a_icon);
/** No descriptions */
- QString icon();
+ TQString icon();
/** No descriptions */
- void setStandardName(const QString& a_stdName);
+ void setStandardName(const TQString& a_stdName);
/** No descriptions */
- QString standardName();
+ TQString standardName();
void setReadOnlyPart(bool a_readOnlyPart) {m_readOnlyPart = a_readOnlyPart;}
bool readOnlyPart() {return m_readOnlyPart;}
signals:
@@ -106,23 +106,23 @@ signals:
void pluginStopped();
protected:
/** Superficial name of plugin */
- QString m_fileName;
- QString m_name;
- QString m_location;
- QString m_icon;
- QString m_outputWindow;
+ TQString m_fileName;
+ TQString m_name;
+ TQString m_location;
+ TQString m_icon;
+ TQString m_outputWindow;
int m_input;
/** True, if it is not a user added plugin. Special handling code may be necessary for standard plugins. */
bool m_standard;
bool m_isRunning;
- QGuardedPtr<KParts::ReadOnlyPart> m_part;
+ TQGuardedPtr<KParts::ReadOnlyPart> m_part;
bool m_readOnlyPart;
QuantaView *m_view;
KToggleAction *m_action;
private: // Private attributes
- QString m_standardName;
+ TQString m_standardName;
KMdiToolViewAccessor* m_pluginToolView;
- QWidget *m_targetWidget; //this will be the parent, used only to make the plugin widget hidden until addWidget is called
+ TQWidget *m_targetWidget; //this will be the parent, used only to make the plugin widget hidden until addWidget is called
};
#endif