Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

TQAccessible Class Reference

The TQAccessible class provides enums and static functions relating to accessibility. More...

#include <ntqaccessible.h>

Inherited by TQAccessibleInterface.

List of all member functions.

Public Members

Static Public Members


Detailed Description

The TQAccessible class provides enums and static functions relating to accessibility.

Accessibility clients use implementations of the TQAccessibleInterface to read the information an accessible object exposes, or to call functions to manipulate the accessible object.

See the plugin documentation for more details about how to redistribute TQt plugins.

See also Miscellaneous Classes.


Member Type Documentation

TQAccessible::Event

This enum type defines event types when the state of the accessible object has changed. The event types are:

TQAccessible::NavDirection

This enum specifies which item to move to when navigating.

TQAccessible::Role

This enum defines a number of roles an accessible object can have. The roles are:

TQAccessible::State

This enum type defines bitflags that can be combined to indicate the state of the accessible object. The values are:

TQAccessible::Text

This enum specifies string information that an accessible object returns.


Member Function Documentation

bool TQAccessible::isActive () [static]

Returns TRUE if an accessibility implementation has been requested, during the runtime of the application, otherwise returns FALSE.

Use this function to prevent potentially expensive notifications via updateAccessibility().

TQRESULT TQAccessible::queryAccessibleInterface ( TQObject * object, TQAccessibleInterface ** iface ) [static]

Sets iface to point to the implementation of the TQAccessibleInterface for object, and returns TQS_OK if successfull, or sets iface to 0 and returns TQE_NOCOMPONENT if no accessibility implementation for object exists.

The function uses the classname of object to find a suitable implementation. If no implementation for the object's class is available the function tries to find an implementation for the object's parent class.

This function is called to answer an accessibility client's request for object information. You should never need to call this function yourself.

void TQAccessible::updateAccessibility ( TQObject * object, int control, Event reason ) [static]

Notifies accessibility clients about a change in object's accessibility information.

reason specifies the cause of the change, for example, ValueChange when the position of a slider has been changed. control is the ID of the child element that has changed. When control is 0, the object itself has changed.

Call this function whenever the state of your accessible object or one of it's sub-elements has been changed either programmatically (e.g. by calling TQLabel::setText()) or by user interaction.

If there are no accessibility tools listening to this event, the performance penalty for calling this function is minor, but if determining the parameters of the call is expensive you can use isActive() to avoid unnecessary performance penalties if no client is listening.


This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.


Copyright © 2007 TrolltechTrademarks
TQt 3.3.8