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

This class combines the functionallity of a QTextEdit and a ak::ui::core::aWidget. More...

#include "aLineEditWidget.h"

Inheritance diagram for ak::aLineEditWidget:
ak::aWidget ak::aObject

Signals

void keyPressed (QKeyEvent *)
 
void keyReleased (QKeyEvent *)
 
void finishedChanges ()
 
void tabPressed ()
 
void focused (void)
 
void focusLost (void)
 

Public Member Functions

 aLineEditWidget (QWidget *_parent=(QWidget *) nullptr)
 Constructor.
 
 aLineEditWidget (const QString &_text, QWidget *_parent=(QWidget *) nullptr)
 Constructor.
 
virtual ~aLineEditWidget ()
 Deconstructor.
 
virtual bool eventFilter (QObject *_obj, QEvent *_event) override
 
virtual void keyPressEvent (QKeyEvent *_event) override
 Emits a returnPressed signal if the return key is pressed.
 
virtual void keyReleaseEvent (QKeyEvent *event) override
 
virtual void focusInEvent (QFocusEvent *_event) override
 
virtual void focusOutEvent (QFocusEvent *_event) override
 
virtual QWidget * widget (void) override
 Will return the widgets widget to display it.
 
void setErrorState (bool _error)
 
void setErrorStateIsForeground (bool _isForeground)
 Will set wather the error state will have an impact on the foreground or the background.
 
void setIgnoreTabulator (bool _ignore)
 
bool ignoreTabulator (void) const
 
- 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
 

Detailed Description

This class combines the functionallity of a QTextEdit and a ak::ui::core::aWidget.

Constructor & Destructor Documentation

◆ aLineEditWidget() [1/2]

ak::aLineEditWidget::aLineEditWidget ( QWidget * _parent = (QWidget *) nullptr)

Constructor.

Parameters
_parentThe parent QWidget for this textEdit

◆ aLineEditWidget() [2/2]

ak::aLineEditWidget::aLineEditWidget ( const QString & _text,
QWidget * _parent = (QWidget *) nullptr )

Constructor.

Parameters
_textThe initial text for this text edit
_parentThe parent QWidget for this textEdit

◆ ~aLineEditWidget()

ak::aLineEditWidget::~aLineEditWidget ( )
virtual

Deconstructor.

Member Function Documentation

◆ eventFilter()

bool ak::aLineEditWidget::eventFilter ( QObject * _obj,
QEvent * _event )
overridevirtual

◆ finishedChanges

void ak::aLineEditWidget::finishedChanges ( )
signal

◆ focused

void ak::aLineEditWidget::focused ( void )
signal

◆ focusInEvent()

void ak::aLineEditWidget::focusInEvent ( QFocusEvent * _event)
overridevirtual

◆ focusLost

void ak::aLineEditWidget::focusLost ( void )
signal

◆ focusOutEvent()

void ak::aLineEditWidget::focusOutEvent ( QFocusEvent * _event)
overridevirtual

◆ ignoreTabulator()

bool ak::aLineEditWidget::ignoreTabulator ( void ) const
inline

◆ keyPressed

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

◆ keyPressEvent()

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

Emits a returnPressed signal if the return key is pressed.

◆ keyReleased

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

◆ keyReleaseEvent()

void ak::aLineEditWidget::keyReleaseEvent ( QKeyEvent * event)
overridevirtual

◆ setErrorState()

void ak::aLineEditWidget::setErrorState ( bool _error)

◆ setErrorStateIsForeground()

void ak::aLineEditWidget::setErrorStateIsForeground ( bool _isForeground)

Will set wather the error state will have an impact on the foreground or the background.

Parameters
_isForegroundIf true, the error state will change the text foreground color, otherwise back and foreground

◆ setIgnoreTabulator()

void ak::aLineEditWidget::setIgnoreTabulator ( bool _ignore)
inline

◆ tabPressed

void ak::aLineEditWidget::tabPressed ( )
signal

◆ widget()

QWidget * ak::aLineEditWidget::widget ( void )
overridevirtual

Will return the widgets widget to display it.

Implements ak::aWidget.


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