Convert from Qt 3 to Qt 4 using qt3to4.
[kdbg.git] / kdbg / watchwindow.h
blobf169ab245044cfae357035da89ae4d75144ab7fd
1 /*
2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
5 */
7 #ifndef WATCHWINDOW_H
8 #define WATCHWINDOW_H
10 #include <qlineedit.h>
11 #include <qlayout.h>
12 #include <qpushbutton.h>
13 #include <Q3VBoxLayout>
14 #include <QEvent>
15 #include <QDropEvent>
16 #include <QDragEnterEvent>
17 #include <Q3HBoxLayout>
18 #include "exprwnd.h"
20 class WatchWindow : public QWidget
22 Q_OBJECT
23 public:
24 WatchWindow(QWidget* parent);
25 ~WatchWindow();
26 ExprWnd* watchVariables() { return &m_watchVariables; }
27 QString watchText() const { return m_watchEdit.text(); }
28 int columnWidth(int i) const { return m_watchVariables.columnWidth(i); }
29 void setColumnWidth(int i, int w) { m_watchVariables.setColumnWidth(i, w); }
31 protected:
32 QLineEdit m_watchEdit;
33 QPushButton m_watchAdd;
34 QPushButton m_watchDelete;
35 ExprWnd m_watchVariables;
36 Q3VBoxLayout m_watchV;
37 Q3HBoxLayout m_watchH;
39 virtual bool eventFilter(QObject* ob, QEvent* ev);
40 virtual void dragEnterEvent(QDragEnterEvent* event);
41 virtual void dropEvent(QDropEvent* event);
43 signals:
44 void addWatch();
45 void deleteWatch();
46 void textDropped(const QString& text);
48 protected slots:
49 void slotWatchHighlighted();
52 #endif // WATCHWINDOW_H