35 #ifndef OPENMS_VISUAL_TOPPASTOOLVERTEX_H 36 #define OPENMS_VISUAL_TOPPASTOOLVERTEX_H 39 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 44 #include <QtCore/QVector> 67 enum TOOLSTATUS {TOOL_READY, TOOL_SCHEDULED, TOOL_RUNNING, TOOL_SUCCESS, TOOL_CRASH, TOOLSTATUS_SIZE};
83 param_name(rhs.param_name),
84 valid_types(rhs.valid_types)
100 return type == IOT_FILE;
104 return param_name.compare(rhs.
param_name) < 0;
121 for (QVector<IOInfo>::const_iterator it = params.begin();
122 it != params.end(); ++it)
124 if (it->type == IOT_LIST)
return true;
149 virtual String getName()
const;
151 const String& getType()
const;
153 void getInputParameters(QVector<IOInfo>& input_infos)
const;
155 void getOutputParameters(QVector<IOInfo>& output_infos)
const;
157 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option,
QWidget* widget);
159 virtual QRectF boundingRect()
const;
161 virtual QPainterPath shape()
const;
163 virtual void setTopoNr(
UInt nr);
165 virtual void reset(
bool reset_all_files =
false);
167 void setParam(
const Param& param);
169 const Param& getParam();
183 String getFullOutputDirectory()
const;
185 String getOutputDir()
const;
189 void openContainingFolder();
191 void openInTOPPView();
193 bool refreshParameters();
195 bool isToolReady()
const;
197 void toggleBreakpoint();
199 virtual void emitToolStarted();
201 virtual bool invertRecylingMode();
206 void executionFinished(
int ec, QProcess::ExitStatus es);
208 void forwardTOPPOutput();
210 void toolStartedSlot();
212 void toolFinishedSlot();
214 void toolCrashedSlot();
216 void toolFailedSlot();
218 virtual void toolScheduledSlot();
220 virtual void inEdgeHasChanged();
222 virtual void outEdgeHasChanged();
233 void toolFailed(
const QString& message =
"");
235 void toppOutputReady(
const QString& out);
241 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* e);
249 bool doesParamChangeInvalidate_();
251 bool renameOutput_();
253 bool initParam_(
const QString& old_ini_file =
"");
255 void getParameters_(QVector<IOInfo>& io_infos,
bool input_params)
const;
257 void writeParam_(
const Param& param,
const QString& ini_file);
259 QString toolnameWithWhitespacesForFancyWordWrapping_(QPainter* painter,
const QString& str);
279 void smartFileNames_(std::vector<QStringList>& filenames);
A container for all visual items of a TOPPAS workflow.
Definition: TOPPASScene.h:86
A more convenient string class.
Definition: String.h:57
The base class of the different vertex classes.
Definition: TOPPASVertex.h:101
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::vector< RoundPackage > RoundPackages
all information a node needs to process all rounds
Definition: TOPPASVertex.h:173
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
Management and storage of parameters / INI files.
Definition: Param.h:75