Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

ToolsDialog Class Reference
[TOPPView]

#include <OpenMS/VISUAL/DIALOGS/ToolsDialog.h>

Inheritance diagram for ToolsDialog:

QDialog

List of all members.


Detailed Description

Dialog for executing a TOPP Tool.

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

ParamEditoreditor_
 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, Stringarg_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


Constructor & Destructor Documentation

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 (  ) 


Member Function Documentation

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.


Member Data Documentation

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()

std::map<String,String> arg_map_ [private]

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 tmp_dir_ [private]

Temporary files directory.

String default_dir_ [private]

default-dir of ini-file to open

QString filename_ [private]

name of ini-file


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1