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