OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
KeyboardCommandHandler Class Reference

#include "ShortcutManager.h"

Inheritance diagram for KeyboardCommandHandler:
ak::aObject

Public Member Functions

 KeyboardCommandHandler (ot::ServiceBase *_creator, AppBase *_app, const QString &_keySequence)
 
virtual ~KeyboardCommandHandler ()
 
bool isEnabled (void) const
 
bool isViewerHandler (void) const
 
ot::ServiceBasecreator (void) const
 
ak::UID attatchedSender (void) const
 
ak::eventType eventType (void) const
 
const QString & keySequence (void) const
 
void enable (void)
 
void disable (void)
 
void setAsViewerHandler (bool _isViewerHandler)
 
void attachToEvent (ak::UID _sender, ak::eventType _event, int _info1=0, int _info2=0)
 
- 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.
 
virtual bool isWidgetType (void) const
 Returns true if the object is an object derived from aWidget.
 

Static Public Member Functions

static Qt::Key keyFromOpenTwin (ot::BasicKey _key)
 

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

◆ KeyboardCommandHandler()

KeyboardCommandHandler::KeyboardCommandHandler ( ot::ServiceBase * _creator,
AppBase * _app,
const QString & _keySequence )

◆ ~KeyboardCommandHandler()

KeyboardCommandHandler::~KeyboardCommandHandler ( )
virtual

Member Function Documentation

◆ attachToEvent()

void KeyboardCommandHandler::attachToEvent ( ak::UID _sender,
ak::eventType _event,
int _info1 = 0,
int _info2 = 0 )

◆ attatchedSender()

ak::UID KeyboardCommandHandler::attatchedSender ( void ) const
inline

◆ creator()

ot::ServiceBase * KeyboardCommandHandler::creator ( void ) const
inline

◆ disable()

void KeyboardCommandHandler::disable ( void )
inline

◆ enable()

void KeyboardCommandHandler::enable ( void )
inline

◆ eventType()

ak::eventType KeyboardCommandHandler::eventType ( void ) const
inline

◆ isEnabled()

bool KeyboardCommandHandler::isEnabled ( void ) const
inline

◆ isViewerHandler()

bool KeyboardCommandHandler::isViewerHandler ( void ) const
inline

◆ keyFromOpenTwin()

Qt::Key KeyboardCommandHandler::keyFromOpenTwin ( ot::BasicKey _key)
static

◆ keySequence()

const QString & KeyboardCommandHandler::keySequence ( void ) const
inline

◆ setAsViewerHandler()

void KeyboardCommandHandler::setAsViewerHandler ( bool _isViewerHandler)
inline

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