1 #ifndef __COMMANDEDIT_H__
2 #define __COMMANDEDIT_H__
7 * A command line edit with some typical console features
8 * (uparrow for the history, tab, ..).
10 class CommandEdit: public QLineEdit
15 CommandEdit(QWidget * parent = 0, const char * name = 0);
16 virtual ~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;
36 #endif // __COMMANDEDIT_H__