]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiCommandBuffer.h
renaming of some methods that hurt the eyes + removal of:
[lyx.git] / src / frontends / qt4 / GuiCommandBuffer.h
1 // -*- C++ -*-
2 /**
3  * \file GuiCommandBuffer.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 GUICOMMANDBUFFER_H
13 #define GUICOMMANDBUFFER_H
14
15 #include "ControlCommandBuffer.h"
16
17 #include <QWidget>
18
19 class QListWidgetItem;
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiCommandEdit;
25 class GuiView;
26
27 class GuiCommandBuffer : public QWidget {
28         Q_OBJECT
29 public:
30         GuiCommandBuffer(GuiViewBase * view);
31
32 public Q_SLOTS:
33         /// cancel command compose
34         void cancel();
35         /// dispatch a command
36         void dispatch();
37         /// tab-complete
38         void complete();
39         /// select-complete
40         void complete_selected(QListWidgetItem *);
41         /// up
42         void up();
43         /// down
44         void down();
45         /// leave and hide the command buffer
46         void hideParent();
47 private:
48         /// owning view
49         GuiViewBase * view_;
50         /// controller
51         ControlCommandBuffer controller_;
52         /// command widget
53         GuiCommandEdit * edit_;
54 };
55
56 } // namespace frontend
57 } // namespace lyx
58
59 #endif // GUICOMMANDBUFFER_H