]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCommandBuffer.h
Some string(widget->text()) fixes. Weirdness
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include <qtoolbar.h>
20
21 class QtView;
22 class QCommandEdit;
23 class QListBoxItem;
24 class ControlCommandBuffer;
25
26 class QCommandBuffer : public QToolBar {
27         Q_OBJECT
28 public:
29         QCommandBuffer(QtView * view, ControlCommandBuffer & control);
30
31         /// focus the edit widget
32         void focus_command();
33 public 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(QString const & str);
42         /// up
43         void up();
44         /// down
45         void down();
46 private:
47         /// owning view
48         QtView * view_;
49
50         /// controller
51         ControlCommandBuffer & controller_;
52
53         /// command widget
54         QCommandEdit * edit_;
55 };
56
57 #endif // QCOMMANDBUFFER_H