OpenMS
2.6.0
|
Editor for editing int, double and string lists (including output and input file lists) More...
#include <OpenMS/VISUAL/ListEditor.h>
Public Types | |
enum | Type { INT, FLOAT, STRING, OUTPUT_FILE, INPUT_FILE } |
Public Member Functions | |
ListEditor (QWidget *parent=nullptr, QString title="") | |
Constructor. More... | |
StringList | getList () const |
returns modified list More... | |
void | setList (const StringList &list, ListEditor::Type type) |
sets list (and its type)that will be modified by user More... | |
void | setListRestrictions (const String &restrictions) |
set restrictions for list elements More... | |
void | setTypeName (QString name) |
set name of type More... | |
Private Attributes | |
ListEditor::Type | type_ |
List type. More... | |
Internal::ListTable * | listTable_ |
displays the list More... | |
Internal::ListEditorDelegate * | listDelegate_ |
Delegate between view and model. More... | |
QPushButton * | newRowButton_ |
button for new Row More... | |
QPushButton * | removeRowButton_ |
button for removing row More... | |
QPushButton * | OkButton_ |
button clicked if modifications are accepted More... | |
QPushButton * | CancelButton_ |
button clicked if modifications are rejected More... | |
Editor for editing int, double and string lists (including output and input file lists)
enum Type |
ListEditor | ( | QWidget * | parent = nullptr , |
QString | title = "" |
||
) |
Constructor.
StringList getList | ( | ) | const |
returns modified list
void setList | ( | const StringList & | list, |
ListEditor::Type | type | ||
) |
sets list (and its type)that will be modified by user
void setListRestrictions | ( | const String & | restrictions | ) |
set restrictions for list elements
void setTypeName | ( | QString | name | ) |
set name of type
|
private |
button clicked if modifications are rejected
|
private |
Delegate between view and model.
|
private |
displays the list
|
private |
button for new Row
|
private |
button clicked if modifications are accepted
|
private |
button for removing row
|
private |
List type.