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

GradientVisualizer Class Reference

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

Inheritance diagram for GradientVisualizer:

BaseVisualizer DataTable QWidget

List of all members.


Detailed Description

GradientVisualizer is a visualizer class for objects of type gradient.

Each HPLC objects contains a gradient object. A gradient objects contains a list of eluents, timepoints and percentage values. Values can be added to the list, or the whole list can be deleted.

Public Slots

void addTimepoint ()
 Add new timepoint to the list.
void addEluent ()
 Add new eluent to the list.
void deleteData ()
 Delete all data from gradient.

Public Member Functions

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

Private Slots

void store_ ()
 Saves the information to Gradient Object.
void reject_ ()
 Deletes all changes made in the viewer and restores the original data.

Private Member Functions

void loadData_ ()
 Loads a list of eluent, timepoint and percentage triplets.
void removeData_ ()
 Remove all data from layout.
void update_ ()
 Updates GUI with new data.

Private Attributes

std::vector< QLineEdit * > gradientdata_
 Array of temporary pointers to gradient edit fields.
std::vector< QLabel * > gradientlabel_
 Array of temporary pointers to gradient labels.
QLineEdit * percentage_
 Pointer to fields with actual data.
QIntValidator * timepoint_vali_
 A validator to check the input for the new timepoint.
int nextrow_
 Counter to keep track of the actual row in the layout.
QGridLayout * viewlayout_
 The layout to display the eluents, timepoints and percentages.
Gradientptr_
 Pointer to current object.
Gradient tempgradient_
 Working-Copy of current object.
Edit fields for new eluent-timepoint-percentage-triplets.
QLineEdit * new_eluent_
QLineEdit * new_timepoint_
Arrays of string values containing eluent, timepoint and percentage values.
std::vector< Stringeluents_
std::vector< Inttimepoints_
Some buttons.
QPushButton * add_eluent_button_
QPushButton * add_timepoint_button_
QPushButton * removebutton_


Constructor & Destructor Documentation

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

Default constructor.


Member Function Documentation

void load ( Gradient g  ) 

Loads the meta data from the object to the viewer.

void addTimepoint (  )  [slot]

Add new timepoint to the list.

void addEluent (  )  [slot]

Add new eluent to the list.

void deleteData (  )  [slot]

Delete all data from gradient.

void store_ (  )  [private, virtual, slot]

Saves the information to Gradient Object.

Implements BaseVisualizer.

void reject_ (  )  [private, virtual, slot]

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

Implements BaseVisualizer.

void loadData_ (  )  [private]

Loads a list of eluent, timepoint and percentage triplets.

void removeData_ (  )  [private]

Remove all data from layout.

void update_ (  )  [private]

Updates GUI with new data.


Member Data Documentation

QLineEdit* new_eluent_ [private]

QLineEdit* new_timepoint_ [private]

std::vector< String > eluents_ [private]

std::vector< Int > timepoints_ [private]

QPushButton* add_eluent_button_ [private]

QPushButton* add_timepoint_button_ [private]

QPushButton* removebutton_ [private]

std::vector< QLineEdit* > gradientdata_ [private]

Array of temporary pointers to gradient edit fields.

std::vector< QLabel* > gradientlabel_ [private]

Array of temporary pointers to gradient labels.

QLineEdit* percentage_ [private]

Pointer to fields with actual data.

QIntValidator* timepoint_vali_ [private]

A validator to check the input for the new timepoint.

int nextrow_ [private]

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

QGridLayout* viewlayout_ [private]

The layout to display the eluents, timepoints and percentages.

Gradient* ptr_ [private]

Pointer to current object.

Gradient tempgradient_ [private]

Working-Copy of current object.


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