/* # Copyright (c) 2010 - OpenSLX Project, Computer Center University of Freiburg # # This program is free software distributed under the GPL version 2. # See http://openslx.org/COPYING # # If you have any feedback please consult http://openslx.org/feedback and # send your suggestions, praise, or complaints to feedback@openslx.org # # General information about OpenSLX can be found at http://openslx.org/ # ----------------------------------------------------------------------------- # processesStartDialog.cpp Dialog to get process to send to clients # ----------------------------------------------------------------------------- */ #include "processesStartDialog.h" #include "ui_processesStartDialog.h" #include ProcessesStartDialog::ProcessesStartDialog(QWidget *parent) : QDialog(parent), procStartUi(new Ui::ProcessesStartDialog) { procStartUi->setupUi(this); connect( procStartUi->sendButton, SIGNAL( clicked()), this, SLOT( send())); connect( procStartUi->cancelButton, SIGNAL( clicked()), this, SLOT( notSend())); procStartUi->listOfProcessesButton->hide(); } ProcessesStartDialog::~ProcessesStartDialog() { // } void ProcessesStartDialog::send() { QString procd = procStartUi->message->text(); if (procd.length()>0) { QMessageBox::StandardButton start = QMessageBox::question(0, tr("PVS Start Process"), tr("Do you want to start the process: ") + procd + tr(" on the selected Clients?"), QMessageBox::Ok | QMessageBox::Cancel, QMessageBox::Ok); if (start == QMessageBox::Ok) { //write name of process to setProcessesDialog MainWindow::getWindow()->setProcessesDialog(procd); } procStartUi->message->clear(); emit accept(); } } void ProcessesStartDialog::notSend() { procStartUi->message->clear(); emit reject(); } void ProcessesStartDialog::listProcesses() { // }