diff options
Diffstat (limited to 'languages/cpp/debugger/variablewidget.h')
-rw-r--r-- | languages/cpp/debugger/variablewidget.h | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/languages/cpp/debugger/variablewidget.h b/languages/cpp/debugger/variablewidget.h index 369f5748..5c77ea43 100644 --- a/languages/cpp/debugger/variablewidget.h +++ b/languages/cpp/debugger/variablewidget.h @@ -21,12 +21,12 @@ #include <klistview.h> #include <kcombobox.h> -#include <qwidget.h> -#include <qtooltip.h> -#include <qvaluevector.h> -#include <qdatetime.h> -#include <qguardedptr.h> -#include <qmap.h> +#include <tqwidget.h> +#include <tqtooltip.h> +#include <tqvaluevector.h> +#include <tqdatetime.h> +#include <tqguardedptr.h> +#include <tqmap.h> #include <vector> @@ -56,19 +56,19 @@ class VariableWidget : public QWidget public: VariableWidget( GDBController* controller, GDBBreakpointWidget* breakpointWidget, - QWidget *parent=0, const char *name=0 ); + TQWidget *parent=0, const char *name=0 ); VariableTree *varTree() const { return varTree_; } -protected: // QWidget overrides - void focusInEvent(QFocusEvent *e); +protected: // TQWidget overrides + void focusInEvent(TQFocusEvent *e); public slots: void slotAddWatchVariable(); - void slotAddWatchVariable(const QString &ident); + void slotAddWatchVariable(const TQString &ident); void slotEvaluateExpression(); - void slotEvaluateExpression(const QString &ident); + void slotEvaluateExpression(const TQString &ident); private: VariableTree *varTree_; @@ -92,38 +92,38 @@ public: const char *name=0 ); virtual ~VariableTree(); - QListViewItem *lastChild() const; + TQListViewItem *lastChild() const; - QListViewItem *findRoot(QListViewItem *item) const; + TQListViewItem *findRoot(TQListViewItem *item) const; VarFrameRoot *findFrame(int frameNo, int threadNo) const; WatchRoot *findWatch(); - // (from QToolTip) Display a tooltip when the cursor is over an item - virtual void maybeTip(const QPoint &); + // (from TQToolTip) Display a tooltip when the cursor is over an item + virtual void maybeTip(const TQPoint &); GDBController* controller() const { return controller_; } signals: - void toggleWatchpoint(const QString &varName); + void toggleWatchpoint(const TQString &varName); public slots: - void slotAddWatchVariable(const QString& watchVar); - void slotEvaluateExpression(const QString& expression); + void slotAddWatchVariable(const TQString& watchVar); + void slotEvaluateExpression(const TQString& expression); void slotEvent(GDBController::event_t); - void slotItemRenamed(QListViewItem* item, int col, const QString& text); + void slotItemRenamed(TQListViewItem* item, int col, const TQString& text); private slots: - void slotContextMenu(KListView *, QListViewItem *item); - void slotVarobjNameChanged(const QString& from, const QString& to); + void slotContextMenu(KListView *, TQListViewItem *item); + void slotVarobjNameChanged(const TQString& from, const TQString& to); private: // Callbacks for gdb commands; void argumentsReady(const GDBMI::ResultRecord&); void localsReady(const GDBMI::ResultRecord&); - void frameIdReady(const QValueVector<QString>&); + void frameIdReady(const TQValueVector<TQString>&); void handleVarUpdate(const GDBMI::ResultRecord&); - void handleEvaluateExpression(const QValueVector<QString>&); + void handleEvaluateExpression(const TQValueVector<TQString>&); void variablesFetchDone(); void fetchSpecialValuesDone(); @@ -148,10 +148,10 @@ private: // helper functions /** Copies the value (second column) of the specified item to the clipboard. */ - void copyToClipboard(QListViewItem*); + void copyToClipboard(TQListViewItem*); -private: // QWidget overrides - void keyPressEvent(QKeyEvent* e); +private: // TQWidget overrides + void keyPressEvent(TQKeyEvent* e); private: GDBController* controller_; @@ -165,12 +165,12 @@ private: TrimmableItem* recentExpressions_; VarFrameRoot* currentFrameItem; - QTime fetch_time; + TQTime fetch_time; // Names of locals and arguments as reported by // gdb. - std::vector<QString> locals_and_arguments; + std::vector<TQString> locals_and_arguments; - QMap<QString, VarItem*> varobj2varitem; + TQMap<TQString, VarItem*> varobj2varitem; KPopupMenu* activePopup_; static const int idToggleWatch = 10; @@ -210,11 +210,11 @@ public: virtual ~TrimmableItem(); - QListViewItem *lastChild() const; + TQListViewItem *lastChild() const; protected: - void paintCell( QPainter *p, const QColorGroup &cg, + void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align ); }; @@ -222,7 +222,7 @@ protected: /***************************************************************************/ /***************************************************************************/ -class VarItem : public QObject, +class VarItem : public TQObject, public TrimmableItem { Q_OBJECT @@ -233,7 +233,7 @@ public: Optionally, alternative display name can be provided. */ VarItem( TrimmableItem *parent, - const QString& expression, + const TQString& expression, bool frozen = false); VarItem( TrimmableItem *parent, const GDBMI::Value& varobj, @@ -242,7 +242,7 @@ public: virtual ~VarItem(); /// Returns the gdb expression for *this. - QString gdbExpression() const; + TQString gdbExpression() const; /** Returns true is this VarItem should be unconditionally updated on each step, not matter what's the result of @@ -251,7 +251,7 @@ public: bool updateUnconditionally() const; void updateValue(); - void updateSpecialRepresentation(const QString& s); + void updateSpecialRepresentation(const TQString& s); /** Creates a fresh gdbs "variable object", if needed. Preconditions: @@ -273,7 +273,7 @@ public: void recreate(); void setOpen(bool open); - void setText (int column, const QString& text); + void setText (int column, const TQString& text); /** Mark the variable as alive, or not alive. Variables that are not alive a shown as "gray", @@ -290,7 +290,7 @@ public: void unhookFromGdb(); // Returns the text to be displayed as tooltip (the value) - QString tipText() const; + TQString tipText() const; format_t format() const; void setFormat(format_t f); @@ -302,7 +302,7 @@ public: /** Sets new top-level textual value of this variable. */ - void setValue(const QString& new_value); + void setValue(const TQString& new_value); bool isAlive() const; @@ -314,7 +314,7 @@ signals: Either 'from' or 'to' can be empty string. */ - void varobjNameChange(const QString& from, const QString& to); + void varobjNameChange(const TQString& from, const TQString& to); private: @@ -332,29 +332,29 @@ private: - gets initial value - if item is open, gets children. */ - void setVarobjName(const QString& name); + void setVarobjName(const TQString& name); /** Handle types that require special dispay, such as - QString. Return true if this is such a type. + TQString. Return true if this is such a type. The 'originalValueType_' is already initialized by the time this method is called. */ bool handleSpecialTypes(); - void paintCell( QPainter *p, const QColorGroup &cg, + void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align ); void varobjCreated(const GDBMI::ResultRecord& r); void valueDone(const GDBMI::ResultRecord& r); void childrenDone(const GDBMI::ResultRecord& r); void childrenOfFakesDone(const GDBMI::ResultRecord& r); - void handleCurrentAddress(const QValueVector<QString>& lines); - void handleType(const QValueVector<QString>& lines); + void handleCurrentAddress(const TQValueVector<TQString>& lines); + void handleType(const TQValueVector<TQString>& lines); void createChildren(const GDBMI::ResultRecord& r, bool children_of_fake); /** Called to handle the output of the cli print command. */ - void handleCliPrint(const QValueVector<QString>& lines); + void handleCliPrint(const TQValueVector<TQString>& lines); // Assuming 'expression_' is already set, returns the // displayName to use when showing this to the user. @@ -362,26 +362,26 @@ private: // gdb expression '$1' and displayName 'P4', we want the child // to show up as *P4, not as '*$1', so we can't uncondionally // use expression gdb reports to us. - QString displayName() const; + TQString displayName() const; VariableTree* varTree() const; - QString varobjFormatName() const; + TQString varobjFormatName() const; private: // The gdb expression for this varItem relatively to // parent VarItem. - QString expression_; + TQString expression_; bool highlight_; GDBController* controller_; - QString varobjName_; + TQString varobjName_; // the non-cast type of the variable - QString originalValueType_; + TQString originalValueType_; bool oldSpecialRepresentationSet_; - QString oldSpecialRepresentation_; + TQString oldSpecialRepresentation_; format_t format_; @@ -390,8 +390,8 @@ private: int numChildren_; bool childrenFetched_; - QString currentAddress_; - QString lastObtainedAddress_; + TQString currentAddress_; + TQString lastObtainedAddress_; bool updateUnconditionally_; bool frozen_; @@ -425,7 +425,7 @@ public: // this item, it will fetch new data. void setDirty(); - void setFrameName(const QString &frameName) + void setFrameName(const TQString &frameName) { setText(VarNameCol, frameName); setText(ValueCol, ""); } bool needLocals() const { return needLocals_; } |