34#include <NDEVR/UUID.h>
35#include <NDEVR/Dictionary.h>
36#include <QItemDelegate>
37 class QPropertyAnimation;
41 class DesignObjectVisibleButton;
42 class ProxyModelViewFilter;
44 class CameraLocationCombo;
58 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
59 void drawDecoration(QPainter* painter,
const QStyleOptionViewItem& option,
const QRect& rect,
const QPixmap& pixmap)
const override;
60 void updateEditorGeometry(QWidget* editor,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
61 void setEditorData(QWidget* editor,
const QModelIndex& index)
const override;
62 bool editorEvent(QEvent* event, QAbstractItemModel* model,
const QStyleOptionViewItem& option,
const QModelIndex& index)
override;
63 QSize
sizeHint(
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
90 CameraLocationCombo* m_zoom_combo =
nullptr;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Dictionary.h:48
Definition ProxyModelViewFilter.h:43
Definition SceneTree.h:50
Definition SceneTreeModelDelegate.h:53
QWidget * popupButton()
Definition SceneTreeModelDelegate.cpp:249
UUID selected() const
Definition SceneTreeModelDelegate.h:65
DesignObjectVisibleButton * m_visible
Definition SceneTreeModelDelegate.h:84
Button * m_properties
Definition SceneTreeModelDelegate.h:85
ProxyModelViewFilter * m_view
Definition SceneTreeModelDelegate.h:79
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition SceneTreeModelDelegate.cpp:198
Button * m_zoom_to
Definition SceneTreeModelDelegate.h:86
Button * m_context_menu
Definition SceneTreeModelDelegate.h:88
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition SceneTreeModelDelegate.cpp:41
UUID m_selected
Definition SceneTreeModelDelegate.h:94
static NDEVR_API void RemoveWidgetCallback(const UUID &id)
Definition SceneTreeModelDelegate.cpp:211
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
Definition SceneTreeModelDelegate.cpp:173
fltp08 m_grow_size
Definition SceneTreeModelDelegate.h:95
void setSelectedSize(fltp08 o)
Definition SceneTreeModelDelegate.cpp:340
QPropertyAnimation * m_grow_animation
Definition SceneTreeModelDelegate.h:80
Button * m_save_button
Definition SceneTreeModelDelegate.h:87
SceneTreeModelDelegate(ProxyModelViewFilter *manager, SceneTree *parent)
Definition SceneTreeModelDelegate.cpp:20
QPropertyAnimation * m_shrink_animation
Definition SceneTreeModelDelegate.h:81
static Dictionary< UUID, CustomTreeWidgets * > s_custom_widget_callbacks
Definition SceneTreeModelDelegate.h:77
UUID m_current_selected
Definition SceneTreeModelDelegate.h:92
static NDEVR_API void AddWidgetCallback(CustomTreeWidgets *delegate)
Definition SceneTreeModelDelegate.cpp:207
double selected_size
Definition SceneTreeModelDelegate.h:55
QWidget * m_button_popup
Definition SceneTreeModelDelegate.h:83
Buffer< QWidget * > defaultWidgets()
Definition SceneTreeModelDelegate.cpp:272
void drawDecoration(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QPixmap &pixmap) const override
Definition SceneTreeModelDelegate.cpp:169
SceneTree * m_parent
Definition SceneTreeModelDelegate.h:82
Buffer< QWidget * > m_last_widgets
Definition SceneTreeModelDelegate.h:78
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Definition SceneTreeModelDelegate.cpp:244
UUID m_old_selected
Definition SceneTreeModelDelegate.h:93
int selectionBoxHeight() const
Definition SceneTreeModelDelegate.cpp:353
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition SceneTreeModelDelegate.cpp:215
fltp08 selectedSize() const
Definition SceneTreeModelDelegate.h:73
void indexSelected(const QModelIndex &index)
Definition SceneTreeModelDelegate.cpp:129
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181