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

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

Protected Slots

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

Protected Member Functions

void setupFilter (ProxyModelViewFilter *filter)
 
void initialize ()
 

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

~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 files: