#include <OpenMS/VISUAL/VISUALIZER/GradientVisualizer.h>
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. | |
Gradient * | ptr_ |
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< String > | eluents_ |
std::vector< Int > | timepoints_ |
Some buttons. | |
QPushButton * | add_eluent_button_ |
QPushButton * | add_timepoint_button_ |
QPushButton * | removebutton_ |
GradientVisualizer | ( | bool | editable = FALSE , |
|
QWidget * | parent = 0 | |||
) |
Default constructor.
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] |
void reject_ | ( | ) | [private, virtual, slot] |
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.
QLineEdit* new_eluent_ [private] |
QLineEdit* new_timepoint_ [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 tempgradient_ [private] |
Working-Copy of current object.
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |