VAPOR3 3.9.4
|
#include <PWidget.h>
Public Member Functions | |
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 |
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 | |
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 |
Friends | |
class | PDynamicMixin |
template<class , typename > | |
class | PWidgetHLIBase |
A Qt Widget that is automatically synced with the Params database. The Update method must be called as per Vapor's convensions All other public methods are self-explanitory. To see a demo and example of how to use these widgets, see ParamsWidgetDemo
PWidget::PWidget | ( | const std::string & | tag, |
QWidget * | widget | ||
) |
PWidget * PWidget::EnableBasedOnParam | ( | const std::string & | tag, |
int | whenEqualTo = true |
||
) |
tag must be a key referencing a long value in the Params Database. If the associated value is equal to whenEqualTo, the current widget will be shown/enabled, and hidden/disabled otherwise.
|
protected |
|
protected |
Referenced by getParams(), and PTMSLODInput::updateGUI().
|
inlineprotected |
Definition at line 97 of file PWidget.h.
References getParams(), and VAssert.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Reimplemented in PRegionSelector1D, PShowIf, and PVariableSelector.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Reimplemented in PButton, PCopyRegionWidget, PFileButton, PFileSelector, and PTFMapWidget< T >.
|
protected |
|
protected |
|
protected |
|
delete |
PWidget * PWidget::SetTooltip | ( | const std::string & | text | ) |
Wrapping QWidget::setToolTip in case we want to add additional functionality such as automatic tool-tips without having to refactor.
PWidget * PWidget::ShowBasedOnParam | ( | const std::string & | tag, |
int | whenEqualTo = true |
||
) |
tag must be a key referencing a long value in the Params Database. If the associated value is equal to whenEqualTo, the current widget will be shown/enabled, and hidden/disabled otherwise.
|
overridevirtual |
Follows the Vapor GUI update function convention. Update the element.
Implements Updateable.
|
protectedpure virtual |
Implemented in PAnnotationColorbarWidget, PAxisAnnotationWidget, PButton, PTrackballWidget, PCameraProjectionWidget, PCameraFileGroup, PCheckbox, PColorSelector, PCopyRegionWidget, PCornerSelector, PDatasetTransformWidget, PDimensionSelector, PStringDisplay, PIntegerDisplay, PDoubleDisplay, PBooleanDisplay, PDoubleInput, PEnumDropdown, PQuickFidelitySelector, PLODSelector, PRefinementSelector, PFileButton, PFileSelector, PGroup, PIntegerInput, PLabel, PLineItem, POpenVariableMetadataWidget, PMetadataSection, PMultiVarSelector, POrientationSelector, PProjectionStringSection, PRegionSelector1D, PSection, PSliceOriginSelector, PSliceOffsetSelector, PDoubleSliderEdit, PIntegerSliderEdit, PStringDropdown, PStringInput, PTFMapWidget< T >, PTFEditor, PTimestepInput, PTimestepSliderEdit, PTMSLODInput, PTotalTimestepsDisplay, PTransformWidget, PRendererTransformWidget, PVariableSelector, and PWidgetWrapper.
|
friend |
|
friend |