Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
ToolsDialog.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2013.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Timo Sachsenberg $
32 // $Authors: Marc Sturm $
33 // --------------------------------------------------------------------------
34 
35 
36 #ifndef OPENMS_VISUAL_DIALOGS_TOOLSDIALOG_H
37 #define OPENMS_VISUAL_DIALOGS_TOOLSDIALOG_H
38 
39 class QLabel;
40 class QComboBox;
41 class QPushButton;
42 class QRadioButton;
43 class QString;
44 
45 #include <QtGui/QDialog>
48 
49 namespace OpenMS
50 {
51  class ParamEditor;
52 
67  class OPENMS_GUI_DLLAPI ToolsDialog :
68  public QDialog
69  {
70  Q_OBJECT
71 
72 public:
81  ToolsDialog(QWidget * parent, String ini_file, String default_dir, LayerData::DataType layertype);
83  ~ToolsDialog();
84 
86  String getOutput();
88  String getInput();
90  String getTool();
91 
92 private:
96  QLabel * tool_desc_;
98  QComboBox * tools_combo_;
100  QComboBox * input_combo_;
102  QComboBox * output_combo_;
108  QPushButton * ok_button_;
110  std::map<String, String> arg_map_;
116  QString filename_;
117 
119  void disable_();
121  void enable_();
122 
123 protected slots:
124 
126  void ok_();
128  void setTool_(int i);
130  void createINI_();
132  void loadINI_();
134  void storeINI_();
135  };
136 
137 }
138 #endif // OPENMS_VISUAL_DIALOGS_TOOLSDIALOG_H
A more convenient string class.
Definition: String.h:56
DataType
Dataset types.
Definition: LayerData.h:64
Param vis_param_
Param for loading configuration information in the ParamEditor.
Definition: ToolsDialog.h:106
QComboBox * tools_combo_
ComboBox for choosing a TOPP-tool.
Definition: ToolsDialog.h:98
QLabel * tool_desc_
tools description label
Definition: ToolsDialog.h:96
String ini_file_
Location of the temporary INI file this dialog works on.
Definition: ToolsDialog.h:112
QString filename_
name of ini-file
Definition: ToolsDialog.h:116
Param arg_param_
Param for loading the ini-file.
Definition: ToolsDialog.h:104
ParamEditor * editor_
ParamEditor for reading ini-files.
Definition: ToolsDialog.h:94
String default_dir_
default-dir of ini-file to open
Definition: ToolsDialog.h:114
QPushButton * ok_button_
ok-button connected with slot ok_()
Definition: ToolsDialog.h:108
A GUI for editing or viewing a Param object.
Definition: ParamEditor.h:170
Management and storage of parameters / INI files.
Definition: Param.h:69
QComboBox * output_combo_
for choosing an output parameter
Definition: ToolsDialog.h:102
QComboBox * input_combo_
for choosing an input parameter
Definition: ToolsDialog.h:100
TOPP tool selection dialog.
Definition: ToolsDialog.h:67
std::map< String, String > arg_map_
map for getting the parameter name from the full path in arg_param
Definition: ToolsDialog.h:110

OpenMS / TOPP release 1.11.1 Documentation generated on Thu Nov 14 2013 11:19:22 using doxygen 1.8.5