OpenMS
2.8.0
|
TOPP tool selection dialog. More...
#include <OpenMS/VISUAL/DIALOGS/ToolsDialog.h>
Public Member Functions | |
ToolsDialog (QWidget *parent, const Param ¶ms, String ini_file, String default_dir, LayerDataBase::DataType layer_type, String layer_name) | |
Constructor. More... | |
~ToolsDialog () override | |
Destructor. More... | |
String | getOutput () |
to get the parameter name for output. Empty if no output was selected. More... | |
String | getInput () |
to get the parameter name for input More... | |
String | getTool () |
to get the currently selected tool-name More... | |
Protected Slots | |
void | ok_ () |
if ok button pressed show the tool output in a new layer, a new window or standard output as messagebox More... | |
void | setTool_ (int i) |
Slot that handles changing of the tool. More... | |
void | createINI_ () |
Slot that retrieves and displays the defaults. More... | |
void | loadINI_ () |
loads an ini-file into the editor_ More... | |
void | storeINI_ () |
stores an ini-file from the editor_ More... | |
Private Member Functions | |
void | disable_ () |
Disables the ok button and input/output comboboxes. More... | |
void | enable_ () |
Enables the ok button and input/output comboboxes. More... | |
std::vector< LayerDataBase::DataType > | getTypesFromParam_ (const Param &p) const |
Determine all types a tool is compatible with by mapping each file extensions in a tools param. More... | |
void | setInputOutputCombo_ (const Param &p) |
Private Attributes | |
ParamEditor * | editor_ |
ParamEditor for reading ini-files. More... | |
QLabel * | tool_desc_ |
tools description label More... | |
QComboBox * | tools_combo_ |
ComboBox for choosing a TOPP-tool. More... | |
QComboBox * | input_combo_ |
for choosing an input parameter More... | |
QComboBox * | output_combo_ |
for choosing an output parameter More... | |
Param | arg_param_ |
Param for loading the ini-file. More... | |
Param | vis_param_ |
Param for loading configuration information in the ParamEditor. More... | |
QPushButton * | ok_button_ |
ok-button connected with slot ok_() More... | |
std::map< String, String > | arg_map_ |
map for getting the parameter name from the full path in arg_param More... | |
String | ini_file_ |
Location of the temporary INI file this dialog works on. More... | |
String | default_dir_ |
default-dir of ini-file to open More... | |
QString | filename_ |
name of ini-file More... | |
std::map< String, LayerDataBase::DataType > | tool_map_ |
Mapping of file extension to layer type to determine the type of a tool. More... | |
Param | params_ |
Param object containing all TOPP tool/util params. More... | |
TOPP tool selection dialog.
In the dialog, the user can
select the options used for the input and output file
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, |
const Param & | params, | ||
String | ini_file, | ||
String | default_dir, | ||
LayerDataBase::DataType | layer_type, | ||
String | layer_name | ||
) |
Constructor.
parent | Qt parent widget |
params | Containing all TOPP tool/util params |
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 |
layer_type | The type of data (determines the applicable tools) |
layer_name | The name of the selected layer |
|
override |
Destructor.
|
protectedslot |
Slot that retrieves and displays the defaults.
|
private |
Disables the ok button and input/output comboboxes.
|
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_().
|
private |
Determine all types a tool is compatible with by mapping each file extensions in a tools param.
|
protectedslot |
loads an ini-file into the editor_
|
protectedslot |
if ok button pressed show the tool output in a new layer, a new window or standard output as messagebox
|
private |
|
protectedslot |
Slot that handles changing of the tool.
|
protectedslot |
stores an ini-file from the editor_
map for getting the parameter name from the full path in arg_param
|
private |
default-dir of ini-file to open
|
private |
ParamEditor for reading ini-files.
|
private |
name of ini-file
|
private |
Location of the temporary INI file this dialog works on.
|
private |
for choosing an input parameter
|
private |
ok-button connected with slot ok_()
|
private |
for choosing an output parameter
|
private |
tools description label
|
private |
Mapping of file extension to layer type to determine the type of a tool.
|
private |
ComboBox for choosing a TOPP-tool.
|
private |
Param for loading configuration information in the ParamEditor.