]> Shamusworld >> Repos - architektonas/blob - src/forms/commandwidget.h
Bugfixes related to removing Snapper class.
[architektonas] / src / forms / commandwidget.h
1 #ifndef __COMMANDWIDGET_H__
2 #define __COMMANDWIDGET_H__
3
4 #include "ui_commandwidget.h"
5
6 class ActionHandler;
7
8 class CommandWidget: public QWidget
9 {
10         Q_OBJECT
11
12         public:
13                 CommandWidget(QWidget * parent = 0, Qt::WindowFlags flags = 0);
14                 ~CommandWidget();
15
16                 bool checkFocus();
17
18         public slots:
19                 void setFocus();
20                 void setCommand(const QString & cmd);
21                 void appendHistory(const QString & msg);
22                 void trigger();
23                 void tabPressed();
24                 void escape();
25                 void setActionHandler(ActionHandler * ah);
26                 void setCommandMode();
27                 void setNormalMode();
28
29         private:
30                 ActionHandler * actionHandler;
31
32         private:
33                 Ui::CommandWidget ui;
34 };
35
36 #endif  // __COMMANDWIDGET_H__