WSF
wizard::AbstractModelItem Class Reference

Objects inheriting this class may be added to a AbstractModel. More...

#include <AbstractModel.hpp>

Inherits QObject.

Public Member Functions

 AbstractModelItem ()
 ~AbstractModelItem () override
AbstractModelItemGetAbstractItemParent () const
int GetItemIndex ()
AbstractModelGetModel () const
AbstractModelItemGetAbstractItem (int aIdx) const
int GetAbstractItemCount () const
void AddAbstractItem (AbstractModelItem *aItemPtr, int aIndex=-1)
 Add a child item before aIndex. If aIndex == -1, insert at end.
void RemoveAbstractItem (AbstractModelItem *aItemPtr)
AbstractModelItemRemoveAbstractItem (int aIndex)
void RemoveAllAbstractItems (bool aDelete=false)
void MoveAbstractItem (AbstractModelItem *aItemPtr, int aIndex=-1)
void AbstractItemChanged ()
 Informs Qt that the item's data has changed.
void RemoveItemFromParent ()

Protected Member Functions

virtual void RequestItemDelete ()
virtual void PreRemoveAbstractItem (int aIndex)
virtual void AbstractItemParentChanged ()
virtual void AddedToModel ()
void SetAbstractItemParent (AbstractModelItem *aParent)
bool BeginSetModel (AbstractModel *aModelPtr)
void FinalizeSetModel ()
bool IsInModel () const

Friends

class AbstractModel

Detailed Description

Objects inheriting this class may be added to a AbstractModel.

Constructor & Destructor Documentation

◆ AbstractModelItem()

◆ ~AbstractModelItem()

wizard::AbstractModelItem::~AbstractModelItem ( )
override

Member Function Documentation

◆ AbstractItemChanged()

void wizard::AbstractModelItem::AbstractItemChanged ( )

Informs Qt that the item's data has changed.

◆ AbstractItemParentChanged()

virtual void wizard::AbstractModelItem::AbstractItemParentChanged ( )
inlineprotectedvirtual

Referenced by SetAbstractItemParent().

◆ AddAbstractItem()

void wizard::AbstractModelItem::AddAbstractItem ( AbstractModelItem * aItemPtr,
int aIndex = -1 )

Add a child item before aIndex. If aIndex == -1, insert at end.

References AbstractModelItem(), BeginSetModel(), FinalizeSetModel(), IsInModel(), and SetAbstractItemParent().

Referenced by MoveAbstractItem().

◆ AddedToModel()

virtual void wizard::AbstractModelItem::AddedToModel ( )
inlineprotectedvirtual

Referenced by FinalizeSetModel().

◆ BeginSetModel()

bool wizard::AbstractModelItem::BeginSetModel ( AbstractModel * aModelPtr)
protected

References AbstractModel.

Referenced by AddAbstractItem(), and MoveAbstractItem().

◆ FinalizeSetModel()

void wizard::AbstractModelItem::FinalizeSetModel ( )
protected

References AddedToModel().

Referenced by AddAbstractItem(), and MoveAbstractItem().

◆ GetAbstractItem()

AbstractModelItem * wizard::AbstractModelItem::GetAbstractItem ( int aIdx) const
inline

◆ GetAbstractItemCount()

int wizard::AbstractModelItem::GetAbstractItemCount ( ) const
inline

◆ GetAbstractItemParent()

AbstractModelItem * wizard::AbstractModelItem::GetAbstractItemParent ( ) const
inline

◆ GetItemIndex()

int wizard::AbstractModelItem::GetItemIndex ( )
inline

Referenced by MoveAbstractItem().

◆ GetModel()

AbstractModel * wizard::AbstractModelItem::GetModel ( ) const
inline

References AbstractModel.

◆ IsInModel()

bool wizard::AbstractModelItem::IsInModel ( ) const
inlineprotected

◆ MoveAbstractItem()

◆ PreRemoveAbstractItem()

virtual void wizard::AbstractModelItem::PreRemoveAbstractItem ( int aIndex)
inlineprotectedvirtual

◆ RemoveAbstractItem() [1/2]

void wizard::AbstractModelItem::RemoveAbstractItem ( AbstractModelItem * aItemPtr)

◆ RemoveAbstractItem() [2/2]

wizard::AbstractModelItem * wizard::AbstractModelItem::RemoveAbstractItem ( int aIndex)

◆ RemoveAllAbstractItems()

void wizard::AbstractModelItem::RemoveAllAbstractItems ( bool aDelete = false)

References IsInModel().

Referenced by ~AbstractModelItem().

◆ RemoveItemFromParent()

void wizard::AbstractModelItem::RemoveItemFromParent ( )

◆ RequestItemDelete()

void wizard::AbstractModelItem::RequestItemDelete ( )
protectedvirtual

◆ SetAbstractItemParent()

void wizard::AbstractModelItem::SetAbstractItemParent ( AbstractModelItem * aParent)
inlineprotected

◆ AbstractModel

friend class AbstractModel
friend

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved