OpenStudio:shared_gui_components
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Signals | Public Member Functions | List of all members
openstudio::OSListController Class Referenceabstract

#include <OSListController.hpp>

+ Inheritance diagram for openstudio::OSListController:

Signals

void itemChanged (int index)
 
void itemInserted (int index)
 
void itemRemoved (int index)
 
void modelReset ()
 

Public Member Functions

virtual int count ()=0
 
virtual QSharedPointer
< OSListItem
itemAt (int i)=0
 
 OSListController ()
 
QSharedPointer
< OSItemSelectionController
selectionController () const
 
void setSelectionController (QSharedPointer< OSItemSelectionController > controller)
 
virtual ~OSListController ()
 

Detailed Description

The purpose of OSListController is to provide an ordered list of items and signal when items have been added and removed.

The OSListController class can also manage item selection, however this capability requires that OSListItem objects are constructed with a pointer to the OSListController they are associated with -or- the item's controller has been set after creation.

Constructor & Destructor Documentation

openstudio::OSListController::OSListController ( )
virtual openstudio::OSListController::~OSListController ( )
virtual

Member Function Documentation

virtual int openstudio::OSListController::count ( )
pure virtual
virtual QSharedPointer<OSListItem> openstudio::OSListController::itemAt ( int  i)
pure virtual
void openstudio::OSListController::itemChanged ( int  index)
signal
void openstudio::OSListController::itemInserted ( int  index)
signal
void openstudio::OSListController::itemRemoved ( int  index)
signal
void openstudio::OSListController::modelReset ( )
signal
QSharedPointer<OSItemSelectionController> openstudio::OSListController::selectionController ( ) const
void openstudio::OSListController::setSelectionController ( QSharedPointer< OSItemSelectionController controller)