#include <OpenMS/VISUAL/ParamEditor.h>
It supports two display modes:
Public Types | |
enum | { NODE, NORMAL_ITEM, ADVANCED_ITEM } |
Role of the entry. More... | |
Signals | |
void | modified (bool) |
item was edited | |
Public Member Functions | |
ParamEditor (QWidget *parent=0) | |
constructor | |
void | load (Param ¶m) |
load method for Param object | |
void | store () |
store edited data in Param object | |
bool | isModified () const |
Indicates if the data changed since last save. | |
void | clear () |
Clears all parameters. | |
Protected Slots | |
void | setModified (bool is_modified) |
void | toggleAdvancedMode (bool advanced) |
Switches between normal and advanced mode. | |
void | showDocumentation (const QModelIndex &index) |
Shows the documentation of an item in doc_. | |
Protected Member Functions | |
void | storeRecursive_ (QTreeWidgetItem *child, String path, std::map< String, String > §ion_descriptions) |
recursive helper method for method storeRecursive() | |
Protected Attributes | |
Internal::ParamTree * | tree_ |
Pointer to the tree widget. | |
Param * | param_ |
The data to edit. | |
bool | modified_ |
Indicates that the data was modified since last store/load operation. | |
bool | advanced_mode_ |
Indicates if normal mode or advanced mode is activated. |
anonymous enum |
ParamEditor | ( | QWidget * | parent = 0 |
) |
constructor
void store | ( | ) |
store edited data in Param object
bool isModified | ( | ) | const |
Indicates if the data changed since last save.
void clear | ( | ) |
Clears all parameters.
void modified | ( | bool | ) | [signal] |
item was edited
void setModified | ( | bool | is_modified | ) | [protected, slot] |
Notifies the widget that the content was changed. Emits the modified(bool) signal if the state changed.
void toggleAdvancedMode | ( | bool | advanced | ) | [protected, slot] |
Switches between normal and advanced mode.
void showDocumentation | ( | const QModelIndex & | index | ) | [protected, slot] |
Shows the documentation of an item in doc_.
void storeRecursive_ | ( | QTreeWidgetItem * | child, | |
String | path, | |||
std::map< String, String > & | section_descriptions | |||
) | [protected] |
recursive helper method for method storeRecursive()
Internal::ParamTree* tree_ [protected] |
Pointer to the tree widget.
bool modified_ [protected] |
Indicates that the data was modified since last store/load operation.
bool advanced_mode_ [protected] |
Indicates if normal mode or advanced mode is activated.
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |