VAPOR3 3.9.4
Public Member Functions | Protected Member Functions | List of all members
PButton Class Reference

PWidget wrapper for VPushButton. More...

#include <PButton.h>

Inheritance diagram for PButton:
PWidget UWidget VContainer Updateable

Public Member Functions

 PButton (std::string label, Callback cb)
 
PButtonDisableUndo ()
 
- Public Member Functions inherited from PWidget
 PWidget (const std::string &tag, QWidget *widget)
 
void Update (VAPoR::ParamsBase *params, VAPoR::ParamsMgr *paramsMgr=nullptr, VAPoR::DataMgr *dataMgr=nullptr) override
 Follows the Vapor GUI update function convention. Update the element.
 
PWidgetShowBasedOnParam (const std::string &tag, int whenEqualTo=true)
 
PWidgetEnableBasedOnParam (const std::string &tag, int whenEqualTo=true)
 
PWidgetSetTooltip (const std::string &text)
 
void setToolTip (const QString &)=delete
 
- Public Member Functions inherited from UWidget
 VContainer (QWidget *w)
 
- Public Member Functions inherited from VContainer
 VContainer (QWidget *w)
 
void AddBottomStretch ()
 
void SetPadding (int left, int top, int right, int bottom)
 
QLayout * layout () const =delete
 
void setLayout (QLayout *)=delete
 
virtual void Update (VAPoR::ParamsBase *params, VAPoR::ParamsMgr *paramsMgr=nullptr, VAPoR::DataMgr *dataMgr=nullptr)=0
 

Protected Member Functions

void updateGUI () const override
 
bool requireParamsMgr () const override
 
- Protected Member Functions inherited from PWidget
virtual void updateGUI () const =0
 
virtual bool requireParamsMgr () const
 
virtual bool requireDataMgr () const
 
virtual bool isShown () const
 
virtual bool isEnabled () const
 
const std::string & getTag () const
 
VAPoR::ParamsBasegetParams () const
 
VAPoR::ParamsMgrgetParamsMgr () const
 
VAPoR::DataMgrgetDataMgr () const
 
SettingsParamsgetSettingsParams () const
 
void setParamsDouble (double v)
 
void setParamsLong (long v)
 
void setParamsString (const std::string &v)
 
double getParamsDouble () const
 
long getParamsLong () const
 
std::string getParamsString () const
 
template<class T >
T * getParams () const
 

Detailed Description

PWidget wrapper for VPushButton.

Author
Stas Jaroszynski

Calls the callback when clicked. Please don't capture in the callback.

Definition at line 15 of file PButton.h.

Constructor & Destructor Documentation

◆ PButton()

PButton::PButton ( std::string  label,
Callback  cb 
)

Member Function Documentation

◆ DisableUndo()

PButton * PButton::DisableUndo ( )

◆ requireParamsMgr()

bool PButton::requireParamsMgr ( ) const
inlineoverrideprotectedvirtual

Reimplemented from PWidget.

Definition at line 28 of file PButton.h.

◆ updateGUI()

void PButton::updateGUI ( ) const
inlineoverrideprotectedvirtual

Implements PWidget.

Definition at line 27 of file PButton.h.


The documentation for this class was generated from the following file: