Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes

MetaInfoVisualizer Class Reference

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

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

Inheritance diagram for MetaInfoVisualizer:
BaseVisualizerGUI BaseVisualizer< MetaInfoInterface > QWidget

List of all members.

Public Slots

void store ()

Public Member Functions

 MetaInfoVisualizer (bool editable=false, QWidget *parent=0)
 Constructor.
void load (MetaInfoInterface &m)
 Loads the object that is to be edited.

Protected 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 undo_ ()
 Undo the changes made in the GUI.

Protected Member Functions

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

Protected Attributes

int nextrow_
 Counter to keep track of the actual row in the layout.
QGridLayout * viewlayout_
 The layout to display the Type-Value pairs.
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_
Edit fields and buttons

QPushButton * addbutton_
QPushButton * clearbutton_
QButtonGroup * buttongroup_

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.


Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

void add_ (  )  [protected, slot]

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

void clear_ (  )  [protected, slot]

Clears out all fields.

void load ( MetaInfoInterface o  ) 

Loads the object that is to be edited.

Reimplemented from BaseVisualizer< MetaInfoInterface >.

void loadData_ ( UInt  index  )  [protected]

Loads all Type-Value pairs one after another.

void remove_ ( int   )  [protected, slot]

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

void store (  )  [slot]
void undo_ (  )  [protected, slot]

Undo the changes made in the GUI.


Member Data Documentation

QPushButton* addbutton_ [protected]
QButtonGroup* buttongroup_ [protected]
QPushButton* clearbutton_ [protected]
std::vector<UInt> keys_ [protected]

Container for metainfo data.

std::vector<std::pair<UInt, QAbstractButton *> > metabuttons_ [protected]
std::vector<std::pair<UInt, QLineEdit *> > metainfoptr_ [protected]
std::vector<std::pair<UInt, QLabel *> > metalabels_ [protected]
QLineEdit* newdescription_ [protected]
QLineEdit* newkey_ [protected]
QLineEdit* newvalue_ [protected]
int nextrow_ [protected]

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

QGridLayout* viewlayout_ [protected]

The layout to display the Type-Value pairs.


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