1 #ifndef QG_COMMANDEDIT_H
2 #define QG_COMMANDEDIT_H
7 * A command line edit with some typical console features
8 * (uparrow for the history, tab, ..).
10 class QG_CommandEdit: public QLineEdit
15 QG_CommandEdit(QWidget * parent = 0, const char * name = 0);
16 virtual ~QG_CommandEdit();
19 virtual bool event(QEvent * e);
20 virtual void keyPressEvent(QKeyEvent * e);
21 virtual void focusInEvent(QFocusEvent * e);
22 virtual void focusOutEvent(QFocusEvent * e);
31 QStringList historyList;
32 QStringList::Iterator it;
33 bool acceptCoordinates;