Internal delegate class. More...
#include <OpenMS/VISUAL/ListEditor.h>
Public Member Functions | |
| ListEditorDelegate (QObject *parent) | |
| Constructor. | |
| QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| not reimplemented | |
| 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 | setType (const ListEditor::Type type) |
| void | setRestrictions (const String &restrictions) |
| void | setTypeName (QString name) |
| set name of type | |
| void | setFileName (QString name) |
| sets the fileName | |
Private Member Functions | |
| ListEditorDelegate () | |
| Not implemented => private. | |
Private Attributes | |
| ListEditor::Type | type_ |
| List type. | |
| String | restrictions_ |
| restrictions for list elements | |
| QString | typeName_ |
| type name. used to distinguish output/input from string lists | |
| QString | file_name_ |
| used to set input and output values in setModelData | |
Internal delegate class.
This handles editing of items.
| ListEditorDelegate | ( | QObject * | parent | ) |
Constructor.
| ListEditorDelegate | ( | ) | [private] |
Not implemented => private.
| QWidget* createEditor | ( | QWidget * | parent, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const |
not reimplemented
| 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 setFileName | ( | QString | name | ) |
sets the fileName
| 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 setRestrictions | ( | const String & | restrictions | ) |
| void setType | ( | const ListEditor::Type | type | ) |
| void setTypeName | ( | QString | name | ) |
set name of type
| 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.
QString file_name_ [mutable, private] |
used to set input and output values in setModelData
String restrictions_ [private] |
restrictions for list elements
ListEditor::Type type_ [private] |
List type.
QString typeName_ [private] |
type name. used to distinguish output/input from string lists
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:43:00 using doxygen 1.7.1 |