45 #include <QtCore/qglobal.h> 46 #include <QtCore/qobject.h> 47 #include <QtCore/qrect.h> 48 #include <QtCore/qset.h> 49 #include <QtCore/qvector.h> 50 #include <QtCore/qvariant.h> 51 #include <QtGui/qcolor.h> 52 #include <QtGui/qevent.h> 60 #ifndef QT_NO_ACCESSIBILITY 70 ForegroundChanged = 0x0003,
73 PopupMenuStart = 0x0006,
74 PopupMenuEnd = 0x0007,
75 ContextHelpStart = 0x000C,
76 ContextHelpEnd = 0x000D,
77 DragDropStart = 0x000E,
81 ScrollingStart = 0x0012,
82 ScrollingEnd = 0x0013,
87 ActionChanged = 0x0101,
88 ActiveDescendantChanged = 0x0102,
89 AttributeChanged = 0x0103,
90 DocumentContentChanged = 0x0104,
91 DocumentLoadComplete = 0x0105,
92 DocumentLoadStopped = 0x0106,
93 DocumentReload = 0x0107,
94 HyperlinkEndIndexChanged = 0x0108,
95 HyperlinkNumberOfAnchorsChanged = 0x0109,
96 HyperlinkSelectedLinkChanged = 0x010A,
97 HypertextLinkActivated = 0x010B,
98 HypertextLinkSelected = 0x010C,
99 HyperlinkStartIndexChanged = 0x010D,
100 HypertextChanged = 0x010E,
101 HypertextNLinksChanged = 0x010F,
102 ObjectAttributeChanged = 0x0110,
103 PageChanged = 0x0111,
104 SectionChanged = 0x0112,
105 TableCaptionChanged = 0x0113,
106 TableColumnDescriptionChanged = 0x0114,
107 TableColumnHeaderChanged = 0x0115,
108 TableModelChanged = 0x0116,
109 TableRowDescriptionChanged = 0x0117,
110 TableRowHeaderChanged = 0x0118,
111 TableSummaryChanged = 0x0119,
112 TextAttributeChanged = 0x011A,
113 TextCaretMoved = 0x011B,
115 TextColumnChanged = 0x011D,
116 TextInserted = 0x011E,
117 TextRemoved = 0x011F,
118 TextUpdated = 0x0120,
119 TextSelectionChanged = 0x0121,
120 VisibleDataChanged = 0x0122,
122 ObjectCreated = 0x8000,
123 ObjectDestroyed = 0x8001,
126 ObjectReorder = 0x8004,
129 SelectionAdd = 0x8007,
130 SelectionRemove = 0x8008,
131 SelectionWithin = 0x8009,
132 StateChanged = 0x800A,
133 LocationChanged = 0x800B,
134 NameChanged = 0x800C,
135 DescriptionChanged = 0x800D,
136 ValueChanged = 0x800E,
137 ParentChanged = 0x800F,
138 HelpChanged = 0x80A0,
139 DefaultActionChanged = 0x80B0,
140 AcceleratorChanged = 0x80C0
145 Unavailable = 0x00000001,
146 Selected = 0x00000002,
147 Focused = 0x00000004,
148 Pressed = 0x00000008,
151 ReadOnly = 0x00000040,
152 HotTracked = 0x00000080,
153 DefaultButton = 0x00000100,
155 Expanded = 0x00000200,
156 Collapsed = 0x00000400,
159 Marqueed = 0x00002000,
160 Animated = 0x00004000,
161 Invisible = 0x00008000,
162 Offscreen = 0x00010000,
163 Sizeable = 0x00020000,
164 Movable = 0x00040000,
168 SelfVoicing = 0x00080000,
169 Focusable = 0x00100000,
170 Selectable = 0x00200000,
172 Traversed = 0x00800000,
173 MultiSelectable = 0x01000000,
174 ExtSelectable = 0x02000000,
178 Protected = 0x20000000,
179 HasPopup = 0x40000000,
184 HasInvokeExtension = 0x10000000
190 TitleBar = 0x00000001,
191 MenuBar = 0x00000002,
192 ScrollBar = 0x00000003,
197 AlertMessage = 0x00000008,
200 PopupMenu = 0x0000000B,
201 MenuItem = 0x0000000C,
203 Application = 0x0000000E,
209 Grouping = 0x00000014,
210 Separator = 0x00000015,
211 ToolBar = 0x00000016,
212 StatusBar = 0x00000017,
214 ColumnHeader = 0x00000019,
215 RowHeader = 0x0000001A,
220 HelpBalloon = 0x0000001F,
221 Assistant = 0x00000020,
223 ListItem = 0x00000022,
225 TreeItem = 0x00000024,
226 PageTab = 0x00000025,
227 PropertyPage = 0x00000026,
228 Indicator = 0x00000027,
229 Graphic = 0x00000028,
230 StaticText = 0x00000029,
231 EditableText = 0x0000002A,
232 PushButton = 0x0000002B,
233 CheckBox = 0x0000002C,
234 RadioButton = 0x0000002D,
235 ComboBox = 0x0000002E,
237 ProgressBar = 0x00000030,
239 HotkeyField = 0x00000032,
241 SpinBox = 0x00000034,
244 Equation = 0x00000037,
245 ButtonDropDown = 0x00000038,
246 ButtonMenu = 0x00000039,
247 ButtonDropGrid = 0x0000003A,
249 PageTabList = 0x0000003C,
251 Splitter = 0x0000003E,
253 LayeredPane = 0x0000003F,
254 Terminal = 0x00000040,
265 UserText = 0x0000ffff
269 Unrelated = 0x00000000,
271 Ancestor = 0x00000002,
273 Descendent = 0x00000008,
274 Sibling = 0x00000010,
275 HierarchyMask = 0x000000ff,
282 Covered = 0x00002000,
283 GeometryMask = 0x0000ff00,
285 FocusChild = 0x00010000,
287 Labelled = 0x00040000,
288 Controller = 0x00080000,
289 Controlled = 0x00100000,
290 LogicalMask = 0x00ff0000
305 RemoveSelection = -9,
306 ExtendSelection = -10,
307 AddToSelection = -11,
308 LastStandardAction = AddToSelection
312 ListSupportedMethods = 0,
313 SetCursorPosition = 1,
314 GetCursorPosition = 2,
321 typedef void(*RootObjectHandler)(QObject*);
323 static void installFactory(InterfaceFactory);
324 static void removeFactory(InterfaceFactory);
325 static UpdateHandler installUpdateHandler(UpdateHandler);
326 static RootObjectHandler installRootObjectHandler(RootObjectHandler);
329 static void updateAccessibility(QObject *,
int who,
Event reason);
330 static bool isActive();
331 static void setRootObject(QObject*);
333 static void initialize();
375 virtual bool isValid()
const = 0;
376 virtual QObject *object()
const = 0;
379 virtual int childCount()
const = 0;
384 int otherChild)
const = 0;
385 virtual int childAt(
int x,
int y)
const = 0;
393 virtual QRect rect(
int child)
const = 0;
394 virtual Role role(
int child)
const = 0;
395 virtual State state(
int child)
const = 0;
398 virtual int userActionCount(
int child)
const = 0;
399 virtual QString actionText(
int action,
Text t,
int child)
const = 0;
465 #define QAccessibleInterface_iid "com.trolltech.Qt.QAccessibleInterface" 468 #endif // QT_NO_ACCESSIBILITY 474 #endif // QACCESSIBLE_H The QVariant class acts like a union for the most common Qt data types.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QAccessibleEditableTextInterface class implements support for the IAccessibleEditableText interfa...
The QAccessible2 namespace defines constants relating to IAccessible2-based interfaces.
virtual QAccessible2Interface * interface_cast(QAccessible2::InterfaceType)
QAccessibleValueInterface * valueInterface()
#define QT_END_NAMESPACE
This macro expands to.
static void invokeMethod(QObject *obj, const char *methodName)
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
StateFlag
This enum type defines bit flags that can be combined to indicate the state of an accessible object...
Role
This enum defines the role of an accessible object.
QAccessibleEditableTextInterface * editableTextInterface()
The QString class provides a Unicode character string.
QAccessibleActionInterface * actionInterface()
The QObject class is the base class of all Qt objects.
#define Q_DECLARE_INTERFACE(IFace, IId)
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QAccessibleEvent class is used to query addition accessibility information about complex widgets...
Event
This enum type defines accessible event types.
RelationFlag
This enum type defines bit flags that can be combined to indicate the relationship between two access...
Method
This enum describes the possible types of methods that can be invoked on an accessible object...
virtual ~QAccessibleInterface()
Destroys the object.
static const char * data(const QByteArray &arr)
#define QAccessibleInterface_iid
void setValue(const QString &aText)
Set the description or help text for the given child() to text, thereby answering the request...
The State element defines configurations of objects and properties.
The Column item arranges its children vertically.
QAccessibleImageInterface * imageInterface()
The QAccessibleImageInterface class implements support for the IAccessibleImage interface.
Action
This enum describes the possible types of action that can occur.
The Row item arranges its children horizontally.
Type
This enum type defines the valid event types in Qt.
QAccessibleTextInterface * textInterface()
The QAccessibleTextInterface class implements support for the IAccessibleText interface.
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
The QAccessibleActionInterface class implements support for the IAccessibleAction interface...
QList< QVariant > QVariantList
QAccessibleTable2Interface * table2Interface()
The QRect class defines a rectangle in the plane using integer precision.
T qvariant_cast(const QVariant &)
The Animation element is the base of all QML animations.
QAccessibleTableInterface * tableInterface()
The QAccessibleValueInterface class implements support for the IAccessibleValue interface.
QSet< Method > supportedMethods()
Returns a QSet of QAccessible::Method that are supported by this accessible interface.
The QEvent class is the base class of all event classes.
QAccessibleEvent(Type type, int child)
Constructs an accessibility event of the given type, which must be QEvent::AccessibilityDescription o...
static UpdateHandler updateHandler
static RootObjectHandler rootObjectHandler
QString value() const
Returns the text set using setValue().
int child() const
Returns the (1-based) index of the child to which the request applies.
The QAccessible class provides enums and static functions relating to accessibility.
The Text item allows you to add formatted text to a scene.