#include <OpenMS/VISUAL/DIALOGS/ToolsDialog.h>
In this dialog the TOPP Tools are executed by syscall Remember to set the PATH-variable to the OpenMS/bin directory before executing the TOPP-tools dialog! Before clicking ok-button you should open a file with spectrum data.
Public Member Functions | |
ToolsDialog (QWidget *parent, String tmp_dir, String default_dir, const LayerData *layer) | |
constructor is given tmp_dir where the input-,output-files are saved | |
String | getOutput () |
to get the parameter name for output | |
String | getInput () |
to get the parameter name for input | |
String | getTool () |
to get the currently selected tool-name | |
~ToolsDialog () | |
bool functions for checking ouput action | |
bool | openAsWindow () |
bool | openAsLayer () |
bool | noOutputAction () |
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 | setType_ (int i) |
Slot that handles changing of the type and retrieves the defaults. | |
void | loadINI_ () |
loads an ini-file into the editor_ | |
void | storeINI_ () |
stores an ini-file from the editor_ | |
void | updateTypes_ (int) |
Updates the available types, when the tool changes. | |
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. | |
QComboBox * | tools_combo_ |
ComboBox for choosing a TOPP-tool. | |
QComboBox * | type_combo_ |
ComboBox for choosing the type of certain tools. | |
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_() | |
QRadioButton * | window_radio_ |
choosing a window as visualization of the tool-output | |
QRadioButton * | layer_radio_ |
choosing a layer as visualization of the tool-output | |
QRadioButton * | output_radio_ |
option for choosing only the output of the tool, which means it is not loaded via addSpectrum() | |
std::map< String, String > | arg_map_ |
map for getting the parameter name from the full path in arg_param | |
String | input_string_ |
parameter chosen for input | |
String | output_string_ |
parameter chosen for output | |
String | tmp_dir_ |
Temporary files directory. | |
String | default_dir_ |
default-dir of ini-file to open | |
QString | filename_ |
name of ini-file |
ToolsDialog | ( | QWidget * | parent, | |
String | tmp_dir, | |||
String | default_dir, | |||
const LayerData * | layer | |||
) |
constructor is given tmp_dir where the input-,output-files are saved
~ToolsDialog | ( | ) |
String getOutput | ( | ) |
to get the parameter name for output
String getInput | ( | ) |
to get the parameter name for input
String getTool | ( | ) |
to get the currently selected tool-name
bool openAsWindow | ( | ) |
bool openAsLayer | ( | ) |
bool noOutputAction | ( | ) |
void disable_ | ( | ) | [private] |
Disables the ok button and input/output comboboxes.
void enable_ | ( | ) | [private] |
Enables the ok button and input/output comboboxes.
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 setType_ | ( | int | i | ) | [protected, slot] |
Slot that handles changing of the type and retrieves the defaults.
void loadINI_ | ( | ) | [protected, slot] |
loads an ini-file into the editor_
void storeINI_ | ( | ) | [protected, slot] |
stores an ini-file from the editor_
void updateTypes_ | ( | int | ) | [protected, slot] |
Updates the available types, when the tool changes.
ParamEditor* editor_ [private] |
ParamEditor for reading ini-files.
QComboBox* tools_combo_ [private] |
ComboBox for choosing a TOPP-tool.
QComboBox* type_combo_ [private] |
ComboBox for choosing the type of certain tools.
QComboBox* input_combo_ [private] |
for choosing an input parameter
QComboBox* output_combo_ [private] |
for choosing an output parameter
Param arg_param_ [private] |
Param for loading the ini-file.
Param vis_param_ [private] |
Param for loading configuration information in the ParamEditor.
QPushButton* ok_button_ [private] |
ok-button connected with slot ok_()
QRadioButton* window_radio_ [private] |
choosing a window as visualization of the tool-output
QRadioButton* layer_radio_ [private] |
choosing a layer as visualization of the tool-output
QRadioButton* output_radio_ [private] |
option for choosing only the output of the tool, which means it is not loaded via addSpectrum()
map for getting the parameter name from the full path in arg_param
String input_string_ [private] |
parameter chosen for input
String output_string_ [private] |
parameter chosen for output
String default_dir_ [private] |
default-dir of ini-file to open
QString filename_ [private] |
name of ini-file
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |