4#ifndef QACCESSIBLE_BASE_H
5#define QACCESSIBLE_BASE_H
7#include <QtGui/qtguiglobal.h>
8#if QT_CONFIG(accessibility)
12#pragma qt_sync_stop_processing
15#include <QtCore/qobjectdefs.h>
21class QAccessibleInterface;
22class QAccessibleEvent;
33 ForegroundChanged = 0x0003,
36 PopupMenuStart = 0x0006,
37 PopupMenuEnd = 0x0007,
38 ContextHelpStart = 0x000C,
39 ContextHelpEnd = 0x000D,
40 DragDropStart = 0x000E,
44 ScrollingStart = 0x0012,
45 ScrollingEnd = 0x0013,
50 ActionChanged = 0x0101,
51 ActiveDescendantChanged = 0x0102,
52 AttributeChanged = 0x0103,
53 DocumentContentChanged = 0x0104,
54 DocumentLoadComplete = 0x0105,
55 DocumentLoadStopped = 0x0106,
56 DocumentReload = 0x0107,
57 HyperlinkEndIndexChanged = 0x0108,
58 HyperlinkNumberOfAnchorsChanged = 0x0109,
59 HyperlinkSelectedLinkChanged = 0x010A,
60 HypertextLinkActivated = 0x010B,
61 HypertextLinkSelected = 0x010C,
62 HyperlinkStartIndexChanged = 0x010D,
63 HypertextChanged = 0x010E,
64 HypertextNLinksChanged = 0x010F,
65 ObjectAttributeChanged = 0x0110,
67 SectionChanged = 0x0112,
68 TableCaptionChanged = 0x0113,
69 TableColumnDescriptionChanged = 0x0114,
70 TableColumnHeaderChanged = 0x0115,
71 TableModelChanged = 0x0116,
72 TableRowDescriptionChanged = 0x0117,
73 TableRowHeaderChanged = 0x0118,
74 TableSummaryChanged = 0x0119,
75 TextAttributeChanged = 0x011A,
76 TextCaretMoved = 0x011B,
78 TextColumnChanged = 0x011D,
79 TextInserted = 0x011E,
82 TextSelectionChanged = 0x0121,
83 VisibleDataChanged = 0x0122,
85 ObjectCreated = 0x8000,
86 ObjectDestroyed = 0x8001,
89 ObjectReorder = 0x8004,
92 SelectionAdd = 0x8007,
93 SelectionRemove = 0x8008,
94 SelectionWithin = 0x8009,
96 LocationChanged = 0x800B,
98 DescriptionChanged = 0x800D,
99 ValueChanged = 0x800E,
100 ParentChanged = 0x800F,
101 HelpChanged = 0x80A0,
102 DefaultActionChanged = 0x80B0,
103 AcceleratorChanged = 0x80C0,
151 quint64 supportsAutoCompletion : 1;
177 std::memset(
this, 0,
sizeof(
State));
192 MenuBar = 0x00000002,
193 ScrollBar = 0x00000003,
198 AlertMessage = 0x00000008,
201 PopupMenu = 0x0000000B,
202 MenuItem = 0x0000000C,
204 Application = 0x0000000E,
205 Document = 0x0000000F,
210 Grouping = 0x00000014,
211 Separator = 0x00000015,
212 ToolBar = 0x00000016,
213 StatusBar = 0x00000017,
215 ColumnHeader = 0x00000019,
216 RowHeader = 0x0000001A,
221 HelpBalloon = 0x0000001F,
222 Assistant = 0x00000020,
224 ListItem = 0x00000022,
226 TreeItem = 0x00000024,
227 PageTab = 0x00000025,
228 PropertyPage = 0x00000026,
229 Indicator = 0x00000027,
230 Graphic = 0x00000028,
231 StaticText = 0x00000029,
232 EditableText = 0x0000002A,
237 CheckBox = 0x0000002C,
238 RadioButton = 0x0000002D,
239 ComboBox = 0x0000002E,
241 ProgressBar = 0x00000030,
243 HotkeyField = 0x00000032,
245 SpinBox = 0x00000034,
247 Animation = 0x00000036,
248 Equation = 0x00000037,
249 ButtonDropDown = 0x00000038,
250 ButtonMenu = 0x00000039,
251 ButtonDropGrid = 0x0000003A,
253 PageTabList = 0x0000003C,
259 LayeredPane = 0x00000080,
260 Terminal = 0x00000081,
262 Paragraph = 0x00000083,
263 WebDocument = 0x00000084,
264 Section = 0x00000085,
265 Notification = 0x00000086,
271 ColorChooser = 0x404,
313 ComplementaryContent = 0x42C,
326 UserText = 0x0000ffff
331 Labelled = 0x00000002,
333 Controlled = 0x00000008,
334 DescriptionFor = 0x00000010,
335 Described = 0x00000020,
336 FlowsFrom = 0x00000040,
337 FlowsTo = 0x00000080,
338 AllRelations = 0xffffffff
345 EditableTextInterface,
355 enum TextBoundaryType {
365 typedef void(*UpdateHandler)(QAccessibleEvent *
event);
370 static void installFactory(InterfaceFactory);
371 static void removeFactory(InterfaceFactory);
372 static UpdateHandler installUpdateHandler(UpdateHandler);
373 static RootObjectHandler installRootObjectHandler(RootObjectHandler);
375 class Q_GUI_EXPORT ActivationObserver
378 virtual ~ActivationObserver();
379 virtual void accessibilityActiveChanged(
bool active) = 0;
381 static void installActivationObserver(ActivationObserver *);
382 static void removeActivationObserver(ActivationObserver *);
384 static QAccessibleInterface *queryAccessibleInterface(
QObject *);
385 static Id uniqueId(QAccessibleInterface *iface);
386 static QAccessibleInterface *accessibleInterface(Id uniqueId);
387 static Id registerAccessibleInterface(QAccessibleInterface *iface);
388 static void deleteAccessibleInterface(Id uniqueId);
390 static void updateAccessibility(QAccessibleEvent *
event);
393 static void setActive(
bool active);
394 static void setRootObject(
QObject *
object);
396 static void cleanup();
401 static UpdateHandler updateHandler;
402 static RootObjectHandler rootObjectHandler;
406 friend class QAccessibleCache;
The QAccessible class provides enums and static functions related to accessibility.
\macro QT_RESTRICTED_CAST_FROM_ASCII
\reentrant \inmodule QtGui
[Window class with invokable method]
std::list< QString >::iterator Name
Combined button and popup list for selecting options.
std::pair< T1, T2 > QPair
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
unsigned long long quint64