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;
65 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
66 void drawDecoration(QPainter* painter,
const QStyleOptionViewItem& option,
const QRect& rect,
const QPixmap& pixmap)
const override;
67 void updateEditorGeometry(QWidget* editor,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
68 void setEditorData(QWidget* editor,
const QModelIndex& index)
const override;
69 bool editorEvent(QEvent* event, QAbstractItemModel* model,
const QStyleOptionViewItem& option,
const QModelIndex& index)
override;
70 QSize
sizeHint(
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
97 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:56
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Filters and sorts Models from a ModelManager for views such as in a table or in a tree view.
Definition ProxyModelViewFilter.h:46
Definition SceneTree.h:50
Responsible for rendering an entry into a SceneTree widget.
Definition SceneTreeModelDelegate.h:60
UUID selected() const
Definition SceneTreeModelDelegate.h:72
DesignObjectVisibleButton * m_visible
Definition SceneTreeModelDelegate.h:91
Button * m_properties
Definition SceneTreeModelDelegate.h:92
ProxyModelViewFilter * m_view
Definition SceneTreeModelDelegate.h:86
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Button * m_zoom_to
Definition SceneTreeModelDelegate.h:93
Button * m_context_menu
Definition SceneTreeModelDelegate.h:95
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
UUID m_selected
Definition SceneTreeModelDelegate.h:101
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
fltp08 m_grow_size
Definition SceneTreeModelDelegate.h:102
void setSelectedSize(fltp08 o)
QPropertyAnimation * m_grow_animation
Definition SceneTreeModelDelegate.h:87
Button * m_save_button
Definition SceneTreeModelDelegate.h:94
SceneTreeModelDelegate(ProxyModelViewFilter *manager, SceneTree *parent)
QPropertyAnimation * m_shrink_animation
Definition SceneTreeModelDelegate.h:88
UUID m_current_selected
Definition SceneTreeModelDelegate.h:99
static void RemoveWidgetCallback(const UUID &id)
double selected_size
Definition SceneTreeModelDelegate.h:62
QWidget * m_button_popup
Definition SceneTreeModelDelegate.h:90
static void AddWidgetCallback(CustomTreeWidgets *delegate)
Buffer< QWidget * > defaultWidgets()
void drawDecoration(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QPixmap &pixmap) const override
SceneTree * m_parent
Definition SceneTreeModelDelegate.h:89
Buffer< QWidget * > m_last_widgets
Definition SceneTreeModelDelegate.h:85
void setEditorData(QWidget *editor, const QModelIndex &index) const override
UUID m_old_selected
Definition SceneTreeModelDelegate.h:100
int selectionBoxHeight() const
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
static Dictionary< UUID, CustomTreeWidgets * > s_custom_widget_callbacks
Definition SceneTreeModelDelegate.h:84
fltp08 selectedSize() const
Definition SceneTreeModelDelegate.h:80
void indexSelected(const QModelIndex &index)
Software Services provide an interface for adding to or changing the software behavior via functional...
Definition SoftwareService.h:9
Software Service Managers take a Software service to modify the behavior of the software.
Definition SoftwareService.h:15
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149