//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
_protocol_line->addItem("ssh");
_protocol_line->addItem("rsh");
_protocol_line->addItem("sh");
_protocol_line->addItem("ssh");
_protocol_line->addItem("rsh");
_protocol_line->addItem("sh");
QLabel * working_directory_label = new QLabel("Working Directory:");
_working_directory = new QLineEdit(this);
_can_launch_batch_jobs = new QCheckBox("This resource can be used to launch batch jobs", this);
QLabel * working_directory_label = new QLabel("Working Directory:");
_working_directory = new QLineEdit(this);
_can_launch_batch_jobs = new QCheckBox("This resource can be used to launch batch jobs", this);
_can_run_containers = new QCheckBox("This resource can be used to run interactive containers", this);
QGridLayout * m_layout = new QGridLayout;
_can_run_containers = new QCheckBox("This resource can be used to run interactive containers", this);
QGridLayout * m_layout = new QGridLayout;
_batch_line->addItem("CCC", "ccc");
_batch_line->addItem("LSF", "lsf");
_batch_line->addItem("SGE", "sge");
_batch_line->addItem("SLURM", "slurm");
_batch_line->addItem("CCC", "ccc");
_batch_line->addItem("LSF", "lsf");
_batch_line->addItem("SGE", "sge");
_batch_line->addItem("SLURM", "slurm");
_batch_line->addItem("CooRM (limited support)", "coorm");
_batch_line->addItem("LoadLeveler (limited support)", "ll");
_batch_line->addItem("OAR (limited support)", "oar");
_batch_line->addItem("PBS (limited support)", "pbs");
_batch_line->addItem("CooRM (limited support)", "coorm");
_batch_line->addItem("LoadLeveler (limited support)", "ll");
_batch_line->addItem("OAR (limited support)", "oar");
_batch_line->addItem("PBS (limited support)", "pbs");
_protocol_line->setCurrentIndex(1);
else if(protocol == "sh")
_protocol_line->setCurrentIndex(2);
_protocol_line->setCurrentIndex(1);
else if(protocol == "sh")
_protocol_line->setCurrentIndex(2);
resource.hostname = _hostname_line->text().trimmed().toStdString();
resource.username = _username_line->text().trimmed().toStdString();
resource.hostname = _hostname_line->text().trimmed().toStdString();
resource.username = _username_line->text().trimmed().toStdString();
resource.can_launch_batch_jobs = (_can_launch_batch_jobs->checkState() == Qt::Checked);
resource.can_run_containers = (_can_run_containers->checkState() == Qt::Checked);
resource.can_launch_batch_jobs = (_can_launch_batch_jobs->checkState() == Qt::Checked);
resource.can_run_containers = (_can_run_containers->checkState() == Qt::Checked);