1 | #ifndef QACCESSIBLEMENU_H
|
---|
2 | #define QACCESSIBLEMENU_H
|
---|
3 |
|
---|
4 | #include "qaccessiblewidget.h"
|
---|
5 |
|
---|
6 | class QPopupMenu;
|
---|
7 | class QMenuBar;
|
---|
8 |
|
---|
9 | class QAccessiblePopup : public QAccessibleWidget
|
---|
10 | {
|
---|
11 | public:
|
---|
12 | QAccessiblePopup( QObject *o );
|
---|
13 |
|
---|
14 | int childCount() const;
|
---|
15 | QRESULT queryChild( int control, QAccessibleInterface ** ) const;
|
---|
16 |
|
---|
17 | QRect rect( int control ) const;
|
---|
18 | int controlAt( int x, int y ) const;
|
---|
19 | int navigate( NavDirection direction, int control ) const;
|
---|
20 |
|
---|
21 | QString text( Text t, int control ) const;
|
---|
22 | Role role( int control ) const;
|
---|
23 | State state( int control ) const;
|
---|
24 |
|
---|
25 | bool doDefaultAction( int control );
|
---|
26 | bool setFocus( int control );
|
---|
27 |
|
---|
28 | protected:
|
---|
29 | QPopupMenu *popupMenu() const;
|
---|
30 | };
|
---|
31 |
|
---|
32 | class QAccessibleMenuBar : public QAccessibleWidget
|
---|
33 | {
|
---|
34 | public:
|
---|
35 | QAccessibleMenuBar( QObject *o );
|
---|
36 |
|
---|
37 | int childCount() const;
|
---|
38 | QRESULT queryChild( int control, QAccessibleInterface ** ) const;
|
---|
39 |
|
---|
40 | QRect rect( int control ) const;
|
---|
41 | int controlAt( int x, int y ) const;
|
---|
42 | int navigate( NavDirection direction, int control ) const;
|
---|
43 |
|
---|
44 | QString text( Text t, int control ) const;
|
---|
45 | Role role( int control ) const;
|
---|
46 | State state( int control ) const;
|
---|
47 |
|
---|
48 | bool doDefaultAction( int control );
|
---|
49 | bool setFocus( int control );
|
---|
50 |
|
---|
51 | protected:
|
---|
52 | QMenuBar *menuBar() const;
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif // QACCESSIBLEMENU_H
|
---|