]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCommandBuffer.h
Some Qt graphics dialog improvements. Yet more work needed :/
[lyx.git] / src / frontends / qt2 / QCommandBuffer.h
1 /**
2  * \file QCommandBuffer.h
3  * Copyright 2002 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #ifndef QCOMMANDBUFFER_H
10 #define QCOMMANDBUFFER_H
11
12 #include <config.h>
13 #include "LString.h"
14  
15 #include <qtoolbar.h>
16 #include <qtimer.h>
17  
18 class QtView;
19 class QCommandEdit;
20 class ControlCommandBuffer;
21  
22 class QCommandBuffer : public QToolBar {
23         Q_OBJECT
24 public:
25
26         QCommandBuffer(QtView * view, ControlCommandBuffer & control);
27
28         /// focus the edit widget
29         void focus_command();
30  
31 public 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(const QString & str);
40         /// up
41         void up();
42         /// down
43         void down();
44  
45 private:
46         /// owning view
47         QtView * view_;
48
49         /// controller
50         ControlCommandBuffer & controller_;
51
52         /// command widget
53         QCommandEdit * edit_;
54
55 };
56
57 #endif // QCOMMANDBUFFER_H