OpenStudioCore:shared_gui_components
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
openstudio::OSComboBox Class Reference

#include <OSComboBox.hpp>

+ Inheritance diagram for openstudio::OSComboBox:

Public Member Functions

void bind (model::ModelObject &modelObject, const char *property)
 
void setDataSource (std::shared_ptr< OSComboBoxDataSource > dataSource)
 
void unbind ()
 
virtual ~OSComboBox ()
 

Public Attributes

OSComboBoxparent
 

Protected Member Functions

bool event (QEvent *e) override
 

Detailed Description

OSComboBox is a derived class of QComboBox that is made to easily bind to an OpenStudio model choice field.

Alternatively, a OSComboBoxDataSource can be set to provide data to OSComoboBox.

Constructor & Destructor Documentation

virtual openstudio::OSComboBox::~OSComboBox ( )
inlinevirtual

Member Function Documentation

void openstudio::OSComboBox::bind ( model::ModelObject &  modelObject,
const char *  property 
)
bool openstudio::OSComboBox::event ( QEvent *  e)
overrideprotected
void openstudio::OSComboBox::setDataSource ( std::shared_ptr< OSComboBoxDataSource dataSource)
void openstudio::OSComboBox::unbind ( )

Member Data Documentation

OSComboBox * openstudio::OSComboBox::parent