]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiCommandEdit.h
renaming of some methods that hurt the eyes + removal of:
[lyx.git] / src / frontends / qt4 / GuiCommandEdit.h
1 // -*- C++ -*-
2 /**
3  * \file GuiCommandEdit.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 GUICOMMANDEDIT_H
13 #define GUICOMMANDEDIT_H
14
15 #include <QLineEdit>
16 #include <QKeyEvent>
17 #include <QEvent>
18
19 namespace lyx {
20 namespace frontend {
21
22 class GuiCommandEdit : public QLineEdit {
23         Q_OBJECT
24
25 public:
26         GuiCommandEdit(QWidget * parent);
27
28 Q_SIGNALS:
29         /// cancel
30         void escapePressed();
31         /// up history
32         void upPressed();
33         /// down history
34         void downPressed();
35         /// complete
36         void tabPressed();
37         /// leave and hide command buffer
38         void hidePressed();
39
40 protected:
41         ///
42         virtual bool event(QEvent * e);
43         ///
44         virtual void keyPressEvent(QKeyEvent * e);
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // GUICOMMANDEDIT_H