|
OpenMS
2.5.0
|
Go to the documentation of this file.
38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
42 #include <QtWidgets/QLineEdit>
43 #include <QtWidgets/QItemDelegate>
44 #include <QtWidgets/QTreeWidget>
47 class QStyleOptionViewItem;
48 class QAbstractItemModel;
54 class ParamEditorTemplate;
88 void focusOutEvent ( QFocusEvent * e )
override;
89 void focusInEvent ( QFocusEvent * e )
override;
105 QWidget * createEditor(
QWidget * parent,
const QStyleOptionViewItem & option,
const QModelIndex & index)
const override;
107 void setEditorData(
QWidget * editor,
const QModelIndex & index)
const override;
109 void setModelData(
QWidget * editor, QAbstractItemModel * model,
const QModelIndex & index)
const override;
111 void updateEditorGeometry(
QWidget * editor,
const QStyleOptionViewItem & option,
const QModelIndex & index)
const override;
114 bool hasUncommittedData()
const;
117 void modified(
bool)
const;
121 bool exists_(QString name, QModelIndex index)
const;
125 void commitAndCloseListEditor_();
127 void commitAndCloseComboBox_();
129 void closeListEditor_();
131 void commitAndCloseLineEdit_();
151 bool edit(
const QModelIndex & index, EditTrigger trigger, QEvent * event)
override;
155 void selected(
const QModelIndex & index);
159 void selectionChanged(
const QItemSelection & selected,
const QItemSelection &)
override;
196 void load(
Param & param);
200 bool isModified()
const;
207 void setModified(
bool is_modified);
215 void toggleAdvancedMode(
bool advanced);
217 void showDocumentation(
const QModelIndex & index);
221 void storeRecursive_(QTreeWidgetItem * child,
String path, std::map<String, String> & section_descriptions);
233 Ui::ParamEditorTemplate*
ui_;
OpenMSLineEdit(QWidget *w)
Definition: ParamEditor.h:78
bool modified_
Indicates that the data was modified since last store/load operation.
Definition: ParamEditor.h:228
Section.
Definition: ParamEditor.h:185
A more convenient string class.
Definition: String.h:58
QTreeWidget that emits a signal whenever a new row is selected.
Definition: ParamEditor.h:142
bool has_uncommited_data_
true if a QLineEdit is still open and has not committed its data yet (so storing the current param is...
Definition: ParamEditor.h:138
Internal::ParamTree * tree_
Pointer to the tree widget.
Definition: ParamEditor.h:224
Ui::ParamEditorTemplate * ui_
Definition: ParamEditor.h:233
Param * param_
The data to edit.
Definition: ParamEditor.h:226
Item that is always shown.
Definition: ParamEditor.h:186
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Definition: DataFilterDialog.h:45
QString fileName_
used to modify value of output and input files( not for output and input lists)
Definition: ParamEditor.h:136
Internal delegate class for QTreeWidget.
Definition: ParamEditor.h:96
Custom QLineEdit which emits a signal when losing focus (such that we can commit its data)
Definition: ParamEditor.h:73
A GUI for editing or viewing a Param object.
Definition: ParamEditor.h:176
Management and storage of parameters / INI files.
Definition: Param.h:73
bool advanced_mode_
Indicates if normal mode or advanced mode is activated.
Definition: ParamEditor.h:230