Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes

ParamEditorDelegate Class Reference

Internal delegate class for QTreeWidget. More...

#include <OpenMS/VISUAL/ParamEditor.h>

Inheritance diagram for ParamEditorDelegate:
QItemDelegate

List of all members.

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 Slots

void commitAndCloseListEditor_ ()
 For closing ListEditor and updating ParamEditor.
void commitAndCloseComboBox_ ()
 For closing QcomboBox and updating ParamEditor.
void closeListEditor_ ()
 if cancel in ListEditor is clicked Dialog is closed and changes are rejected

Private Member Functions

 ParamEditorDelegate ()
 Not implemented.

Private Attributes

QString fileName_
 used to modify value of output and input files( not for output and input lists)

Detailed Description

Internal delegate class for QTreeWidget.

This handles editing of items.


Constructor & Destructor Documentation

ParamEditorDelegate ( QObject parent  ) 

Constructor.

ParamEditorDelegate (  )  [private]

Not implemented.


Member Function Documentation

void closeListEditor_ (  )  [private, slot]

if cancel in ListEditor is clicked Dialog is closed and changes are rejected

void commitAndCloseComboBox_ (  )  [private, slot]

For closing QcomboBox and updating ParamEditor.

void commitAndCloseListEditor_ (  )  [private, slot]

For closing ListEditor and updating ParamEditor.

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.

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).

void modified ( bool   )  const [signal]

signal for showing ParamEditor if the Model data changed

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.


Member Data Documentation

QString fileName_ [mutable, private]

used to modify value of output and input files( not for output and input lists)


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:43:00 using doxygen 1.7.1