Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

MetaInfoVisualizer Class Reference

#include <OpenMS/VISUAL/VISUALIZER/MetaInfoVisualizer.h>

Inheritance diagram for MetaInfoVisualizer:

BaseVisualizer DataTable QWidget

List of all members.


Detailed Description

MetaInfoVisualizer is a visualizer class for all classes that use one MetaInfo object as member.

Meta information is an array of Type-Name-Value tupels. Classes that have a MetaInfo objects as a member can use this class to edit the MetaInfo object.

Public Member Functions

 MetaInfoVisualizer (bool editable=FALSE, QWidget *parent=0)
 Default constructor.
void load (MetaInfoInterface &m)
 Loads the meta data from the object to the viewer.

Private Slots

void add_ ()
 Adds a new Type-Value pair to the MetaInfo Object.
void clear_ ()
 Clears out all fields.
void remove_ (int)
 Removes a selected Type-Value pair from the MetaInfo Object.
void store_ ()
 Saves the information to MetaInfo Object.
void reject_ ()
 Deletes all changes made in the viewer and restores the original data.

Private Member Functions

void loadData_ (UInt index)
 Loads all Type-Value pairs one after another.

Private Attributes

int nextrow_
 Counter to keep track of the actual row in the layout.
QGridLayout * viewlayout_
 The layout to display the Type-Value pairs.
MetaInfoInterfaceptr_
 Pointer to current object.
MetaInfoInterface tempmeta_
 Working-Copy of current object.
std::vector< UIntkeys_
 Container for metainfo data.
Edit fields for new Type-Value pair.
QLineEdit * newkey_
QLineEdit * newvalue_
QLineEdit * newdescription_
Arrays of pointers to objects for temporary metaInfo data
std::vector< std::pair< UInt,
QLineEdit * > > 
metainfoptr_
std::vector< std::pair< UInt,
QLabel * > > 
metalabels_
std::vector< std::pair< UInt,
QAbstractButton * > > 
metabuttons_
Some buttons.
QPushButton * addbutton_
QPushButton * clearbutton_
QButtonGroup * buttongroup_


Constructor & Destructor Documentation

MetaInfoVisualizer ( bool  editable = FALSE,
QWidget parent = 0 
)

Default constructor.


Member Function Documentation

void load ( MetaInfoInterface m  ) 

Loads the meta data from the object to the viewer.

void add_ (  )  [private, slot]

Adds a new Type-Value pair to the MetaInfo Object.

void clear_ (  )  [private, slot]

Clears out all fields.

void remove_ ( int   )  [private, slot]

Removes a selected Type-Value pair from the MetaInfo Object.

void store_ (  )  [private, virtual, slot]

Saves the information to MetaInfo Object.

Implements BaseVisualizer.

void reject_ (  )  [private, virtual, slot]

Deletes all changes made in the viewer and restores the original data.

Implements BaseVisualizer.

void loadData_ ( UInt  index  )  [private]

Loads all Type-Value pairs one after another.


Member Data Documentation

QLineEdit* newkey_ [private]

QLineEdit* newvalue_ [private]

QLineEdit* newdescription_ [private]

std::vector< std::pair<UInt,QLineEdit*> > metainfoptr_ [private]

std::vector< std::pair<UInt,QLabel*> > metalabels_ [private]

std::vector< std::pair<UInt,QAbstractButton*> > metabuttons_ [private]

QPushButton* addbutton_ [private]

QPushButton* clearbutton_ [private]

QButtonGroup* buttongroup_ [private]

int nextrow_ [private]

Counter to keep track of the actual row in the layout.

QGridLayout* viewlayout_ [private]

The layout to display the Type-Value pairs.

MetaInfoInterface* ptr_ [private]

Pointer to current object.

MetaInfoInterface tempmeta_ [private]

Working-Copy of current object.

std::vector<UInt> keys_ [private]

Container for metainfo data.


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1