OpenStudioCore:openstudio_lib
 All Classes Namespaces Functions Variables Enumerations Enumerator
Public Slots | Signals | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
openstudio::GridViewSubTab Class Referenceabstract

#include <GridViewSubTab.hpp>

+ Inheritance diagram for openstudio::GridViewSubTab:

Public Slots

void gridRowSelectionChanged (int checkState)
 
void onDropZoneItemClicked (OSItem *item)
 

Signals

void dropZoneItemSelected (OSItem *item, bool readOnly)
 
void selectionCleared ()
 
void toggleUnitsClicked (bool displayIP)
 

Public Member Functions

 GridViewSubTab (bool isIP, const model::Model &model,*parent=nullptr)
 
virtual ~GridViewSubTab ()
 

Public Attributes

openstudio::IddObjectType m_iddObjectType
 

Protected Slots

void onAddClicked ()
 
virtual void onClearSelection ()=0
 
void onCopyClicked ()
 
void onPurgeClicked ()
 
void onRemoveClicked ()
 
virtual void onSelectItem ()=0
 
void toggleUnits (bool isIP)
 

Protected Member Functions

virtual void addObject (const openstudio::IddObjectType &iddObjectType)=0
 
virtual void addObject (const openstudio::model::ModelObject &modelObject)
 
virtual void copyObject (const openstudio::model::ModelObject &modelObject)
 
virtual void purgeObjects (const openstudio::IddObjectType &iddObjectType)=0
 
virtual void removeObject (openstudio::model::ModelObject modelObject)
 
virtual std::vector
< model::ModelObject > 
selectedObjects () const
 
void setGridController (OSGridController *gridController)
 
void setGridView (OSGridView *gridView)
 

Protected Attributes

OSGridControllerm_gridController = nullptr
 
OSGridView * m_gridView = nullptr
 
bool m_isIP
 
OSItemSelectorButtonsm_itemSelectorButtons = nullptr
 
model::Model m_model
 
QVBoxLayout * m_scrollLayout = nullptr
 
bool m_supportsMultipleObjectSelection = true
 

Constructor & Destructor Documentation

openstudio::GridViewSubTab::GridViewSubTab ( bool  isIP,
const model::Model &  model,
parent = nullptr 
)
virtual openstudio::GridViewSubTab::~GridViewSubTab ( )
inlinevirtual

Member Function Documentation

virtual void openstudio::GridViewSubTab::addObject ( const openstudio::IddObjectType &  iddObjectType)
protectedpure virtual
virtual void openstudio::GridViewSubTab::addObject ( const openstudio::model::ModelObject &  modelObject)
protectedvirtual
virtual void openstudio::GridViewSubTab::copyObject ( const openstudio::model::ModelObject &  modelObject)
protectedvirtual
void openstudio::GridViewSubTab::dropZoneItemSelected ( OSItem item,
bool  readOnly 
)
signal
void openstudio::GridViewSubTab::gridRowSelectionChanged ( int  checkState)
slot
void openstudio::GridViewSubTab::onAddClicked ( )
protectedslot
virtual void openstudio::GridViewSubTab::onClearSelection ( )
protectedpure virtualslot
void openstudio::GridViewSubTab::onCopyClicked ( )
protectedslot
void openstudio::GridViewSubTab::onDropZoneItemClicked ( OSItem item)
slot
void openstudio::GridViewSubTab::onPurgeClicked ( )
protectedslot
void openstudio::GridViewSubTab::onRemoveClicked ( )
protectedslot
virtual void openstudio::GridViewSubTab::onSelectItem ( )
protectedpure virtualslot
virtual void openstudio::GridViewSubTab::purgeObjects ( const openstudio::IddObjectType &  iddObjectType)
protectedpure virtual
virtual void openstudio::GridViewSubTab::removeObject ( openstudio::model::ModelObject  modelObject)
protectedvirtual
virtual std::vector<model::ModelObject> openstudio::GridViewSubTab::selectedObjects ( ) const
protectedvirtual
void openstudio::GridViewSubTab::selectionCleared ( )
signal
void openstudio::GridViewSubTab::setGridController ( OSGridController gridController)
protected
void openstudio::GridViewSubTab::setGridView ( OSGridView *  gridView)
protected
void openstudio::GridViewSubTab::toggleUnits ( bool  isIP)
protectedslot
void openstudio::GridViewSubTab::toggleUnitsClicked ( bool  displayIP)
signal

Member Data Documentation

OSGridController* openstudio::GridViewSubTab::m_gridController = nullptr
protected
OSGridView* openstudio::GridViewSubTab::m_gridView = nullptr
protected
openstudio::IddObjectType openstudio::GridViewSubTab::m_iddObjectType
bool openstudio::GridViewSubTab::m_isIP
protected
OSItemSelectorButtons* openstudio::GridViewSubTab::m_itemSelectorButtons = nullptr
protected
model::Model openstudio::GridViewSubTab::m_model
protected
QVBoxLayout* openstudio::GridViewSubTab::m_scrollLayout = nullptr
protected
bool openstudio::GridViewSubTab::m_supportsMultipleObjectSelection = true
protected