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

#include <SceneTree.h>

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

Public Slots

void updateFocus (UUID id, bool focussed)
 
void updateModel (UUID id)
 
void updateExpanded (const QModelIndex &index)
 
void updateSelection (Buffer< UUID > ids, bool selected)
 
void contextMenu (const QPoint &pos)
 

Public Member Functions

 SceneTree (QTModelManager *manager, QWidget *parent=nullptr)
 
 SceneTree (QTModelManagerView *view, QWidget *parent=nullptr)
 
void initialize ()
 
bool event (QEvent *e) override
 
QTModelManagermanager () const
 
void setVisibleFilter (const std::function< bool(const Model &)> &filter)
 
void setIsRootFilter (const std::function< bool(const Model &)> &filter)
 
void selectionChanged (const QItemSelection &selected, const QItemSelection &) override
 
void setCustomHeader (const TranslatedString &header_title, const String &header_icon=String(), bool allow_click=true)
 
void setRootModels (const Buffer< UUID > &ids)
 
void setCustomSizeHint (const QSize &size)
 
void resizeEvent (QResizeEvent *size) override
 
void creatContextMenu (const UUID &id, const QPoint &pos)
 

Protected Slots

void onExpandedSlot (const QModelIndex &index)
 
void onCollapsedSlot (const QModelIndex &index)
 

Protected Member Functions

void setup ()
 
QSize sizeHint () const override
 

Constructor & Destructor Documentation

◆ SceneTree() [1/2]

SceneTree ( QTModelManager * manager,
QWidget * parent = nullptr )
explicit

◆ SceneTree() [2/2]

SceneTree ( QTModelManagerView * view,
QWidget * parent = nullptr )
explicit

Member Function Documentation

◆ contextMenu

void contextMenu ( const QPoint & pos)
slot

◆ creatContextMenu()

void creatContextMenu ( const UUID & id,
const QPoint & pos )

◆ event()

bool event ( QEvent * e)
override

◆ initialize()

void initialize ( )

◆ manager()

QTModelManager * manager ( ) const

◆ onCollapsedSlot

void onCollapsedSlot ( const QModelIndex & index)
protectedslot

◆ onExpandedSlot

void onExpandedSlot ( const QModelIndex & index)
protectedslot

◆ resizeEvent()

void resizeEvent ( QResizeEvent * size)
override

◆ selectionChanged()

void selectionChanged ( const QItemSelection & selected,
const QItemSelection &  )
override

◆ setCustomHeader()

void setCustomHeader ( const TranslatedString & header_title,
const String & header_icon = String(),
bool allow_click = true )

◆ setCustomSizeHint()

void setCustomSizeHint ( const QSize & size)

◆ setIsRootFilter()

void setIsRootFilter ( const std::function< bool(const Model &)> & filter)

◆ setRootModels()

void setRootModels ( const Buffer< UUID > & ids)

◆ setup()

void setup ( )
protected

◆ setVisibleFilter()

void setVisibleFilter ( const std::function< bool(const Model &)> & filter)

◆ sizeHint()

QSize sizeHint ( ) const
overrideprotected

◆ updateExpanded

void updateExpanded ( const QModelIndex & index)
slot

◆ updateFocus

void updateFocus ( UUID id,
bool focussed )
slot

◆ updateModel

void updateModel ( UUID id)
slot

◆ updateSelection

void updateSelection ( Buffer< UUID > ids,
bool selected )
slot

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