38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 43 #include <QtCore/QVector> 66 enum TOOLSTATUS {TOOL_READY, TOOL_SCHEDULED, TOOL_RUNNING, TOOL_SUCCESS, TOOL_CRASH, TOOLSTATUS_SIZE};
82 param_name(rhs.param_name),
83 valid_types(rhs.valid_types)
99 return type == IOT_FILE;
103 return param_name.compare(rhs.
param_name) < 0;
120 for (QVector<IOInfo>::const_iterator it = params.begin();
121 it != params.end(); ++it)
123 if (it->type == IOT_LIST)
return true;
148 String getName()
const override;
150 const String& getType()
const;
152 void getInputParameters(QVector<IOInfo>& input_infos)
const;
154 void getOutputParameters(QVector<IOInfo>& output_infos)
const;
156 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option,
QWidget* widget)
override;
158 QRectF boundingRect()
const override;
160 QPainterPath shape()
const override;
162 void setTopoNr(
UInt nr)
override;
164 void reset(
bool reset_all_files =
false)
override;
166 void setParam(
const Param& param);
168 const Param& getParam();
182 String getFullOutputDirectory()
const;
184 String getOutputDir()
const;
188 void openContainingFolder();
190 void openInTOPPView();
192 bool refreshParameters();
194 bool isToolReady()
const;
196 void toggleBreakpoint();
198 virtual void emitToolStarted();
200 bool invertRecylingMode()
override;
205 void executionFinished(
int ec, QProcess::ExitStatus es);
207 void forwardTOPPOutput();
209 void toolStartedSlot();
211 void toolFinishedSlot();
213 void toolCrashedSlot();
215 void toolFailedSlot();
217 virtual void toolScheduledSlot();
219 void inEdgeHasChanged()
override;
221 void outEdgeHasChanged()
override;
232 void toolFailed(
const QString& message =
"");
234 void toppOutputReady(
const QString& out);
240 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* e)
override;
248 bool doesParamChangeInvalidate_();
250 bool renameOutput_();
252 bool initParam_(
const QString& old_ini_file =
"");
254 void getParameters_(QVector<IOInfo>& io_infos,
bool input_params)
const;
256 void writeParam_(
const Param& param,
const QString& ini_file);
258 QString toolnameWithWhitespacesForFancyWordWrapping_(QPainter* painter,
const QString& str);
278 void smartFileNames_(std::vector<QStringList>& filenames);
A container for all visual items of a TOPPAS workflow.
Definition: TOPPASScene.h:85
A more convenient string class.
Definition: String.h:57
The base class of the different vertex classes.
Definition: TOPPASVertex.h:100
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< RoundPackage > RoundPackages
all information a node needs to process all rounds
Definition: TOPPASVertex.h:172
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:73
Management and storage of parameters / INI files.
Definition: Param.h:74