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 eventFilter(
QObject* editor, QEvent* event)
override;
124 bool exists_(
const QString& name, QModelIndex index)
const;
128 void commitAndCloseEditor_();
132 void commitAndCloseLineEdit_();
153 bool edit(
const QModelIndex & index, EditTrigger trigger, QEvent * event)
override;
157 void selected(
const QModelIndex & index);
161 void selectionChanged(
const QItemSelection & selected,
const QItemSelection &)
override;
198 void load(
Param& param);
202 bool isModified()
const;
209 void setModified(
bool is_modified);
217 void toggleAdvancedMode(
bool advanced);
219 void showDocumentation(
const QModelIndex & index);
223 void storeRecursive_(QTreeWidgetItem * child,
String path, std::map<String, String> & section_descriptions);
235 Ui::ParamEditorTemplate*
ui_;
Section.
Definition: ParamEditor.h:187
bool modified_
Indicates that the data was modified since last store/load operation.
Definition: ParamEditor.h:230
Item that is always shown.
Definition: ParamEditor.h:188
A more convenient string class.
Definition: String.h:58
QString fileName_
used to modify value of output and input files( not for output and input lists)
Definition: ParamEditor.h:138
Custom QLineEdit which emits a signal when losing focus (such that we can commit its data) ...
Definition: ParamEditor.h:73
Definition: SwathWizardBase.h:62
Param * param_
The data to edit.
Definition: ParamEditor.h:228
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool advanced_mode_
Indicates if normal mode or advanced mode is activated.
Definition: ParamEditor.h:232
QTreeWidget that emits a signal whenever a new row is selected.
Definition: ParamEditor.h:144
OpenMSLineEdit(QWidget *w)
Definition: ParamEditor.h:78
A GUI for editing or viewing a Param object.
Definition: ParamEditor.h:178
Management and storage of parameters / INI files.
Definition: Param.h:69
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:140
Internal::ParamTree * tree_
Pointer to the tree widget.
Definition: ParamEditor.h:226
Internal delegate class for QTreeWidget.
Definition: ParamEditor.h:96
Ui::ParamEditorTemplate * ui_
Definition: ParamEditor.h:235