|
template<typename DataSourceType > |
void | addCheckBoxColumn (const Heading &heading, const std::string &tooltip, std::function< bool(DataSourceType *)> t_getter, std::function< void(DataSourceType *, bool)> t_setter, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename DataSourceType > |
void | addCheckBoxColumn (const Heading &heading, const std::string &tooltip, std::function< bool(DataSourceType *)> t_getter, std::function< bool(DataSourceType *, bool)> t_setter, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ChoiceType , typename DataSourceType > |
void | addComboBoxColumn (const Heading &heading, std::function< std::string(const ChoiceType &)> toString, std::function< std::vector< ChoiceType >()> choices, std::function< ChoiceType(DataSourceType *)> getter, std::function< bool(DataSourceType *, ChoiceType)> setter, const boost::optional< std::function< void(DataSourceType *)>> &reset=boost::none, const boost::optional< std::function< bool(DataSourceType *)>> &isDefaulted=boost::none, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ChoiceType , typename DataSourceType > |
void | addComboBoxColumn (const Heading &heading, std::function< std::string(const ChoiceType &)> toString, std::function< std::vector< ChoiceType >()> 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=true) |
|
template<typename ChoiceType , typename DataSourceType > |
void | addComboBoxColumn (const Heading &heading, std::function< std::string(const ChoiceType &)> toString, std::function< std::vector< ChoiceType >(DataSourceType *)> choices, std::function< ChoiceType(DataSourceType *)> getter, std::function< bool(DataSourceType *, ChoiceType)> setter, const boost::optional< std::function< void(DataSourceType *)>> reset=boost::none, const boost::optional< std::function< bool(DataSourceType *)>> isDefaulted=boost::none, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ChoiceType , typename DataSourceType > |
void | addComboBoxColumn (const Heading &heading, std::function< std::string(const ChoiceType &)> toString, std::function< std::vector< ChoiceType >(DataSourceType *)> choices, std::function< ChoiceType(DataSourceType *)> getter, std::function< bool(DataSourceType *, ChoiceType)> setter, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ChoiceType , typename DataSourceType > |
void | addComboBoxColumn (const Heading &heading, 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) |
|
template<typename ValueType , typename DataSourceType > |
void | addDropZoneColumn (const Heading &heading, std::function< boost::optional< ValueType >(DataSourceType *)> getter, std::function< bool(DataSourceType *, const ValueType &)> setter, boost::optional< std::function< void(DataSourceType *)> > reset=boost::none, boost::optional< std::function< bool(DataSourceType *)> > isDefaulted=boost::none, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename DataSourceType > |
void | addLoadNameColumn (const Heading &heading, const std::function< boost::optional< std::string >(DataSourceType *, bool)> &getter, const std::function< boost::optional< std::string >(DataSourceType *, const std::string &)> &setter, const boost::optional< std::function< void(DataSourceType *)>> &resetter=boost::none, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename DataSourceType > |
void | addNameLineEditColumn (const Heading &heading, bool isInspectable, bool deleteObject, const std::function< boost::optional< std::string >(DataSourceType *, bool)> &getter, const std::function< boost::optional< std::string >(DataSourceType *, const std::string &)> &setter, const boost::optional< std::function< void(DataSourceType *)>> &resetter=boost::none, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ValueType , typename DataSourceType > |
void | addQuantityEditColumn (const Heading &heading, QString modelUnits, QString siUnits, QString ipUnits, bool isIP, std::function< ValueType(DataSourceType *)> getter, std::function< bool(DataSourceType *, ValueType)> setter, const boost::optional< std::function< void(DataSourceType *)>> reset=boost::none, const boost::optional< std::function< bool(DataSourceType *)>> isDefaulted=boost::none, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ValueType , typename DataSourceType > |
void | addQuantityEditColumn (const Heading &heading, QString modelUnits, QString siUnits, QString ipUnits, bool isIP, std::function< boost::optional< ValueType >(DataSourceType *)> getter, std::function< bool(DataSourceType *, ValueType)> setter, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ValueType , typename DataSourceType > |
void | addQuantityEditColumn (const Heading &heading, QString modelUnits, QString siUnits, QString ipUnits, bool isIP, std::function< ValueType(DataSourceType *)> getter, std::function< void(DataSourceType *, ValueType)> setter, const boost::optional< std::function< void(DataSourceType *)>> reset=boost::none, const boost::optional< std::function< bool(DataSourceType *)>> isDefaulted=boost::none, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ValueType , typename DataSourceType > |
void | addQuantityEditColumn (const Heading &heading, QString modelUnits, QString siUnits, QString ipUnits, bool isIP, std::function< boost::optional< ValueType >(DataSourceType *)> getter, std::function< void(DataSourceType *, ValueType)> setter, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ValueType , typename DataSourceType > |
void | addRenderingColorColumn (const Heading &heading, std::function< boost::optional< ValueType >(DataSourceType *)> getter, std::function< bool(DataSourceType *, const ValueType &)> setter, const boost::optional< DataSource > &t_source=boost::none) |
|
void | addSelectColumn (const Heading &heading, const std::string &tooltip, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ValueType , typename DataSourceType > |
void | addValueEditColumn (const Heading &heading, std::function< ValueType(DataSourceType *)> getter, std::function< bool(DataSourceType *, ValueType)> setter, const boost::optional< std::function< void(DataSourceType *)>> reset=boost::none, const boost::optional< std::function< bool(DataSourceType *)>> isDefaulted=boost::none, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ValueType , typename DataSourceType > |
void | addValueEditColumn (const Heading &heading, std::function< boost::optional< ValueType >(DataSourceType *)> getter, std::function< bool(DataSourceType *, ValueType)> setter, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ValueType , typename DataSourceType > |
void | addValueEditColumn (const Heading &heading, std::function< ValueType(DataSourceType *)> getter, std::function< void(DataSourceType *, ValueType)> setter, const boost::optional< std::function< void(DataSourceType *)>> reset=boost::none, const boost::optional< std::function< bool(DataSourceType *)>> isDefaulted=boost::none, const boost::optional< DataSource > &t_source=boost::none) |
|
template<typename ValueType , typename DataSourceType > |
void | addValueEditColumn (const Heading &heading, std::function< boost::optional< ValueType >(DataSourceType *)> getter, std::function< void(DataSourceType *, double)> setter, const boost::optional< DataSource > &t_source=boost::none) |
|
std::vector< QString > | categories () |
|
std::vector< std::pair
< QString, std::vector
< QString > > > | categoriesAndFields () |
|
virtual void | categorySelected (int index) |
|
* | cell (int rowIndex, int columnIndex) |
|
virtual int | columnCount () const |
|
void | connectToModel () |
|
void | disconnectFromModel () |
|
std::shared_ptr< ObjectSelector > | getObjectSelector () const |
|
OSGridView * | gridView () |
|
model::Model & | model () |
|
model::ModelObject | modelObject (int rowIndex) |
|
| OSGridController () |
|
| OSGridController (bool isIP, const QString &headerText, IddObjectType iddObjectType, model::Model model, std::vector< model::ModelObject > modelObjects) |
|
virtual void | refreshModelObjects ()=0 |
|
virtual std::vector< * > | row (int rowIndex) |
|
virtual int | rowCount () const |
|
int | rowIndexFromModelIndex (int modelIndex) |
|
std::vector< model::ModelObject > | selectedObjects () const |
|
void | selectRow (int rowIndex, bool select) |
|
* | widgetAt (int row, int column) |
|
virtual | ~OSGridController () |
|