source: s10k/Vago/manualcommands.h@ 1140

Last change on this file since 1140 was 1047, checked in by s10k, 8 years ago

Added Vago v1.0

File size: 1.0 KB
Line 
1#ifndef MANUALCOMMANDS_H
2#define MANUALCOMMANDS_H
3
4#include <QMainWindow>
5#include <QClipboard>
6#include <QProcess>
7#include <QScrollBar>
8
9#include "utilvago.h"
10
11
12namespace Ui {
13class ManualCommands;
14}
15
16class ManualCommands : public QMainWindow
17{
18 Q_OBJECT
19
20public:
21 explicit ManualCommands(QWidget *parent = 0);
22 ~ManualCommands();
23
24protected:
25 bool eventFilter(QObject* obj, QEvent *event);
26
27private slots:
28 void on_pbInput_clicked();
29
30 void on_pcCopyClipboard_clicked();
31
32 void on_pbClear_clicked();
33
34private:
35 void executeCommand();
36 Ui::ManualCommands *ui;
37 static const int limHistory=50;
38 QString history[limHistory]; //this is kinda a circular buffer manual implementation (http://www.boost.org/doc/libs/1_36_0/libs/circular_buffer/doc/circular_buffer.html)
39 int nextInsertHistoryIdx; //next index where new commands will be inserted
40 int searchHistoryIdx; //current index when searching history with arrows
41 QProcess *myProcess;
42};
43
44#endif // MANUALCOMMANDS_H
Note: See TracBrowser for help on using the repository browser.