diff options
Diffstat (limited to 'src/kile/kilelauncher.h')
-rw-r--r-- | src/kile/kilelauncher.h | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/src/kile/kilelauncher.h b/src/kile/kilelauncher.h index 866ba2c..e1f2e1d 100644 --- a/src/kile/kilelauncher.h +++ b/src/kile/kilelauncher.h @@ -16,11 +16,11 @@ #ifndef KILE_LAUNCHER #define KILE_LAUNCHER -#include <qobject.h> -#include <qdict.h> -#include <qstringlist.h> +#include <tqobject.h> +#include <tqdict.h> +#include <tqstringlist.h> -class QWidgetStack; +class TQWidgetStack; class KProcess; @@ -39,9 +39,10 @@ namespace KileTool * * @author Jeroen Wijnhout **/ - class Launcher : public QObject + class Launcher : public TQObject { Q_OBJECT + TQ_OBJECT public: Launcher(); @@ -53,14 +54,14 @@ namespace KileTool virtual bool selfCheck() = 0; public: - virtual void setWorkingDirectory(const QString &) {} + virtual void setWorkingDirectory(const TQString &) {} void setTool(Base *tool) { m_tool = tool; } Base* tool() { return m_tool; } signals: - void message(int, const QString & ); - void output(const QString &); + void message(int, const TQString & ); + void output(const TQString &); void exitedWith(int); void abnormalExit(); @@ -68,23 +69,24 @@ namespace KileTool void done(int); private: - //QDict<QString> *m_pdictParams; + //TQDict<TQString> *m_pdictParams; Base *m_tool; }; class ProcessLauncher : public Launcher { Q_OBJECT + TQ_OBJECT public: ProcessLauncher(const char * shellname =0); ~ProcessLauncher(); public: - void setWorkingDirectory(const QString &wd); + void setWorkingDirectory(const TQString &wd); void changeToWorkingDirectory(bool change) { m_changeTo = change; } - void setCommand(const QString & cmd) { m_cmd = cmd; } - void setOptions(const QString & opt) { m_options = opt; } + void setCommand(const TQString & cmd) { m_cmd = cmd; } + void setOptions(const TQString & opt) { m_options = opt; } public slots: bool launch(); @@ -96,7 +98,7 @@ namespace KileTool void slotProcessExited(KProcess*); private: - QString m_wd, m_cmd, m_options, m_texinputs, m_bibinputs, m_bstinputs; + TQString m_wd, m_cmd, m_options, m_texinputs, m_bibinputs, m_bstinputs; KShellProcess *m_proc; bool m_changeTo; }; @@ -104,6 +106,7 @@ namespace KileTool class KonsoleLauncher : public ProcessLauncher { Q_OBJECT + TQ_OBJECT public: KonsoleLauncher(const char * shellname =0); @@ -115,6 +118,7 @@ namespace KileTool class PartLauncher : public Launcher { Q_OBJECT + TQ_OBJECT public: PartLauncher(const char * = 0); @@ -122,7 +126,7 @@ namespace KileTool void setLibrary(const char *lib) { m_libName = lib; } void setClass(const char *clas) { m_className = clas; } - void setOptions(QString & options) { m_options = options; } + void setOptions(TQString & options) { m_options = options; } public slots: bool launch(); @@ -134,14 +138,15 @@ namespace KileTool protected: KParts::ReadOnlyPart *m_part; - QString m_state; + TQString m_state; const char *m_name, *m_libName, *m_className; - QString m_options; + TQString m_options; }; class DocPartLauncher : public PartLauncher { Q_OBJECT + TQ_OBJECT public: DocPartLauncher(const char * name = 0) : PartLauncher(name) {} |