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

GradientVisualizer Class Reference

GradientVisualizer is a visualizer class for objects of type gradient. More...

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

Inheritance diagram for GradientVisualizer:
BaseVisualizerGUI BaseVisualizer< Gradient > QWidget

List of all members.

Public Slots

void store ()

Public Member Functions

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

Protected Slots

void addTimepoint_ ()
 Add new timepoint to the list.
void addEluent_ ()
 Add new eluent to the list.
void deleteData_ ()
 Delete all data from gradient.
void undo_ ()
 Undo the changes made in the GUI.

Protected Member Functions

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

Protected 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.
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_

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.


Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

void addEluent_ (  )  [protected, slot]

Add new eluent to the list.

void addTimepoint_ (  )  [protected, slot]

Add new timepoint to the list.

void deleteData_ (  )  [protected, slot]

Delete all data from gradient.

void load ( Gradient o  ) 

Loads the object that is to be edited.

Reimplemented from BaseVisualizer< Gradient >.

void loadData_ (  )  [protected]

Loads a list of eluent, timepoint and percentage triplets.

void removeData_ (  )  [protected]

Remove all data from layout.

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

Undo the changes made in the GUI.

void update_ (  )  [protected, virtual]

Updates the GUI from the temp_ variable.

Reimplemented from BaseVisualizer< Gradient >.


Member Data Documentation

QPushButton* add_eluent_button_ [protected]
QPushButton* add_timepoint_button_ [protected]
std::vector<String> eluents_ [protected]
std::vector<QLineEdit *> gradientdata_ [protected]

Array of temporary pointers to gradient edit fields.

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

Array of temporary pointers to gradient labels.

QLineEdit* new_eluent_ [protected]
QLineEdit* new_timepoint_ [protected]
int nextrow_ [protected]

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

QLineEdit* percentage_ [protected]

Pointer to fields with actual data.

QPushButton* removebutton_ [protected]
QIntValidator* timepoint_vali_ [protected]

A validator to check the input for the new timepoint.

std::vector<Int> timepoints_ [protected]
QGridLayout* viewlayout_ [protected]

The layout to display the eluents, timepoints and percentages.


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