35 #ifndef OPENMS_VISUAL_TOPPASTOOLVERTEX_H
36 #define OPENMS_VISUAL_TOPPASTOOLVERTEX_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;
136 virtual String getName()
const;
138 const String & getType()
const;
140 void getInputParameters(QVector<IOInfo> & input_infos)
const;
142 void getOutputParameters(QVector<IOInfo> & output_infos)
const;
144 virtual void paint(QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget);
146 virtual QRectF boundingRect()
const;
148 virtual QPainterPath shape()
const;
150 virtual void setTopoNr(
UInt nr);
152 virtual void reset(
bool reset_all_files =
false);
154 void setParam(
const Param & param);
156 const Param & getParam();
170 String getFullOutputDirectory()
const;
172 String getOutputDir()
const;
176 void openContainingFolder();
178 void openInTOPPView();
180 bool refreshParameters();
182 bool isToolReady()
const;
184 void toggleBreakpoint();
186 virtual void emitToolStarted();
188 virtual bool invertRecylingMode();
193 void executionFinished(
int ec, QProcess::ExitStatus es);
195 void forwardTOPPOutput();
197 void toolStartedSlot();
199 void toolFinishedSlot();
201 void toolCrashedSlot();
203 void toolFailedSlot();
205 virtual void toolScheduledSlot();
207 virtual void inEdgeHasChanged();
209 virtual void outEdgeHasChanged();
220 void toolFailed(
const QString & message =
"");
222 void toppOutputReady(
const QString & out);
228 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * e);
232 bool doesParamChangeInvalidate_();
234 bool renameOutput_();
236 bool initParam_(
const QString & old_ini_file =
"");
238 void getParameters_(QVector<IOInfo> & io_infos,
bool input_params)
const;
240 void writeParam_(
const Param & param,
const QString & ini_file);
242 QString toolnameWithWhitespacesForFancyWordWrapping_(QPainter * painter,
const QString & str);
265 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
std::vector< RoundPackage > RoundPackages
all information a node needs to process all rounds
Definition: TOPPASVertex.h:138
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
Management and storage of parameters / INI files.
Definition: Param.h:75