qt-at-spi:qt-at-spi.git
6 years agoAdd at-spi2 setup to readme. v0.0.2-alpha
Frederik Gladhorn [Wed, 18 May 2011 19:01:03 +0000 (21:01 +0200)]
Add at-spi2 setup to readme.

6 years agoFix license header to LGPL2.1 with proper address.
Frederik Gladhorn [Wed, 18 May 2011 17:30:22 +0000 (19:30 +0200)]
Fix license header to LGPL2.1 with proper address.

6 years agoAdded text in color to Simple example
José Millán Soto [Fri, 13 May 2011 17:15:56 +0000 (19:15 +0200)]
Added text in color to Simple example

6 years agoRemoved startOffsetCopy and endOffsetCopy in QSpiAdaptor::GetAttributeValue
José Millán Soto [Fri, 13 May 2011 17:14:46 +0000 (19:14 +0200)]
Removed startOffsetCopy and endOffsetCopy in QSpiAdaptor::GetAttributeValue

6 years agoImproved QSpiAdaptor::GetAttributes
José Millán Soto [Fri, 13 May 2011 11:45:48 +0000 (13:45 +0200)]
Improved QSpiAdaptor::GetAttributes

Removed variables endOffsetCopy and startOffsetCopy
startOffset set correctly
using const QString & instead of QString for iterating through attributes

6 years agoReduce usage of the horrible pseudo singleton.
Frederik Gladhorn [Fri, 13 May 2011 10:09:43 +0000 (12:09 +0200)]
Reduce usage of the horrible pseudo singleton.

6 years agoClean up destructors.
Frederik Gladhorn [Fri, 13 May 2011 05:34:27 +0000 (07:34 +0200)]
Clean up destructors.

Cache doesn't need a vtable.
Remove extra semicolon.

6 years agoAdd editable combo box and buddies.
Frederik Gladhorn [Wed, 11 May 2011 18:16:49 +0000 (20:16 +0200)]
Add editable combo box and buddies.

6 years agoImproved QSpiAdaptor::GetRelationSet
José Millán Soto [Thu, 12 May 2011 16:26:35 +0000 (18:26 +0200)]
Improved QSpiAdaptor::GetRelationSet

The following relations are checked: Label, Labelled, Controller and Controlled
Simple example modified so the line edit in the "Line Edit" tab has a label marked
as buddy widget.

6 years agoAdded dependency: at-spi2-core
José Millán Soto [Thu, 12 May 2011 15:24:04 +0000 (17:24 +0200)]
Added dependency: at-spi2-core

6 years agoImplemented QSpiAdaptor::GetRelationSet()
José Millán Soto [Wed, 11 May 2011 14:29:33 +0000 (16:29 +0200)]
Implemented QSpiAdaptor::GetRelationSet()

6 years agoChecking in QSpiAdaptor::AddSelection if selection count has changed
José Millán Soto [Wed, 11 May 2011 13:55:38 +0000 (15:55 +0200)]
Checking in QSpiAdaptor::AddSelection if selection count has changed

6 years agoClean up the test main window.
Frederik Gladhorn [Wed, 11 May 2011 17:07:47 +0000 (19:07 +0200)]
Clean up the test main window.

6 years agoChange translated roles for text and editable text to be in line with ATK.
Frederik Gladhorn [Wed, 11 May 2011 16:31:07 +0000 (18:31 +0200)]
Change translated roles for text and editable text to be in line with ATK.

6 years agoAdd table contents and more menus to example.
Frederik Gladhorn [Wed, 11 May 2011 16:16:35 +0000 (18:16 +0200)]
Add table contents and more menus to example.

6 years agoFiller should report filler as name.
Frederik Gladhorn [Wed, 11 May 2011 16:14:08 +0000 (18:14 +0200)]
Filler should report filler as name.

6 years agoModified tst_QtAtSpi::testLineEdit
José Millán Soto [Wed, 11 May 2011 09:12:50 +0000 (11:12 +0200)]
Modified tst_QtAtSpi::testLineEdit

Testing caret and selection

6 years agoAdded tst_QtAtSpi::testLineEdit()
José Millán Soto [Tue, 10 May 2011 14:51:27 +0000 (16:51 +0200)]
Added tst_QtAtSpi::testLineEdit()

6 years agoCorrected bug in AccessibleTestWindow::clearChildren
José Millán Soto [Tue, 10 May 2011 14:44:53 +0000 (16:44 +0200)]
Corrected bug in AccessibleTestWindow::clearChildren

qDeleteAll(children()) did also delete the layer, so future calls to
addChilren would make the application crash.
Now a new layer is created and the old one and its children are deleted.

6 years agoCorrected bug in QSpiAdaptor::InsertText
José Millán Soto [Tue, 10 May 2011 14:36:27 +0000 (16:36 +0200)]
Corrected bug in QSpiAdaptor::InsertText

Using resized text instead of the original one

6 years agoMerge branch 'master' of gitorious.org:qt-at-spi/qt-at-spi
José Millán Soto [Tue, 10 May 2011 13:50:10 +0000 (15:50 +0200)]
Merge branch 'master' of gitorious.org:qt-at-spi/qt-at-spi

6 years agoFixed memory leak in tst_qt-atspi.cpp
José Millán Soto [Tue, 10 May 2011 13:40:35 +0000 (15:40 +0200)]
Fixed memory leak in tst_qt-atspi.cpp

6 years agoTest Label.
Frederik Gladhorn [Tue, 10 May 2011 13:30:24 +0000 (15:30 +0200)]
Test Label.

6 years agoRemove printf that was used by unit test to get dbus address.
Frederik Gladhorn [Tue, 10 May 2011 13:25:49 +0000 (15:25 +0200)]
Remove printf that was used by unit test to get dbus address.

6 years agoRestructure unit test.
Frederik Gladhorn [Tue, 10 May 2011 13:15:21 +0000 (15:15 +0200)]
Restructure unit test.

Before we relied on an external application to run
for the test. This makes the test self-contained.
We now can easily test the implementations for
individual widgets using the full dbus round trip.

6 years agoImprove finding interfaces for some objects.
Frederik Gladhorn [Mon, 9 May 2011 23:53:05 +0000 (01:53 +0200)]
Improve finding interfaces for some objects.

Menus for example would sometimes not be found correctly because in a multi map
the constFind only returns the last inserted item.
This improves menu handling slightly.

6 years agoMerge remote branch 'upstream/master' into rangeextents 3
José Millán Soto [Mon, 9 May 2011 17:24:32 +0000 (19:24 +0200)]
Merge remote branch 'upstream/master' into rangeextents

6 years agoMerge branch 'text-events'
Frederik Gladhorn [Sun, 1 May 2011 23:16:17 +0000 (01:16 +0200)]
Merge branch 'text-events'

6 years agoCompile with Qt 4.7 and 4.8.
Frederik Gladhorn [Sun, 1 May 2011 22:31:36 +0000 (00:31 +0200)]
Compile with Qt 4.7 and 4.8.

ifdef of TextUpdated which was added in Qt 4.8.

6 years agoInstead of iterating though children, use childAt to find items at a certain position.
Frederik Gladhorn [Fri, 15 Apr 2011 13:52:04 +0000 (15:52 +0200)]
Instead of iterating though children, use childAt to find items at a certain position.

6 years agoAdd state for QAccessible::SingleLine.
Frederik Gladhorn [Tue, 26 Apr 2011 15:27:39 +0000 (17:27 +0200)]
Add state for QAccessible::SingleLine.

6 years agoImplement TextChanged.
Frederik Gladhorn [Tue, 26 Apr 2011 15:06:47 +0000 (17:06 +0200)]
Implement TextChanged.

This depends on Qt having the IA2 events.

6 years agoStart relations implementation.
Frederik Gladhorn [Tue, 26 Apr 2011 15:28:20 +0000 (17:28 +0200)]
Start relations implementation.

6 years agoRemove unneded temporary var.
Frederik Gladhorn [Tue, 26 Apr 2011 15:25:22 +0000 (17:25 +0200)]
Remove unneded temporary var.

6 years agoAdd more key names. Dont assert on missed keyboard events due to dbus.
Frederik Gladhorn [Tue, 26 Apr 2011 15:18:30 +0000 (17:18 +0200)]
Add more key names. Dont assert on missed keyboard events due to dbus.

6 years agoQSpiAdaptor::GetSelection if no selection return cursor position.
Frederik Gladhorn [Tue, 26 Apr 2011 15:17:18 +0000 (17:17 +0200)]
QSpiAdaptor::GetSelection if no selection return cursor position.

6 years agoQSpiAdaptor::GetAttributes return right offsets.
Frederik Gladhorn [Tue, 26 Apr 2011 15:16:23 +0000 (17:16 +0200)]
QSpiAdaptor::GetAttributes return right offsets.

6 years agoFix QSpiAdaptor::characterCount.
Frederik Gladhorn [Tue, 26 Apr 2011 15:15:36 +0000 (17:15 +0200)]
Fix QSpiAdaptor::characterCount.

6 years agoRemove warning, add comment about p2p.
Frederik Gladhorn [Tue, 26 Apr 2011 15:11:39 +0000 (17:11 +0200)]
Remove warning, add comment about p2p.

6 years agoAdd missing virtual destructors.
Jeremy Whiting [Tue, 19 Apr 2011 13:40:58 +0000 (07:40 -0600)]
Add missing virtual destructors.

6 years agoIgnore updates until root has been set.
Frederik Gladhorn [Wed, 13 Apr 2011 12:40:34 +0000 (14:40 +0200)]
Ignore updates until root has been set.

Wait until initialization is finished, some objects don't have
proper parents otherwise.

6 years agoSet Manages Descendants on everything that has the table interface for now.
Frederik Gladhorn [Fri, 8 Apr 2011 15:52:53 +0000 (17:52 +0200)]
Set Manages Descendants on everything that has the table interface for now.

6 years agoMake some functions const.
Frederik Gladhorn [Fri, 8 Apr 2011 15:43:33 +0000 (17:43 +0200)]
Make some functions const.

6 years agoImprove state handling. Rename QSpiAccessibleCacheItem.state to states.
Frederik Gladhorn [Fri, 8 Apr 2011 15:42:50 +0000 (17:42 +0200)]
Improve state handling. Rename QSpiAccessibleCacheItem.state to states.

6 years agoBe more careful when accessing table cells.
Frederik Gladhorn [Fri, 8 Apr 2011 15:28:13 +0000 (17:28 +0200)]
Be more careful when accessing table cells.

6 years agoFallback for qobjects where queryAccessibleInterface returns 0
Frederik Gladhorn [Tue, 5 Apr 2011 14:10:43 +0000 (16:10 +0200)]
Fallback for qobjects where queryAccessibleInterface returns 0

For QAction queryAccessibleInterface will always return 0 since the
parent cannot be determined. Instead navigate to the parent and
ask for a child interface.

6 years agoRemove redundant define QT_ACCESSIBILITY.
Frederik Gladhorn [Mon, 4 Apr 2011 14:00:14 +0000 (16:00 +0200)]
Remove redundant define QT_ACCESSIBILITY.

6 years agoRemove assert. Warning has to be enough.
Frederik Gladhorn [Fri, 1 Apr 2011 14:42:13 +0000 (16:42 +0200)]
Remove assert. Warning has to be enough.

This can crash menus when no AT is running.

6 years agoImplement the basics for Application::GetApplicationBusAddress.
Frederik Gladhorn [Fri, 1 Apr 2011 14:39:38 +0000 (16:39 +0200)]
Implement the basics for Application::GetApplicationBusAddress.

Still needs to return the right string. Not sure where to get it atm.

6 years agoExtend the example to inclue lists.
Frederik Gladhorn [Fri, 1 Apr 2011 12:55:53 +0000 (14:55 +0200)]
Extend the example to inclue lists.

6 years agogit ignore temp files.
Frederik Gladhorn [Thu, 31 Mar 2011 14:37:00 +0000 (16:37 +0200)]
git ignore temp files.

6 years agoSet App name.
Frederik Gladhorn [Thu, 31 Mar 2011 14:30:32 +0000 (16:30 +0200)]
Set App name.

6 years agoFix order of interface removal.
Frederik Gladhorn [Tue, 29 Mar 2011 13:53:39 +0000 (15:53 +0200)]
Fix order of interface removal.

6 years agoAdd comment, remove extra space.
Frederik Gladhorn [Tue, 29 Mar 2011 13:51:30 +0000 (15:51 +0200)]
Add comment, remove extra space.

6 years agoFix memleak (queryAccessibleInterface).
Frederik Gladhorn [Tue, 29 Mar 2011 11:07:36 +0000 (13:07 +0200)]
Fix memleak (queryAccessibleInterface).

6 years agoDo not test hardcoded paths for now. Start menu test.
Frederik Gladhorn [Fri, 25 Mar 2011 19:08:38 +0000 (20:08 +0100)]
Do not test hardcoded paths for now. Start menu test.

6 years agoDelete dead interfaces.
Frederik Gladhorn [Fri, 25 Mar 2011 19:06:44 +0000 (20:06 +0100)]
Delete dead interfaces.

When we get a dbus call, check if the interface is valid.

6 years agoWatch for object destruction.
Frederik Gladhorn [Fri, 25 Mar 2011 18:01:05 +0000 (19:01 +0100)]
Watch for object destruction.

It seems the only way we get notified of invalid interfaces is by
checking for QObject::destroyed.
Still needs removal of children.

6 years agoImprove GetAccessibleAtPoint.
Frederik Gladhorn [Fri, 25 Mar 2011 14:07:10 +0000 (15:07 +0100)]
Improve GetAccessibleAtPoint.

Return a child if there is one at the position.
Menus would return the menubar instead of the child item.

Remove some clutter.

6 years agoChecked state; use right childIndex for state.
Frederik Gladhorn [Fri, 25 Mar 2011 12:24:17 +0000 (13:24 +0100)]
Checked state; use right childIndex for state.

Make checkboxes and friends emit checked state.
State should also take into account it's actual childIndex in the interface.

6 years agoUse GetChildren for cache item, fix recursion issues. unit-test2
Frederik Gladhorn [Thu, 24 Mar 2011 16:30:32 +0000 (17:30 +0100)]
Use GetChildren for cache item, fix recursion issues.

We used to simply ask for as many children as the interface had.
That would result in some items (complex widgets) to return themselves in the list of children.

6 years agoOrder QSpiAccessibleCacheItem according to dbus structure.
Frederik Gladhorn [Thu, 24 Mar 2011 16:29:38 +0000 (17:29 +0100)]
Order QSpiAccessibleCacheItem according to dbus structure.

6 years agoRemove registerChildren function.
Frederik Gladhorn [Thu, 24 Mar 2011 16:22:00 +0000 (17:22 +0100)]
Remove registerChildren function.

This is only wasting startup time.
If a client queries our accessibility tree,
the children have to be discovered anyway, but we don't need
to always do that on startup.

6 years agoImplemented QSpiAdaptor::GetRangeExtents
José Millán Soto [Thu, 24 Mar 2011 13:09:19 +0000 (14:09 +0100)]
Implemented QSpiAdaptor::GetRangeExtents

6 years agoFix wrong initialization.
Frederik Gladhorn [Tue, 22 Mar 2011 21:03:30 +0000 (22:03 +0100)]
Fix wrong initialization.

6 years agoUnit test: find dbus and extend.
Frederik Gladhorn [Tue, 22 Mar 2011 11:57:24 +0000 (12:57 +0100)]
Unit test: find dbus and extend.

6 years agoClean up use of dbus connection. Extend test.
Frederik Gladhorn [Wed, 16 Mar 2011 16:14:41 +0000 (17:14 +0100)]
Clean up use of dbus connection. Extend test.

Make the unit test actually do something :)

6 years agoUnit test: start checking the dbus interface.
Frederik Gladhorn [Tue, 15 Mar 2011 10:14:28 +0000 (11:14 +0100)]
Unit test: start checking the dbus interface.

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 agoImplemented QSpiAdaptor::GetCharacterExtents 2
José Millán Soto [Wed, 9 Mar 2011 02:28:49 +0000 (03:28 +0100)]
Implemented QSpiAdaptor::GetCharacterExtents

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.