diff options
author | Dirk von Suchodoletz | 2010-11-13 10:49:05 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2010-11-13 10:49:05 +0100 |
commit | b56d83075d0fe6e9f7f029769b294d6739c357e8 (patch) | |
tree | 7174295ffb97f7251e8e8d3cf0721331dac76057 /src/gui/processWidget.cpp | |
parent | Weitere Ă„nderungen an der Doku ... (diff) | |
parent | modified documentation (diff) | |
download | pvs-b56d83075d0fe6e9f7f029769b294d6739c357e8.tar.gz pvs-b56d83075d0fe6e9f7f029769b294d6739c357e8.tar.xz pvs-b56d83075d0fe6e9f7f029769b294d6739c357e8.zip |
Merge branch 'master' of openslx.org:pvs
Diffstat (limited to 'src/gui/processWidget.cpp')
-rw-r--r-- | src/gui/processWidget.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/gui/processWidget.cpp b/src/gui/processWidget.cpp index 38dd2ae..df865a4 100644 --- a/src/gui/processWidget.cpp +++ b/src/gui/processWidget.cpp @@ -23,7 +23,16 @@ ProcessWidget::ProcessWidget(QWidget *parent, PVSClient *cl): QWidget(parent), prowui(new Ui::ProcessWidget) { + + prowui->setupUi(this); + filter = filterSettings.value("RemoteProcessesList/filter").toString(); + + if (filter == "") + { + filterSettings.setValue("RemoteProcessesList/filter", "pvs pvsgui x11vnc dbus-launch dbus-daemon"); + filter = "pvs pvsgui x11vnc dbus-launch dbus-daemon"; + } client = cl; @@ -33,7 +42,7 @@ ProcessWidget::ProcessWidget(QWidget *parent, PVSClient *cl): connect( client, SIGNAL( processVectorReady(bool)), this, SLOT( refrProcessList())); //tell client we want to see his processes - sendCommand("SHOWPROCESSES", ""); + sendCommand("SHOWPROCESSES", filter); } void ProcessWidget::startProcess() @@ -46,14 +55,14 @@ void ProcessWidget::startProcess() if (start == QMessageBox::Ok) { sendCommand("STARTPROCESS", prowui->processLineEdit->text()); - sendCommand("SHOWPROCESSES", ""); + sendCommand("SHOWPROCESSES", filter); } prowui->processLineEdit->clear(); } void ProcessWidget::resendProcessList() { - sendCommand("SHOWPROCESSES", ""); + sendCommand("SHOWPROCESSES", filter); } void ProcessWidget::refrProcessList(bool timerEvent) @@ -127,7 +136,7 @@ void ProcessWidget::stopProcess() } } //tell client to update his list - sendCommand("SHOWPROCESSES", ""); + sendCommand("SHOWPROCESSES", filter); } } |