Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Types | Public Member Functions | Private Attributes

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

List of all members.

Public Types

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

Public Member Functions

 ListEditor (QWidget *parent=0, 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 Attributes

ListEditor::Type type_
 List type.
Internal::ListTablelistTable_
 displays the list
Internal::ListEditorDelegatelistDelegate_
 Delegate between view and model.
QPushButton * newRowButton_
 buttton for new Row
QPushButton * removeRowButton_
 button for removing row
QPushButton * OkButton_
 button clicked if modifications are accepted
QPushButton * CancelButton_
 button clicked if modifications are rejected

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

Delegate between view and model.

displays the list

QPushButton* newRowButton_ [private]

buttton for new Row

QPushButton* OkButton_ [private]

button clicked if modifications are accepted

QPushButton* removeRowButton_ [private]

button for removing row

List type.


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1