VAPOR3 3.9.4
|
#include <PSection.h>
Public Member Functions | |
PSection (const std::string &label="", const PGroup::List &widgets={}) | |
PSection * | Add (PWidget *pw) |
Adds a widget. | |
PSection * | Add (const PGroup::List &widgets) |
![]() | |
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. | |
PWidget * | ShowBasedOnParam (const std::string &tag, int whenEqualTo=true) |
PWidget * | EnableBasedOnParam (const std::string &tag, int whenEqualTo=true) |
PWidget * | SetTooltip (const std::string &text) |
void | setToolTip (const QString &)=delete |
![]() | |
VContainer (QWidget *w) | |
![]() | |
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 |
![]() | |
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::ParamsBase * | getParams () const |
VAPoR::ParamsMgr * | getParamsMgr () const |
VAPoR::DataMgr * | getDataMgr () const |
SettingsParams * | getSettingsParams () 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 |
Same as a PGroup however collated inside of a VSection
Groups together PWidgets. See ParamsWidgetDemo for example use cases.
Represents a section/group to be used in the sidebar. Provides a consistent layout which is not supposed to be changed Provides a settings menu that is intended to provide extra options for the parameters that are shown within this section, for example resetting to default values.
Prefer the use of VSectionGroup when possible.
Definition at line 13 of file PSection.h.
PSection::PSection | ( | const std::string & | label = "" , |
const PGroup::List & | widgets = {} |
||
) |
PSection * PSection::Add | ( | const PGroup::List & | widgets | ) |
|
overrideprotectedvirtual |
Implements PWidget.
Reimplemented in PSliceOriginSelector, and PSliceOffsetSelector.