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

BaseVisualizerGUI Class Reference

A base class for all visualizer classes. More...

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

Inheritance diagram for BaseVisualizerGUI:
QWidget AcquisitionInfoVisualizer AcquisitionVisualizer ContactPersonVisualizer DataProcessingVisualizer DigestionVisualizer DocumentIdentifierVisualizer ExperimentalSettingsVisualizer GradientVisualizer HPLCVisualizer InstrumentSettingsVisualizer InstrumentVisualizer IonDetectorVisualizer IonSourceVisualizer MassAnalyzerVisualizer MetaInfoDescriptionVisualizer MetaInfoVisualizer ModificationVisualizer PeptideHitVisualizer PeptideIdentificationVisualizer PrecursorVisualizer ProductVisualizer ProteinHitVisualizer ProteinIdentificationVisualizer SampleVisualizer ScanWindowVisualizer SoftwareVisualizer SourceFileVisualizer SpectrumSettingsVisualizer TaggingVisualizer

List of all members.

Public Slots

virtual void store ()=0
 Saves the changes made in the GUI to the object.

Signals

void sendStatus (std::string status)
 Sends a status message, if date is not in proper format.

Public Member Functions

 BaseVisualizerGUI (bool editable=false, QWidget *parent=0)
 Constructor.
bool isEditable () const
 Returns if the values are editable.

Protected Member Functions

void addLabel_ (QString label)
 Adds a label to the grid layout.
void addLabel_ (QString label, UInt row)
 Adds a label to a certain row.
void addLineEdit_ (QLineEdit *&ptr, QString label)
 Adds a line edit field with label to the grid layout.
void addIntLineEdit_ (QLineEdit *&ptr, QString label)
 Adds a line edit field to the grid layout including a int validator.
void addDoubleLineEdit_ (QLineEdit *&ptr, QString label)
 Adds a line edit field to the grid layout including a double validator.
void addLineEditButton_ (QString label, QLineEdit *&ptr1, QPushButton *&ptr2, QString buttonlabel)
 Adds a line edit field with label and button to the next free position in the grid.
void addListView_ (QListWidget *&ptr, QString label)
 Adds a list edit field to the grid layout.
void addTextEdit_ (QTextEdit *&ptr, QString label)
 Adds a text edit field to the grid layout.
void addComboBox_ (QComboBox *&ptr, QString label)
 Adds a drop-down field to the grid layout.
void addBooleanComboBox_ (QComboBox *&ptr, 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, QString label)
 Adds a button to the next free position in the grid.
void add2Buttons_ (QPushButton *&ptr1, QString label1, QPushButton *&ptr2, QString label2)
 Adds two buttons in a row.
void addSeparator_ ()
 Adds a horizontal line as a separator.
void finishAdding_ ()
 Adds buttons common to all visualizers.

Protected Attributes

QPushButton * undo_button_
 Undo button.
QGridLayout * mainlayout_
 The main layout.
UInt row_
 Counter for the current grid row.
bool editable_
 Edit flag.

Detailed Description

A base class for all visualizer classes.

This class provides the GUI for part for all visualizers.

Several additionl members are provided by the BaseVisualizer class. The two classes cannot be merged, as templates and the Qt meta object compiler cannot be combined.

Visualizers are mainly used by the MetaDataBrowser.


Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

void add2Buttons_ ( QPushButton *&  ptr1,
QString  label1,
QPushButton *&  ptr2,
QString  label2 
) [protected]

Adds two buttons in a row.

void addBooleanComboBox_ ( QComboBox *&  ptr,
QString  label 
) [protected]

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

void addButton_ ( QPushButton *&  ptr,
QString  label 
) [protected]

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

void addComboBox_ ( QComboBox *&  ptr,
QString  label 
) [protected]

Adds a drop-down field to the grid layout.

void addDoubleLineEdit_ ( QLineEdit *&  ptr,
QString  label 
) [protected]

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

void addIntLineEdit_ ( QLineEdit *&  ptr,
QString  label 
) [protected]

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

void addLabel_ ( QString  label,
UInt  row 
) [protected]

Adds a label to a certain row.

void addLabel_ ( QString  label  )  [protected]

Adds a label to the grid layout.

void addLineEdit_ ( QLineEdit *&  ptr,
QString  label 
) [protected]

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

void addLineEditButton_ ( QString  label,
QLineEdit *&  ptr1,
QPushButton *&  ptr2,
QString  buttonlabel 
) [protected]

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

void addListView_ ( QListWidget *&  ptr,
QString  label 
) [protected]

Adds a list edit field to the grid layout.

void addSeparator_ (  )  [protected]

Adds a horizontal line as a separator.

void addTextEdit_ ( QTextEdit *&  ptr,
QString  label 
) [protected]

Adds a text edit field to the grid layout.

void addVSpacer_ (  )  [protected]

Adds vertical spacer.

void fillComboBox_ ( QComboBox *&  ptr,
const std::string *  items,
int  item_count 
) [protected]

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

void finishAdding_ (  )  [protected]

Adds buttons common to all visualizers.

bool isEditable (  )  const

Returns if the values are editable.

void sendStatus ( std::string  status  )  [signal]

Sends a status message, if date is not in proper format.

virtual void store (  )  [pure virtual, slot]

Saves the changes made in the GUI to the object.


Member Data Documentation

bool editable_ [protected]

Edit flag.

QGridLayout* mainlayout_ [protected]

The main layout.

UInt row_ [protected]

Counter for the current grid row.

QPushButton* undo_button_ [protected]

Undo button.


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