Cube GUI Plugin User Guide  (CubeGUI 4.8.2, revision 7895e762)
How to develop a Cube GUI Plugin, road map and examples
Public Member Functions | List of all members
cubepluginapi::ValueView Class Referenceabstract

The ValueView class is used to display the Value objects in the trees.

#include <ValueView.h>

Inheritance diagram for cubepluginapi::ValueView:
QObject

Public Member Functions

virtual QString getName () const =0
 
virtual bool isAvailable (cube::DataType type) const =0
 
virtual double getDoubleValue (cube::Value *) const =0
 
virtual QString toString (const cubepluginapi::TreeItem *) const =0
 
virtual QString getExtendedInfo (const TreeItem *)
 
virtual QWidget * getExtendedInfoWidget (const TreeItem *)
 
virtual QPixmap getIcon (const cubepluginapi::TreeItem *, bool grayOut) const =0
 
virtual QSize getIconSize (const TreeItem *item) const =0
 
virtual QWidget * getConfigWidget (cube::DataType)
 
virtual void applyConfig ()
 
virtual void cancelConfig ()
 

Member Function Documentation

virtual void cubepluginapi::ValueView::applyConfig ( )
virtual

for config widget, uses currently selected config widget settings to display tree values

virtual void cubepluginapi::ValueView::cancelConfig ( )
virtual

for config widget, resets the selected config widget settings

virtual QWidget* cubepluginapi::ValueView::getConfigWidget ( cube::DataType  )
virtual

returns a configuration widget, that will be deleted by the caller after the config dialog is closed

virtual double cubepluginapi::ValueView::getDoubleValue ( cube::Value *  ) const
pure virtual

returns the value, which is used to determine the color of the tree item and the sort

virtual QString cubepluginapi::ValueView::getExtendedInfo ( const TreeItem *  )
virtual

returns a full description ot the tree item's value if toString doesn't show all details.

virtual QWidget* cubepluginapi::ValueView::getExtendedInfoWidget ( const TreeItem *  )
virtual
virtual QPixmap cubepluginapi::ValueView::getIcon ( const cubepluginapi::TreeItem *  ,
bool  grayOut 
) const
pure virtual

returns the icon left of the tree item

virtual QSize cubepluginapi::ValueView::getIconSize ( const TreeItem *  item) const
pure virtual

returns size of the icon left of the tree item

virtual QString cubepluginapi::ValueView::getName ( ) const
pure virtual

returns the name of this value view. This name is shown in the configure dialog

virtual bool cubepluginapi::ValueView::isAvailable ( cube::DataType  type) const
pure virtual

return true, if a view for the given type is provided by this class

virtual QString cubepluginapi::ValueView::toString ( const cubepluginapi::TreeItem *  ) const
pure virtual

return the string representation of the value of the given tree item. This value is shown left of the item label


Cube Writer Library    Copyright © 1998–2022 Forschungszentrum Jülich GmbH, Jülich Supercomputing Centre
Copyright © 2009–2015 German Research School for Simulation Sciences GmbH, Laboratory for Parallel Programming