]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QCommandEdit.h
enable Font cache only for MacOSX and inline width() for other platform.
[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
30         /// up history
31         void upPressed();
32
33         /// down history
34         void downPressed();
35
36         /// complete
37         void tabPressed();
38
39 protected:
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