OpenStudio:openstudio_lib
 All Classes Namespaces Functions Variables Enumerations Enumerator
Signals | Public Member Functions | Protected Member Functions | List of all members
openstudio::OSDropZone Class Reference

#include <OSDropZone.hpp>

+ Inheritance diagram for openstudio::OSDropZone:

Signals

void addButtonClicked ()
 
void itemClicked (OSItem *item)
 
void itemDropped (const OSItemId &itemId)
 
void itemRemoveClicked (OSItem *item)
 
void itemReplacementDropped (OSItem *currentItem, const OSItemId &replacementItemId)
 
void itemsRequested ()
 

Public Member Functions

void hideAddButton ()
 
bool itemsAcceptDrops () const
 
bool itemsDraggable () const
 
bool itemsRemoveable () const
 
int maxItems () const
 
int minItems () const
 
 OSDropZone (OSVectorController *vectorController, const QString &text="Drag From Library", const QSize &size=QSize(0, 0), bool m_growsHorizontally=true,*parent=nullptr)
 
void setItemsAcceptDrops (bool itemsAcceptDrops)
 
void setItemsDraggable (bool itemsDraggable)
 
void setItemsRemoveable (bool itemsRemoveable)
 
bool setMaxItems (int max)
 
bool setMinItems (int min)
 
void setUseLargeIcon (bool userLargeIcon)
 
void showAddButton ()
 
bool useLargeIcon ()
 
virtual ~OSDropZone ()
 

Protected Member Functions

virtual void onDrop (const OSItemId &itemId)
 
void paintEvent (QPaintEvent *event) override
 

Constructor & Destructor Documentation

openstudio::OSDropZone::OSDropZone ( OSVectorController vectorController,
const QString &  text = "Drag From Library",
const QSize &  size = QSize(0, 0),
bool  m_growsHorizontally = true,
parent = nullptr 
)
virtual openstudio::OSDropZone::~OSDropZone ( )
inlinevirtual

Member Function Documentation

void openstudio::OSDropZone::addButtonClicked ( )
signal
void openstudio::OSDropZone::hideAddButton ( )
void openstudio::OSDropZone::itemClicked ( OSItem item)
signal
void openstudio::OSDropZone::itemDropped ( const OSItemId itemId)
signal
void openstudio::OSDropZone::itemRemoveClicked ( OSItem item)
signal
void openstudio::OSDropZone::itemReplacementDropped ( OSItem currentItem,
const OSItemId replacementItemId 
)
signal
bool openstudio::OSDropZone::itemsAcceptDrops ( ) const
bool openstudio::OSDropZone::itemsDraggable ( ) const
bool openstudio::OSDropZone::itemsRemoveable ( ) const
void openstudio::OSDropZone::itemsRequested ( )
signal
int openstudio::OSDropZone::maxItems ( ) const
int openstudio::OSDropZone::minItems ( ) const
virtual void openstudio::OSDropZone::onDrop ( const OSItemId itemId)
protectedvirtual
void openstudio::OSDropZone::paintEvent ( QPaintEvent *  event)
overrideprotected
void openstudio::OSDropZone::setItemsAcceptDrops ( bool  itemsAcceptDrops)
void openstudio::OSDropZone::setItemsDraggable ( bool  itemsDraggable)
void openstudio::OSDropZone::setItemsRemoveable ( bool  itemsRemoveable)
bool openstudio::OSDropZone::setMaxItems ( int  max)
bool openstudio::OSDropZone::setMinItems ( int  min)
void openstudio::OSDropZone::setUseLargeIcon ( bool  userLargeIcon)
void openstudio::OSDropZone::showAddButton ( )
bool openstudio::OSDropZone::useLargeIcon ( )