]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiCommandBuffer.h
6ed08f6cbe0f2c1066f79ff618ef6fd70a6b279b
[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
26 class GuiCommandBuffer : public QWidget {
27         Q_OBJECT
28 public:
29         GuiCommandBuffer(GuiViewBase * view);
30
31 public Q_SLOTS:
32         /// cancel command compose
33         void cancel();
34         /// dispatch a command
35         void dispatch();
36         /// tab-complete
37         void complete();
38         /// select-complete
39         void complete_selected(QListWidgetItem *);
40         /// up
41         void up();
42         /// down
43         void down();
44         /// leave and hide the command buffer
45         void hideParent();
46 private:
47         /// owning view
48         GuiViewBase * view_;
49         /// controller
50         ControlCommandBuffer controller_;
51         /// command widget
52         GuiCommandEdit * edit_;
53 };
54
55 } // namespace frontend
56 } // namespace lyx
57
58 #endif // GUICOMMANDBUFFER_H