OpenMS
TOPPASToolConfigDialog.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, 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 $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
16 
17 class QComboBox;
18 class QPushButton;
19 class QRadioButton;
20 class QString;
21 
22 #include <QtWidgets/QDialog>
23 
24 namespace OpenMS
25 {
26  class ParamEditor;
27 
38  class OPENMS_GUI_DLLAPI TOPPASToolConfigDialog :
39  public QDialog
40  {
41  Q_OBJECT
42 
43 public:
55  TOPPASToolConfigDialog(QWidget * parent, Param & param, const String& default_dir, const String& tool_name, const String& tool_type, const String& tool_desc, const QVector<String>& hidden_entries);
58 
59 private:
69  QString filename_;
75  QVector<String> hidden_entries_;
76 
77 protected slots:
79  void ok_();
81  void loadINI_();
83  void storeINI_();
84  };
85 
86 }
const char * tool_name
Definition: FLASHDeconvWizard.cpp:53
A GUI for editing or viewing a Param object.
Definition: ParamEditor.h:154
Management and storage of parameters / INI files.
Definition: Param.h:44
A more convenient string class.
Definition: String.h:34
TOPP tool configuration dialog.
Definition: TOPPASToolConfigDialog.h:40
Param arg_param_
Param for loading the ini-file.
Definition: TOPPASToolConfigDialog.h:65
QVector< String > hidden_entries_
The parameters already explained by in edges.
Definition: TOPPASToolConfigDialog.h:75
void storeINI_()
stores an ini-file from the editor_
QString filename_
name of ini-file
Definition: TOPPASToolConfigDialog.h:69
void ok_()
Slot for OK button.
~TOPPASToolConfigDialog() override
Destructor.
TOPPASToolConfigDialog(QWidget *parent, Param &param, const String &default_dir, const String &tool_name, const String &tool_type, const String &tool_desc, const QVector< String > &hidden_entries)
Constructor.
String tool_name_
The name of the tool.
Definition: TOPPASToolConfigDialog.h:71
Param * param_
The param we are editing.
Definition: TOPPASToolConfigDialog.h:63
void loadINI_()
loads an ini-file into the editor_
String default_dir_
default-dir of ini-file to open
Definition: TOPPASToolConfigDialog.h:67
String tool_type_
The type of the tool.
Definition: TOPPASToolConfigDialog.h:73
ParamEditor * editor_
ParamEditor for reading ini-files.
Definition: TOPPASToolConfigDialog.h:61
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22