]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCommandBuffer.h
Strip trailing whitespace.
[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
16 #include <qtoolbar.h>
17
18 class QtView;
19 class QCommandEdit;
20 class QListBoxItem;
21 class ControlCommandBuffer;
22
23 class QCommandBuffer : public QToolBar {
24         Q_OBJECT
25 public:
26         QCommandBuffer(QtView * view, ControlCommandBuffer & control);
27
28         /// focus the edit widget
29         void focus_command();
30 public slots:
31         /// cancel command compose
32         void cancel();
33         /// dispatch a command
34         void dispatch();
35         /// tab-complete
36         void complete();
37         /// select-complete
38         void complete_selected(QString const & str);
39         /// up
40         void up();
41         /// down
42         void down();
43 private:
44         /// owning view
45         QtView * view_;
46
47         /// controller
48         ControlCommandBuffer & controller_;
49
50         /// command widget
51         QCommandEdit * edit_;
52 };
53
54 #endif // QCOMMANDBUFFER_H