]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QCommandEdit.h
* src/frontends/qt4/ui/TextLayoutUi.ui:
[lyx.git] / src / frontends / qt4 / 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>
16 #include <QKeyEvent>
17 #include <QEvent>
18
19 namespace lyx {
20 namespace frontend {
21
22 class QCommandEdit : public QLineEdit {
23         Q_OBJECT
24 public:
25         QCommandEdit(QWidget * parent);
26 Q_SIGNALS:
27         /// cancel
28         void escapePressed();
29         /// up history
30         void upPressed();
31         /// down history
32         void downPressed();
33         /// complete
34         void tabPressed();
35         /// leave and hide command buffer
36         void hidePressed();
37
38 protected:
39         ///
40         virtual bool event(QEvent * e);
41         ///
42         virtual void keyPressEvent(QKeyEvent * e);
43 };
44
45 } // namespace frontend
46 } // namespace lyx
47
48 #endif // QCOMMANDEDIT_H