summaryrefslogtreecommitdiffstats
path: root/kommander/executor/instance.h
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/executor/instance.h')
-rw-r--r--kommander/executor/instance.h126
1 files changed, 63 insertions, 63 deletions
diff --git a/kommander/executor/instance.h b/kommander/executor/instance.h
index 66b97455..443e8db5 100644
--- a/kommander/executor/instance.h
+++ b/kommander/executor/instance.h
@@ -20,11 +20,11 @@
#define INSTANCE_H
/* QT INCLUDES */
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qobject.h>
-#include <qmap.h>
-#include <qguardedptr.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqobject.h>
+#include <tqmap.h>
+#include <tqguardedptr.h>
/* KDE INCLUDES */
#include <kurl.h>
@@ -40,13 +40,13 @@ class KommanderWidget;
-class Instance : public QObject, virtual public DCOPKommanderIf
+class Instance : public TQObject, virtual public DCOPKommanderIf
{
Q_OBJECT
public:
Instance();
- Instance(QWidget*);
+ Instance(TQWidget*);
~Instance();
/* passing global variables: two forms are accepted.
kdmr-executor file.kmdr COUNT=45 PATH=/tmp - this adds global variables 45 and PATH
@@ -54,65 +54,65 @@ public:
ARGS holds space-separated list of all second-type variables (like Bash $@)
ARGCOUNT holds number of second-type arguments
*/
- virtual void addCmdlineArguments(const QStringList& args);
+ virtual void addCmdlineArguments(const TQStringList& args);
//DCOP methods. The documentation is in the widgets/specials.cpp file.
- virtual void setEnabled(const QString& widgetName, bool enable);
- virtual void enableWidget(const QString& widgetName, bool enable); /* DEPRECATED */
- virtual void setVisible(const QString& widgetName, bool enable);
- virtual void setText(const QString& widgetName, const QString& text);
- virtual void changeWidgetText(const QString& widgetName, const QString& text); /* DEPRECATED */
- virtual QString text(const QString& widgetName);
- virtual void setSelection(const QString& widgetName, const QString& text);
- virtual void setCurrentListItem(const QString& widgetName, const QString& text); /* DEPRECATED */
- virtual QString selection(const QString& widgetName);
- virtual int currentItem(const QString &widgetName);
- virtual QString item(const QString &widgetName, int index);
- virtual int itemDepth(const QString &widgetName, int index);
- virtual QString itemPath(const QString &widgetName, int index);
- virtual void removeItem(const QString &widgetName, int index);
- virtual void removeListItem(const QString &widgetName, int index); /* DEPRECATED */
- virtual void insertItem(const QString &widgetName, const QString &item, int index);
- virtual void addListItem(const QString &widgetName, const QString &item, int index); /* DEPRECATED */
- virtual void setPixmap(const QString &widgetName, const QString &iconName, int index);
- virtual void insertItems(const QString &widgetName, const QStringList &items, int index);
- virtual void addListItems(const QString &widgetName, const QStringList &items, int index);/*DEPRECATED*/
- virtual void addUniqueItem(const QString &widgetName, const QString &item);
- virtual int findItem(const QString &widgetName, const QString &item);
- virtual void clear(const QString &widgetName);
- virtual void clearList(const QString &widgetName); /* DEPRECATED */
- virtual void setCurrentItem(const QString &widgetName, int index);
- virtual void setCurrentTab(const QString &widgetName, int index); /* DEPRECATED */
- virtual void insertTab(const QString &widgetName, const QString &label, int index);
- virtual void setChecked(const QString &widgetName, bool checked);
- virtual bool checked(const QString &widgetName);
- virtual void setAssociatedText(const QString &widgetName, const QString &text);
- virtual QStringList associatedText(const QString &widgetName);
- virtual QString type(const QString& widget);
- virtual QStringList children(const QString& parent, bool recursive);
- virtual QString global(const QString& variableName);
- virtual void setGlobal(const QString& variableName, const QString& value);
- virtual void setMaximum(const QString &widgetName, int value);
- virtual QString execute(const QString &widgetName);
- virtual void cancel(const QString &widgetName);
- virtual int count(const QString &widgetName);
- virtual int currentColumn(const QString &widgetName);
- virtual int currentRow(const QString &widgetName);
- virtual void insertRow(const QString &widgetName, int row, int count);
- virtual void insertColumn(const QString &widgetName, int column, int count);
- virtual void setCellText(const QString &widgetName, int row, int column, const QString& text);
- virtual QString cellText(const QString &widgetName, int row, int column);
- virtual void removeRow(const QString &widgetName, int row, int count);
- virtual void removeColumn(const QString &widgetName, int column, int count);
- virtual void setRowCaption(const QString &widgetName, int row, const QString& text);
- virtual void setColumnCaption(const QString &widgetName, int column, const QString& text);
+ virtual void setEnabled(const TQString& widgetName, bool enable);
+ virtual void enableWidget(const TQString& widgetName, bool enable); /* DEPRECATED */
+ virtual void setVisible(const TQString& widgetName, bool enable);
+ virtual void setText(const TQString& widgetName, const TQString& text);
+ virtual void changeWidgetText(const TQString& widgetName, const TQString& text); /* DEPRECATED */
+ virtual TQString text(const TQString& widgetName);
+ virtual void setSelection(const TQString& widgetName, const TQString& text);
+ virtual void setCurrentListItem(const TQString& widgetName, const TQString& text); /* DEPRECATED */
+ virtual TQString selection(const TQString& widgetName);
+ virtual int currentItem(const TQString &widgetName);
+ virtual TQString item(const TQString &widgetName, int index);
+ virtual int itemDepth(const TQString &widgetName, int index);
+ virtual TQString itemPath(const TQString &widgetName, int index);
+ virtual void removeItem(const TQString &widgetName, int index);
+ virtual void removeListItem(const TQString &widgetName, int index); /* DEPRECATED */
+ virtual void insertItem(const TQString &widgetName, const TQString &item, int index);
+ virtual void addListItem(const TQString &widgetName, const TQString &item, int index); /* DEPRECATED */
+ virtual void setPixmap(const TQString &widgetName, const TQString &iconName, int index);
+ virtual void insertItems(const TQString &widgetName, const TQStringList &items, int index);
+ virtual void addListItems(const TQString &widgetName, const TQStringList &items, int index);/*DEPRECATED*/
+ virtual void addUniqueItem(const TQString &widgetName, const TQString &item);
+ virtual int findItem(const TQString &widgetName, const TQString &item);
+ virtual void clear(const TQString &widgetName);
+ virtual void clearList(const TQString &widgetName); /* DEPRECATED */
+ virtual void setCurrentItem(const TQString &widgetName, int index);
+ virtual void setCurrentTab(const TQString &widgetName, int index); /* DEPRECATED */
+ virtual void insertTab(const TQString &widgetName, const TQString &label, int index);
+ virtual void setChecked(const TQString &widgetName, bool checked);
+ virtual bool checked(const TQString &widgetName);
+ virtual void setAssociatedText(const TQString &widgetName, const TQString &text);
+ virtual TQStringList associatedText(const TQString &widgetName);
+ virtual TQString type(const TQString& widget);
+ virtual TQStringList children(const TQString& parent, bool recursive);
+ virtual TQString global(const TQString& variableName);
+ virtual void setGlobal(const TQString& variableName, const TQString& value);
+ virtual void setMaximum(const TQString &widgetName, int value);
+ virtual TQString execute(const TQString &widgetName);
+ virtual void cancel(const TQString &widgetName);
+ virtual int count(const TQString &widgetName);
+ virtual int currentColumn(const TQString &widgetName);
+ virtual int currentRow(const TQString &widgetName);
+ virtual void insertRow(const TQString &widgetName, int row, int count);
+ virtual void insertColumn(const TQString &widgetName, int column, int count);
+ virtual void setCellText(const TQString &widgetName, int row, int column, const TQString& text);
+ virtual TQString cellText(const TQString &widgetName, int row, int column);
+ virtual void removeRow(const TQString &widgetName, int row, int count);
+ virtual void removeColumn(const TQString &widgetName, int column, int count);
+ virtual void setRowCaption(const TQString &widgetName, int row, const TQString& text);
+ virtual void setColumnCaption(const TQString &widgetName, int column, const TQString& text);
virtual int getWinID();
virtual void setBusyCursor(bool busy);
- QWidget *widget() { return m_instance;}
+ TQWidget *widget() { return m_instance;}
public slots:
/** Sets the instance's parent */
- void setParent(QWidget*);
+ void setParent(TQWidget*);
/** Returns whether the instance is built */
bool isBuilt() const;
/** Builds the instance. Uses stdin if no filename is given */
@@ -123,15 +123,15 @@ private:
/** Check if the file exists, has correct extension and is not in a temporary (insecure) directory */
bool isFileValid(const KURL& fname) const;
/* Dialog Instance */
- QGuardedPtr<QWidget> m_instance;
+ TQGuardedPtr<TQWidget> m_instance;
/* Associated Text Instance */
KommanderWidget *m_textInstance;
/** The parent widget */
- QWidget *m_parent;
+ TQWidget *m_parent;
/* Get object by name */
- QObject* stringToWidget(const QString& name);
+ TQObject* stringToWidget(const TQString& name);
/* Cast to Kommander widget if possible */
- KommanderWidget* kommanderWidget(QObject* object);
+ KommanderWidget* kommanderWidget(TQObject* object);
};
#endif