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.
11 #include <QPushButton>
12 #include <QVBoxLayout>
13 #include <QHBoxLayout>
16 class WatchWindow
: public QWidget
20 WatchWindow(QWidget
* parent
);
22 ExprWnd
* watchVariables() { return &m_watchVariables
; }
23 QString
watchText() const { return m_watchEdit
.text(); }
24 int columnWidth(int i
) const { return m_watchVariables
.columnWidth(i
); }
25 void setColumnWidth(int i
, int w
) { m_watchVariables
.setColumnWidth(i
, w
); }
28 QLineEdit m_watchEdit
;
29 QPushButton m_watchAdd
;
30 QPushButton m_watchDelete
;
31 ExprWnd m_watchVariables
;
35 virtual bool eventFilter(QObject
* ob
, QEvent
* ev
);
36 virtual void dragEnterEvent(QDragEnterEvent
* event
);
37 virtual void dropEvent(QDropEvent
* event
);
42 void textDropped(const QString
& text
);
45 void slotWatchHighlighted();
48 #endif // WATCHWINDOW_H