|
WSF
|
Objects inheriting this class may be added to a AbstractModel. More...
#include <AbstractModel.hpp>
Inherits QObject.
Public Member Functions | |
| AbstractModelItem () | |
| ~AbstractModelItem () override | |
| AbstractModelItem * | GetAbstractItemParent () const |
| int | GetItemIndex () |
| AbstractModel * | GetModel () const |
| AbstractModelItem * | GetAbstractItem (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) |
| AbstractModelItem * | RemoveAbstractItem (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 |
Objects inheriting this class may be added to a AbstractModel.
| wizard::AbstractModelItem::AbstractModelItem | ( | ) |
|
override |
References IsInModel(), and RemoveAllAbstractItems().
| void wizard::AbstractModelItem::AbstractItemChanged | ( | ) |
Informs Qt that the item's data has changed.
|
inlineprotectedvirtual |
Referenced by SetAbstractItemParent().
| 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().
|
inlineprotectedvirtual |
Referenced by FinalizeSetModel().
|
protected |
References AbstractModel.
Referenced by AddAbstractItem(), and MoveAbstractItem().
|
protected |
References AddedToModel().
Referenced by AddAbstractItem(), and MoveAbstractItem().
|
inline |
References AbstractModelItem().
Referenced by wizard::AbstractModel::FindItem().
|
inline |
|
inline |
References AbstractModelItem().
Referenced by wizard::AbstractModel::GetRowIndex(), MoveAbstractItem(), and wizard::AbstractModel::parent().
|
inline |
Referenced by MoveAbstractItem().
|
inline |
References AbstractModel.
|
inlineprotected |
Referenced by AddAbstractItem(), MoveAbstractItem(), RemoveAbstractItem(), RemoveAllAbstractItems(), and ~AbstractModelItem().
| void wizard::AbstractModelItem::MoveAbstractItem | ( | AbstractModelItem * | aItemPtr, |
| int | aIndex = -1 ) |
|
inlineprotectedvirtual |
Referenced by MoveAbstractItem(), and RemoveAbstractItem().
| void wizard::AbstractModelItem::RemoveAbstractItem | ( | AbstractModelItem * | aItemPtr | ) |
References AbstractModelItem(), and RemoveAbstractItem().
Referenced by MoveAbstractItem(), and RemoveAbstractItem().
| wizard::AbstractModelItem * wizard::AbstractModelItem::RemoveAbstractItem | ( | int | aIndex | ) |
References AbstractModelItem(), IsInModel(), PreRemoveAbstractItem(), and SetAbstractItemParent().
| void wizard::AbstractModelItem::RemoveAllAbstractItems | ( | bool | aDelete = false | ) |
References IsInModel().
Referenced by ~AbstractModelItem().
| void wizard::AbstractModelItem::RemoveItemFromParent | ( | ) |
|
protectedvirtual |
|
inlineprotected |
References AbstractItemParentChanged(), and AbstractModelItem().
Referenced by AddAbstractItem(), MoveAbstractItem(), and RemoveAbstractItem().
|
friend |
References AbstractModel, and AbstractModelItem().
Referenced by AbstractModel, BeginSetModel(), and GetModel().