forked from OpenMS/OpenMS
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support output directories in TOPPAS
- Loading branch information
Showing
18 changed files
with
730 additions
and
283 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
src/openms_gui/include/OpenMS/VISUAL/TOPPASOutputFolderVertex.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
// | ||
// -------------------------------------------------------------------------- | ||
// $Maintainer: Chris Bielow $ | ||
// $Authors: Chris Bielow $ | ||
// -------------------------------------------------------------------------- | ||
|
||
#pragma once | ||
|
||
// OpenMS_GUI config | ||
#include <OpenMS/VISUAL/OpenMS_GUIConfig.h> | ||
|
||
#include <OpenMS/VISUAL/TOPPASVertex.h> | ||
|
||
namespace OpenMS | ||
{ | ||
/** | ||
@brief A vertex representing an output folder | ||
@ingroup TOPPAS_elements | ||
*/ | ||
class OPENMS_GUI_DLLAPI TOPPASOutputFolderVertex : | ||
public TOPPASOutputVertex | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
/// returns "OutputFolderVertex" | ||
String getName() const override; | ||
// documented in base class | ||
void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget) override; | ||
// documented in base class | ||
QRectF boundingRect() const override; | ||
// documented in base class | ||
void reset(bool reset_all_files = false) override; | ||
/// opens the folder containing the output data | ||
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent*) override; | ||
/// Called when the parent node has finished execution | ||
void run() override; | ||
/// Returns the full directory (including preceding output path as selected by user) | ||
String getFullOutputDirectory() const; | ||
/// Returns the directory where the output files are stored | ||
String getOutputDir() const; | ||
/// Creates the output directory for this node | ||
String createOutputDir() const; | ||
/// Sets the topological sort number and removes invalidated tmp files | ||
void setTopoNr(UInt nr) override; | ||
/// Opens the folders of the output files | ||
void openContainingFolder() const; | ||
/// Sets a custom output folder name, which will be integrated into 'getOutputDir()' and 'getFullOutputDirectory()' calls. | ||
/// @note The string is not checked for validity (avoid characters which are not allowed in directories, e.g. '{') | ||
void setOutputFolderName(const QString& name); | ||
/// return the output folder where results are written | ||
const QString& getOutputFolderName() const; | ||
|
||
public slots: | ||
//documented in base class | ||
void inEdgeHasChanged() override; | ||
|
||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.