35 #ifndef OPENMS_VISUAL_LISTEDITOR_H
36 #define OPENMS_VISUAL_LISTEDITOR_H
40 #include <QtGui/QDialog>
41 #include <QtGui/QListWidget>
42 #include <QtGui/QItemDelegate>
51 class ListEditorDelegate;
80 void setListRestrictions(
const String & restrictions);
82 void setTypeName(QString name);
125 void removeCurrentRow();
148 QWidget * createEditor(
QWidget * parent,
const QStyleOptionViewItem & option,
const QModelIndex & index)
const;
150 void setEditorData(
QWidget * editor,
const QModelIndex & index)
const;
152 void setModelData(
QWidget * editor, QAbstractItemModel * model,
const QModelIndex & index)
const;
154 void updateEditorGeometry(
QWidget * editor,
const QStyleOptionViewItem & option,
const QModelIndex & index)
const;
159 void setRestrictions(
const String & restrictions);
161 void setTypeName(QString name);
163 void setFileName(QString name);
186 #endif //OPENMS_VISUAL_LISTEDITOR_H
Definition: ListEditor.h:67
String restrictions_
restrictions for list elements
Definition: ListEditor.h:171
Definition: ListEditor.h:107
A more convenient string class.
Definition: String.h:56
QPushButton * OkButton_
button clicked if modifications are accepted
Definition: ListEditor.h:96
QString file_name_
used to set input and output values in setModelData
Definition: ListEditor.h:175
Internal delegate class.
Definition: ListEditor.h:139
Definition: ListEditor.h:69
ListEditor::Type type_
List type.
Definition: ListEditor.h:129
Type
Definition: ListEditor.h:64
StringList list_
Definition: ListEditor.h:131
QPushButton * newRowButton_
buttton for new Row
Definition: ListEditor.h:92
QPushButton * removeRowButton_
button for removing row
Definition: ListEditor.h:94
Definition: ListEditor.h:66
Internal::ListEditorDelegate * listDelegate_
Delegate between view and model.
Definition: ListEditor.h:90
ListEditor::Type type_
List type.
Definition: ListEditor.h:169
Editor for editing int, double and string lists (including output and input file lists) ...
Definition: ListEditor.h:57
String list.
Definition: StringList.h:56
ListEditor::Type type_
List type.
Definition: ListEditor.h:86
QString typeName_
type name. used to distinguish output/input from string lists
Definition: ListEditor.h:173
Definition: ListEditor.h:68
Internal::ListTable * listTable_
displays the list
Definition: ListEditor.h:88
QPushButton * CancelButton_
button clicked if modifications are rejected
Definition: ListEditor.h:98