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

Responsible for rendering an entry into a SceneTree widget. More...

#include <SceneTreeModelDelegate.h>

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

Public Slots

void indexSelected (const QModelIndex &index)
 

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

Buffer< QWidget * > defaultWidgets ()
 

Protected Attributes

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

Static Protected Attributes

static Dictionary< UUID, CustomTreeWidgets * > s_custom_widget_callbacks
 

Properties

double selected_size
 

Detailed Description

Responsible for rendering an entry into a SceneTree widget.


Constructor & Destructor Documentation

◆ SceneTreeModelDelegate()

Member Function Documentation

◆ AddWidgetCallback()

static 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()

static 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 file: