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

#include <PStringDropdown.h>

Inheritance diagram for PStringDropdown:
PLineItem PWidget UWidget VContainer Updateable PStringDropdownHLI< P > PVariableSelector PColorMapVariableSelector PScalarVariableSelector PVariableSelector2D PVariableSelector3D PXFieldVariableSelector PYFieldVariableSelector PZFieldVariableSelector PHeightVariableSelector

Public Member Functions

 PStringDropdown (const std::string &tag, const std::vector< std::string > &items, const std::string &label="")
 
void SetItems (const std::vector< std::string > &items) const
 Sets the items presented in the dropdown.
 
- 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
 

Protected Slots

virtual void dropdownTextChanged (std::string text)
 

Protected Member Functions

virtual void updateGUI () const override
 
void setCustomBlankText (std::string text)
 
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
 

Detailed Description

PEnumDropdown except it sets the param to directly reflect the string in the drowdown.

Creates a Qt dropdown for selecting enum values synced with the paramsdatabase using the PWidget interface.

Definition at line 13 of file PStringDropdown.h.

Constructor & Destructor Documentation

◆ PStringDropdown()

PStringDropdown::PStringDropdown ( const std::string &  tag,
const std::vector< std::string > &  items,
const std::string &  label = "" 
)

Member Function Documentation

◆ dropdownTextChanged

virtual void PStringDropdown::dropdownTextChanged ( std::string  text)
protectedvirtualslot

Reimplemented in PVariableSelector.

◆ setCustomBlankText()

void PStringDropdown::setCustomBlankText ( std::string  text)
protected

◆ SetItems()

void PStringDropdown::SetItems ( const std::vector< std::string > &  items) const

Sets the items presented in the dropdown.

◆ updateGUI()

virtual void PStringDropdown::updateGUI ( ) const
overrideprotectedvirtual

Reimplemented from PLineItem.

Reimplemented in PVariableSelector.


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