22 template<
class TW
idgetClass>
28 old_(stw->currentWidget()),
31 stw->setCurrentWidget(stw->ui->tab_log);
74 if (
loop.empty())
return 1;
75 size_t common_size =
loop[0].loop_arg.size();
76 for (
const auto& l :
loop)
78 if (l.loop_arg.size() != (int)common_size)
throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
"Internal error. Not all loop arguments support the same number of loops!");
79 if ((
int)l.insert_pos >=
args.size())
throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
"Internal error. Loop argument wants to insert after end of template arguments!");
85 QStringList
getArgs(
const int loop_number)
const
89 throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
"Internal error. The loop number you requested is too high!");
93 QStringList arg_l =
args;
94 for (
const auto& largs :
loop)
96 arg_l[largs.insert_pos] =
args[largs.insert_pos].arg(largs.loop_arg[loop_number]);
Precondition failed exception.
Definition Exception.h:128
RAII class to disable the GUI and set a busy cursor and go back to the original state when this class...
Definition GUIHelpers.h:124
RAII class to switch to certain TabWidget, disable the GUI and go back to the orignal Tab when this c...
Definition WizardHelper.h:24
~WizardGUILock()
Definition WizardHelper.h:34
WizardGUILock(TWidgetClass *stw)
Definition WizardHelper.h:26
TWidgetClass * stw_
Definition WizardHelper.h:40
GUIHelpers::GUILock glock_
Definition WizardHelper.h:42
QWidget * old_
Definition WizardHelper.h:41
A simple widget with a line-edit and a browse button to choose filenames.
Definition OutputDirectory.h:31
A GUI for editing or viewing a Param object.
Definition ParamEditor.h:153
A more convenient string class.
Definition String.h:34
A better QTable for TOPPView, which supports exporting to TSV and conveniently adding data to cells a...
Definition TableView.h:22
QStringList loop_arg
list of arguments to insert; one for every loop
Definition WizardHelper.h:48
std::vector< Args > ArgLoop
Definition WizardHelper.h:52
size_t insert_pos
where to insert in the target argument list (index is 0-based)
Definition WizardHelper.h:49
custom arguments to allow for looping calls
Definition WizardHelper.h:47
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition WizardHelper.h:60
QStringList getArgs(const int loop_number) const
Definition WizardHelper.h:85
String exe
Definition WizardHelper.h:61
size_t getLoopCount() const
Definition WizardHelper.h:72
QStringList args
Definition WizardHelper.h:62
ArgLoop loop
Definition WizardHelper.h:63
Command(const String &e, const QStringList &a, const ArgLoop &l)
Definition WizardHelper.h:65