diff options
Diffstat (limited to 'kdbg/mainwndbase.h')
-rw-r--r-- | kdbg/mainwndbase.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/kdbg/mainwndbase.h b/kdbg/mainwndbase.h index 36b1c6d..df8023b 100644 --- a/kdbg/mainwndbase.h +++ b/kdbg/mainwndbase.h @@ -7,10 +7,10 @@ #ifndef MAINWNDBASE_H #define MAINWNDBASE_H -#include <qlineedit.h> -#include <qlayout.h> -#include <qpushbutton.h> -#include <qcstring.h> +#include <ntqlineedit.h> +#include <ntqlayout.h> +#include <ntqpushbutton.h> +#include <ntqcstring.h> #include "exprwnd.h" #include "sys/types.h" /* pid_t */ @@ -23,33 +23,33 @@ class KStatusBar; class KProcess; class DebuggerDriver; -class WatchWindow : public QWidget +class WatchWindow : public TQWidget { Q_OBJECT public: - WatchWindow(QWidget* parent, const char* name, WFlags f = 0); + WatchWindow(TQWidget* parent, const char* name, WFlags f = 0); ~WatchWindow(); ExprWnd* watchVariables() { return &m_watchVariables; } - QString watchText() const { return m_watchEdit.text(); } + TQString watchText() const { return m_watchEdit.text(); } int columnWidth(int i) const { return m_watchVariables.columnWidth(i); } void setColumnWidth(int i, int w) { m_watchVariables.setColumnWidth(i, w); } protected: - QLineEdit m_watchEdit; - QPushButton m_watchAdd; - QPushButton m_watchDelete; + TQLineEdit m_watchEdit; + TQPushButton m_watchAdd; + TQPushButton m_watchDelete; ExprWnd m_watchVariables; - QVBoxLayout m_watchV; - QHBoxLayout m_watchH; + TQVBoxLayout m_watchV; + TQHBoxLayout m_watchH; - virtual bool eventFilter(QObject* ob, QEvent* ev); - virtual void dragEnterEvent(QDragEnterEvent* event); - virtual void dropEvent(QDropEvent* event); + virtual bool eventFilter(TQObject* ob, TQEvent* ev); + virtual void dragEnterEvent(TQDragEnterEvent* event); + virtual void dropEvent(TQDropEvent* event); signals: void addWatch(); void deleteWatch(); - void textDropped(const QString& text); + void textDropped(const TQString& text); protected slots: void slotWatchHighlighted(); @@ -66,35 +66,35 @@ public: * Sets the command to invoke the terminal that displays the program * output. If cmd is the empty string, the default is substituted. */ - void setTerminalCmd(const QString& cmd); + void setTerminalCmd(const TQString& cmd); /** * Sets the command to invoke the debugger. */ - void setDebuggerCmdStr(const QString& cmd); + void setDebuggerCmdStr(const TQString& cmd); /** * Specifies the file where to write the transcript. */ - void setTranscript(const QString& name); + void setTranscript(const TQString& name); /** * Starts to debug the specified program using the specified language * driver. */ - bool debugProgram(const QString& executable, QString lang, QWidget* parent); + bool debugProgram(const TQString& executable, TQString lang, TQWidget* parent); /** * Specifies the process to attach to after the program is loaded. */ - void setAttachPid(const QString& pid); + void setAttachPid(const TQString& pid); // the following are needed to handle program arguments - void setCoreFile(const QString& corefile); - void setRemoteDevice(const QString &remoteDevice); - void overrideProgramArguments(const QString& args); + void setCoreFile(const TQString& corefile); + void setRemoteDevice(const TQString &remoteDevice); + void overrideProgramArguments(const TQString& args); /** helper around KFileDialog */ - static QString myGetFileName(QString caption, - QString dir, QString filter, - QWidget* parent); + static TQString myGetFileName(TQString caption, + TQString dir, TQString filter, + TQWidget* parent); /** invokes the global options dialog */ - virtual void doGlobalOptions(QWidget* parent); + virtual void doGlobalOptions(TQWidget* parent); protected: // settings @@ -105,45 +105,45 @@ protected: virtual TTYWindow* ttyWindow() = 0; // statusbar texts - QString m_statusActive; + TQString m_statusActive; // output window - QString m_outputTermCmdStr; - QString m_outputTermKeepScript; + TQString m_outputTermCmdStr; + TQString m_outputTermKeepScript; KProcess* m_outputTermProc; int m_ttyLevel; - virtual QString createOutputWindow(); /* returns terminal name */ + virtual TQString createOutputWindow(); /* returns terminal name */ void shutdownTermWindow(); - QString m_lastDirectory; /* the dir of the most recently opened file */ + TQString m_lastDirectory; /* the dir of the most recently opened file */ - QString m_transcriptFile; /* where gdb dialog is logged */ + TQString m_transcriptFile; /* where gdb dialog is logged */ bool m_popForeground; /* whether main wnd raises when prog stops */ int m_backTimeout; /* when wnd goes back */ int m_tabWidth; /* tab width in characters (can be 0) */ - QString m_sourceFilter; - QString m_headerFilter; + TQString m_sourceFilter; + TQString m_headerFilter; // the debugger proper - QString m_debuggerCmdStr; + TQString m_debuggerCmdStr; KDebugger* m_debugger; - void setupDebugger(QWidget* parent, + void setupDebugger(TQWidget* parent, ExprWnd* localVars, ExprWnd* watchVars, - QListBox* backtrace); - DebuggerDriver* driverFromLang(QString lang); + TQListBox* backtrace); + DebuggerDriver* driverFromLang(TQString lang); /** * This function derives a driver name from the contents of the named * file. */ - QString driverNameFromFile(const QString& exe); + TQString driverNameFromFile(const TQString& exe); public: /* * Important! The following functions must be overridden in derived * classes and be declared as slots! Note: These must not be declared - * virtual here since Qt signal mechanism fails miserably (because this + * virtual here since TQt signal mechanism fails miserably (because this * class will not be the left-most base class!). */ void newStatusMsg(KStatusBar* statusbar); |