~ubuntu-branches/ubuntu/raring/gnome-orca/raring-proposed

« back to all changes in this revision

Viewing changes to src/orca/structural_navigation.py

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich
  • Date: 2013-01-04 13:32:55 UTC
  • mfrom: (0.12.5)
  • Revision ID: package-import@ubuntu.com-20130104133255-xioc9ptckam1y1bh
Tags: 3.7.3-0ubuntu1
* New upstream release
  - General
    + Provide support to cycle amongst speech-dispatcher's capitalization
      presentation options
    + Create a generic UI which can be used in element navigation lists
    + Add a _getAll() method to structural_navigation.py
    + Fix for bug 689486 - Broken links to gnome-user-docs in the orca help
    + Remove a missed call to str.decode()
    + Make viewing Orca help in Yelp activatable via Learn Mode
    + Eliminate the Splash window, Main window, and Quit window
    + Increase the default uppercase pitch to 7.0
    + Use GLib.source_remove() instead of the deprecated GObject equivalent
    + Delete the acroread script
  - New and updated translations (THANKS EVERYONE!!!):
    + es            Spanish                 Daniel Mustieles
    + ta            Tamil                   Dr.T.Vasudevan
* debian/patches/01_show_main_window.patch: Drop, no longer needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
759
759
            arg = [rowDiff, colDiff, oldRowHeaders, oldColHeaders]
760
760
            structuralNavigationObject.present(cell, arg)
761
761
 
 
762
    def _getAll(self, structuralNavigationObject, arg=None):
 
763
        """Returns all the instances of structuralNavigationObject."""
 
764
        if not structuralNavigationObject.criteria:
 
765
            return []
 
766
 
 
767
        document = self._getDocument()
 
768
        col = document.queryCollection()
 
769
        criteria = structuralNavigationObject.criteria(col, arg)
 
770
        rule = col.createMatchRule(criteria.states.raw(),
 
771
                                   criteria.matchStates,
 
772
                                   criteria.objAttrs,
 
773
                                   criteria.matchObjAttrs,
 
774
                                   criteria.roles,
 
775
                                   criteria.matchRoles,
 
776
                                   criteria.interfaces,
 
777
                                   criteria.matchInterfaces,
 
778
                                   criteria.invert)
 
779
        rv = col.getMatches(rule, col.SORT_ORDER_CANONICAL, 0, True)
 
780
        col.freeMatchRule(rule)
 
781
        if criteria.applyPredicate:
 
782
            rv = list(filter(structuralNavigationObject.predicate, rv))
 
783
 
 
784
        return rv
 
785
 
762
786
    def goObject(self, structuralNavigationObject, isNext, obj=None, arg=None):
763
787
        """The method used for navigation among StructuralNavigationObjects
764
788
        which are not table cells.