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

#include <PSliderEdit.h>

Inheritance diagram for PIntegerSliderEdit:
PLineItem PDynamicMixin PWidget UWidget VContainer Updateable

Public Member Functions

 PIntegerSliderEdit (const std::string &tag, const std::string &label="")
 
PIntegerSliderEditSetRange (int min, int max)
 
PIntegerSliderEditAllowUserRange (bool allowed=true)
 
PIntegerSliderEditAllowDynamicUpdate ()
 
- Public Member Functions inherited from PLineItem
 PLineItem (const std::string &tag, const std::string &label, QWidget *centerWidget, QWidget *rightWidget)
 
 PLineItem (const std::string &tag, const std::string &label, QWidget *rightWidget)
 
 PLineItem (const std::string &label, PWidget *rightWidget)
 
- 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
 
- Public Member Functions inherited from PDynamicMixin
PWidgetEnableDynamicUpdate (bool enabled=true)
 Turns on dynamic update.
 
virtual ~PDynamicMixin ()=default
 

Protected Member Functions

void updateGUI () const override
 
void updateGUI () 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
 
- Protected Member Functions inherited from PDynamicMixin
void dynamicSetParamsDouble (double v)
 
void dynamicSetParamsLong (long v)
 
void dynamicSetParamsString (const std::string &v)
 

Detailed Description

Creates a slider and text input combo synced with the paramsdatabase. Due to the way VDoubleSliderEdit and VIntSliderEdit are implemented, duplicating the code was simpler than templatizing.

Definition at line 43 of file PSliderEdit.h.

Constructor & Destructor Documentation

◆ PIntegerSliderEdit()

PIntegerSliderEdit::PIntegerSliderEdit ( const std::string &  tag,
const std::string &  label = "" 
)

Member Function Documentation

◆ AllowDynamicUpdate()

PIntegerSliderEdit * PIntegerSliderEdit::AllowDynamicUpdate ( )

◆ AllowUserRange()

PIntegerSliderEdit * PIntegerSliderEdit::AllowUserRange ( bool  allowed = true)

◆ SetRange()

PIntegerSliderEdit * PIntegerSliderEdit::SetRange ( int  min,
int  max 
)

◆ updateGUI()

void PIntegerSliderEdit::updateGUI ( ) const
overrideprotectedvirtual

Reimplemented from PLineItem.


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