Qt Accessibility Client
accessibleobject.cpp
25 AccessibleObject::AccessibleObject(RegistryPrivate *registryPrivate, const QString &service, const QString &path)
35 d = QSharedPointer<AccessibleObjectPrivate>(new AccessibleObjectPrivate(registryPrivate, service, path));
39 d = QSharedPointer<AccessibleObjectPrivate>(new AccessibleObjectPrivate(registryPrivate, service, path));
182 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "boundingRect called on accessible that does not implement component";
192 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "characterRect called on accessible that does not implement text";
207 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "caretOffset called on accessible that does not implement text";
217 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "characterCount called on accessible that does not implement text";
226 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "text called on accessible that does not implement text";
230 QString AccessibleObject::textWithBoundary(int offset, TextBoundary boundary, int *startOffset, int *endOffset) const
234 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "text called on accessible that does not implement text";
242 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "setText called on accessible that does not implement editableText";
250 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "insertText called on accessible that does not implement editableText";
258 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "copyText called on accessible that does not implement editableText";
266 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "cutText called on accessible that does not implement editableText";
274 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "deleteText called on accessible that does not implement editableText";
282 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "pasteText called on accessible that does not implement editableText";
290 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "textSelections called on accessible that does not implement text";
298 qCWarning(LIBQACCESSIBILITYCLIENT_LOG) << "setTextSelections called on accessible that does not implement text";
539 QACCESSIBILITYCLIENT_EXPORT QDebug QAccessibleClient::operator<<(QDebug d, const AccessibleObject &object)
bool isDefunct() const
Returns if the AccessibleObject is defunct - that means it does not properly respont to requests and ...
Definition: accessibleobject.cpp:443
bool hasToolTip() const
Returns if the AccessibleObject has a tool tip.
Definition: accessibleobject.cpp:413
AccessibleObject application() const
Returns the application object.
Definition: accessibleobject.cpp:321
Role
The role indicates the type of UI element that an AccessibleObject represents.
Definition: accessibleobject.h:87
int indexInParent() const
Returns this accessible's index in it's parent's list of children.
Definition: accessibleobject.cpp:127
Interfaces supportedInterfaces() const
Returns List of interfaces supported by the accessible.
Definition: accessibleobject.cpp:197
int count(const T &value) const const
bool isExpanded() const
Returns if the AccessibleObject is currently expanded.
Definition: accessibleobject.cpp:468
QDebug & nospace()
void append(const T &value)
QDebug & space()
int x() const const
int y() const const
QString textWithBoundary(int offset, TextBoundary boundary, int *startOffset=nullptr, int *endOffset=nullptr) const
Returns the text of the TextInterface by boundary.
Definition: accessibleobject.cpp:230
bool isCheckable() const
Returns if the AccessibleObject is checkable (often indicates a check action)
Definition: accessibleobject.cpp:423
QString roleName() const
Returns the name of the role of this accessible.
Definition: accessibleobject.cpp:152
QRect boundingRect() const
Returns a bounding rectangle for the accessible.
Definition: accessibleobject.cpp:177
QString appLocale(LocaleType lctype=LocaleTypeMessages) const
The application locale.
Definition: accessibleobject.cpp:341
void setScheme(const QString &scheme)
double maximumValue() const
The maximum value allowed by this valuator.
Definition: accessibleobject.cpp:356
AccessibleObject child(int index) const
Returns a specific child at position index.
Definition: accessibleobject.cpp:122
bool supportsAutocompletion() const
Returns if the AccessibleObject supports automatic text completion.
Definition: accessibleobject.cpp:533
bool isVisible() const
Returns if the AccessibleObject is currently visible (it can still be off the screen,...
Definition: accessibleobject.cpp:528
QUrl url() const
Returns a QUrl that references the AccessibleObject.
Definition: accessibleobject.cpp:64
void setTextSelections(const QList< QPair< int, int > > &selections)
Set text selections, usually only one selection will be set, use a list containing one QPair with the...
Definition: accessibleobject.cpp:294
bool isSelectable() const
Returns if the AccessibleObject is selectable.
Definition: accessibleobject.cpp:488
bool insertText(const QString &text, int position=0, int length=-1)
Insert the text into the EditableTextInterface.
Definition: accessibleobject.cpp:246
bool isDefault() const
Returns if the AccessibleObject is the default widget (e.g. a button in a dialog)
Definition: accessibleobject.cpp:448
bool isFocused() const
Returns if the AccessibleObject is currently focused.
Definition: accessibleobject.cpp:478
bool setText(const QString &text)
Set the text of the EditableTextInterface.
Definition: accessibleobject.cpp:238
int indexOf(const T &value, int from) const const
bool pasteText(int position)
Paste the text from the clipboard into the EditableTextInterface.
Definition: accessibleobject.cpp:278
bool isFocusable() const
Returns if the AccessibleObject is focusable.
Definition: accessibleobject.cpp:473
bool isEmpty() const const
QString imageDescription() const
A description text of the image.
Definition: accessibleobject.cpp:381
bool isChecked() const
Returns if the AccessibleObject is currently checked.
Definition: accessibleobject.cpp:438
int childCount() const
Returns the number of children for this accessible.
Definition: accessibleobject.cpp:117
QPoint center() const const
QList< AccessibleObject > children() const
Returns this accessible's children in a list.
Definition: accessibleobject.cpp:99
bool isNull() const const
QString localizedRoleName() const
Returns the name of the role of this accessible.
Definition: accessibleobject.cpp:157
QString join(const QString &separator) const const
QList< AccessibleObject > selection() const
Returns the selection of accessible objects.
Definition: accessibleobject.cpp:376
bool setCurrentValue(const double value)
Set the value of the valuator.
Definition: accessibleobject.cpp:371
bool hasSelectableText() const
Returns if the AccessibleObject allows text selections.
Definition: accessibleobject.cpp:408
bool isExpandable() const
Returns if the AccessibleObject can be expanded to show more information.
Definition: accessibleobject.cpp:463
bool isActive() const
Returns if the AccessibleObject is currently active.
Definition: accessibleobject.cpp:418
This class represents an accessible object.
Definition: accessibleobject.h:41
bool cutText(int startPos, int endPos)
Cut the text from the EditableTextInterface into the clipboard.
Definition: accessibleobject.cpp:262
QString stateString() const
Return a string representing states of this object.
Definition: accessibleobject.cpp:508
bool isSensitive() const
Returns if the AccessibleObject reacts to input events.
Definition: accessibleobject.cpp:498
int caretOffset() const
Returns the offset of the caret from the beginning of the text.
Definition: accessibleobject.cpp:202
QString text(int startOffset=0, int endOffset=-1) const
Returns the text of the TextInterface.
Definition: accessibleobject.cpp:222
Role role() const
Returns the role as integer value of this accessible.
Definition: accessibleobject.cpp:147
void setPath(const QString &path, QUrl::ParsingMode mode)
QVector< QSharedPointer< QAction > > actions() const
Returns a list of actions supported by this accessible.
Definition: accessibleobject.cpp:396
QString accessibleId() const
Returns the accessible id of this accessible.
Definition: accessibleobject.cpp:132
double minimumValueIncrement() const
The smallest incremental change which this valuator allows.
Definition: accessibleobject.cpp:361
double minimumValue() const
The minimum value allowed by this valuator.
Definition: accessibleobject.cpp:351
bool isSelected() const
Returns if the AccessibleObject is currently selected.
Definition: accessibleobject.cpp:493
void setFragment(const QString &fragment, QUrl::ParsingMode mode)
QList< QPair< int, int > > textSelections() const
Returns a list of selections the text has.
Definition: accessibleobject.cpp:286
int layer() const
The ComponentLayer in which this object resides.
Definition: accessibleobject.cpp:162
QRect characterRect(int offset) const
Returns a bounding rectangle for the character at position offset.
Definition: accessibleobject.cpp:187
bool copyText(int startPos, int endPos)
Copy the text from the EditableTextInterface into the clipboard.
Definition: accessibleobject.cpp:254
TextBoundary
The TextBoundaries enum represents the different boundaries when asking for text at a certain offset.
Definition: accessibleobject.h:177
bool operator==(const AccessibleObject &other) const
Comparison operator.
Definition: accessibleobject.cpp:89
AccessibleObject & operator=(const AccessibleObject &other)
Assignment operator.
Definition: accessibleobject.cpp:83
bool deleteText(int startPos, int endPos)
Delete the text from the EditableTextInterface.
Definition: accessibleobject.cpp:270
QString description() const
Returns the description for this accessible.
Definition: accessibleobject.cpp:142
bool isMultiLine() const
Returns if the AccessibleObject is a multi line text edit.
Definition: accessibleobject.cpp:483
bool isEnabled() const
Returns if the AccessibleObject is currently enabled.
Definition: accessibleobject.cpp:458
bool isEditable() const
Returns if the AccessibleObject is an editable text.
Definition: accessibleobject.cpp:453
bool isSingleLine() const
Returns if the AccessibleObject is a single line text edit.
Definition: accessibleobject.cpp:503
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Dec 7 2023 04:00:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Dec 7 2023 04:00:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.