AvogadroLibs 1.98.1
|
The MoleQueueDialog class provides a thin wrapper around MoleQueueWidget for standalone use. More...
#include <molequeuedialog.h>
Public Types | |
enum | SubmitOption { WaitForSubmissionResponse = 0x1 , SelectProgramFromTemplate = 0x2 } |
Options controlling job submission behavior in the submitJob method. More... | |
enum | SubmitStatus { SubmissionSuccessful = 0 , SubmissionFailed , SubmissionAttempted , SubmissionAborted , JobFailed , JobFinished } |
Return values from submitJob indicating result. More... | |
Public Slots | |
void | done (int r) override |
Public Member Functions | |
MoleQueueDialog (QWidget *parent_=nullptr) | |
MoleQueueWidget & | widget () |
const MoleQueueWidget & | widget () const |
Static Public Member Functions | |
static SubmitStatus | submitJob (QWidget *parent_, const QString &caption, JobObject &jobTemplate, SubmitOptions options, unsigned int *moleQueueId=nullptr, int *submissionRequestId=nullptr) |
static bool | promptForJobOptions (QWidget *windowParent, const QString &caption, JobObject &jobTemplate) |
<avogadro/molequeue/molequeuedialog.h>
enum SubmitOption |
enum SubmitStatus |
|
static |
Show a job configuration dialog and let the user submit the job to MoleQueue.
parent_ | The parent widget for parenting/layout purposes. |
caption | The dialog title. |
jobTemplate | A template job, used to initialize GUI options. If the user requests that the job output is opened and the job finishes successfully, this will be overwritten with the current job details, and JobFinished is returned. |
options | Bitwise combination of flags that control dialog behavior. |
moleQueueId | If not nullptr, the variable referenced by this pointer will be overwritten by the MoleQueue Id of the submitted job when the option WaitForSubmissionResponse is set. If an error occurs or the required option is not set, this value will be set to MoleQueueWidget::InvalidMoleQueueId. |
submissionRequestId | If not nullptr, the variable referenced by this pointer will be overwritten by the submitJob JSON-RPC 2.0 request id. If an error occurs, this value will be set to -1. |
|
static |
Show a job configuration dialog and collect the user's selected options.
windowParent | The parent of the dialog window. |
caption | Title of the dialog window. |
jobTemplate | JobObject with initial options. Will be overwritten with the configured job options. |
MoleQueueWidget & widget | ( | ) |
const MoleQueueWidget & widget | ( | ) | const |