#include <OpenMS/VISUAL/VISUALIZER/MetaInfoVisualizer.h>
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. | |
MetaInfoInterface * | ptr_ |
Pointer to current object. | |
MetaInfoInterface | tempmeta_ |
Working-Copy of current object. | |
std::vector< UInt > | keys_ |
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_ |
MetaInfoVisualizer | ( | bool | editable = FALSE , |
|
QWidget * | parent = 0 | |||
) |
Default constructor.
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] |
void reject_ | ( | ) | [private, virtual, slot] |
void loadData_ | ( | UInt | index | ) | [private] |
Loads all Type-Value pairs one after another.
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.
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |