]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCommandEdit.h
Lots and lots of little trivial bits.
[lyx.git] / src / frontends / qt2 / QCommandEdit.h
1 // -*- C++ -*-
2 /**
3  * \file QCommandEdit.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef QCOMMANDEDIT_H
13 #define QCOMMANDEDIT_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include <qlineedit.h>
20
21 class QCommandEdit : public QLineEdit {
22         Q_OBJECT
23 public:
24
25         QCommandEdit(QWidget * parent);
26
27 signals:
28         /// cancel
29         void escapePressed();
30
31         /// up history
32         void upPressed();
33
34         /// down history
35         void downPressed();
36
37         /// complete
38         void rightPressed();
39
40 protected:
41         virtual void keyPressEvent(QKeyEvent * e);
42 };
43
44 #endif // QCOMMANDEDIT_H