12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 
   19 #include <QListWidget> 
   20 #include <QItemDelegate> 
   29     class ListEditorDelegate;
 
  130       void setModelData(
QWidget * editor, QAbstractItemModel * model, 
const QModelIndex & index) 
const override;
 
Internal delegate class.
Definition: ListEditor.h:119
 
void setTypeName(QString name)
set name of type
 
void setFileName(QString name)
sets the fileName
 
void setRestrictions(const String &restrictions)
 
ListEditorDelegate(QObject *parent)
Constructor.
 
void setType(const ListEditor::Type type)
 
ListEditor::Type type_
List type.
Definition: ListEditor.h:147
 
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Updates the editor for the item specified by index according to the style option given.
 
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Sets the data for the specified model and item index from that supplied by the editor....
 
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
not reimplemented
 
QString file_name_
used to set input and output values in setModelData
Definition: ListEditor.h:153
 
String restrictions_
restrictions for list elements
Definition: ListEditor.h:149
 
QString typeName_
type name. used to distinguish output/input from string lists
Definition: ListEditor.h:151
 
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Sets the data to be displayed and edited by the editor for the item specified by index.
 
ListEditorDelegate()
Not implemented => private.
 
Definition: ListEditor.h:87
 
void setList(const StringList &list, ListEditor::Type type)
 
ListEditor::Type type_
List type.
Definition: ListEditor.h:107
 
ListTable(QWidget *parent=nullptr)
 
StringList list_
Definition: ListEditor.h:109
 
Editor for editing int, double and string lists (including output and input file lists)
Definition: ListEditor.h:37
 
void setTypeName(QString name)
set name of type
 
QPushButton * CancelButton_
button clicked if modifications are rejected
Definition: ListEditor.h:76
 
void setList(const StringList &list, ListEditor::Type type)
sets list (and its type)that will be modified by user
 
Type
Definition: ListEditor.h:43
 
@ OUTPUT_FILE
Definition: ListEditor.h:47
 
@ FLOAT
Definition: ListEditor.h:45
 
@ STRING
Definition: ListEditor.h:46
 
@ INT
Definition: ListEditor.h:44
 
ListEditor::Type type_
List type.
Definition: ListEditor.h:64
 
void setListRestrictions(const String &restrictions)
set restrictions for list elements
 
QPushButton * removeRowButton_
button for removing row
Definition: ListEditor.h:72
 
QPushButton * newRowButton_
button for new Row
Definition: ListEditor.h:70
 
QPushButton * OkButton_
button clicked if modifications are accepted
Definition: ListEditor.h:74
 
ListEditor(QWidget *parent=nullptr, const QString &title="")
Constructor.
 
StringList getList() const
returns modified list
 
Internal::ListTable * listTable_
displays the list
Definition: ListEditor.h:66
 
Internal::ListEditorDelegate * listDelegate_
Delegate between view and model.
Definition: ListEditor.h:68
 
A more convenient string class.
Definition: String.h:34
 
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
 
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22