|
VAPOR3 3.9.4
|
#include <PFileSelector.h>
Public Member Functions | |
| PFileSelector (const std::string &tag, const std::string &label="") | |
| PFileSelector * | SetFileTypeFilter (const std::string &filter) |
| Sets the fileTypeFilter parameter in the QFileDialog popup functions. | |
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. | |
| 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 | |
| void | updateGUI () const override |
| bool | requireParamsMgr () const override |
| virtual QString | selectPath (const std::string &defaultPath) const =0 |
Protected Member Functions inherited from PLineItem | |
| 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::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 |
Protected Attributes | |
| QString | _fileTypeFilter = "All Files (*)" |
Creates a Qt text box and select button that allows users to pick a file path synced with the paramsdatabase using the PWidget interface.
Definition at line 13 of file PFileSelector.h.
| PFileSelector::PFileSelector | ( | const std::string & | tag, |
| const std::string & | label = "" |
||
| ) |
|
overrideprotectedvirtual |
Reimplemented from PWidget.
|
protectedpure virtual |
Implemented in PFileOpenSelector, PFileSaveSelector, and PDirectorySelector.
| PFileSelector * PFileSelector::SetFileTypeFilter | ( | const std::string & | filter | ) |
Sets the fileTypeFilter parameter in the QFileDialog popup functions.
|
overrideprotectedvirtual |
Implements PWidget.
|
protected |
Definition at line 29 of file PFileSelector.h.