API Documentation
Loading...
Searching...
No Matches
SceneTreeModelDelegate Class Reference

#include <SceneTreeModelDelegate.h>

Inheritance diagram for SceneTreeModelDelegate:
[legend]
Collaboration diagram for SceneTreeModelDelegate:
[legend]

Public Slots

void indexSelected (const QModelIndex &index)
 

Public Member Functions

 SceneTreeModelDelegate (ProxyModelViewFilter *manager, SceneTree *parent)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void drawDecoration (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QPixmap &pixmap) const override
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
QWidget * popupButton ()
 
UUID selected () const
 
fltp08 selectedSize () const
 
void setSelectedSize (fltp08 o)
 
int selectionBoxHeight () const
 

Static Public Member Functions

static NDEVR_API void AddWidgetCallback (CustomTreeWidgets *delegate)
 
static NDEVR_API void RemoveWidgetCallback (const UUID &id)
 

Protected Member Functions

Buffer< QWidget * > defaultWidgets ()
 

Protected Attributes

Buffer< QWidget * > m_last_widgets
 
ProxyModelViewFilterm_view
 
QPropertyAnimation * m_grow_animation
 
QPropertyAnimation * m_shrink_animation
 
SceneTreem_parent
 
QWidget * m_button_popup
 
DesignObjectVisibleButtonm_visible
 
Buttonm_properties = nullptr
 
Buttonm_zoom_to = nullptr
 
Buttonm_save_button = nullptr
 
Buttonm_context_menu = nullptr
 
UUID m_current_selected
 
UUID m_old_selected
 
UUID m_selected
 
fltp08 m_grow_size
 

Static Protected Attributes

static Dictionary< UUID, CustomTreeWidgets * > s_custom_widget_callbacks
 

Properties

double selected_size
 

Constructor & Destructor Documentation

◆ SceneTreeModelDelegate()

Member Function Documentation

◆ AddWidgetCallback()

void AddWidgetCallback ( CustomTreeWidgets * delegate)
static

◆ defaultWidgets()

Buffer< QWidget * > defaultWidgets ( )
protected

◆ drawDecoration()

void drawDecoration ( QPainter * painter,
const QStyleOptionViewItem & option,
const QRect & rect,
const QPixmap & pixmap ) const
override

◆ editorEvent()

bool editorEvent ( QEvent * event,
QAbstractItemModel * model,
const QStyleOptionViewItem & option,
const QModelIndex & index )
override

◆ indexSelected

void indexSelected ( const QModelIndex & index)
slot

◆ paint()

void paint ( QPainter * painter,
const QStyleOptionViewItem & option,
const QModelIndex & index ) const
override

◆ popupButton()

QWidget * popupButton ( )

◆ RemoveWidgetCallback()

void RemoveWidgetCallback ( const UUID & id)
static

◆ selected()

UUID selected ( ) const
inline

◆ selectedSize()

fltp08 selectedSize ( ) const
inline

◆ selectionBoxHeight()

int selectionBoxHeight ( ) const

◆ setEditorData()

void setEditorData ( QWidget * editor,
const QModelIndex & index ) const
override

◆ setSelectedSize()

void setSelectedSize ( fltp08 o)

◆ sizeHint()

QSize sizeHint ( const QStyleOptionViewItem & option,
const QModelIndex & index ) const
override

◆ updateEditorGeometry()

void updateEditorGeometry ( QWidget * editor,
const QStyleOptionViewItem & option,
const QModelIndex & index ) const
override

Member Data Documentation

◆ m_button_popup

QWidget* m_button_popup
protected

◆ m_context_menu

Button* m_context_menu = nullptr
protected

◆ m_current_selected

UUID m_current_selected
protected

◆ m_grow_animation

QPropertyAnimation* m_grow_animation
protected

◆ m_grow_size

fltp08 m_grow_size
protected

◆ m_last_widgets

Buffer<QWidget*> m_last_widgets
protected

◆ m_old_selected

UUID m_old_selected
protected

◆ m_parent

SceneTree* m_parent
protected

◆ m_properties

Button* m_properties = nullptr
protected

◆ m_save_button

Button* m_save_button = nullptr
protected

◆ m_selected

UUID m_selected
protected

◆ m_shrink_animation

QPropertyAnimation* m_shrink_animation
protected

◆ m_view

ProxyModelViewFilter* m_view
protected

◆ m_visible

DesignObjectVisibleButton* m_visible
protected

◆ m_zoom_to

Button* m_zoom_to = nullptr
protected

◆ s_custom_widget_callbacks

Dictionary< UUID, CustomTreeWidgets * > s_custom_widget_callbacks
staticprotected

Property Documentation

◆ selected_size

double selected_size
readwrite

The documentation for this class was generated from the following files: