48 template<
class TW
idgetClass>
54 old_(stw->currentWidget()),
57 stw->setCurrentWidget(stw->ui->tab_log);
100 if (
loop.empty())
return 1;
101 size_t common_size =
loop[0].loop_arg.size();
102 for (
const auto& l :
loop)
104 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!");
105 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!");
111 QStringList
getArgs(
const int loop_number)
const
115 throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
"Internal error. The loop number you requested is too high!");
119 QStringList arg_l =
args;
120 for (
const auto& largs :
loop)
122 arg_l[largs.insert_pos] =
args[largs.insert_pos].arg(largs.loop_arg[loop_number]);
OpenMS::TableView TableView
Definition: WizardHelper.h:135
OpenMS::InputFile InputFile
Definition: WizardHelper.h:132
OpenMS::OutputDirectory OutputDirectory
Definition: WizardHelper.h:133
OpenMS::ParamEditor ParamEditor
Definition: WizardHelper.h:134
Precondition failed exception.
Definition: Exception.h:159
RAII class to disable the GUI and set a busy cursor and go back to the original state when this class...
Definition: GUIHelpers.h:149
RAII class to switch to certain TabWidget, disable the GUI and go back to the orignal Tab when this c...
Definition: WizardHelper.h:50
~WizardGUILock()
Definition: WizardHelper.h:60
WizardGUILock(TWidgetClass *stw)
Definition: WizardHelper.h:52
TWidgetClass * stw_
Definition: WizardHelper.h:66
GUIHelpers::GUILock glock_
Definition: WizardHelper.h:68
QWidget * old_
Definition: WizardHelper.h:67
A simple widget with a line-edit and a browse button to choose filenames.
Definition: OutputDirectory.h:57
A GUI for editing or viewing a Param object.
Definition: ParamEditor.h:180
A more convenient string class.
Definition: String.h:60
A better QTable for TOPPView, which supports exporting to TSV and conveniently adding data to cells a...
Definition: TableView.h:48
QStringList loop_arg
list of arguments to insert; one for every loop
Definition: WizardHelper.h:74
std::vector< Args > ArgLoop
Definition: WizardHelper.h:78
size_t insert_pos
where to insert in the target argument list (index is 0-based)
Definition: WizardHelper.h:75
custom arguments to allow for looping calls
Definition: WizardHelper.h:73
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
Definition: WizardHelper.h:86
QStringList getArgs(const int loop_number) const
Definition: WizardHelper.h:111
String exe
Definition: WizardHelper.h:87
size_t getLoopCount() const
Definition: WizardHelper.h:98
QStringList args
Definition: WizardHelper.h:88
ArgLoop loop
Definition: WizardHelper.h:89
Command(const String &e, const QStringList &a, const ArgLoop &l)
Definition: WizardHelper.h:91