35 #ifndef OPENMS_VISUAL_TOPPASTOOLVERTEX_H
36 #define OPENMS_VISUAL_TOPPASTOOLVERTEX_H
39 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
44 #include <QtCore/QVector>
65 enum TOOLSTATUS {TOOL_READY, TOOL_SCHEDULED, TOOL_RUNNING, TOOL_SUCCESS, TOOL_CRASH, TOOLSTATUS_SIZE};
81 param_name(rhs.param_name),
82 valid_types(rhs.valid_types)
98 return type == IOT_FILE;
102 return param_name.compare(rhs.
param_name) < 0;
119 for (QVector<IOInfo>::const_iterator it = params.begin();
120 it != params.end(); ++it)
122 if (it->type == IOT_LIST)
return true;
147 virtual String getName()
const;
149 const String& getType()
const;
151 void getInputParameters(QVector<IOInfo>& input_infos)
const;
153 void getOutputParameters(QVector<IOInfo>& output_infos)
const;
155 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option,
QWidget* widget);
157 virtual QRectF boundingRect()
const;
159 virtual QPainterPath shape()
const;
161 virtual void setTopoNr(
UInt nr);
163 virtual void reset(
bool reset_all_files =
false);
165 void setParam(
const Param& param);
167 const Param& getParam();
181 String getFullOutputDirectory()
const;
183 String getOutputDir()
const;
187 void openContainingFolder();
189 void openInTOPPView();
191 bool refreshParameters();
193 bool isToolReady()
const;
195 void toggleBreakpoint();
197 virtual void emitToolStarted();
199 virtual bool invertRecylingMode();
204 void executionFinished(
int ec, QProcess::ExitStatus es);
206 void forwardTOPPOutput();
208 void toolStartedSlot();
210 void toolFinishedSlot();
212 void toolCrashedSlot();
214 void toolFailedSlot();
216 virtual void toolScheduledSlot();
218 virtual void inEdgeHasChanged();
220 virtual void outEdgeHasChanged();
231 void toolFailed(
const QString& message =
"");
233 void toppOutputReady(
const QString& out);
239 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* e);
243 bool doesParamChangeInvalidate_();
245 bool renameOutput_();
247 bool initParam_(
const QString& old_ini_file =
"");
249 void getParameters_(QVector<IOInfo>& io_infos,
bool input_params)
const;
251 void writeParam_(
const Param& param,
const QString& ini_file);
253 QString toolnameWithWhitespacesForFancyWordWrapping_(QPainter* painter,
const QString& str);
276 void smartFileNames_(std::vector<QStringList>& filenames);
A more convenient string class.
Definition: String.h:57
The base class of the different vertex classes.
Definition: TOPPASVertex.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::vector< RoundPackage > RoundPackages
all information a node needs to process all rounds
Definition: TOPPASVertex.h:138
Definition: TOPPASToolVertex.h:89
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
Management and storage of parameters / INI files.
Definition: Param.h:75
IOType
The type.
Definition: TOPPASToolVertex.h:87
TOOLSTATUS
current status of the vertex
Definition: TOPPASToolVertex.h:65