-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ver 1.2.9 - TLazAccessibleObject accessibility
- Loading branch information
David Bannon
committed
Apr 6, 2021
1 parent
2e64251
commit 5121bab
Showing
13 changed files
with
664 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
libqt5pas (1.2.9) unstable; urgency=medium | ||
|
||
* TLazAccessibleObject accessinility functionality for Qt5 widgetsets | ||
|
||
-- David Bannon <[email protected]> Tue, 06 Apr 2021 18:29:02 +1100 | ||
|
||
libqt5pas (1.2.8) unstable; urgency=medium | ||
|
||
* Calling this version 1.2.8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
unit qt5; | ||
|
||
{ Version : 2.6Beta , no, 2.8 for clarity } | ||
{ Version : 2.6Beta } | ||
|
||
{$mode objfpc}{$H+} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
//****************************************************************************** | ||
// Copyright (c) 2005-2013 by Jan Van hijfte | ||
// | ||
// See the included file COPYING.TXT for details about the copyright. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
//****************************************************************************** | ||
|
||
|
||
#include "qaccessible_c.h" | ||
|
||
QAccessibleInterfaceH QAccessible_accessibleInterface(QAccessibleId uniqueId) | ||
{ | ||
return (QAccessibleInterfaceH) QAccessible::accessibleInterface(uniqueId); | ||
} | ||
|
||
void QAccessible_deleteAccessibleInterface(QAccessibleId uniqueId) | ||
{ | ||
QAccessible::deleteAccessibleInterface(uniqueId); | ||
} | ||
|
||
void QAccessible_installFactory(InterfaceFactory factory) | ||
{ | ||
QAccessible::installFactory(factory); | ||
} | ||
|
||
bool QAccessible_isActive() | ||
{ | ||
return QAccessible::isActive(); | ||
} | ||
|
||
QAccessibleInterfaceH QAccessible_queryAccessibleInterface(QObjectH object_) | ||
{ | ||
return (QAccessibleInterfaceH) QAccessible::queryAccessibleInterface((QObject *)object_); | ||
} | ||
|
||
QAccessibleId QAccessible_registerAccessibleInterface(QAccessibleInterfaceH iface) | ||
{ | ||
return (QAccessibleId) QAccessible::registerAccessibleInterface((QAccessibleInterface *)iface); | ||
} | ||
|
||
void QAccessible_removeFactory(InterfaceFactory factory) | ||
{ | ||
QAccessible::removeFactory(factory); | ||
} | ||
|
||
void QAccessible_setRootObject(QObjectH object_) | ||
{ | ||
QAccessible::setRootObject((QObject *)object_); | ||
} | ||
|
||
QAccessibleId QAccessible_uniqueId(QAccessibleInterfaceH iface) | ||
{ | ||
return (QAccessibleId) QAccessible::uniqueId((QAccessibleInterface *)iface); | ||
} | ||
|
||
void QAccessible_updateAccessibility(QAccessibleEventH event) | ||
{ | ||
QAccessible::updateAccessibility((QAccessibleEvent *)event); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//****************************************************************************** | ||
// Copyright (c) 2005-2013 by Jan Van hijfte | ||
// | ||
// See the included file COPYING.TXT for details about the copyright. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
//****************************************************************************** | ||
|
||
|
||
#ifndef QACCESSIBLE_C_H | ||
#define QACCESSIBLE_C_H | ||
|
||
#include <QtWidgets> | ||
#include "pascalbind.h" | ||
|
||
typedef unsigned QAccessibleId; | ||
typedef QAccessibleInterface*(*InterfaceFactory)(const QString &key, QObject*); | ||
|
||
C_EXPORT QAccessibleInterfaceH QAccessible_accessibleInterface(QAccessibleId uniqueId); | ||
C_EXPORT void QAccessible_deleteAccessibleInterface(QAccessibleId uniqueId); | ||
C_EXPORT void QAccessible_installFactory(InterfaceFactory factory); | ||
C_EXPORT bool QAccessible_isActive(); | ||
C_EXPORT QAccessibleInterfaceH QAccessible_queryAccessibleInterface(QObjectH object_); | ||
C_EXPORT QAccessibleId QAccessible_registerAccessibleInterface(QAccessibleInterfaceH iface); | ||
C_EXPORT void QAccessible_removeFactory(InterfaceFactory factory); | ||
C_EXPORT void QAccessible_setRootObject(QObjectH object_); | ||
C_EXPORT QAccessibleId QAccessible_uniqueId(QAccessibleInterfaceH iface); | ||
C_EXPORT void QAccessible_updateAccessibility(QAccessibleEvent event); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
//****************************************************************************** | ||
// Copyright (c) 2005-2013 by Jan Van hijfte | ||
// | ||
// See the included file COPYING.TXT for details about the copyright. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
//****************************************************************************** | ||
|
||
|
||
#include "qaccessiblewidget_c.h" | ||
|
||
|
||
|
||
QAccessibleWidgetH QAccessibleWidget_Create(QWidgetH o, QAccessible::Role r, PWideString name) | ||
{ | ||
QString t_name; | ||
copyPWideStringToQString(name, t_name); | ||
return (QAccessibleWidgetH) new QAccessibleWidget((QWidget*)o, r, t_name); | ||
} | ||
|
||
bool QAccessibleWidget_isValid(QAccessibleWidgetH handle) | ||
{ | ||
return (bool) ((QAccessibleWidget *)handle)->isValid(); | ||
} | ||
|
||
QWindowH QAccessibleWidget_window(QAccessibleWidgetH handle) | ||
{ | ||
return (QWindowH) ((QAccessibleWidget *)handle)->window(); | ||
} | ||
|
||
int QAccessibleWidget_childCount(QAccessibleWidgetH handle) | ||
{ | ||
return (int) ((QAccessibleWidget *)handle)->childCount(); | ||
} | ||
|
||
int QAccessibleWidget_indexOfChild(QAccessibleWidgetH handle, const QAccessibleInterfaceH child) | ||
{ | ||
return (int) ((QAccessibleWidget *)handle)->indexOfChild((QAccessibleInterface*)child); | ||
} | ||
|
||
QAccessibleInterfaceH QAccessibleWidget_focusChild(QAccessibleWidgetH handle) | ||
{ | ||
return (QAccessibleInterfaceH) ((QAccessibleWidget *)handle)->focusChild(); | ||
} | ||
|
||
void QAccessibleWidget_rect(QAccessibleWidgetH handle, PRect retval) | ||
{ | ||
QRect t_retval; | ||
t_retval = ((QAccessibleWidget *)handle)->rect(); | ||
copyQRectToPRect(t_retval, retval); | ||
} | ||
|
||
QAccessibleInterfaceH QAccessibleWidget_parent(QAccessibleWidgetH handle) | ||
{ | ||
return (QAccessibleInterfaceH) ((QAccessibleWidget *)handle)->parent(); | ||
} | ||
|
||
QAccessibleInterfaceH QAccessibleWidget_child(QAccessibleWidgetH handle, int index) | ||
{ | ||
return (QAccessibleInterfaceH) ((QAccessibleWidget *)handle)->child(index); | ||
} | ||
|
||
void QAccessibleWidget_text(QAccessibleWidgetH handle, PWideString retval, QAccessible::Text t) | ||
{ | ||
QString t_retval; | ||
t_retval = ((QAccessibleWidget *)handle)->text(t); | ||
copyQStringToPWideString(t_retval, retval); | ||
} | ||
|
||
QAccessible::Role QAccessibleWidget_role(QAccessibleWidgetH handle) | ||
{ | ||
return (QAccessible::Role) ((QAccessibleWidget *)handle)->role(); | ||
} | ||
|
||
QAccessible::State QAccessibleWidget_state(QAccessibleWidgetH handle) | ||
{ | ||
return (QAccessible::State) ((QAccessibleWidget *)handle)->state(); | ||
} | ||
|
||
void QAccessibleWidget_actionNames(QAccessibleWidgetH handle, QStringListH retval) | ||
{ | ||
*(QStringList *)retval = ((QAccessibleWidget *)handle)->actionNames(); | ||
} | ||
|
||
void QAccessibleWidget_doAction(QAccessibleWidgetH handle, PWideString actionName) | ||
{ | ||
QString t_actionName; | ||
copyPWideStringToQString(actionName, t_actionName); | ||
((QAccessibleWidget *)handle)->doAction(t_actionName); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
//****************************************************************************** | ||
// Copyright (c) 2005-2013 by Jan Van hijfte | ||
// | ||
// See the included file COPYING.TXT for details about the copyright. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
//****************************************************************************** | ||
|
||
|
||
#ifndef QACCESSIBLEWIDGET_C_H | ||
#define QACCESSIBLEWIDGET_C_H | ||
|
||
// QAccessible::Role | ||
// - | ||
// QAccessible::State | ||
// - | ||
// QAccessible::Text | ||
// - | ||
|
||
#include <QtWidgets> | ||
#include "pascalbind.h" | ||
|
||
C_EXPORT QAccessibleWidgetH QAccessibleWidget_Create(QWidgetH o, QAccessible::Role r, PWideString name); | ||
C_EXPORT bool QAccessibleWidget_isValid(QAccessibleWidgetH handle); | ||
C_EXPORT QWindowH QAccessibleWidget_window(QAccessibleWidgetH handle); | ||
C_EXPORT int QAccessibleWidget_childCount(QAccessibleWidgetH handle); | ||
C_EXPORT int QAccessibleWidget_indexOfChild(QAccessibleWidgetH handle, const QAccessibleInterfaceH child); | ||
C_EXPORT QAccessibleInterfaceH QAccessibleWidget_focusChild(QAccessibleWidgetH handle); | ||
C_EXPORT void QAccessibleWidget_rect(QAccessibleWidgetH handle, PRect retval); | ||
C_EXPORT QAccessibleInterfaceH QAccessibleWidget_parent(QAccessibleWidgetH handle); | ||
C_EXPORT QAccessibleInterfaceH QAccessibleWidget_child(QAccessibleWidgetH handle, int index); | ||
C_EXPORT void QAccessibleWidget_text(QAccessibleWidgetH handle, PWideString retval, QAccessible::Text t); | ||
C_EXPORT QAccessible::Role QAccessibleWidget_role(QAccessibleWidgetH handle); | ||
C_EXPORT QAccessible::State QAccessibleWidget_state(QAccessibleWidgetH handle); | ||
C_EXPORT void QAccessibleWidget_actionNames(QAccessibleWidgetH handle, QStringListH retval); | ||
C_EXPORT void QAccessibleWidget_doAction(QAccessibleWidgetH handle, PWideString actionName); | ||
|
||
|
||
#endif |
Oops, something went wrong.