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

#include <OSListController.hpp>

+ Inheritance diagram for openstudio::OSListItem:

Public Slots

virtual void setSelected (bool isSelected)
 
void toggleSelected ()
 

Signals

void selectedChanged (bool isSelected)
 

Public Member Functions

OSListControllercontroller () const
 
bool isSelected () const
 
 OSListItem (OSListController *listController=nullptr)
 
void setController (OSListController *controller)
 
virtual ~OSListItem ()
 

Protected Attributes

QPointer< OSListControllerm_listController
 

Detailed Description

The purpose of OSListItem is to encapsulate data and if necessary notify when the data changes.

The data encapsulated by OSListItem will often come from a separate domain model rather than from directly within the OSListItem. OSListItem will commonly be subclassed and it is considered part of the controller hierarchy.

Constructor & Destructor Documentation

openstudio::OSListItem::OSListItem ( OSListController listController = nullptr)
virtual openstudio::OSListItem::~OSListItem ( )
virtual

Member Function Documentation

OSListController* openstudio::OSListItem::controller ( ) const
inline
bool openstudio::OSListItem::isSelected ( ) const
void openstudio::OSListItem::selectedChanged ( bool  isSelected)
signal
void openstudio::OSListItem::setController ( OSListController controller)
virtual void openstudio::OSListItem::setSelected ( bool  isSelected)
virtualslot
void openstudio::OSListItem::toggleSelected ( )
slot

Member Data Documentation

QPointer<OSListController> openstudio::OSListItem::m_listController
protected