OpenStudioCore:openstudio_lib
 All Classes Namespaces Functions Variables Enumerations Enumerator
Public Member Functions | List of all members
openstudio::ModelObjectItem Class Reference

#include <ModelObjectItem.hpp>

+ Inheritance diagram for openstudio::ModelObjectItem:

Public Member Functions

virtual bool equal (const openstudio::OSItem *) const override
 
openstudio::Handle handle () const
 
openstudio::model::ModelObject modelObject () const
 
 ModelObjectItem (const openstudio::model::ModelObject &modelObject, bool isDefaulted, OSItemType type,*parent=nullptr)
 
virtual ~ModelObjectItem ()
 
- Public Member Functions inherited from openstudio::OSItem
bool draggable () const
 
bool inspectable () const
 
bool isDefaulted () const
 
OSItemId itemId () const
 
QPixmap leftPixmap () const
 
 OSItem (const OSItemId &itemId, OSItemType osItemType=OSItemType::ListItem,*parent=nullptr)
 
OSItemType osItemType () const
 
bool removeable () const
 ! is the remove button visible More...
 
QPixmap rightPixmap () const
 
bool selected () const
 
void setAspectRatio (AspectRatio aspectRatio)
 
void setDraggable (bool draggable)
 
void setInspectable (bool inspectable)
 
void setIsDefaulted (bool isDefaulted)
 
void setLeftPixmap (const QPixmap &pixmap)
 
void setOSItemType (OSItemType osItemType)
 
void setRemoveable (bool removeable)
 ! show / hide the remove button More...
 
void setRightPixmap (const QPixmap &pixmap)
 
void setSelected (bool selected)
 
void setText (const QString &text)
 
void setUseLargeIcon (bool userLargeIcon)
 
QString text () const
 
bool useLargeIcon ()
 
virtual ~OSItem ()
 

Additional Inherited Members

- Public Slots inherited from openstudio::OSItem
void onRemoveClicked ()
 
- Signals inherited from openstudio::OSItem
void itemClicked (OSItem *)
 
void itemRemoveClicked (OSItem *)
 
void itemReplacementDropped (OSItem *currentItem, const OSItemId &replacementItemId)
 
- Static Public Member Functions inherited from openstudio::OSItem
static OSItemmakeItem (const OSItemId &itemId, OSItemType osItemType=OSItemType::ListItem)
 
- Static Public Attributes inherited from openstudio::OSItem
static const int BTN_HEIGHT = 20
 
static const int BTN_WIDTH = 20
 
static const int HEADER_HEIGHT = 40
 ! The height, if a header More...
 
static const int HEADER_WIDTH = ITEM_WIDTH
 ! The width, if a header More...
 
static const int IMAGE_HEIGHT = 30
 
static const int IMAGE_WIDTH = 30
 
static const int ITEM_HEIGHT = 60
 ! The height, if a rectangle More...
 
static const int ITEM_SIDE = 80
 ! The side length, if a square More...
 
static const int ITEM_WIDTH = 150
 ! The width, if a rectangle More...
 
- Protected Member Functions inherited from openstudio::OSItem
void dragEnterEvent (QDragEnterEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
bool isBold ()
 
void leaveEvent (QEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void setBold (bool isBold)
 
void setTextColor (QColor color=Qt::black)
 
QColor textColor ()
 
- Protected Attributes inherited from openstudio::OSItem
MeasureBadge * m_measureBadge
 

Constructor & Destructor Documentation

openstudio::ModelObjectItem::ModelObjectItem ( const openstudio::model::ModelObject &  modelObject,
bool  isDefaulted,
OSItemType  type,
parent = nullptr 
)
virtual openstudio::ModelObjectItem::~ModelObjectItem ( )
inlinevirtual

Member Function Documentation

virtual bool openstudio::ModelObjectItem::equal ( const openstudio::OSItem ) const
overridevirtual

Implements openstudio::OSItem.

openstudio::Handle openstudio::ModelObjectItem::handle ( ) const
openstudio::model::ModelObject openstudio::ModelObjectItem::modelObject ( ) const