]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCommandEdit.h
better selection and scrolling behaviour
[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 #include <qlineedit.h>
16
17 class QCommandEdit : public QLineEdit {
18         Q_OBJECT
19 public:
20         QCommandEdit(QWidget * parent);
21 signals:
22         /// cancel
23         void escapePressed();
24
25         /// up history
26         void upPressed();
27
28         /// down history
29         void downPressed();
30
31         /// complete
32         void rightPressed();
33 protected:
34         virtual void keyPressEvent(QKeyEvent * e);
35 };
36
37 #endif // QCOMMANDEDIT_H