OpenMS
|
A GUI for editing or viewing a Param object. More...
#include <OpenMS/VISUAL/ParamEditor.h>
Public Types | |
enum | { NODE , NORMAL_ITEM , ADVANCED_ITEM } |
Role of the entry. More... | |
Public Slots | |
void | setModified (bool is_modified) |
Signals | |
void | modified (bool) |
item was edited More... | |
Public Member Functions | |
ParamEditor (QWidget *parent=nullptr) | |
constructor More... | |
~ParamEditor () override | |
destructor More... | |
void | load (Param ¶m) |
load method for Param object More... | |
void | store () |
store edited data in Param object More... | |
bool | isModified () const |
Indicates if the data changed since last save. More... | |
void | clear () |
Clears all parameters. More... | |
Protected Slots | |
void | toggleAdvancedMode (bool advanced) |
Switches between normal and advanced mode. More... | |
void | showDocumentation (const QModelIndex &index) |
Shows the documentation of an item in doc_. More... | |
Protected Member Functions | |
void | storeRecursive_ (QTreeWidgetItem *child, String path, std::map< String, String > §ion_descriptions) |
recursive helper method for method storeRecursive() More... | |
Protected Attributes | |
Internal::ParamTree * | tree_ |
Pointer to the tree widget. More... | |
Param * | param_ |
The data to edit. More... | |
bool | modified_ |
Indicates that the data was modified since last store/load operation. More... | |
bool | advanced_mode_ |
Indicates if normal mode or advanced mode is activated. More... | |
Private Attributes | |
Ui::ParamEditorTemplate * | ui_ |
A GUI for editing or viewing a Param object.
It supports two display modes:
anonymous enum |
ParamEditor | ( | QWidget * | parent = nullptr | ) |
constructor
|
override |
destructor
void clear | ( | ) |
Clears all parameters.
bool isModified | ( | ) | const |
Indicates if the data changed since last save.
Referenced by INIFileEditorWindow::closeEvent(), INIFileEditorWindow::openFile(), INIFileEditorWindow::saveFile(), and INIFileEditorWindow::saveFileAs().
void load | ( | Param & | param | ) |
load method for Param object
Referenced by INIFileEditorWindow::openFile().
|
signal |
item was edited
|
slot |
Notifies the widget that the content was changed. Emits the modified(bool) signal if the state changed.
|
protectedslot |
Shows the documentation of an item in doc_.
void store | ( | ) |
store edited data in Param object
Referenced by INIFileEditorWindow::saveFile(), and INIFileEditorWindow::saveFileAs().
|
protected |
recursive helper method for method storeRecursive()
|
protectedslot |
Switches between normal and advanced mode.
|
protected |
Indicates if normal mode or advanced mode is activated.
|
protected |
Indicates that the data was modified since last store/load operation.
|
protected |
The data to edit.
|
protected |
Pointer to the tree widget.
|
private |