TOPP tool selection dialog. More...
#include <OpenMS/VISUAL/DIALOGS/ToolsDialog.h>
Public Member Functions | |
| ToolsDialog (QWidget *parent, String ini_file, String default_dir, LayerData::DataType layertype) | |
| Constructor. | |
| ~ToolsDialog () | |
| Destructor. | |
| String | getOutput () |
| to get the parameter name for output. Empty if no output was selected. | |
| String | getInput () |
| to get the parameter name for input | |
| String | getTool () |
| to get the currently selected tool-name | |
Protected Slots | |
| void | ok_ () |
| if ok button pressed show the tool output in a new layer, a new window or standard output as messagebox | |
| void | setTool_ (int i) |
| Slot that handles changing of the tool. | |
| void | createINI_ () |
| Slot that retrieves and displays the defaults. | |
| void | loadINI_ () |
| loads an ini-file into the editor_ | |
| void | storeINI_ () |
| stores an ini-file from the editor_ | |
Private Member Functions | |
| void | disable_ () |
| Disables the ok button and input/output comboboxes. | |
| void | enable_ () |
| Enables the ok button and input/output comboboxes. | |
Private Attributes | |
| ParamEditor * | editor_ |
| ParamEditor for reading ini-files. | |
| QLabel * | tool_desc_ |
| tools description label | |
| QComboBox * | tools_combo_ |
| ComboBox for choosing a TOPP-tool. | |
| QComboBox * | input_combo_ |
| for choosing an input parameter | |
| QComboBox * | output_combo_ |
| for choosing an output parameter | |
| Param | arg_param_ |
| Param for loading the ini-file. | |
| Param | vis_param_ |
| Param for loading configuration information in the ParamEditor. | |
| QPushButton * | ok_button_ |
| ok-button connected with slot ok_() | |
| std::map< String, String > | arg_map_ |
| map for getting the parameter name from the full path in arg_param | |
| String | ini_file_ |
| Location of the temporary INI file this dialog works on. | |
| String | default_dir_ |
| default-dir of ini-file to open | |
| QString | filename_ |
| name of ini-file | |
TOPP tool selection dialog.
In the dialog, the user can
This information can then be used to execute the tool.
The offered tools depend on the data type set in the constructor.
| ToolsDialog | ( | QWidget * | parent, | |
| String | ini_file, | |||
| String | default_dir, | |||
| LayerData::DataType | layertype | |||
| ) |
Constructor.
| parent | Qt parent widget | |
| ini_file | The file name of the temporary INI file created by this dialog | |
| default_dir | The default directory for loading and storing INI files | |
| layertype | The type of data (determines the applicable tools) |
| ~ToolsDialog | ( | ) |
Destructor.
| void createINI_ | ( | ) | [protected, slot] |
Slot that retrieves and displays the defaults.
| void disable_ | ( | ) | [private] |
Disables the ok button and input/output comboboxes.
| void enable_ | ( | ) | [private] |
Enables the ok button and input/output comboboxes.
| String getInput | ( | ) |
to get the parameter name for input
Referenced by TOPPViewBase::showTOPPDialog_().
| String getOutput | ( | ) |
to get the parameter name for output. Empty if no output was selected.
Referenced by TOPPViewBase::showTOPPDialog_().
| String getTool | ( | ) |
to get the currently selected tool-name
Referenced by TOPPViewBase::showTOPPDialog_().
| void loadINI_ | ( | ) | [protected, slot] |
loads an ini-file into the editor_
| void ok_ | ( | ) | [protected, slot] |
if ok button pressed show the tool output in a new layer, a new window or standard output as messagebox
| void setTool_ | ( | int | i | ) | [protected, slot] |
Slot that handles changing of the tool.
| void storeINI_ | ( | ) | [protected, slot] |
stores an ini-file from the editor_
map for getting the parameter name from the full path in arg_param
Param arg_param_ [private] |
Param for loading the ini-file.
String default_dir_ [private] |
default-dir of ini-file to open
ParamEditor* editor_ [private] |
ParamEditor for reading ini-files.
QString filename_ [private] |
name of ini-file
QComboBox* input_combo_ [private] |
for choosing an input parameter
QPushButton* ok_button_ [private] |
ok-button connected with slot ok_()
QComboBox* output_combo_ [private] |
for choosing an output parameter
QLabel* tool_desc_ [private] |
tools description label
QComboBox* tools_combo_ [private] |
ComboBox for choosing a TOPP-tool.
Param vis_param_ [private] |
Param for loading configuration information in the ParamEditor.
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1 |