]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCommandBuffer.h
Minipage is no more (long live the box inset)
[lyx.git] / src / frontends / qt2 / QCommandBuffer.h
1 // -*- C++ -*-
2 /**
3  * \file QCommandBuffer.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 QCOMMANDBUFFER_H
13 #define QCOMMANDBUFFER_H
14
15 #include <qwidget.h>
16
17 class QtView;
18 class QCommandEdit;
19 class QListBoxItem;
20 class ControlCommandBuffer;
21
22 class QCommandBuffer : public QWidget {
23         Q_OBJECT
24 public:
25         QCommandBuffer(QtView * view, QWidget * parent, ControlCommandBuffer & control);
26
27         /// focus the edit widget
28         void focus_command();
29 public slots:
30         /// cancel command compose
31         void cancel();
32         /// dispatch a command
33         void dispatch();
34         /// tab-complete
35         void complete();
36         /// select-complete
37         void complete_selected(QString const & str);
38         /// up
39         void up();
40         /// down
41         void down();
42 private:
43         /// owning view
44         QtView * view_;
45
46         /// controller
47         ControlCommandBuffer & controller_;
48
49         /// command widget
50         QCommandEdit * edit_;
51 };
52
53 #endif // QCOMMANDBUFFER_H