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

#include <OSGridController.hpp>

+ Inheritance diagram for openstudio::ObjectSelector:

Signals

void inFocus (bool inFocus, bool hasData, int row, int column, boost::optional< int > subrow)
 

Public Member Functions

void addWidget (const boost::optional< model::ModelObject > &t_obj, Holder *t_holder, int row, int column, const boost::optional< int > &subrow, bool t_selector)
 
void clear ()
 
void clearSelection ()
 
bool containsObject (const openstudio::model::ModelObject &t_obj) const
 
std::vector< * > getColumnsSelectedWidgets (int column)
 
boost::optional< const
model::ModelObject & > 
getObject (const int t_row, const int t_column, const boost::optional< int > &t_subrow)
 
bool getObjectSelection (const model::ModelObject &t_obj) const
 
std::set< model::ModelObject > getSelectedObjects () const
 
getWidget (const int t_row, const int t_column, const boost::optional< int > &t_subrow)
 
void objectRemoved (const openstudio::model::ModelObject &t_obj)
 
 ObjectSelector (OSGridController *t_grid)
 
void resetObjectFilter ()
 
void selectAll ()
 
void setObjectFilter (const std::function< bool(const model::ModelObject &)> &t_filter)
 
void setObjectSelection (const model::ModelObject &t_obj, bool t_selected)
 
void updateWidgets (bool isRowLevel=false)
 

Public Attributes

std::set< model::ModelObject > m_filteredObjects
 
std::set< model::ModelObject > m_selectedObjects
 
std::set< model::ModelObject > m_selectorObjects
 

Static Protected Member Functions

static openstudio::LogChannel logChannel ()
 

Constructor & Destructor Documentation

openstudio::ObjectSelector::ObjectSelector ( OSGridController t_grid)

Member Function Documentation

void openstudio::ObjectSelector::addWidget ( const boost::optional< model::ModelObject > &  t_obj,
Holder t_holder,
int  row,
int  column,
const boost::optional< int > &  subrow,
bool  t_selector 
)
void openstudio::ObjectSelector::clear ( )
void openstudio::ObjectSelector::clearSelection ( )
bool openstudio::ObjectSelector::containsObject ( const openstudio::model::ModelObject &  t_obj) const
std::vector< *> openstudio::ObjectSelector::getColumnsSelectedWidgets ( int  column)
boost::optional<const model::ModelObject &> openstudio::ObjectSelector::getObject ( const int  t_row,
const int  t_column,
const boost::optional< int > &  t_subrow 
)
bool openstudio::ObjectSelector::getObjectSelection ( const model::ModelObject &  t_obj) const
std::set<model::ModelObject> openstudio::ObjectSelector::getSelectedObjects ( ) const
* openstudio::ObjectSelector::getWidget ( const int  t_row,
const int  t_column,
const boost::optional< int > &  t_subrow 
)
void openstudio::ObjectSelector::inFocus ( bool  inFocus,
bool  hasData,
int  row,
int  column,
boost::optional< int >  subrow 
)
signal
static openstudio::LogChannel openstudio::ObjectSelector::logChannel ( )
inlinestaticprotected
void openstudio::ObjectSelector::objectRemoved ( const openstudio::model::ModelObject &  t_obj)
void openstudio::ObjectSelector::resetObjectFilter ( )
void openstudio::ObjectSelector::selectAll ( )
void openstudio::ObjectSelector::setObjectFilter ( const std::function< bool(const model::ModelObject &)> &  t_filter)
void openstudio::ObjectSelector::setObjectSelection ( const model::ModelObject &  t_obj,
bool  t_selected 
)
void openstudio::ObjectSelector::updateWidgets ( bool  isRowLevel = false)

Member Data Documentation

std::set<model::ModelObject> openstudio::ObjectSelector::m_filteredObjects
std::set<model::ModelObject> openstudio::ObjectSelector::m_selectedObjects
std::set<model::ModelObject> openstudio::ObjectSelector::m_selectorObjects