18 #ifndef __H__OCULAR_EDITOR_SCENE_TREE__H__
19 #define __H__OCULAR_EDITOR_SCENE_TREE__H__
21 #include <QtWidgets/qtreewidget.h>
22 #include "Events/AEventListener.hpp"
53 virtual QSize sizeHint()
const override;
102 virtual void mousePressEvent(QMouseEvent* event)
override;
103 virtual void mouseDoubleClickEvent(QMouseEvent* event)
override;
104 virtual void dropEvent(QDropEvent* event)
override;
106 virtual bool onEvent(std::shared_ptr<Core::AEvent> event)
override;
110 uint32_t getItemDepth(QTreeWidgetItem* item)
const;
114 void onShowContextMenu(QPoint
const& pos);
116 void handleContextMenuNoSelection(QMenu* menu, QPoint
const& globalPos);
117 void handleContextMenuSingleSelection(QMenu* menu, QPoint
const& globalPos);
118 void handleContextMenuMultiSelection(QMenu* menu, QPoint
const& globalPos, uint32_t numSelected);
120 void handleContextMenuAction(QAction* action);
121 void handleContextMenuActionDuplicate();
122 void handleContextMenuActionRename();
123 void handleContextMenuActionDelete();
124 void handleContextMenuActionCreateObject(std::string
const& type);
126 void populateAddObjectSubmenu(QMenu* submenu);
Definition: SceneTreeItem.hpp:49
Definition: AEventListener.hpp:43
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
SceneTreeItem * getItem(Core::SceneObject *object)
Definition: SceneTree.cpp:96
Definition: SceneObject.hpp:93
Definition: SceneTree.hpp:44
void selectObject(Core::SceneObject *object)
Definition: SceneTree.cpp:174
void update()
Definition: SceneTree.cpp:83