qt-at-spi:qt-at-spi.git
6 years agoDon't assert on creation of some accessibles.
Frederik Gladhorn [Fri, 17 Jun 2011 09:52:29 +0000 (02:52 -0700)]
Don't assert on creation of some accessibles.

For now this crashes for itemviews since they lazily create their children.
This needs a proper fix but makes testing hard and crashy at the moment.

6 years agoAdd licensing file
Didier Roche [Mon, 20 Jun 2011 09:04:35 +0000 (11:04 +0200)]
Add licensing file

6 years agoProperly give child paths without initializing the child accessibles.
Frederik Gladhorn [Wed, 8 Jun 2011 18:10:06 +0000 (20:10 +0200)]
Properly give child paths without initializing the child accessibles.

6 years agoManage objects in one hash, path to object.
Frederik Gladhorn [Mon, 6 Jun 2011 23:15:01 +0000 (16:15 -0700)]
Manage objects in one hash, path to object.

Before there was a difference made between objects with children and others.

6 years agoChanged method name: setCurrentValue to SetCurrentValue
José Millán Soto [Mon, 13 Jun 2011 13:49:53 +0000 (15:49 +0200)]
Changed method name: setCurrentValue to SetCurrentValue

Changed method name in order to make it work with the current version
of at-spi2-core
See https://bugzilla.gnome.org/show_bug.cgi?id=652596

6 years agoCreated new test: testTextEdit()
José Millán Soto [Wed, 1 Jun 2011 01:25:30 +0000 (03:25 +0200)]
Created new test: testTextEdit()

6 years agoFix path for items with child id > 0.
Frederik Gladhorn [Mon, 6 Jun 2011 19:42:14 +0000 (12:42 -0700)]
Fix path for items with child id > 0.

Move creation of dbus path into its own function.
Append the index when we get one.

6 years agoMerge branch 'pointer-as-path'
Frederik Gladhorn [Sun, 5 Jun 2011 18:56:59 +0000 (11:56 -0700)]
Merge branch 'pointer-as-path'

6 years agoBegin testing lists.
Frederik Gladhorn [Sun, 5 Jun 2011 18:45:54 +0000 (11:45 -0700)]
Begin testing lists.

6 years agoDon't crash when a list doesn't return a row item.
Frederik Gladhorn [Sun, 5 Jun 2011 18:25:03 +0000 (11:25 -0700)]
Don't crash when a list doesn't return a row item.

I don't see why it happens, but lists would sometimes crash, print a warning instead.

6 years agoImproved boundary handling
José Millán Soto [Tue, 31 May 2011 21:57:37 +0000 (23:57 +0200)]
Improved boundary handling

6 years agoConverting at-spi boundary types to QAccessible
José Millán Soto [Thu, 12 May 2011 10:30:11 +0000 (12:30 +0200)]
Converting at-spi boundary types to QAccessible

Does not yet handle at-spi boundary types which do not have an QAccessible equivalent

6 years agoDifferent approach to navigating tables.
Frederik Gladhorn [Thu, 19 May 2011 00:09:49 +0000 (02:09 +0200)]
Different approach to navigating tables.

6 years agoRemoved unused variable in QSpiAdaptor::GetRelationSet
José Millán Soto [Thu, 19 May 2011 00:04:15 +0000 (02:04 +0200)]
Removed unused variable in QSpiAdaptor::GetRelationSet

6 years agoBase path on ptr.
Frederik Gladhorn [Tue, 17 May 2011 00:23:57 +0000 (02:23 +0200)]
Base path on ptr.

Sadly some objects even inside Qt don't seem to get the parent hierarchy right,
so instead of asserting when the index in parent is messed up, print a warning.

6 years agoClean up debug messages.
Frederik Gladhorn [Wed, 18 May 2011 19:17:39 +0000 (21:17 +0200)]
Clean up debug messages.

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.