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.
10 #include <qlineedit.h>
12 #include <qpushbutton.h>
13 #include <Q3VBoxLayout>
16 #include <QDragEnterEvent>
17 #include <Q3HBoxLayout>
20 class WatchWindow
: public QWidget
24 WatchWindow(QWidget
* parent
);
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
); }
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
);
46 void textDropped(const QString
& text
);
49 void slotWatchHighlighted();
52 #endif // WATCHWINDOW_H