CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
CFxUIAbstractItemModel Class Referenceabstract

#include <FxUIAbstractItemModel.h>

Inheritance diagram for CFxUIAbstractItemModel:
CFxUIObject CFxUIAbstractListModel CFxUIAbstractTableModel

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 40 of file FxUIAbstractItemModel.h.

Member Function Documentation

◆ beginInsertRows()

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

Definition at line 76 of file FxUIAbstractItemModel.h.

◆ beginRemoveRows()

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

Definition at line 81 of file FxUIAbstractItemModel.h.

◆ beginResetModel()

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

Definition at line 106 of file FxUIAbstractItemModel.h.

◆ columnCount()

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

Implemented in CFxUIAbstractListModel.

◆ createIndex() [1/2]

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

Definition at line 171 of file FxUIAbstractItemModel.h.

◆ createIndex() [2/2]

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

Definition at line 167 of file FxUIAbstractItemModel.h.

◆ data()

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

Implemented in CFxUIAbstractListModel.

◆ dataChanged()

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

Definition at line 96 of file FxUIAbstractItemModel.h.

◆ endInsertRows()

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

Definition at line 86 of file FxUIAbstractItemModel.h.

◆ endRemoveRows()

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

Definition at line 91 of file FxUIAbstractItemModel.h.

◆ endResetModel()

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

Definition at line 111 of file FxUIAbstractItemModel.h.

◆ flags()

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

Definition at line 64 of file FxUIAbstractItemModel.h.

◆ hasIndex()

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

Definition at line 50 of file FxUIAbstractItemModel.h.

◆ headerData()

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

Definition at line 57 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 101 of file FxUIAbstractItemModel.h.

◆ onBeginInsertRows()

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

Definition at line 116 of file FxUIAbstractItemModel.h.

◆ onBeginRemoveRows()

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

Definition at line 121 of file FxUIAbstractItemModel.h.

◆ onBeginResetModel()

virtual void CFxUIAbstractItemModel::onBeginResetModel ( )
inlinevirtual

Definition at line 146 of file FxUIAbstractItemModel.h.

◆ onDataChanged()

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

Definition at line 136 of file FxUIAbstractItemModel.h.

◆ onEndInsertRows()

virtual void CFxUIAbstractItemModel::onEndInsertRows ( )
inlinevirtual

Definition at line 126 of file FxUIAbstractItemModel.h.

◆ onEndRemoveRows()

virtual void CFxUIAbstractItemModel::onEndRemoveRows ( )
inlinevirtual

Definition at line 131 of file FxUIAbstractItemModel.h.

◆ onEndResetModel()

virtual void CFxUIAbstractItemModel::onEndResetModel ( )
inlinevirtual

Definition at line 151 of file FxUIAbstractItemModel.h.

◆ onLayoutChanged()

virtual void CFxUIAbstractItemModel::onLayoutChanged ( )
inlinevirtual

Definition at line 141 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

Implemented in CFxUIAbstractListModel.

◆ setData()

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

Definition at line 49 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 157 of file FxUIAbstractItemModel.h.

◆ m_beginRemoveRows

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

Definition at line 159 of file FxUIAbstractItemModel.h.

◆ m_beginResetModel

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

Definition at line 163 of file FxUIAbstractItemModel.h.

◆ m_dataChanged

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

Definition at line 161 of file FxUIAbstractItemModel.h.

◆ m_endInsertRows

CFxUISignal<void()> CFxUIAbstractItemModel::m_endInsertRows
protected

Definition at line 158 of file FxUIAbstractItemModel.h.

◆ m_endRemoveRows

CFxUISignal<void()> CFxUIAbstractItemModel::m_endRemoveRows
protected

Definition at line 160 of file FxUIAbstractItemModel.h.

◆ m_endResetModel

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

Definition at line 164 of file FxUIAbstractItemModel.h.

◆ m_layoutChanged

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

Definition at line 162 of file FxUIAbstractItemModel.h.


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