OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ak::aObjectManager Class Reference

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.
 
aObjectobject (UID _objectUid)
 Will return the object with the specified object UID.
 
aObjectobject (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.
 

Detailed Description

The objectManager is used for creating and manipulating objects and widgets All objects created here a derived from ak::core::aObject or child.

Constructor & Destructor Documentation

◆ aObjectManager()

ak::aObjectManager::aObjectManager ( aMessenger * _messenger,
aUidManager * _uidManager )

Constructor.

Parameters
_messengerThe globally used messaging system
_uidManagerThe globally used uidManager

◆ ~aObjectManager()

ak::aObjectManager::~aObjectManager ( )
virtual

Deconstructor.

Member Function Documentation

◆ createAction()

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.

Parameters
_creatorUidThe UID of the creator
_textThe initial text of the action
_iconThe initial icon of the action
_popupModeThe popup mode of the action

◆ createCheckBox()

ak::UID ak::aObjectManager::createCheckBox ( UID _creatorUid,
const QString & _text = QString(""),
bool _checked = false )

Will create a check box and return its UID.

Parameters
_creatorUidThe UID of the creator
_textThe initial text of the check box

◆ createLineEdit()

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.

Parameters
_initialTextThe initial text to display

◆ createNiceLineEdit()

ak::UID ak::aObjectManager::createNiceLineEdit ( UID _creatorUid,
const QString & _initialText,
const QString & _infoLabelText )

Will create a nice line edit.

Parameters
_initialTextThe initial text of the edit field
_infoLabelTextThe initial text of the information label

◆ createTabToolBarPage()

ak::UID ak::aObjectManager::createTabToolBarPage ( UID _creatorUid,
UID _uiManagerUid,
const QString & _text = QString("") )

Will create a tab toolbar page and return its UID.

Parameters
_creatorUidThe UID of the creator
_uiManagerUidThe UID of the ui manager where to create the page at
_textThe text of the page

◆ createTabToolBarSubContainer()

ak::UID ak::aObjectManager::createTabToolBarSubContainer ( UID _creatorUid,
UID _parentUid,
const QString & _text = QString("") )

Will create a tab toolbar sub container and return its UID.

Parameters
_creatorUidThe UID of the creator
_parentUidThe UID of the parent container or
_textThe text of the new container

◆ createTimer()

ak::UID ak::aObjectManager::createTimer ( UID _creatorUid)

WIll create a timer and return its UID.

Parameters
_creatorUidThe UID of the creator

◆ createToolButton() [1/3]

ak::UID ak::aObjectManager::createToolButton ( UID _creatorUid)

Will create a toolButton and return its UID.

Parameters
_creatorUidThe UID of the creator

◆ createToolButton() [2/3]

ak::UID ak::aObjectManager::createToolButton ( UID _creatorUid,
const QString & _text )

Will create a toolButton and return its UID.

Parameters
_creatorUidThe UID of the creator
_textThe initial text of the toolButton

◆ createToolButton() [3/3]

ak::UID ak::aObjectManager::createToolButton ( UID _creatorUid,
const QString & _text,
const QIcon & _icon )

Will create a toolButton and return its UID.

Parameters
_creatorUidThe UID of the creator
_textThe initial text of the toolButton
_iconThe initial icon of the toolButton

◆ createWindow()

ak::UID ak::aObjectManager::createWindow ( UID _creatorUid)

Will create a window and return its UID.

Parameters
_creatorUidThe UID of the creator

◆ creatorDestroyed()

void ak::aObjectManager::creatorDestroyed ( UID _creatorUid)

Will destroy all objects created by this creator.

Parameters
_creatorUidThe UID of the creator

◆ destroy()

void ak::aObjectManager::destroy ( UID _objectUID,
bool _ignoreIfObjectHasChildObjects = false )

◆ destroyAll()

void ak::aObjectManager::destroyAll ( void )

Will destroy all objects.

◆ object() [1/2]

ak::aObject * ak::aObjectManager::object ( const QString & _objectUniqueName)

Will return the object with the specified object unique name.

Parameters
_objectUniqueNameThe unique name of the requested object

◆ object() [2/2]

ak::aObject * ak::aObjectManager::object ( UID _objectUid)

Will return the object with the specified object UID.

Parameters
_objectUidThe UID of the requested object

◆ objectCreator()

ak::UID ak::aObjectManager::objectCreator ( UID _objectUID)

Will return the creator UID of the specified object.

Parameters
_objectUIDThe UID of the object to get its cretor from

◆ objectExists()

bool ak::aObjectManager::objectExists ( UID _objectUID)

Will return true if the specified object exists.

Parameters
_objectUIDThe UID of the object

◆ setObjectUniqueName()

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.

Parameters
_objectUidThe UID of the object
_uniqueNameThe unique name to set

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