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