source: trunk/plugins/src/accessible/widgets/qaccessiblemenu.h

Last change on this file was 204, checked in by rudi, 14 years ago

Added plugin source code

File size: 1.3 KB
Line 
1#ifndef QACCESSIBLEMENU_H
2#define QACCESSIBLEMENU_H
3
4#include "qaccessiblewidget.h"
5
6class QPopupMenu;
7class QMenuBar;
8
9class QAccessiblePopup : public QAccessibleWidget
10{
11public:
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
28protected:
29 QPopupMenu *popupMenu() const;
30};
31
32class QAccessibleMenuBar : public QAccessibleWidget
33{
34public:
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
51protected:
52 QMenuBar *menuBar() const;
53};
54
55#endif // QACCESSIBLEMENU_H
Note: See TracBrowser for help on using the repository browser.