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

#include <ModelSelectionTree.h>

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

Signals

void checkStateChanged ()
 

Public Member Functions

bool event (QEvent *e) override
 
void expandSelected ()
 
ProxyModelViewFilterfilter () const
 
Buffer< UUIDgetModelRoots () const
 
Buffer< UUIDgetSelectedModelRoots () const
 
QTModelManagermanager () const
 
 ModelSelectionTree (ProxyModelViewFilter *manager, bool owns_filter, QWidget *parent=nullptr)
 
 ModelSelectionTree (QTModelManager *manager, QWidget *parent=nullptr)
 
 ModelSelectionTree (QWidget *parent=nullptr)
 
void resizeEvent (QResizeEvent *size) override
 
void selectAllVisible ()
 
void setFilter (ProxyModelViewFilter *filter, bool owns_filter)
 
void setHeader (const TranslatedString &header_title, const String &header_icon)
 
void setModelManager (QTModelManager *manager)
 
void setSelectedModelRoots (const Buffer< UUID > &roots, bool only_visible_children)
 
virtual ~ModelSelectionTree ()
 

Protected Slots

void clickedSlot (const QModelIndex &index)
 
void contextMenu (const QPoint &pos)
 
void onCollapsedSlot (const QModelIndex &index)
 
void onExpandedSlot (const QModelIndex &index)
 
void selectionChanged (const QItemSelection &selected, const QItemSelection &) override
 
void updateFocus (UUID id, bool focussed)
 
void updateModel (UUID id)
 
void updateSelection (UUID id, bool selected)
 

Protected Member Functions

void initialize ()
 
void setupFilter (ProxyModelViewFilter *filter)
 

Constructor & Destructor Documentation

◆ ModelSelectionTree() [1/3]

ModelSelectionTree ( QWidget * parent = nullptr)
explicit

◆ ModelSelectionTree() [2/3]

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

◆ ModelSelectionTree() [3/3]

ModelSelectionTree ( ProxyModelViewFilter * manager,
bool owns_filter,
QWidget * parent = nullptr )
explicit

◆ ~ModelSelectionTree()

virtual ~ModelSelectionTree ( )
virtual

Member Function Documentation

◆ checkStateChanged

void checkStateChanged ( )
signal

◆ clickedSlot

void clickedSlot ( const QModelIndex & index)
protectedslot

◆ contextMenu

void contextMenu ( const QPoint & pos)
protectedslot

◆ event()

bool event ( QEvent * e)
override

◆ expandSelected()

void expandSelected ( )

◆ filter()

ProxyModelViewFilter * filter ( ) const

◆ getModelRoots()

Buffer< UUID > getModelRoots ( ) const

◆ getSelectedModelRoots()

Buffer< UUID > getSelectedModelRoots ( ) const

◆ initialize()

void initialize ( )
protected

◆ manager()

QTModelManager * manager ( ) const

◆ onCollapsedSlot

void onCollapsedSlot ( const QModelIndex & index)
protectedslot

◆ onExpandedSlot

void onExpandedSlot ( const QModelIndex & index)
protectedslot

◆ resizeEvent()

void resizeEvent ( QResizeEvent * size)
override

◆ selectAllVisible()

void selectAllVisible ( )

◆ selectionChanged

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

◆ setFilter()

void setFilter ( ProxyModelViewFilter * filter,
bool owns_filter )

◆ setHeader()

void setHeader ( const TranslatedString & header_title,
const String & header_icon )

◆ setModelManager()

void setModelManager ( QTModelManager * manager)

◆ setSelectedModelRoots()

void setSelectedModelRoots ( const Buffer< UUID > & roots,
bool only_visible_children )

◆ setupFilter()

void setupFilter ( ProxyModelViewFilter * filter)
protected

◆ updateFocus

void updateFocus ( UUID id,
bool focussed )
protectedslot

◆ updateModel

void updateModel ( UUID id)
protectedslot

◆ updateSelection

void updateSelection ( UUID id,
bool selected )
protectedslot

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