The objectManager is used for creating and manipulating objects and widgets All objects created here a derived from ak::core::aObject or child. More...
#include "aObjectManager.h"
Public Member Functions | |
aObjectManager (aMessenger *_messenger, aUidManager *_uidManager) | |
Constructor. | |
virtual | ~aObjectManager () |
Deconstructor. | |
UID | createAction (UID _creatorUid, const QString &_text, const QIcon &_icon, QToolButton::ToolButtonPopupMode _popupMode=QToolButton::ToolButtonPopupMode::InstantPopup) |
Will create a action and return its UID. | |
UID | createCheckBox (UID _creatorUid, const QString &_text=QString(""), bool _checked=false) |
Will create a check box and return its UID. | |
UID | createLineEdit (UID _creatorUid, const QString &_initialText=QString("")) |
Will create a line edit and return its UID param _creatorUid The UID of the creator. | |
UID | createNiceLineEdit (UID _creatorUid, const QString &_initialText, const QString &_infoLabelText) |
Will create a nice line edit. | |
UID | createTimer (UID _creatorUid) |
WIll create a timer and return its UID. | |
UID | createToolButton (UID _creatorUid) |
Will create a toolButton and return its UID. | |
UID | createToolButton (UID _creatorUid, const QString &_text) |
Will create a toolButton and return its UID. | |
UID | createToolButton (UID _creatorUid, const QString &_text, const QIcon &_icon) |
Will create a toolButton and return its UID. | |
UID | createTabToolBarSubContainer (UID _creatorUid, UID _parentUid, const QString &_text=QString("")) |
Will create a tab toolbar sub container and return its UID. | |
UID | createTabToolBarPage (UID _creatorUid, UID _uiManagerUid, const QString &_text=QString("")) |
Will create a tab toolbar page and return its UID. | |
UID | createWindow (UID _creatorUid) |
Will create a window and return its UID. | |
aObject * | object (UID _objectUid) |
Will return the object with the specified object UID. | |
aObject * | object (const QString &_objectUniqueName) |
Will return the object with the specified object unique name. | |
void | creatorDestroyed (UID _creatorUid) |
Will destroy all objects created by this creator. | |
void | destroy (UID _objectUID, bool _ignoreIfObjectHasChildObjects=false) |
void | destroyAll (void) |
Will destroy all objects. | |
void | setObjectUniqueName (UID _objectUid, const QString &_uniqueName) |
Will set the unique name for the specified object. With the set name the object can be accessed later instead of the unique name. Should the unique name be empty, the object will not be acessable trough the name anymore. | |
UID | objectCreator (UID _objectUID) |
Will return the creator UID of the specified object. | |
bool | objectExists (UID _objectUID) |
Will return true if the specified object exists. | |
The objectManager is used for creating and manipulating objects and widgets All objects created here a derived from ak::core::aObject or child.
ak::aObjectManager::aObjectManager | ( | aMessenger * | _messenger, |
aUidManager * | _uidManager ) |
Constructor.
_messenger | The globally used messaging system |
_uidManager | The globally used uidManager |
|
virtual |
Deconstructor.
ak::UID ak::aObjectManager::createAction | ( | UID | _creatorUid, |
const QString & | _text, | ||
const QIcon & | _icon, | ||
QToolButton::ToolButtonPopupMode | _popupMode = QToolButton::ToolButtonPopupMode::InstantPopup ) |
Will create a action and return its UID.
_creatorUid | The UID of the creator |
_text | The initial text of the action |
_icon | The initial icon of the action |
_popupMode | The popup mode of the action |
ak::UID ak::aObjectManager::createCheckBox | ( | UID | _creatorUid, |
const QString & | _text = QString(""), | ||
bool | _checked = false ) |
Will create a check box and return its UID.
_creatorUid | The UID of the creator |
_text | The initial text of the check box |
ak::UID ak::aObjectManager::createLineEdit | ( | UID | _creatorUid, |
const QString & | _initialText = QString("") ) |
Will create a line edit and return its UID param _creatorUid The UID of the creator.
_initialText | The initial text to display |
ak::UID ak::aObjectManager::createNiceLineEdit | ( | UID | _creatorUid, |
const QString & | _initialText, | ||
const QString & | _infoLabelText ) |
Will create a nice line edit.
_initialText | The initial text of the edit field |
_infoLabelText | The initial text of the information label |
ak::UID ak::aObjectManager::createTabToolBarPage | ( | UID | _creatorUid, |
UID | _uiManagerUid, | ||
const QString & | _text = QString("") ) |
Will create a tab toolbar page and return its UID.
_creatorUid | The UID of the creator |
_uiManagerUid | The UID of the ui manager where to create the page at |
_text | The text of the page |
ak::UID ak::aObjectManager::createTabToolBarSubContainer | ( | UID | _creatorUid, |
UID | _parentUid, | ||
const QString & | _text = QString("") ) |
Will create a tab toolbar sub container and return its UID.
_creatorUid | The UID of the creator |
_parentUid | The UID of the parent container or |
_text | The text of the new container |
WIll create a timer and return its UID.
_creatorUid | The UID of the creator |
Will create a toolButton and return its UID.
_creatorUid | The UID of the creator |
Will create a toolButton and return its UID.
_creatorUid | The UID of the creator |
_text | The initial text of the toolButton |
ak::UID ak::aObjectManager::createToolButton | ( | UID | _creatorUid, |
const QString & | _text, | ||
const QIcon & | _icon ) |
Will create a toolButton and return its UID.
_creatorUid | The UID of the creator |
_text | The initial text of the toolButton |
_icon | The initial icon of the toolButton |
Will create a window and return its UID.
_creatorUid | The UID of the creator |
void ak::aObjectManager::creatorDestroyed | ( | UID | _creatorUid | ) |
Will destroy all objects created by this creator.
_creatorUid | The UID of the creator |
void ak::aObjectManager::destroy | ( | UID | _objectUID, |
bool | _ignoreIfObjectHasChildObjects = false ) |
void ak::aObjectManager::destroyAll | ( | void | ) |
Will destroy all objects.
ak::aObject * ak::aObjectManager::object | ( | const QString & | _objectUniqueName | ) |
Will return the object with the specified object unique name.
_objectUniqueName | The unique name of the requested object |
ak::aObject * ak::aObjectManager::object | ( | UID | _objectUid | ) |
Will return the object with the specified object UID.
_objectUid | The UID of the requested object |
Will return the creator UID of the specified object.
_objectUID | The UID of the object to get its cretor from |
bool ak::aObjectManager::objectExists | ( | UID | _objectUID | ) |
Will return true if the specified object exists.
_objectUID | The UID of the object |
void ak::aObjectManager::setObjectUniqueName | ( | UID | _objectUid, |
const QString & | _uniqueName ) |
Will set the unique name for the specified object. With the set name the object can be accessed later instead of the unique name. Should the unique name be empty, the object will not be acessable trough the name anymore.
_objectUid | The UID of the object |
_uniqueName | The unique name to set |