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

DataTable Class Reference

#include <OpenMS/VISUAL/DataTable.h>

Inheritance diagram for DataTable:

QWidget BaseVisualizer AcquisitionInfoVisualizer AcquisitionVisualizer ContactPersonVisualizer DigestionVisualizer ExperimentalSettingsVisualizer GradientVisualizer HPLCVisualizer InstrumentSettingsVisualizer InstrumentVisualizer IonDetectorVisualizer IonSourceVisualizer MassAnalyzerVisualizer MetaInfoDescriptionVisualizer MetaInfoVisualizer ModificationVisualizer PeptideHitVisualizer PeptideIdentificationVisualizer PrecursorVisualizer ProcessingMethodVisualizer ProteinHitVisualizer ProteinIdentificationVisualizer SampleVisualizer SoftwareVisualizer SourceFileVisualizer SpectrumSettingsVisualizer TaggingVisualizer

List of all members.


Detailed Description

A class that provides some functions for displaying data.

This class is a basic class for all classes to be displayed in the MetaData viewer. So it provides some functions needed in all subclasses.

Public Member Functions

 DataTable (bool editable, QWidget *parent=0)
 Default constructor.
void addLabel (const QString &label)
 Adds a label to the grid layout.
void addLineEdit (QLineEdit *&ptr, const QString &label)
 Adds a line edit field with label to the grid layout.
void addIntLineEdit (QLineEdit *&ptr, const QString &label)
 Adds a line edit field to the grid layout including a int validator.
void addDoubleLineEdit (QLineEdit *&ptr, const QString &label)
 Adds a line edit field to the grid layout including a double validator.
void addLineEditButton (const QString &labelname, QLineEdit *&ptr1, QPushButton *&ptr2, const QString &buttonlabel)
 Adds a line edit field with label and button to the next free position in the grid.
void addTextEdit (QTextEdit *&ptr, const QString &label)
 Adds a text edit field to the grid layout.
void addComboBox (QComboBox *&ptr, const QString &label)
 Adds a drop-down field to the grid layout.
void addBooleanComboBox (QComboBox *&ptr, const QString &label)
 Adds a boolean drop-down field to the grid layout ( 'true'=1 , 'false'=0 ).
void fillComboBox (QComboBox *&ptr, const std::string *items, int item_count)
 Fills a combo box with string items (the number of strings is determined by item_count).
void addVSpacer ()
 Adds vertical spacer.
void addButton (QPushButton *&ptr, const QString &label)
 Adds a button to the next free position in the grid.
void add2Buttons (QPushButton *&ptr1, const QString &label1, QPushButton *&ptr2, const QString &label2)
 Adds two buttons in a row.
void addSeperator ()
 Adds a horizontal line as a seperator.
bool isEditable () const
 Returns if the values are editable.

Protected Member Functions

void addLabel_ (const QString &labelName, UInt row)
 Adds a label. Helper class to make label adding more convenient.

Protected Attributes

QGridLayout * mainlayout_
 The main layout.
UInt row_
 Counter for the grid row.

Private Attributes

bool editable_
 Edit flag.


Constructor & Destructor Documentation

DataTable ( bool  editable,
QWidget parent = 0 
)

Default constructor.


Member Function Documentation

void addLabel ( const QString &  label  ) 

Adds a label to the grid layout.

void addLineEdit ( QLineEdit *&  ptr,
const QString &  label 
)

Adds a line edit field with label to the grid layout.

void addIntLineEdit ( QLineEdit *&  ptr,
const QString &  label 
)

Adds a line edit field to the grid layout including a int validator.

void addDoubleLineEdit ( QLineEdit *&  ptr,
const QString &  label 
)

Adds a line edit field to the grid layout including a double validator.

void addLineEditButton ( const QString &  labelname,
QLineEdit *&  ptr1,
QPushButton *&  ptr2,
const QString &  buttonlabel 
)

Adds a line edit field with label and button to the next free position in the grid.

void addTextEdit ( QTextEdit *&  ptr,
const QString &  label 
)

Adds a text edit field to the grid layout.

void addComboBox ( QComboBox *&  ptr,
const QString &  label 
)

Adds a drop-down field to the grid layout.

void addBooleanComboBox ( QComboBox *&  ptr,
const QString &  label 
)

Adds a boolean drop-down field to the grid layout ( 'true'=1 , 'false'=0 ).

void fillComboBox ( QComboBox *&  ptr,
const std::string *  items,
int  item_count 
)

Fills a combo box with string items (the number of strings is determined by item_count).

void addVSpacer (  ) 

Adds vertical spacer.

void addButton ( QPushButton *&  ptr,
const QString &  label 
)

Adds a button to the next free position in the grid.

void add2Buttons ( QPushButton *&  ptr1,
const QString &  label1,
QPushButton *&  ptr2,
const QString &  label2 
)

Adds two buttons in a row.

void addSeperator (  ) 

Adds a horizontal line as a seperator.

bool isEditable (  )  const

Returns if the values are editable.

void addLabel_ ( const QString &  labelName,
UInt  row 
) [protected]

Adds a label. Helper class to make label adding more convenient.


Member Data Documentation

QGridLayout* mainlayout_ [protected]

The main layout.

UInt row_ [protected]

Counter for the grid row.

bool editable_ [private]

Edit flag.


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