38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 45 #include <QListWidget> 46 #include <QItemDelegate> 55 class ListEditorDelegate;
84 void setListRestrictions(
const String & restrictions);
86 void setTypeName(QString name);
129 void removeCurrentRow();
152 QWidget * createEditor(
QWidget * parent,
const QStyleOptionViewItem & option,
const QModelIndex & index)
const override;
154 void setEditorData(
QWidget * editor,
const QModelIndex & index)
const override;
156 void setModelData(
QWidget * editor, QAbstractItemModel * model,
const QModelIndex & index)
const override;
158 void updateEditorGeometry(
QWidget * editor,
const QStyleOptionViewItem & option,
const QModelIndex & index)
const override;
163 void setRestrictions(
const String & restrictions);
165 void setTypeName(QString name);
167 void setFileName(QString name);
Definition: ListEditor.h:71
String restrictions_
restrictions for list elements
Definition: ListEditor.h:175
Definition: ListEditor.h:111
A more convenient string class.
Definition: String.h:57
QPushButton * OkButton_
button clicked if modifications are accepted
Definition: ListEditor.h:100
QString file_name_
used to set input and output values in setModelData
Definition: ListEditor.h:179
Internal delegate class.
Definition: ListEditor.h:143
Definition: ListEditor.h:73
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
ListEditor::Type type_
List type.
Definition: ListEditor.h:133
Type
Definition: ListEditor.h:68
StringList list_
Definition: ListEditor.h:135
QPushButton * newRowButton_
button for new Row
Definition: ListEditor.h:96
QPushButton * removeRowButton_
button for removing row
Definition: ListEditor.h:98
Definition: ListEditor.h:70
Internal::ListEditorDelegate * listDelegate_
Delegate between view and model.
Definition: ListEditor.h:94
ListEditor::Type type_
List type.
Definition: ListEditor.h:173
Editor for editing int, double and string lists (including output and input file lists) ...
Definition: ListEditor.h:61
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:73
ListEditor::Type type_
List type.
Definition: ListEditor.h:90
QString typeName_
type name. used to distinguish output/input from string lists
Definition: ListEditor.h:177
Definition: ListEditor.h:72
Internal::ListTable * listTable_
displays the list
Definition: ListEditor.h:92
QPushButton * CancelButton_
button clicked if modifications are rejected
Definition: ListEditor.h:102