#include "aTtbPage.h"
Public Member Functions | |
| aTtbPage (aMessenger *_messenger, tt::Page *_page, const QString &_text) | |
| virtual | ~aTtbPage () |
| virtual void | addChild (aObject *_child) override |
| Will add the provided child to this container. | |
| virtual aTtbContainer * | createSubContainer (const QString &_text=QString("")) override |
| Will add a new sub container to this container. | |
| virtual void | destroyAllSubContainer (void) override |
| Will destry all sub container created by this container. | |
| virtual void | removeChildObject (aObject *_child) override |
| Will remove the child from this object (not destroy it) This function should be called from the deconstructor of a child. | |
| int | index (void) const |
| Will return the index of this page. | |
| virtual void | setEnabled (bool _enabled) override |
| Will set the enabled state of this container. | |
| tt::Page * | getPage (void) const |
Public Member Functions inherited from ak::aTtbContainer | |
| aTtbContainer (aMessenger *_messenger, objectType _type, UID _UID=ak::invalidUID) | |
| Constructor, initializes the uid of this container. | |
| virtual | ~aTtbContainer () |
| Deconstructor. | |
| int | subContainerCount (void) const |
| Returns the count of sub containers. | |
| bool | enabled (void) const |
| Will return the enabled state of this container. | |
| aTtbContainer * | getSubContainer (const QString &_text) |
| Will return the sub container with the specified text Returns nullptr if no sub container with the specified text exists. | |
| QString | text (void) const |
| Will return the text of this ttb container. | |
Public Member Functions inherited from ak::aObject | |
| aObject (objectType _type=otNone, UID _UID=ak::invalidUID) | |
| Constructor. | |
| aObject (const aObject &_other) | |
| Copy constructor. | |
| aObject & | operator= (const aObject &_other) |
| Assignment operator. | |
| virtual | ~aObject () |
| Deconstructor. | |
| virtual void | addChildObject (aObject *_child) |
| Will add the child to this object. | |
| void | setUniqueName (const QString &_name) |
| Will set this objects unique name. | |
| virtual void | setParentObject (aObject *_parentObject) |
| Will set the parent object of this object. | |
| QString | uniqueName (void) const |
| Will return the unique name of this object. | |
| aObject * | parentObject (void) const |
| Will return a pointer to the parent object. | |
| int | childObjectCount (void) const |
| Will return the count of sub objects. | |
| aObject * | childObject (UID _childUID) |
| Will return the child with the specified UID. | |
| void | setOwner (aObject *_object) |
| Will set the owner of this object. | |
| aObject * | owner (void) const |
| Will return the owner of this object. | |
| void | setUid (UID _UID) |
| Will set the objects UID. | |
| UID | uid (void) const |
| Returns the objects UID. | |
| objectType | type (void) const |
| Returns the objects type. | |
| virtual bool | isWidgetType (void) const |
| Returns true if the object is an object derived from aWidget. | |
Additional Inherited Members | |
Protected Attributes inherited from ak::aTtbContainer | |
| aMessenger * | m_messenger |
| std::vector< aTtbContainer * > | m_subContainer |
| QString | m_text |
| bool | m_isEnabled |
Protected Attributes inherited from ak::aObject | |
| UID | m_uid |
| int | m_references |
| The objects UID. | |
| objectType | m_objectType |
| The objects references. | |
| QString | m_uniqueName |
| The object type of this object. | |
| aObject * | m_parentObject |
| aObject * | m_owner |
| std::map< UID, aObject * > | m_childObjects |
| ak::aTtbPage::aTtbPage | ( | aMessenger * | _messenger, |
| tt::Page * | _page, | ||
| const QString & | _text ) |
|
virtual |
|
overridevirtual |
Will add the provided child to this container.
| _child | The child to add |
Implements ak::aTtbContainer.
|
overridevirtual |
Will add a new sub container to this container.
| _text | The initial text of the container |
Implements ak::aTtbContainer.
|
overridevirtual |
Will destry all sub container created by this container.
Implements ak::aTtbContainer.
|
inline |
| int ak::aTtbPage::index | ( | void | ) | const |
Will return the index of this page.
|
overridevirtual |
Will remove the child from this object (not destroy it) This function should be called from the deconstructor of a child.
| _child | The child to remove |
Reimplemented from ak::aObject.
|
overridevirtual |
Will set the enabled state of this container.
| _enbaled | The enabled state to set |
Reimplemented from ak::aTtbContainer.