27 #include <QMessageBox>
28 #include <QPushButton>
29 #include <QVBoxLayout>
33 , m_applicationModels(0)
34 , runSimulationButton(0)
35 , exportToPyScriptButton(0)
39 QVBoxLayout* mainLayout =
new QVBoxLayout;
43 mainLayout->addStretch(10);
44 setLayout(mainLayout);
80 multiLayerItem, instrumentItem, realDataItem,
98 pythonWidget->raise();
100 multiLayerItem, instrumentItem,
107 QWidget* result =
new QWidget;
109 QHBoxLayout* simButtonLayout =
new QHBoxLayout;
116 " Global shortcut ctrl-r can be used to run from sample view.");
128 "a python script.\n");
131 simButtonLayout->addStretch();
134 simButtonLayout->addStretch();
136 result->setLayout(simButtonLayout);
Defines class holding all application models.
#define ASSERT(condition)
Defines class DocumentModel.
Defines class ProjectManager.
Defines InstrumentItems classes.
Defines class SimulationSetupAssistant.
static ProjectManager * projectManager()
DocumentModel * documentModel()
SimulationOptionsItem * simulationOptionsItem()
bool runImmediately() const
bool runInBackground() const
void runJob(const QModelIndex &index)
JobItem * addJob(const MultiLayerItem *multiLayerItem, const InstrumentItem *instrumentItem, const RealDataItem *realDataItem, const SimulationOptionsItem *optionItem)
Main method to add a job.
QString projectDir() const
Returns name of the current project directory.
The RealDataItem class represents intensity data imported from file and intended for fitting.
QModelIndex index() const
Returns model index of this item.
The SimulationSetupAssistant class provides sample, instrument and real data validation before submit...
bool isValidSimulationSetup(const MultiLayerItem *multiLayerItem, const InstrumentItem *instrumentItem, const RealDataItem *realData=0)