summaryrefslogtreecommitdiffstats
path: root/plugins/src/accessible/widgets/tqaccessiblemenu.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-08-25 15:36:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-29 22:23:36 +0900
commit0917fbb5387978eb7b2e2fd68bcb6beaa8c46505 (patch)
tree0ef68a6a92087957855c7607ac176821d10d049d /plugins/src/accessible/widgets/tqaccessiblemenu.h
parent7b1d2ad2df8cd011b487c43336aa67639fa359c9 (diff)
downloadtqt-0917fbb5387978eb7b2e2fd68bcb6beaa8c46505.tar.gz
tqt-0917fbb5387978eb7b2e2fd68bcb6beaa8c46505.zip
Rename remaining ntq[a-c]* related files to equivalent tq* (except ntqapplication.h and ntqconfig.h)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'plugins/src/accessible/widgets/tqaccessiblemenu.h')
-rw-r--r--plugins/src/accessible/widgets/tqaccessiblemenu.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/plugins/src/accessible/widgets/tqaccessiblemenu.h b/plugins/src/accessible/widgets/tqaccessiblemenu.h
new file mode 100644
index 000000000..c510cd504
--- /dev/null
+++ b/plugins/src/accessible/widgets/tqaccessiblemenu.h
@@ -0,0 +1,55 @@
+#ifndef TQACCESSIBLEMENU_H
+#define TQACCESSIBLEMENU_H
+
+#include "tqaccessiblewidget.h"
+
+class TQPopupMenu;
+class TQMenuBar;
+
+class TQAccessiblePopup : public TQAccessibleWidget
+{
+public:
+ TQAccessiblePopup( TQObject *o );
+
+ int childCount() const;
+ TQRESULT queryChild( int control, TQAccessibleInterface ** ) const;
+
+ TQRect rect( int control ) const;
+ int controlAt( int x, int y ) const;
+ int navigate( NavDirection direction, int control ) const;
+
+ TQString text( Text t, int control ) const;
+ Role role( int control ) const;
+ State state( int control ) const;
+
+ bool doDefaultAction( int control );
+ bool setFocus( int control );
+
+protected:
+ TQPopupMenu *popupMenu() const;
+};
+
+class TQAccessibleMenuBar : public TQAccessibleWidget
+{
+public:
+ TQAccessibleMenuBar( TQObject *o );
+
+ int childCount() const;
+ TQRESULT queryChild( int control, TQAccessibleInterface ** ) const;
+
+ TQRect rect( int control ) const;
+ int controlAt( int x, int y ) const;
+ int navigate( NavDirection direction, int control ) const;
+
+ TQString text( Text t, int control ) const;
+ Role role( int control ) const;
+ State state( int control ) const;
+
+ bool doDefaultAction( int control );
+ bool setFocus( int control );
+
+protected:
+ TQMenuBar *menuBar() const;
+};
+
+#endif // TQACCESSIBLEMENU_H