35 #ifndef OPENMS_VISUAL_TOPPASTOOLVERTEX_H
36 #define OPENMS_VISUAL_TOPPASTOOLVERTEX_H
41 #include <QtCore/QVector>
62 enum TOOLSTATUS {TOOL_READY, TOOL_SCHEDULED, TOOL_RUNNING, TOOL_SUCCESS, TOOL_CRASH, TOOLSTATUS_SIZE};
78 param_name(rhs.param_name),
79 valid_types(rhs.valid_types)
95 return type == IOT_FILE;
133 virtual String getName()
const;
135 const String & getType()
const;
137 void getInputParameters(QVector<IOInfo> & input_infos)
const;
139 void getOutputParameters(QVector<IOInfo> & output_infos)
const;
141 virtual void paint(QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget);
143 virtual QRectF boundingRect()
const;
145 virtual QPainterPath shape()
const;
147 virtual void setTopoNr(
UInt nr);
149 virtual void reset(
bool reset_all_files =
false);
151 void setParam(
const Param & param);
153 const Param & getParam();
167 String getFullOutputDirectory()
const;
169 String getOutputDir()
const;
173 void openContainingFolder();
175 void openInTOPPView();
177 bool refreshParameters();
179 bool isToolReady()
const;
181 void toggleBreakpoint();
183 virtual void emitToolStarted();
185 virtual bool invertRecylingMode();
190 void executionFinished(
int ec, QProcess::ExitStatus es);
192 void forwardTOPPOutput();
194 void toolStartedSlot();
196 void toolFinishedSlot();
198 void toolCrashedSlot();
200 void toolFailedSlot();
202 virtual void toolScheduledSlot();
204 virtual void inEdgeHasChanged();
206 virtual void outEdgeHasChanged();
217 void toolFailed(
const QString & message =
"");
219 void toppOutputReady(
const QString & out);
225 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * e);
229 bool doesParamChangeInvalidate_();
231 bool renameOutput_();
233 bool initParam_(
const QString & old_ini_file =
"");
235 void getParameters_(QVector<IOInfo> & io_infos,
bool input_params)
const;
237 void writeParam_(
const Param & param,
const QString & ini_file);
239 QString toolnameWithWhitespacesForFancyWordWrapping_(QPainter * painter,
const QString & str);
262 void smartFileNames_(std::vector< QStringList >& filenames);
A more convenient string class.
Definition: String.h:56
The base class of the different vertex classes.
Definition: TOPPASVertex.h:98
std::vector< RoundPackage > RoundPackages
all information a node needs to process all rounds
Definition: TOPPASVertex.h:135
Management and storage of parameters / INI files.
Definition: Param.h:69
String list.
Definition: StringList.h:56