Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Types | Public Member Functions | Private Attributes | List of all members
ListEditor Class Reference

Editor for editing int, double and string lists (including output and input file lists) More...

#include <OpenMS/VISUAL/ListEditor.h>

Inheritance diagram for ListEditor:
QDialog

Public Types

enum  Type {
  INT, FLOAT, STRING, OUTPUT_FILE,
  INPUT_FILE
}
 

Public Member Functions

 ListEditor (QWidget *parent=0, 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::ListTablelistTable_
 displays the list More...
 
Internal::ListEditorDelegatelistDelegate_
 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...
 

Detailed Description

Editor for editing int, double and string lists (including output and input file lists)

Member Enumeration Documentation

enum Type
Enumerator
INT 
FLOAT 
STRING 
OUTPUT_FILE 
INPUT_FILE 

Constructor & Destructor Documentation

ListEditor ( QWidget parent = 0,
QString  title = "" 
)

Constructor.

Member Function Documentation

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

Member Data Documentation

QPushButton* CancelButton_
private

button clicked if modifications are rejected

Internal::ListEditorDelegate* listDelegate_
private

Delegate between view and model.

Internal::ListTable* listTable_
private

displays the list

QPushButton* newRowButton_
private

button for new Row

QPushButton* OkButton_
private

button clicked if modifications are accepted

QPushButton* removeRowButton_
private

button for removing row

ListEditor::Type type_
private

List type.


OpenMS / TOPP release 2.0.0 Documentation generated on Fri May 29 2015 17:20:39 using doxygen 1.8.9.1