CFx SDK Documentation  2023 SP0
Public Member Functions | Protected Attributes | List of all members
CFxUIAbstractItemModel Class Referenceabstract

#include <FxUIAbstractItemModel.h>

Inheritance diagram for CFxUIAbstractItemModel:
CFxUIObject

Public Member Functions

 CFxUIAbstractItemModel (CFxUIObject *parent=nullptr)
 
virtual ~CFxUIAbstractItemModel ()
 
virtual CFxUIModelIndex index (int row, int column, const CFxUIModelIndex &parent=CFxUIModelIndex()) const =0
 
virtual CFxUIModelIndex parent (const CFxUIModelIndex &child) const =0
 
virtual int rowCount (const CFxUIModelIndex &parent=CFxUIModelIndex()) const =0
 
virtual int columnCount (const CFxUIModelIndex &parent=CFxUIModelIndex()) const =0
 
virtual CFxUIVariant data (const CFxUIModelIndex &index, int role=CFxUIModelIndex::UIDataRole::DisplayRole) const =0
 
virtual bool setData (const CFxUIModelIndex &index, const CFxUIVariant &value, int role=CFxUIModelIndex::UIDataRole::EditRole)
 
bool hasIndex (int row, int column, const CFxUIModelIndex &parent=CFxUIModelIndex()) const
 
virtual CFxUIVariant headerData (int section, CFxUIModelIndex::UIOrientation orientation, int role=CFxUIModelIndex::UIDataRole::DisplayRole) const
 
virtual CFxUIModelIndex::UIItemFlags flags (const CFxUIModelIndex &index) const
 
CFxUIModelIndex createIndex (int row, int column, void *data=nullptr) const
 
CFxUIModelIndex createIndex (int row, int column, quintptr id) const
 
CFxUISignal< void(const CFxUIModelIndex &parent, int first, int last)> & beginInsertRows ()
 
CFxUISignal< void(const CFxUIModelIndex &parent, int first, int last)> & beginRemoveRows ()
 
CFxUISignal< void()> & endInsertRows ()
 
CFxUISignal< void()> & endRemoveRows ()
 
CFxUISignal< void(const CFxUIModelIndex &topLeft, const CFxUIModelIndex &bottomRight)> & dataChanged ()
 
CFxUISignal< void(void)> & layoutChanged ()
 
CFxUISignal< void(void)> & beginResetModel ()
 
CFxUISignal< void(void)> & endResetModel ()
 
virtual void onBeginInsertRows (const CFxUIModelIndex &parent, int first, int last)
 
virtual void onBeginRemoveRows (const CFxUIModelIndex &parent, int first, int last)
 
virtual void onEndInsertRows ()
 
virtual void onEndRemoveRows ()
 
virtual void onDataChanged (const CFxUIModelIndex &topLeft, const CFxUIModelIndex &bottomRight)
 
virtual void onLayoutChanged ()
 
virtual void onBeginResetModel ()
 
virtual void onEndResetModel ()
 
- Public Member Functions inherited from CFxUIObject
 CFxUIObject ()
 
virtual ~CFxUIObject ()
 
FxNativeHandle getHandle () const
 
void setHandle (FxNativeHandle handle)
 
void setParent (CFxUIObject *parent)
 
CFxUIObjectparent ()
 
const CFxUIObjectparent () const
 
void setObjectName (const CFxUIString &objectName)
 
CFxUIString objectName () const
 
bool setProperty (const char *name, const CFxUIVariant &value)
 
CFxUIVariant property (const char *name)
 
CFxUIList< CFxUIObject * > children () const
 
template<typename T >
CFxUIList< T > findChildren (const CFxUIString &name=CFxUIString())
 
void blockSignals (bool block)
 
bool signalsBlocked () const
 

Protected Attributes

CFxUISignal< void(const CFxUIModelIndex &parent, int first, int last)> m_beginInsertRows
 
CFxUISignal< void()> m_endInsertRows
 
CFxUISignal< void(const CFxUIModelIndex &parent, int first, int last)> m_beginRemoveRows
 
CFxUISignal< void()> m_endRemoveRows
 
CFxUISignal< void(const CFxUIModelIndex &topLeft, const CFxUIModelIndex &bottomRight)> m_dataChanged
 
CFxUISignal< void(void)> m_layoutChanged
 
CFxUISignal< void(void)> m_beginResetModel
 
CFxUISignal< void(void)> m_endResetModel
 
- Protected Attributes inherited from CFxUIObject
CFxUIObjectImpl * m_pImpl
 
CFxUIObjectData * m_pData
 

Additional Inherited Members

- Protected Member Functions inherited from CFxUIObject
CFxUIObjectsender ()
 

Detailed Description

Definition at line 23 of file FxUIAbstractItemModel.h.

Constructor & Destructor Documentation

◆ CFxUIAbstractItemModel()

CFxUIAbstractItemModel::CFxUIAbstractItemModel ( CFxUIObject parent = nullptr)
inlineexplicit

Definition at line 27 of file FxUIAbstractItemModel.h.

◆ ~CFxUIAbstractItemModel()

virtual CFxUIAbstractItemModel::~CFxUIAbstractItemModel ( )
inlinevirtual

Definition at line 39 of file FxUIAbstractItemModel.h.

Member Function Documentation

◆ beginInsertRows()

CFxUISignal<void( const CFxUIModelIndex &parent, int first, int last )>& CFxUIAbstractItemModel::beginInsertRows ( )
inline

Definition at line 75 of file FxUIAbstractItemModel.h.

◆ beginRemoveRows()

CFxUISignal<void( const CFxUIModelIndex &parent, int first, int last )>& CFxUIAbstractItemModel::beginRemoveRows ( )
inline

Definition at line 80 of file FxUIAbstractItemModel.h.

◆ beginResetModel()

CFxUISignal<void( void )>& CFxUIAbstractItemModel::beginResetModel ( )
inline

Definition at line 105 of file FxUIAbstractItemModel.h.

◆ columnCount()

virtual int CFxUIAbstractItemModel::columnCount ( const CFxUIModelIndex parent = CFxUIModelIndex()) const
pure virtual

◆ createIndex() [1/2]

CFxUIModelIndex CFxUIAbstractItemModel::createIndex ( int  row,
int  column,
quintptr  id 
) const
inline

Definition at line 170 of file FxUIAbstractItemModel.h.

◆ createIndex() [2/2]

CFxUIModelIndex CFxUIAbstractItemModel::createIndex ( int  row,
int  column,
void data = nullptr 
) const
inline

Definition at line 166 of file FxUIAbstractItemModel.h.

◆ data()

virtual CFxUIVariant CFxUIAbstractItemModel::data ( const CFxUIModelIndex index,
int  role = CFxUIModelIndex::UIDataRole::DisplayRole 
) const
pure virtual

◆ dataChanged()

CFxUISignal<void( const CFxUIModelIndex& topLeft, const CFxUIModelIndex& bottomRight )>& CFxUIAbstractItemModel::dataChanged ( )
inline

Definition at line 95 of file FxUIAbstractItemModel.h.

◆ endInsertRows()

CFxUISignal<void()>& CFxUIAbstractItemModel::endInsertRows ( )
inline

Definition at line 85 of file FxUIAbstractItemModel.h.

◆ endRemoveRows()

CFxUISignal<void()>& CFxUIAbstractItemModel::endRemoveRows ( )
inline

Definition at line 90 of file FxUIAbstractItemModel.h.

◆ endResetModel()

CFxUISignal<void( void )>& CFxUIAbstractItemModel::endResetModel ( )
inline

Definition at line 110 of file FxUIAbstractItemModel.h.

◆ flags()

virtual CFxUIModelIndex::UIItemFlags CFxUIAbstractItemModel::flags ( const CFxUIModelIndex index) const
inlinevirtual

Definition at line 63 of file FxUIAbstractItemModel.h.

◆ hasIndex()

bool CFxUIAbstractItemModel::hasIndex ( int  row,
int  column,
const CFxUIModelIndex parent = CFxUIModelIndex() 
) const
inline

Definition at line 49 of file FxUIAbstractItemModel.h.

◆ headerData()

virtual CFxUIVariant CFxUIAbstractItemModel::headerData ( int  section,
CFxUIModelIndex::UIOrientation  orientation,
int  role = CFxUIModelIndex::UIDataRole::DisplayRole 
) const
inlinevirtual

Definition at line 56 of file FxUIAbstractItemModel.h.

◆ index()

virtual CFxUIModelIndex CFxUIAbstractItemModel::index ( int  row,
int  column,
const CFxUIModelIndex parent = CFxUIModelIndex() 
) const
pure virtual

◆ layoutChanged()

CFxUISignal<void( void )>& CFxUIAbstractItemModel::layoutChanged ( )
inline

Definition at line 100 of file FxUIAbstractItemModel.h.

◆ onBeginInsertRows()

virtual void CFxUIAbstractItemModel::onBeginInsertRows ( const CFxUIModelIndex parent,
int  first,
int  last 
)
inlinevirtual

Definition at line 115 of file FxUIAbstractItemModel.h.

◆ onBeginRemoveRows()

virtual void CFxUIAbstractItemModel::onBeginRemoveRows ( const CFxUIModelIndex parent,
int  first,
int  last 
)
inlinevirtual

Definition at line 120 of file FxUIAbstractItemModel.h.

◆ onBeginResetModel()

virtual void CFxUIAbstractItemModel::onBeginResetModel ( )
inlinevirtual

Definition at line 145 of file FxUIAbstractItemModel.h.

◆ onDataChanged()

virtual void CFxUIAbstractItemModel::onDataChanged ( const CFxUIModelIndex topLeft,
const CFxUIModelIndex bottomRight 
)
inlinevirtual

Definition at line 135 of file FxUIAbstractItemModel.h.

◆ onEndInsertRows()

virtual void CFxUIAbstractItemModel::onEndInsertRows ( )
inlinevirtual

Definition at line 125 of file FxUIAbstractItemModel.h.

◆ onEndRemoveRows()

virtual void CFxUIAbstractItemModel::onEndRemoveRows ( )
inlinevirtual

Definition at line 130 of file FxUIAbstractItemModel.h.

◆ onEndResetModel()

virtual void CFxUIAbstractItemModel::onEndResetModel ( )
inlinevirtual

Definition at line 150 of file FxUIAbstractItemModel.h.

◆ onLayoutChanged()

virtual void CFxUIAbstractItemModel::onLayoutChanged ( )
inlinevirtual

Definition at line 140 of file FxUIAbstractItemModel.h.

◆ parent()

virtual CFxUIModelIndex CFxUIAbstractItemModel::parent ( const CFxUIModelIndex child) const
pure virtual

◆ rowCount()

virtual int CFxUIAbstractItemModel::rowCount ( const CFxUIModelIndex parent = CFxUIModelIndex()) const
pure virtual

◆ setData()

virtual bool CFxUIAbstractItemModel::setData ( const CFxUIModelIndex index,
const CFxUIVariant value,
int  role = CFxUIModelIndex::UIDataRole::EditRole 
)
inlinevirtual

Definition at line 48 of file FxUIAbstractItemModel.h.

Member Data Documentation

◆ m_beginInsertRows

CFxUISignal<void( const CFxUIModelIndex &parent, int first, int last )> CFxUIAbstractItemModel::m_beginInsertRows
protected

Definition at line 156 of file FxUIAbstractItemModel.h.

◆ m_beginRemoveRows

CFxUISignal<void( const CFxUIModelIndex &parent, int first, int last )> CFxUIAbstractItemModel::m_beginRemoveRows
protected

Definition at line 158 of file FxUIAbstractItemModel.h.

◆ m_beginResetModel

CFxUISignal<void( void )> CFxUIAbstractItemModel::m_beginResetModel
protected

Definition at line 162 of file FxUIAbstractItemModel.h.

◆ m_dataChanged

CFxUISignal<void( const CFxUIModelIndex& topLeft, const CFxUIModelIndex& bottomRight )> CFxUIAbstractItemModel::m_dataChanged
protected

Definition at line 160 of file FxUIAbstractItemModel.h.

◆ m_endInsertRows

CFxUISignal<void()> CFxUIAbstractItemModel::m_endInsertRows
protected

Definition at line 157 of file FxUIAbstractItemModel.h.

◆ m_endRemoveRows

CFxUISignal<void()> CFxUIAbstractItemModel::m_endRemoveRows
protected

Definition at line 159 of file FxUIAbstractItemModel.h.

◆ m_endResetModel

CFxUISignal<void( void )> CFxUIAbstractItemModel::m_endResetModel
protected

Definition at line 163 of file FxUIAbstractItemModel.h.

◆ m_layoutChanged

CFxUISignal<void( void )> CFxUIAbstractItemModel::m_layoutChanged
protected

Definition at line 161 of file FxUIAbstractItemModel.h.


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