Skip to content

AAbstractTypeable#

Base class for AAbstractTypeableView which is template class.

Header:#include <AUI/View/AAbstractTypeable.h>
CMake:aui_link(my_target PUBLIC aui::views)

Public fields and Signals#


actionButtonPressed#

emits<> actionButtonPressed

When action button of touchscreen keyboard or AInput::RETURN is pressed.


selectionChanged#

emits<Selection> selectionChanged

Selection is changed due to user's action or code operation.


textChanged#

emits<AString> textChanged

The user changed text and focused another view or AAbstractTextField::updateText is called.


textChanging#

emits<AString> textChanging

When the user changed one or more symbols.

Public Methods#

copyToClipboard#


void AAbstractTypeable::copyToClipboard()

Performs copy operation (CTRL+C) to system clipboard.

cutToClipboard#


void AAbstractTypeable::cutToClipboard()

Performs cut operation (CTRL+X) to system clipboard.

enterChar#


void AAbstractTypeable::enterChar(AChar c)
Arguments
c

Char enter implementation. Should be called in onCharEntered.

isPasswordField#


virtual bool AAbstractTypeable::isPasswordField()
Returns
true if this typeable should be treated as password.

moveCursorLeft#


void AAbstractTypeable::moveCursorLeft()

Performs move left operation (like AInput::LEFT)

moveCursorRight#


void AAbstractTypeable::moveCursorRight()

Performs move right operation (like AInput::RIGHT)

paste#


void AAbstractTypeable::paste(AString content)

Performs paste operation (CTRL+V).

Arguments
content
string to insert

Performs paste operation at cursor's position. If the view has selection, the selected contents are removed before insertion.

After operation, selection is reset and cursor is set to the end of inserted contents.

pasteFromClipboard#


void AAbstractTypeable::pasteFromClipboard()

Performs paste operation (CTRL+V) from system clipboard.

Effectively:

paste(AClipboard::pasteFromClipboard());

setTextInputActionIcon#


void AAbstractTypeable::setTextInputActionIcon(ATextInputActionIcon textInputActionIcon)

textInputActionIcon#


ATextInputActionIcon AAbstractTypeable::textInputActionIcon()
Returns
text input type of this typeable.

textInputType#


virtual ATextInputType AAbstractTypeable::textInputType()
Returns
text input type of this typeable.

typeableInsert#


virtual bool AAbstractTypeable::typeableInsert(size_t at, const AString& toInsert)
Returns
true, if successfully inserted; false otherwise

Inserts string. When insert could not be completed (i.e. isValidText discarded the new string contents), the state is left unchanged as like if typeableInsert have not been called.


virtual bool AAbstractTypeable::typeableInsert(size_t at, AChar toInsert)
Returns
true, if successfully inserted; false otherwise When insert could not be completed (i.e. isValidText discarded the new string contents), the state is left unchanged as like if typeableInsert have not been called.

Inserts string.