OpenMS
TOPPASInputFileListVertex.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Johannes Veit $
6 // $Authors: Johannes Junker, Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
15 
16 namespace OpenMS
17 {
23  class OPENMS_GUI_DLLAPI TOPPASInputFileListVertex :
24  public TOPPASVertex
25  {
26  Q_OBJECT
27 
28 public:
29 
33  TOPPASInputFileListVertex(const QStringList& files);
37  ~TOPPASInputFileListVertex() override = default;
41  String getName() const override;
43  void setFilenames(const QStringList & files);
45  void run() override;
46  // documented in base class
47  void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget) override;
48  // documented in base class
49  QRectF boundingRect() const override;
57  const QString & getKey();
59  void setKey(const QString & key);
60 
61 public slots:
63  void outEdgeHasChanged() override;
64 
65 protected:
66 
68  QString key_;
69 
71  QString cwd_;
72 
74 
75  void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * e) override;
77 
78  };
79 }
80 
A more convenient string class.
Definition: String.h:34
A vertex representing an input file list.
Definition: TOPPASInputFileListVertex.h:25
void outEdgeHasChanged() override
Called by an outgoing edge when it has changed.
void openContainingFolder()
Opens the folders of the input files.
void setFilenames(const QStringList &files)
Sets the list of files.
const QString & getKey()
Returns the key (for applying resources from a resource file)
QString key_
The key of this input node (for applying resources from a resource file)
Definition: TOPPASInputFileListVertex.h:68
TOPPASInputFileListVertex(const TOPPASInputFileListVertex &rhs)=default
Copy constructor.
~TOPPASInputFileListVertex() override=default
Destructor.
void setKey(const QString &key)
Sets the key (for applying resources from a resource file)
TOPPASInputFileListVertex & operator=(const TOPPASInputFileListVertex &rhs)=default
Assignment operator.
void showFilesDialog()
Shows the dialog for editing the files.
QString cwd_
current working dir, i.e. the last position a file was added from
Definition: TOPPASInputFileListVertex.h:71
String getName() const override
returns "InputVertex"
TOPPASInputFileListVertex(const QStringList &files)
Constructor.
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) override
QRectF boundingRect() const override
Returns the bounding rectangle of this item.
TOPPASInputFileListVertex()=default
Default constructor.
bool fileNamesValid()
Checks if the given list of file names is valid.
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
void run() override
Starts all tools below this node.
The base class of the different vertex classes.
Definition: TOPPASVertex.h:78
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19