OpenMS
FLASHDeconvTabWidget.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: Jihyung Kim $
6 // $Authors: Jihyung Kim $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
17 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
19 #include <QTabWidget> // our base class
20 #include <utility> // for std::pair
21 #include <vector>
22 
23 namespace Ui
24 {
25  class FLASHDeconvTabWidget;
26 }
27 
28 namespace OpenMS
29 {
30  class InputFile;
31  class OutputDirectory;
32  class ParamEditor;
33 
34 
35  namespace Internal
36  {
37  class FLASHDeconvTabWidget;
38 
40  class OPENMS_GUI_DLLAPI FLASHDeconvTabWidget : public QTabWidget
41  {
42  Q_OBJECT
43 
44  public:
45  template <typename> friend class WizardGUILock;
46 
48  explicit FLASHDeconvTabWidget(QWidget* parent = nullptr);
51 
54 
55  private slots:
60  void broadcastNewCWD_(const QString& new_cwd);
61 
62  private:
65 
68 
70  void updateOutputParamFromPerInputFile(const QString& input_file_name);
71 
74 
76  QString getCurrentOutDir_() const;
77 
82  void writeLog_(const QString& text, const QColor& color = "#000000", bool new_section = false);
84  void writeLog_(const String& text, const QColor& color = "#000000", bool new_section = false);
85 
89 
90  Ui::FLASHDeconvTabWidget* ui;
94 
96  };
97 
98  } // namespace Internal
99 } // namespace OpenMS
100 
101 // this is required to allow Ui_FLASHDeconvTabWidget (auto UIC'd from .ui) to have a InputFile member
OpenMS::InputFile InputFile
Definition: FLASHDeconvTabWidget.h:102
OpenMS::OutputDirectory OutputDirectory
Definition: FLASHDeconvTabWidget.h:103
OpenMS::ParamEditor ParamEditor
Definition: FLASHDeconvTabWidget.h:104
A wrapper around ExternalProcess to conveniently show a MessageBox when an error occurs.
Definition: ExternalProcessMBox.h:29
A simple widget with a line-edit and a browse button to choose filenames.
Definition: gui/include/OpenMS/VISUAL/InputFile.h:31
A multi-tabbed widget for the FLASHDeconvWizard offering setting of parameters, input-file specificat...
Definition: FLASHDeconvTabWidget.h:41
FLASHDeconvTabWidget(QWidget *parent=nullptr)
constructor
void updateFLASHDeconvParamFromWidgets_()
collect all parameters throughout the Wizard's controls and update 'flashdeconv_param_'
Ui::FLASHDeconvTabWidget * ui
Definition: FLASHDeconvTabWidget.h:90
ExternalProcessMBox ep_
to run external programs and pipe their output into our log
Definition: FLASHDeconvTabWidget.h:95
void writeLog_(const QString &text, const QColor &color="#000000", bool new_section=false)
Param flashdeconv_param_outputs_
Parameter set for different output formats.
Definition: FLASHDeconvTabWidget.h:92
void updateOutputParamFromWidgets_()
collect output format parameters from the Wizard's control and update 'flashdeconv_output_tags_'
StringList getMzMLInputFiles() const
get all the input mzML files as a string list
Param flashdeconv_param_
the global FLASHDeconv parameters which will be passed to FLASHDeconv.exe, once updated with paramete...
Definition: FLASHDeconvTabWidget.h:91
QString getCurrentOutDir_() const
where to write output
void setWidgetsfromFDDefaultParam_()
update Widgets given a param object
void writeLog_(const String &text, const QColor &color="#000000", bool new_section=false)
convenient overload for String
void broadcastNewCWD_(const QString &new_cwd)
update the current working directory for all file input fields
void updateOutputParamFromPerInputFile(const QString &input_file_name)
update 'flashdeconv_param_outputs' with given input file name
StringList flashdeconv_output_tags_
list of output parameter names checked by the user
Definition: FLASHDeconvTabWidget.h:93
RAII class to switch to certain TabWidget, disable the GUI and go back to the orignal Tab when this c...
Definition: WizardHelper.h:24
A simple widget with a line-edit and a browse button to choose filenames.
Definition: OutputDirectory.h:31
A GUI for editing or viewing a Param object.
Definition: ParamEditor.h:156
Management and storage of parameters / INI files.
Definition: Param.h:44
A more convenient string class.
Definition: String.h:34
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition: FLASHDeconvWizardBase.h:37