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

#include "aToolButtonWidget.h"

Inheritance diagram for ak::aToolButtonWidget:
ak::aWidget ak::aObject

Signals

void btnClicked ()
 
void keyPressed (QKeyEvent *)
 
void keyReleased (QKeyEvent *)
 

Public Member Functions

 aToolButtonWidget ()
 
 aToolButtonWidget (const QString &_text)
 
 aToolButtonWidget (const QIcon &_icon, const QString &_text)
 
virtual ~aToolButtonWidget ()
 
virtual void keyPressEvent (QKeyEvent *_event) override
 Emits a key pressend signal a key is pressed.
 
virtual void keyReleaseEvent (QKeyEvent *_event) override
 Emits a key released signal a key is released.
 
virtual QWidget * widget (void) override
 Will return the widgets widget to display it.
 
aActiongetAction () const
 Will return the action of this tool button.
 
void SetToolTip (const QString &_text)
 Will set the toolTip and WhatsThis of this toolButton and its action.
 
QString ToolTip (void) const
 Will return the current toolTip of this toolButton.
 
- Public Member Functions inherited from ak::aWidget
 aWidget (objectType _type=otNone, UID _UID=invalidUID)
 Constructor.
 
virtual ~aWidget ()
 Deconstructor.
 
virtual bool isWidgetType (void) const override
 Returns true the object is derived from aWidget.
 
- Public Member Functions inherited from ak::aObject
 aObject (objectType _type=otNone, UID _UID=ak::invalidUID)
 Constructor.
 
 aObject (const aObject &_other)
 Copy constructor.
 
aObjectoperator= (const aObject &_other)
 Assignment operator.
 
virtual ~aObject ()
 Deconstructor.
 
virtual void removeChildObject (aObject *_child)
 Will remove the child from this object (not destroy it) This function should be called from the deconstructor of a child.
 
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.
 
aObjectparentObject (void) const
 Will return a pointer to the parent object.
 
int childObjectCount (void) const
 Will return the count of sub objects.
 
aObjectchildObject (UID _childUID)
 Will return the child with the specified UID.
 
void setOwner (aObject *_object)
 Will set the owner of this object.
 
aObjectowner (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.
 

Additional Inherited Members

- 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.
 
aObjectm_parentObject
 
aObjectm_owner
 
std::map< UID, aObject * > m_childObjects
 

Constructor & Destructor Documentation

◆ aToolButtonWidget() [1/3]

ak::aToolButtonWidget::aToolButtonWidget ( )

◆ aToolButtonWidget() [2/3]

ak::aToolButtonWidget::aToolButtonWidget ( const QString & _text)

◆ aToolButtonWidget() [3/3]

ak::aToolButtonWidget::aToolButtonWidget ( const QIcon & _icon,
const QString & _text )

◆ ~aToolButtonWidget()

ak::aToolButtonWidget::~aToolButtonWidget ( )
virtual

Member Function Documentation

◆ btnClicked

void ak::aToolButtonWidget::btnClicked ( )
signal

◆ getAction()

aAction * ak::aToolButtonWidget::getAction ( ) const
inline

Will return the action of this tool button.

◆ keyPressed

void ak::aToolButtonWidget::keyPressed ( QKeyEvent * )
signal

◆ keyPressEvent()

void ak::aToolButtonWidget::keyPressEvent ( QKeyEvent * _event)
overridevirtual

Emits a key pressend signal a key is pressed.

◆ keyReleased

void ak::aToolButtonWidget::keyReleased ( QKeyEvent * )
signal

◆ keyReleaseEvent()

void ak::aToolButtonWidget::keyReleaseEvent ( QKeyEvent * _event)
overridevirtual

Emits a key released signal a key is released.

◆ SetToolTip()

void ak::aToolButtonWidget::SetToolTip ( const QString & _text)

Will set the toolTip and WhatsThis of this toolButton and its action.

Parameters
_textThe text to set

◆ ToolTip()

QString ak::aToolButtonWidget::ToolTip ( void ) const

Will return the current toolTip of this toolButton.

◆ widget()

virtual QWidget * ak::aToolButtonWidget::widget ( void )
inlineoverridevirtual

Will return the widgets widget to display it.

Implements ak::aWidget.


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