Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

ParamEditorDelegate Class Reference

#include <OpenMS/VISUAL/ParamEditor.h>

Inheritance diagram for ParamEditorDelegate:

QItemDelegate

List of all members.


Detailed Description

Internal delegate class for QTreeWidget.

This handles editing of items.

Signals

void modified (bool) const
 signal for showing ParamEditor if the Model data changed

Public Member Functions

 ParamEditorDelegate (QObject *parent)
 Constructor.
QWidgetcreateEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Returns the widget(combobox or QLineEdit) used to edit the item specified by index for editing. Prevents edit operations on nodes' values and types.
void setEditorData (QWidget *editor, const QModelIndex &index) const
 Sets the data to be displayed and edited by the editor for the item specified by index.
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 Sets the data for the specified model and item index from that supplied by the editor. If data changed in a cell, that is if it is different from an initial value, then set its background color to yellow and emit the modified signal otherwise make it white.
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Updates the editor for the item specified by index according to the style option given.

Protected Member Functions

bool exists_ (QString name, QModelIndex index) const
 Checks if a name is valid for the entry corresponding to index (checks if it would be duplicate).

Private Member Functions

 ParamEditorDelegate ()
 Not implemented.


Constructor & Destructor Documentation

ParamEditorDelegate ( QObject *  parent  ) 

Constructor.

ParamEditorDelegate (  )  [private]

Not implemented.


Member Function Documentation

QWidget* createEditor ( QWidget parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Returns the widget(combobox or QLineEdit) used to edit the item specified by index for editing. Prevents edit operations on nodes' values and types.

void setEditorData ( QWidget editor,
const QModelIndex &  index 
) const

Sets the data to be displayed and edited by the editor for the item specified by index.

void setModelData ( QWidget editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

Sets the data for the specified model and item index from that supplied by the editor. If data changed in a cell, that is if it is different from an initial value, then set its background color to yellow and emit the modified signal otherwise make it white.

void updateEditorGeometry ( QWidget editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Updates the editor for the item specified by index according to the style option given.

void modified ( bool   )  const [signal]

signal for showing ParamEditor if the Model data changed

bool exists_ ( QString  name,
QModelIndex  index 
) const [protected]

Checks if a name is valid for the entry corresponding to index (checks if it would be duplicate).


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:49 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1