summaryrefslogtreecommitdiffstats
path: root/src/gui/processWidget.h
diff options
context:
space:
mode:
authorFabian Schillinger2010-11-01 16:53:24 +0100
committerFabian Schillinger2010-11-01 16:53:24 +0100
commit0d97a7378ffe5f6be408201cd1f5595607ed5f87 (patch)
tree78ccd691a67c2f63f8fa4d1032d4cabfae0e80fa /src/gui/processWidget.h
parent[PVSGUI] parsing cmdargs fixed (diff)
downloadpvs-0d97a7378ffe5f6be408201cd1f5595607ed5f87.tar.gz
pvs-0d97a7378ffe5f6be408201cd1f5595607ed5f87.tar.xz
pvs-0d97a7378ffe5f6be408201cd1f5595607ed5f87.zip
Process start/stop/view functionality
processWidget - shows a list of processes on one client, allows to start ans stop processes processesDialog - shows every processWidget as a tab processesStartDialog - starts process entered in messageEdit added handling of new pvscommands
Diffstat (limited to 'src/gui/processWidget.h')
-rw-r--r--src/gui/processWidget.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/gui/processWidget.h b/src/gui/processWidget.h
new file mode 100644
index 0000000..7e7eb72
--- /dev/null
+++ b/src/gui/processWidget.h
@@ -0,0 +1,35 @@
+#ifndef PROCESSWIDGET_H_
+#define PROCESSWIDGET_H_
+
+#include <QDialog>
+#include <QtGui>
+#include <QVector>
+
+namespace Ui {
+ class ProcessWidget;
+}
+
+class PVSClient;
+class ProcessWidget: public QWidget
+{
+ Q_OBJECT
+
+public:
+ ProcessWidget(QWidget *parent, PVSClient *client);
+ ~ ProcessWidget();
+ QAbstractItemModel *model;
+public slots:
+ void refrProcessList();
+
+private:
+ Ui::ProcessWidget *prowui;
+ PVSClient *client;
+ QVector<QString> *processes;
+
+private slots:
+ void startProcess();
+ void stopProcess();
+ void sendCommand(QString ident, QString message);
+};
+
+#endif