OpenStudio:shared_gui_components
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Slots | Signals | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
openstudio::OSComboBox2 Class Reference

#include <OSComboBox.hpp>

+ Inheritance diagram for openstudio::OSComboBox2:

Public Slots

void onChoicesRefreshTrigger ()
 

Signals

void inFocus (bool inFocus, bool hasData)
 

Public Member Functions

template<typename ChoiceType >
void bind (model::ModelObject &modelObject, std::function< std::string(ChoiceType)> toString, std::function< std::vector< ChoiceType >()> choices, std::function< ChoiceType()> getter, std::function< bool(ChoiceType)> setter, boost::optional< NoFailAction > reset=boost::none, boost::optional< BasicQuery > isDefaulted=boost::none)
 
template<typename ChoiceType >
void bind (model::ModelObject &modelObject, std::function< std::string(ChoiceType)> toString, std::function< std::vector< ChoiceType >()> choices, std::function< boost::optional< ChoiceType >()> getter, std::function< bool(ChoiceType)> setter, boost::optional< NoFailAction > reset=boost::none)
 
template<typename ChoiceType , typename DataSourceType >
void bind (model::ModelObject &modelObject, std::function< std::string(const ChoiceType &)> toString, std::function< std::vector< ChoiceType >(DataSourceType *)> choices, std::function< boost::optional< ChoiceType >(DataSourceType *)> getter, std::function< bool(DataSourceType *, ChoiceType)> setter, boost::optional< std::function< void(DataSourceType *)> > reset=boost::none, const boost::optional< DataSource > &t_source=boost::none, bool editable=false)
 
void bind (model::ModelObject &modelObject, std::shared_ptr< ChoiceConcept > choiceConcept)
 
void bind (std::shared_ptr< OSComboBoxDataSource > dataSource)
 
void enableClickFocus ()
 
bool hasData ()
 
void unbind ()
 
virtual ~OSComboBox2 ()
 

Public Attributes

OSComboBox2parent
 

Protected Member Functions

bool event (QEvent *e) override
 

Constructor & Destructor Documentation

virtual openstudio::OSComboBox2::~OSComboBox2 ( )
virtual

Member Function Documentation

template<typename ChoiceType >
void openstudio::OSComboBox2::bind ( model::ModelObject &  modelObject,
std::function< std::string(ChoiceType)>  toString,
std::function< std::vector< ChoiceType >()>  choices,
std::function< ChoiceType()>  getter,
std::function< bool(ChoiceType)>  setter,
boost::optional< NoFailAction reset = boost::none,
boost::optional< BasicQuery isDefaulted = boost::none 
)
inline
template<typename ChoiceType >
void openstudio::OSComboBox2::bind ( model::ModelObject &  modelObject,
std::function< std::string(ChoiceType)>  toString,
std::function< std::vector< ChoiceType >()>  choices,
std::function< boost::optional< ChoiceType >()>  getter,
std::function< bool(ChoiceType)>  setter,
boost::optional< NoFailAction reset = boost::none 
)
inline
template<typename ChoiceType , typename DataSourceType >
void openstudio::OSComboBox2::bind ( model::ModelObject &  modelObject,
std::function< std::string(const ChoiceType &)>  toString,
std::function< std::vector< ChoiceType >(DataSourceType *)>  choices,
std::function< boost::optional< ChoiceType >(DataSourceType *)>  getter,
std::function< bool(DataSourceType *, ChoiceType)>  setter,
boost::optional< std::function< void(DataSourceType *)> >  reset = boost::none,
const boost::optional< DataSource > &  t_source = boost::none,
bool  editable = false 
)
inline
void openstudio::OSComboBox2::bind ( model::ModelObject &  modelObject,
std::shared_ptr< ChoiceConcept choiceConcept 
)
inline
void openstudio::OSComboBox2::bind ( std::shared_ptr< OSComboBoxDataSource dataSource)
void openstudio::OSComboBox2::enableClickFocus ( )
inline
bool openstudio::OSComboBox2::event ( QEvent *  e)
overrideprotected
bool openstudio::OSComboBox2::hasData ( )
inline
void openstudio::OSComboBox2::inFocus ( bool  inFocus,
bool  hasData 
)
signal
void openstudio::OSComboBox2::onChoicesRefreshTrigger ( )
slot
void openstudio::OSComboBox2::unbind ( )

Member Data Documentation

OSComboBox2 * openstudio::OSComboBox2::parent