35 #ifndef OPENMS_VISUAL_PARAMEDITOR_H    36 #define OPENMS_VISUAL_PARAMEDITOR_H    39 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>    43 #include <OpenMS/VISUAL/UIC/ui_ParamEditor.h>    44 #include <QtGui/QLineEdit>    46 #include <QtGui/QItemDelegate>    47 #include <QtGui/QTreeWidget>    50 class QStyleOptionViewItem;
    51 class QAbstractItemModel;
    86         virtual void   focusOutEvent ( QFocusEvent * e );
    87         virtual void   focusInEvent ( QFocusEvent * e );
   103       QWidget * createEditor(
QWidget * parent, 
const QStyleOptionViewItem & option, 
const QModelIndex & index) 
const;
   105       void setEditorData(
QWidget * editor, 
const QModelIndex & index) 
const;
   107       void setModelData(
QWidget * editor, QAbstractItemModel * model, 
const QModelIndex & index) 
const;
   109       void updateEditorGeometry(
QWidget * editor, 
const QStyleOptionViewItem & option, 
const QModelIndex & index) 
const;
   112       bool hasUncommittedData() 
const;
   115       void modified(
bool) 
const;
   119       bool exists_(QString name, QModelIndex index) 
const;
   123       void commitAndCloseListEditor_();
   125       void commitAndCloseComboBox_();
   127       void closeListEditor_();
   129       void commitAndCloseLineEdit_();
   149       bool edit(
const QModelIndex & index, EditTrigger trigger, QEvent * event);
   153       void selected(
const QModelIndex & index);
   157       void selectionChanged(
const QItemSelection & selected, 
const QItemSelection &);
   175     public Ui::ParamEditorTemplate
   191     void load(
Param & param);
   195     bool isModified() 
const;
   202     void setModified(
bool is_modified);
   210     void toggleAdvancedMode(
bool advanced);
   212     void showDocumentation(
const QModelIndex & index);
   216     void storeRecursive_(QTreeWidgetItem * child, 
String path, std::map<String, String> & section_descriptions);
   231 #endif // OPENMS_VISUAL_PARAMEDITOR_H bool modified_
Indicates that the data was modified since last store/load operation. 
Definition: ParamEditor.h:223
 
A more convenient string class. 
Definition: String.h:57
 
QString fileName_
used to modify value of output and input files( not for output and input lists) 
Definition: ParamEditor.h:134
 
Custom QLineEdit which emits a signal when losing focus (such that we can commit its data) ...
Definition: ParamEditor.h:71
 
Param * param_
The data to edit. 
Definition: ParamEditor.h:221
 
Item that is always shown. 
Definition: ParamEditor.h:184
 
Main OpenMS namespace. 
Definition: FeatureDeconvolution.h:47
 
bool advanced_mode_
Indicates if normal mode or advanced mode is activated. 
Definition: ParamEditor.h:225
 
QTreeWidget that emits a signal whenever a new row is selected. 
Definition: ParamEditor.h:140
 
Section. 
Definition: ParamEditor.h:183
 
OpenMSLineEdit(QWidget *w)
Definition: ParamEditor.h:76
 
A GUI for editing or viewing a Param object. 
Definition: ParamEditor.h:173
 
Management and storage of parameters / INI files. 
Definition: Param.h:75
 
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:136
 
Internal::ParamTree * tree_
Pointer to the tree widget. 
Definition: ParamEditor.h:219
 
Internal delegate class for QTreeWidget. 
Definition: ParamEditor.h:94