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

Public Member Functions

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

Protected Slots

void onCollapsedSlot (const QModelIndex &index)
 
void onExpandedSlot (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 file: