35 #ifndef OPENMS_VISUAL_LISTEDITOR_H 36 #define OPENMS_VISUAL_LISTEDITOR_H 39 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 45 #include <QtGui/QDialog> 46 #include <QtGui/QListWidget> 47 #include <QtGui/QItemDelegate> 56 class ListEditorDelegate;
85 void setListRestrictions(
const String & restrictions);
87 void setTypeName(QString name);
130 void removeCurrentRow();
153 QWidget * createEditor(
QWidget * parent,
const QStyleOptionViewItem & option,
const QModelIndex & index)
const;
155 void setEditorData(
QWidget * editor,
const QModelIndex & index)
const;
157 void setModelData(
QWidget * editor, QAbstractItemModel * model,
const QModelIndex & index)
const;
159 void updateEditorGeometry(
QWidget * editor,
const QStyleOptionViewItem & option,
const QModelIndex & index)
const;
164 void setRestrictions(
const String & restrictions);
166 void setTypeName(QString name);
168 void setFileName(QString name);
186 #endif //OPENMS_VISUAL_LISTEDITOR_H Definition: ListEditor.h:72
String restrictions_
restrictions for list elements
Definition: ListEditor.h:176
Definition: ListEditor.h:112
A more convenient string class.
Definition: String.h:57
QPushButton * OkButton_
button clicked if modifications are accepted
Definition: ListEditor.h:101
QString file_name_
used to set input and output values in setModelData
Definition: ListEditor.h:180
Internal delegate class.
Definition: ListEditor.h:144
Definition: ListEditor.h:74
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
ListEditor::Type type_
List type.
Definition: ListEditor.h:134
Type
Definition: ListEditor.h:69
StringList list_
Definition: ListEditor.h:136
QPushButton * newRowButton_
button for new Row
Definition: ListEditor.h:97
QPushButton * removeRowButton_
button for removing row
Definition: ListEditor.h:99
Definition: ListEditor.h:71
Internal::ListEditorDelegate * listDelegate_
Delegate between view and model.
Definition: ListEditor.h:95
ListEditor::Type type_
List type.
Definition: ListEditor.h:174
Editor for editing int, double and string lists (including output and input file lists) ...
Definition: ListEditor.h:62
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
ListEditor::Type type_
List type.
Definition: ListEditor.h:91
QString typeName_
type name. used to distinguish output/input from string lists
Definition: ListEditor.h:178
Definition: ListEditor.h:73
Internal::ListTable * listTable_
displays the list
Definition: ListEditor.h:93
QPushButton * CancelButton_
button clicked if modifications are rejected
Definition: ListEditor.h:103