35 #ifndef OPENMS_VISUAL_PARAMEDITOR_H 
   36 #define OPENMS_VISUAL_PARAMEDITOR_H 
   40 #include <OpenMS/VISUAL/UIC/ui_ParamEditor.h> 
   41 #include <QtGui/QLineEdit> 
   43 #include <QtGui/QItemDelegate> 
   44 #include <QtGui/QTreeWidget> 
   47 class QStyleOptionViewItem;
 
   48 class QAbstractItemModel;
 
   83         virtual void   focusOutEvent ( QFocusEvent * e );
 
   84         virtual void   focusInEvent ( QFocusEvent * e );
 
  100       QWidget * createEditor(
QWidget * parent, 
const QStyleOptionViewItem & option, 
const QModelIndex & index) 
const;
 
  102       void setEditorData(
QWidget * editor, 
const QModelIndex & index) 
const;
 
  104       void setModelData(
QWidget * editor, QAbstractItemModel * model, 
const QModelIndex & index) 
const;
 
  106       void updateEditorGeometry(
QWidget * editor, 
const QStyleOptionViewItem & option, 
const QModelIndex & index) 
const;
 
  109       bool hasUncommittedData() 
const;
 
  112       void modified(
bool) 
const;
 
  116       bool exists_(QString name, QModelIndex index) 
const;
 
  120       void commitAndCloseListEditor_();
 
  122       void commitAndCloseComboBox_();
 
  124       void closeListEditor_();
 
  126       void commitAndCloseLineEdit_();
 
  146       bool edit(
const QModelIndex & index, EditTrigger trigger, QEvent * event);
 
  150       void selected(
const QModelIndex & index);
 
  154       void selectionChanged(
const QItemSelection & selected, 
const QItemSelection &);
 
  172     public Ui::ParamEditorTemplate
 
  188     void load(
Param & param);
 
  192     bool isModified() 
const;
 
  199     void setModified(
bool is_modified);
 
  207     void toggleAdvancedMode(
bool advanced);
 
  209     void showDocumentation(
const QModelIndex & index);
 
  213     void storeRecursive_(QTreeWidgetItem * child, 
String path, std::map<String, String> & section_descriptions);
 
  228 #endif // OPENMS_VISUAL_PARAMEDITOR_H 
bool modified_
Indicates that the data was modified since last store/load operation. 
Definition: ParamEditor.h:220
A more convenient string class. 
Definition: String.h:56
QString fileName_
used to modify value of output and input files( not for output and input lists) 
Definition: ParamEditor.h:131
Custom QLineEdit which emits a signal when losing focus (such that we can commit its data) ...
Definition: ParamEditor.h:68
Param * param_
The data to edit. 
Definition: ParamEditor.h:218
Item that is always shown. 
Definition: ParamEditor.h:181
bool advanced_mode_
Indicates if normal mode or advanced mode is activated. 
Definition: ParamEditor.h:222
QTreeWidget that emits a signal whenever a new row is selected. 
Definition: ParamEditor.h:137
OpenMSLineEdit(QWidget *w)
Definition: ParamEditor.h:73
A GUI for editing or viewing a Param object. 
Definition: ParamEditor.h:170
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:133
Internal::ParamTree * tree_
Pointer to the tree widget. 
Definition: ParamEditor.h:216
Internal delegate class for QTreeWidget. 
Definition: ParamEditor.h:91
Section. 
Definition: ParamEditor.h:180