OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::Widget Class Referenceabstract

#include "Widget.h"

Inheritance diagram for ot::Widget:
ot::OTObject ot::QWidgetInterface

Public Member Functions

 Widget ()
 
virtual ~Widget ()
 
void setWidgetOwner (const BasicServiceInformation &_owner)
 
const BasicServiceInformationgetWidgetOwner (void) const
 
void setWidgetEnabled (bool _enabled, int _counter=1)
 
void resetWidgetDisabledCounter (void)
 Resets the disabled counter back to 0. (like no disabled was called)
 
void lockWidget (const LockTypeFlags &_flags, int _lockCount=1)
 
void unlockWidget (const LockTypeFlags &_flags, int _unlockCount=1)
 
void resetWidgetLockCounter (void)
 
- Public Member Functions inherited from ot::OTObject
 OTObject (OTObject *_parentObject=(OTObject *) nullptr)
 
virtual ~OTObject ()
 
void setParentOTObject (OTObject *_newParent)
 
OTObjectgetParentOTObject (void)
 
const OTObjectgetParentOTObject (void) const
 
void registerDeleteNotifier (OTObject *_notifier)
 
void removeDeleteNotifier (OTObject *_notifier)
 
const std::list< OTObject * > & getChildOTObjects (void) const
 
OTObjectfindChildOTObject (const std::string &_objectName)
 
const OTObjectfindChildOTObject (const std::string &_objectName) const
 
void setOTObjectName (const std::string &_name)
 
const std::string & getOTObjectName (void) const
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
virtual QWidget * getQWidget (void)=0
 Returns a pointer to the root widget of this object.
 
virtual const QWidget * getQWidget (void) const =0
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 

Protected Member Functions

virtual void updateWidgetEnabledState (bool _enabled, bool _locked)=0
 This method is called whenever the enabled state should be updated (e.g. setEnabled or setReadOnly).
 
- Protected Member Functions inherited from ot::OTObject
virtual void objectWasDestroyed (OTObject *_object)
 
- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Constructor & Destructor Documentation

◆ Widget()

ot::Widget::Widget ( )

◆ ~Widget()

ot::Widget::~Widget ( )
virtual

Member Function Documentation

◆ getWidgetOwner()

const BasicServiceInformation & ot::Widget::getWidgetOwner ( void ) const
inline

◆ lockWidget()

void ot::Widget::lockWidget ( const LockTypeFlags & _flags,
int _lockCount = 1 )

◆ resetWidgetDisabledCounter()

void ot::Widget::resetWidgetDisabledCounter ( void )

Resets the disabled counter back to 0. (like no disabled was called)

◆ resetWidgetLockCounter()

void ot::Widget::resetWidgetLockCounter ( void )

◆ setWidgetEnabled()

void ot::Widget::setWidgetEnabled ( bool _enabled,
int _counter = 1 )

◆ setWidgetOwner()

void ot::Widget::setWidgetOwner ( const BasicServiceInformation & _owner)
inline

◆ unlockWidget()

void ot::Widget::unlockWidget ( const LockTypeFlags & _flags,
int _unlockCount = 1 )

◆ updateWidgetEnabledState()

virtual void ot::Widget::updateWidgetEnabledState ( bool _enabled,
bool _locked )
protectedpure virtual

This method is called whenever the enabled state should be updated (e.g. setEnabled or setReadOnly).


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