qt-at-spi:qt-at-spi.git
6 years agoSwitch to single class handling all DBus. experimental
Frederik Gladhorn [Wed, 16 Mar 2011 10:14:17 +0000 (11:14 +0100)]
Switch to single class handling all DBus.

Currently properties don't get a dbus context,
so this cannot work since we don't know the property of which
object we try to get.

6 years agoRename bridge and adaptor.
Frederik Gladhorn [Tue, 15 Mar 2011 15:34:16 +0000 (16:34 +0100)]
Rename bridge and adaptor.

6 years agoCreate paths according to hierachie.
Frederik Gladhorn [Tue, 15 Mar 2011 13:08:26 +0000 (14:08 +0100)]
Create paths according to hierachie.

6 years agoRename test directory to examples.
Frederik Gladhorn [Tue, 15 Mar 2011 10:12:59 +0000 (11:12 +0100)]
Rename test directory to examples.

6 years agoImplement flat review.
Frederik Gladhorn [Mon, 14 Mar 2011 16:05:04 +0000 (17:05 +0100)]
Implement flat review.

Have a queue of key events and send them depending on the
reply from d-bus.

6 years agoMake application Id read/write property as at-spi2 wants.
Frederik Gladhorn [Mon, 14 Mar 2011 13:34:09 +0000 (14:34 +0100)]
Make application Id read/write property as at-spi2 wants.

6 years agoFix childCount when interface could not be created.
Frederik Gladhorn [Mon, 14 Mar 2011 13:33:28 +0000 (14:33 +0100)]
Fix childCount when interface could not be created.

6 years agoFix register children.
Frederik Gladhorn [Fri, 4 Mar 2011 22:11:40 +0000 (23:11 +0100)]
Fix register children.

Use the getChild function instead of having the same logic in
registerChildren.
Clean up getChild, it doesn't need the interface as paramerter since
it's part of adaptor.
In GetIndexInParent, return the child index, if the object is a child.

6 years agoAdd a combo box.
Frederik Gladhorn [Fri, 4 Mar 2011 22:10:58 +0000 (23:10 +0100)]
Add a combo box.

6 years agoRemove QSpiObject. Don't keep interfaces that might be deleted.
Frederik Gladhorn [Fri, 4 Mar 2011 20:37:21 +0000 (21:37 +0100)]
Remove QSpiObject. Don't keep interfaces that might be deleted.

QSpiObject was not really making sense any more.
The interfaces we get from notifyAccessibilityUpdate are deleted behind
our backs.

6 years agoAdd README.
Frederik Gladhorn [Fri, 4 Mar 2011 09:52:27 +0000 (10:52 +0100)]
Add README.

6 years agoAdd warnings when startig apps without QT_ACCESSIBILITY=1. v0.0.1-alpha
Frederik Gladhorn [Fri, 4 Mar 2011 09:41:32 +0000 (10:41 +0100)]
Add warnings when startig apps without QT_ACCESSIBILITY=1.

6 years agoFix child handling. Cleanup. Use QSpiObjectReference by value.
Frederik Gladhorn [Thu, 3 Mar 2011 16:38:30 +0000 (17:38 +0100)]
Fix child handling. Cleanup. Use QSpiObjectReference by value.

Passing around references of QSpiObjectReference is ugly.
The class could be implemented as shared data class if we want to optimize later.
Give it a default ctor that creates a null reference.

Cleanup some whitespaces.

Fix several instances where we did not refer to the child paremeter.
Fix child count and implement a getChild to properly handle finding of child objects.

Add some more widgets to the simple sample.

6 years agoClean up debug output. ASSERT for table interface.
Frederik Gladhorn [Thu, 3 Mar 2011 12:19:28 +0000 (13:19 +0100)]
Clean up debug output. ASSERT for table interface.

6 years agoCreate Component for widgets or items that have a rect.
Frederik Gladhorn [Wed, 2 Mar 2011 21:54:46 +0000 (22:54 +0100)]
Create Component for widgets or items that have a rect.

6 years agoLeak more QAccessebleInterface objects.
Frederik Gladhorn [Wed, 2 Mar 2011 21:29:50 +0000 (22:29 +0100)]
Leak more QAccessebleInterface objects.

Instead of being crashy leak all QAccessibleInterface objects.
This clearly needs a better solution.
On the plus side menus show up reliably now.

6 years agoDon't assume that all interfaces have QObjects associated.
Frederik Gladhorn [Wed, 2 Mar 2011 21:00:09 +0000 (22:00 +0100)]
Don't assume that all interfaces have QObjects associated.

Before in the hash of a11y objects, we kept only those that had
QAccessibleInterface->object()!=0.

6 years agoAdd shortcut to menu bar.
Frederik Gladhorn [Wed, 2 Mar 2011 20:47:17 +0000 (21:47 +0100)]
Add shortcut to menu bar.

6 years agoMore asserts.
Frederik Gladhorn [Tue, 1 Mar 2011 20:45:07 +0000 (21:45 +0100)]
More asserts.

6 years agoDon't crash on QSpiAdaptor::GetRowHeader.
Frederik Gladhorn [Tue, 1 Mar 2011 20:23:48 +0000 (21:23 +0100)]
Don't crash on QSpiAdaptor::GetRowHeader.

Not implemented for now. The previous code stub just lead to crashing.

6 years agoAdd asserts and fix a few crashes.
Frederik Gladhorn [Tue, 1 Mar 2011 20:16:50 +0000 (21:16 +0100)]
Add asserts and fix a few crashes.

6 years agoAdd a tab bar and make quit button work.
Frederik Gladhorn [Tue, 1 Mar 2011 20:16:29 +0000 (21:16 +0100)]
Add a tab bar and make quit button work.

6 years agoBig refactoring of cache.
Frederik Gladhorn [Tue, 1 Mar 2011 16:51:11 +0000 (17:51 +0100)]
Big refactoring of cache.

The bridge class now takes care of registering interfaces.
The cache is reduced to the dbus cache handling.
Lots of renaming and cleanup.
Menus start to work (not properly updating though).

6 years agoRich text: IA2 does not accept -1 as parameter to GetText.
Frederik Gladhorn [Mon, 28 Feb 2011 12:10:57 +0000 (13:10 +0100)]
Rich text: IA2 does not accept -1 as parameter to GetText.

Add a rich text edit and make it's text visible to atspi.

6 years agoClean up error handling for keylistener.
Frederik Gladhorn [Sun, 27 Feb 2011 23:18:32 +0000 (00:18 +0100)]
Clean up error handling for keylistener.

6 years agoMove Registry->Embed into its own function.
Frederik Gladhorn [Sun, 27 Feb 2011 23:08:39 +0000 (00:08 +0100)]
Move Registry->Embed into its own function.

6 years agoFix stray semicolons.
Frederik Gladhorn [Sun, 27 Feb 2011 23:19:20 +0000 (00:19 +0100)]
Fix stray semicolons.

6 years agoMerge branch 'master' into experimental
Frederik Gladhorn [Sun, 27 Feb 2011 22:29:56 +0000 (23:29 +0100)]
Merge branch 'master' into experimental

Conflicts:
src/application.cpp

6 years agoExperimental GrabFocus.
Frederik Gladhorn [Sun, 27 Feb 2011 22:21:15 +0000 (23:21 +0100)]
Experimental GrabFocus.

Does not raise the window. Need to figure out how this should behave.

6 years agoForgot header file changes. Try to be clever about isText.
Frederik Gladhorn [Sun, 27 Feb 2011 10:01:20 +0000 (11:01 +0100)]
Forgot header file changes. Try to be clever about isText.

6 years agoMake async call for keyboard listeners.
Frederik Gladhorn [Sun, 27 Feb 2011 09:53:13 +0000 (10:53 +0100)]
Make async call for keyboard listeners.

Prepare for not propagating events if the
listener wants to grab them.

6 years agoImplement GetDefaultAttributes with GetDefaultAttributeSet.
Frederik Gladhorn [Sun, 27 Feb 2011 09:48:33 +0000 (10:48 +0100)]
Implement GetDefaultAttributes with GetDefaultAttributeSet.

6 years agoImplement some Text methods, get rid of ugly defines.
Frederik Gladhorn [Sun, 27 Feb 2011 02:05:28 +0000 (03:05 +0100)]
Implement some Text methods, get rid of ugly defines.

GetTextAtOffset and friends need to be implemented inside Qt
for some widgets (eg QLineEdit).
Remove #define ACCESSIBLE_INTERFACE    getInterface()

6 years agoRemove GetNSelections with in parameter.
Frederik Gladhorn [Fri, 25 Feb 2011 15:26:23 +0000 (16:26 +0100)]
Remove GetNSelections with in parameter.

This was just a workaround to test error messages, fixed upstream.

6 years agoMove keyboard handling into QSpiApplication.
Frederik Gladhorn [Fri, 25 Feb 2011 15:24:54 +0000 (16:24 +0100)]
Move keyboard handling into QSpiApplication.

6 years agoRemove old debug output.
Frederik Gladhorn [Fri, 25 Feb 2011 15:09:04 +0000 (16:09 +0100)]
Remove old debug output.

6 years agoImplement DEC, work with Orca a bit.
Frederik Gladhorn [Fri, 25 Feb 2011 15:05:50 +0000 (16:05 +0100)]
Implement DEC, work with Orca a bit.

Pretend to be gail.
Implement Focus handling.
Implement Device Events (keyboard). Block the app on them for now but don't react to the result of the call (todo).
Send all kind of messages on Window-Activated events.
Registry: /org/a11y/atspi/Registry is uppercase
Event filters for keyboard stuff.
Emit the last focused to not have focus any more.
Make Application::Id read-write (write broken, needs to be impl).
Add GetNSelections(int) for now, bug in GNOME impl.
Fix QSpiDeviceEvent struct to have ints in sync with at-spi2.

6 years agoClean includes and rename socket to registry.
Frederik Gladhorn [Tue, 22 Feb 2011 12:18:01 +0000 (13:18 +0100)]
Clean includes and rename socket to registry.

6 years agoClean includes and rename socket to registry.
Frederik Gladhorn [Tue, 22 Feb 2011 12:18:01 +0000 (13:18 +0100)]
Clean includes and rename socket to registry.

6 years agoMove SpiApplication into its own file.
Frederik Gladhorn [Tue, 22 Feb 2011 10:37:59 +0000 (11:37 +0100)]
Move SpiApplication into its own file.

6 years agoRemove unused slot.
Frederik Gladhorn [Tue, 22 Feb 2011 10:30:33 +0000 (11:30 +0100)]
Remove unused slot.

6 years agoRemove unused signal
Frederik Gladhorn [Tue, 22 Feb 2011 10:04:34 +0000 (11:04 +0100)]
Remove unused signal

6 years agoCleanup and small improvements.
Frederik Gladhorn [Tue, 22 Feb 2011 09:56:50 +0000 (10:56 +0100)]
Cleanup and small improvements.

Create the Component Interface only for Widgets.
Send active in addition to focused.
Cleanup whitespaces and camel casing.
Let qSpiStatesetFromQState return a list instead of using a parameter for that.

6 years agoGetState needs to return a UInt list.
Frederik Gladhorn [Thu, 17 Feb 2011 22:56:13 +0000 (23:56 +0100)]
GetState needs to return a UInt list.

6 years agoTry to return the right reference in GetAccessibleAtPoint.
Frederik Gladhorn [Thu, 17 Feb 2011 21:19:46 +0000 (22:19 +0100)]
Try to return the right reference in GetAccessibleAtPoint.

6 years agoFix signatures in Event.xml and make name changes work.
Frederik Gladhorn [Thu, 17 Feb 2011 20:00:36 +0000 (21:00 +0100)]
Fix signatures in Event.xml and make name changes work.

The signature was (suuv) instead of suuv (one extra struct).
With the PropertyChange signal name and description changes work.

6 years agoUpdate gitignore file.
Frederik Gladhorn [Thu, 17 Feb 2011 19:58:44 +0000 (20:58 +0100)]
Update gitignore file.

6 years agoBasic impl of GetIndexInParent.
Frederik Gladhorn [Thu, 17 Feb 2011 15:01:21 +0000 (16:01 +0100)]
Basic impl of GetIndexInParent.

6 years agoDon't crash on children of Complex Widgets.
Frederik Gladhorn [Thu, 17 Feb 2011 14:56:49 +0000 (15:56 +0100)]
Don't crash on children of Complex Widgets.

6 years agoClean up the example dir structure.
Frederik Gladhorn [Thu, 17 Feb 2011 14:32:30 +0000 (15:32 +0100)]
Clean up the example dir structure.

Move calculator example into its own sub dir.
Rename .pro files after directories.

6 years agoDon't crash when showing menus.
Frederik Gladhorn [Wed, 16 Feb 2011 14:30:52 +0000 (15:30 +0100)]
Don't crash when showing menus.

This is not a proper fix but just works around a crash.
Menus seem to have no proper parent currently.

6 years agoOnly emit AddAccessible once.
Frederik Gladhorn [Wed, 16 Feb 2011 14:05:30 +0000 (15:05 +0100)]
Only emit AddAccessible once.

6 years agoImplement ChildrenChanged::add.
Frederik Gladhorn [Wed, 16 Feb 2011 14:04:29 +0000 (15:04 +0100)]
Implement ChildrenChanged::add.

Start to update the client when a new widget is created.

6 years agoRemove comment.
Frederik Gladhorn [Wed, 16 Feb 2011 11:16:41 +0000 (12:16 +0100)]
Remove comment.

6 years agoClean connect and whitespace.
Frederik Gladhorn [Wed, 16 Feb 2011 10:29:52 +0000 (11:29 +0100)]
Clean connect and whitespace.

6 years agoUse uint for AddAccessible.
Frederik Gladhorn [Tue, 15 Feb 2011 20:02:54 +0000 (21:02 +0100)]
Use uint for AddAccessible.

6 years agoWhitespace fixes.
Frederik Gladhorn [Tue, 15 Feb 2011 16:57:39 +0000 (17:57 +0100)]
Whitespace fixes.

6 years agoIn AddAccessible, set the root reference right.
Frederik Gladhorn [Tue, 15 Feb 2011 16:50:06 +0000 (17:50 +0100)]
In AddAccessible, set the root reference right.

6 years agoAnother XML fix: DeSelection/Deselection.
Frederik Gladhorn [Tue, 15 Feb 2011 14:24:24 +0000 (15:24 +0100)]
Another XML fix: DeSelection/Deselection.

6 years agoUse the a11y session bus if available.
Frederik Gladhorn [Thu, 10 Feb 2011 08:11:16 +0000 (09:11 +0100)]
Use the a11y session bus if available.

Query the X root object for the address,
use it if found (instead of the session bus).

6 years agoMerge remote-tracking branch 'fregl/master'
Jeremy Whiting [Wed, 9 Feb 2011 14:43:32 +0000 (07:43 -0700)]
Merge remote-tracking branch 'fregl/master'
Reviewed-by Jeremy Whiting <jpwhiting@kde.org>

6 years agoBuild with Werror.
Frederik Gladhorn [Wed, 9 Feb 2011 09:50:58 +0000 (10:50 +0100)]
Build with Werror.

We are free of warnings, let's keep it that way.

6 years agoCapitalize properties, fix warnings, update generated files.
Frederik Gladhorn [Wed, 9 Feb 2011 09:50:36 +0000 (10:50 +0100)]
Capitalize properties, fix warnings, update generated files.

All properties over D-Bus must be upper case for at-spi2.
Fix warning with Q_UNUSED and use qWarning.
Files that are generated were updated to reflect the xml changes.
Sync XML files with upstream.

6 years agoAdd Registry.xml for the sake of completeness.
Frederik Gladhorn [Wed, 9 Feb 2011 09:36:44 +0000 (10:36 +0100)]
Add Registry.xml for the sake of completeness.

6 years agoWhitespace cleanup.
Frederik Gladhorn [Tue, 8 Feb 2011 20:12:27 +0000 (21:12 +0100)]
Whitespace cleanup.

6 years agoIgnore temp files.
Frederik Gladhorn [Tue, 8 Feb 2011 20:11:28 +0000 (21:11 +0100)]
Ignore temp files.

6 years agoClean indentation.
Frederik Gladhorn [Tue, 8 Feb 2011 18:59:45 +0000 (19:59 +0100)]
Clean indentation.

6 years agoApparently gnome uses NActions currently.
Frederik Gladhorn [Tue, 8 Feb 2011 18:57:19 +0000 (19:57 +0100)]
Apparently gnome uses NActions currently.

Need to verify which is wrong, xml or their implementation.

6 years agoAdd warnings for not implemented marshallers.
Frederik Gladhorn [Tue, 8 Feb 2011 18:55:57 +0000 (19:55 +0100)]
Add warnings for not implemented marshallers.

6 years agoLet Component have QSpiAdaptor as parent.
Frederik Gladhorn [Tue, 8 Feb 2011 17:09:15 +0000 (18:09 +0100)]
Let Component have QSpiAdaptor as parent.

6 years agoClean up role and localized role name mappings.
Frederik Gladhorn [Tue, 8 Feb 2011 15:09:13 +0000 (16:09 +0100)]
Clean up role and localized role name mappings.

While not perfect at least there should be less arbitrary
role enum/string/localized string mappings now.

6 years agoGenerate Text and Table with parent.
Frederik Gladhorn [Tue, 8 Feb 2011 09:37:40 +0000 (10:37 +0100)]
Generate Text and Table with parent.

The generation of these files with QSpiAdaptor as parent
makes it much easier to implement them since they will simply
call the function of QSpiAdaptor. This is easier than the other
boilerplate which uses QMetaObject::invokeMethod and does not
create implementations for all functions.

6 years agoThe type and annotation for GetDefaultAttributeSet was wrong.
Frederik Gladhorn [Tue, 8 Feb 2011 09:37:07 +0000 (10:37 +0100)]
The type and annotation for GetDefaultAttributeSet was wrong.

6 years agoAdd patch to make maintenance of hand edited parts easier.
Frederik Gladhorn [Tue, 8 Feb 2011 09:35:59 +0000 (10:35 +0100)]
Add patch to make maintenance of hand edited parts easier.

Since parent exists in at-spi and qobject, we need to rename one of them.

6 years agoDynamically created buttons to test adding of children.
Frederik Gladhorn [Sat, 5 Feb 2011 13:06:07 +0000 (14:06 +0100)]
Dynamically created buttons to test adding of children.

6 years agoAdd a mapping to localized role names.
Frederik Gladhorn [Fri, 4 Feb 2011 18:59:00 +0000 (19:59 +0100)]
Add a mapping to localized role names.

6 years agoSet app name and remove empty toolbar.
Frederik Gladhorn [Fri, 4 Feb 2011 18:57:26 +0000 (19:57 +0100)]
Set app name and remove empty toolbar.

Toolbar is currently broken, needs to be fixed.
Menu as well.
Pending patch in Qt, we should probably take QApplication::applicationName as
name if no active window title can be found.

6 years agoGet rid of this-> pointers. Cleanup.
Frederik Gladhorn [Fri, 4 Feb 2011 16:47:24 +0000 (17:47 +0100)]
Get rid of this-> pointers. Cleanup.

6 years agoAdd another example app.
Frederik Gladhorn [Fri, 4 Feb 2011 16:45:18 +0000 (17:45 +0100)]
Add another example app.

6 years agoMore cleanup and moving things around.
Frederik Gladhorn [Fri, 4 Feb 2011 14:53:41 +0000 (15:53 +0100)]
More cleanup and moving things around.

6 years agoAdd .gitignore file for temp files.
Frederik Gladhorn [Fri, 4 Feb 2011 14:41:00 +0000 (15:41 +0100)]
Add .gitignore file for temp files.

6 years agoAdd comments for role enum values
Frederik Gladhorn [Thu, 3 Feb 2011 20:02:53 +0000 (21:02 +0100)]
Add comments for role enum values

6 years agoPrepare for ChildrenChanged implementation.
Frederik Gladhorn [Thu, 3 Feb 2011 13:05:23 +0000 (14:05 +0100)]
Prepare for ChildrenChanged implementation.

Set object names in example for easier debugging.
Add debug output.

6 years agoMake the code more readable, put plugin parts into own files.
Frederik Gladhorn [Wed, 2 Feb 2011 15:32:05 +0000 (16:32 +0100)]
Make the code more readable, put plugin parts into own files.

6 years agoCleanup some stubs and qdebugs, disable event filter for now.
Frederik Gladhorn [Tue, 1 Feb 2011 14:40:23 +0000 (15:40 +0100)]
Cleanup some stubs and qdebugs, disable event filter for now.

I'm not sure what the global event filter was/is supposed to do.

7 years agoRegister QSpiObjectReferenceArray as a metatype so GetChildren can return via dbus.
Jeremy Whiting [Sat, 7 Aug 2010 20:47:21 +0000 (14:47 -0600)]
Register QSpiObjectReferenceArray as a metatype so GetChildren can return via dbus.

7 years agoAdded GetChildren method to adaptor class, it doesn't work though neither does GetChi...
Jeremy Whiting [Tue, 27 Jul 2010 23:30:03 +0000 (17:30 -0600)]
Added GetChildren method to adaptor class, it doesn't work though neither does GetChildAtIndex

7 years agoUpdate our copy of xml/Accessible.xml to sync with at-spi2-core
Jeremy Whiting [Tue, 27 Jul 2010 23:29:05 +0000 (17:29 -0600)]
Update our copy of xml/Accessible.xml to sync with at-spi2-core

7 years agoAdd Q_OBJECT macro to QSpiAdaptor so subclass meta objects will be correct.
Jeremy Whiting [Sat, 7 Aug 2010 17:53:43 +0000 (11:53 -0600)]
Add Q_OBJECT macro to QSpiAdaptor so subclass meta objects will be correct.
  * Fixes many failed calls to invokeMethod in accessible_adaptor.cpp.

7 years agoFix a typo in README.markdown
Jeremy Whiting [Sun, 11 Jul 2010 13:12:28 +0000 (07:12 -0600)]
Fix a typo in README.markdown
Add an initial TODO file with some observations/questions

7 years agoAdd some very brief technical documentation, a very rough overview
Mark Doffman [Sat, 12 Jun 2010 13:37:20 +0000 (14:37 +0100)]
Add some very brief technical documentation, a very rough overview
of the code structure and a UML diagram of the core classes.

7 years agoPartial refactoring to move to latest (Since 0.1.6) AT-SPI2 protocol
Mark Doffman [Thu, 11 Feb 2010 12:06:45 +0000 (04:06 -0800)]
Partial refactoring to move to latest (Since 0.1.6) AT-SPI2 protocol

7 years agoChange method names to comply with D-Bus specifications.
Mark Doffman [Thu, 3 Dec 2009 13:22:11 +0000 (05:22 -0800)]
Change method names to comply with D-Bus specifications.

8 years agoAdd function for getting supported interfaces when not using caching.
mdoff [Wed, 21 Oct 2009 11:38:41 +0000 (04:38 -0700)]
Add function for getting supported interfaces when not using caching.

8 years agoAdd marshaller initialization functions for the D-Bus proxies.
Mark Doffman [Thu, 16 Jul 2009 10:44:44 +0000 (11:44 +0100)]
Add marshaller initialization functions for the D-Bus proxies.

8 years agoAdd key event forwarding.
Mark Doffman [Thu, 18 Jun 2009 09:28:20 +0000 (10:28 +0100)]
Add key event forwarding.

8 years agoFix problems with mapping the states. The normal state
Mark Doffman [Wed, 17 Jun 2009 09:51:53 +0000 (10:51 +0100)]
Fix problems with mapping the states. The normal state
conversions were repeated causing unsets to be wiped out.

Fix a memory leak in the getParentPath function.

8 years agoUpdate role mappings.
Mark Doffman [Wed, 3 Jun 2009 10:22:19 +0000 (11:22 +0100)]
Update role mappings.

8 years agoFix problem where Accessible interface was
Mark Doffman [Wed, 3 Jun 2009 09:22:57 +0000 (10:22 +0100)]
Fix problem where Accessible interface was
deleted while a reference was still held.

8 years agoImprove the registering of objects using tree navigation
Mark Doffman [Tue, 2 Jun 2009 15:50:07 +0000 (16:50 +0100)]
Improve the registering of objects using tree navigation
rather than 'queryAccessible'.

Add window-relative coordinates to the component adaptor.