34#include <NDEVR/QTModelManagerView.h>
36#include <QItemDelegate>
38class QPropertyAnimation;
42 class FileChooserDialog;
43 class ProxyModelViewFilter;
44 class CameraLocationCombo;
45 class TouchScrollManager;
46 class DesignObjectVisibleButton;
48 class SceneTreeModelDelegate;
80 QSize m_custom_size_hint;
83 Button* m_project_settings_button =
nullptr;
84 bool auto_expanding =
false;
85 bool m_allow_header_click =
true;
86 bool m_ignore_expand_signal =
false;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
Filters and sorts Models from a ModelManager for views such as in a table or in a tree view.
Definition ProxyModelViewFilter.h:46
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
A Qt compatible ItemModel for interfacing with a DesignObjectLookup.
Definition QTModelManagerView.h:44
Definition SceneTree.h:50
SceneTree(QTModelManagerView *view, QWidget *parent=nullptr)
void onExpandedSlot(const QModelIndex &index)
void setCustomHeader(const TranslatedString &header_title, const String &header_icon=String(), bool allow_click=true)
void updateFocus(UUID id, bool focussed)
void contextMenu(const QPoint &pos)
void onCollapsedSlot(const QModelIndex &index)
QSize sizeHint() const override
void setVisibleFilter(const std::function< bool(const Model &)> &filter)
void updateSelection(Buffer< UUID > ids, bool selected)
SceneTree(QTModelManager *manager, QWidget *parent=nullptr)
QTModelManager * manager() const
void updateModel(UUID id)
void setRootModels(const Buffer< UUID > &ids)
bool event(QEvent *e) override
void updateExpanded(const QModelIndex &index)
void creatContextMenu(const UUID &id, const QPoint &pos)
void selectionChanged(const QItemSelection &selected, const QItemSelection &) override
void setIsRootFilter(const std::function< bool(const Model &)> &filter)
void resizeEvent(QResizeEvent *size) override
void setCustomSizeHint(const QSize &size)
Responsible for rendering an entry into a SceneTree widget.
Definition SceneTreeModelDelegate.h:60
The core String class for the NDEVR API.
Definition String.h:69
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60