[orca] Implement the "'list of' dialog" feature for tables
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Implement the "'list of' dialog" feature for tables
- Date: Mon, 11 Feb 2013 15:51:44 +0000 (UTC)
commit 5aa97b96dac098cb1f129b7f95132651fcd399fb
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Feb 11 10:51:03 2013 -0500
Implement the "'list of' dialog" feature for tables
src/orca/structural_navigation.py | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index 11062d1..71221db 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -3883,6 +3883,10 @@ class StructuralNavigation:
#
nextDesc = _("Goes to next table.")
bindings["next"] = ["t", settings.NO_MODIFIER_MASK, nextDesc]
+ # Translators: this is for navigating among tables in a document.
+ #
+ listDesc = _("Displays a list of tables.")
+ bindings["list"] = ["t", settings.SHIFT_ALT_MODIFIER_MASK, listDesc]
return bindings
def _tableCriteria(self, collection, arg=None):
@@ -3953,6 +3957,32 @@ class StructuralNavigation:
brief = C_("structural navigation", "Not found")
self._script.presentMessage(full, brief)
+ def _tableDialogData(self):
+ # Translators: Orca has a command that presents a list of structural
+ # navigation objects in a dialog box so that users can navigate more
+ # quickly than they could with native keyboard navigation. This is
+ # the title of one such dialog box.
+ title = C_("structural navigation", "Tables")
+
+ # Translators: Orca has a command that presents a list of structural
+ # navigation objects in a dialog box so that users can navigate more
+ # quickly than they could with native keyboard navigation. This is
+ # the title for a column containing the caption of a table.
+ columnHeaders = [C_("structural navigation", "Caption")]
+
+ # Translators: Orca has a command that presents a list of structural
+ # navigation objects in a dialog box so that users can navigate more
+ # quickly than they could with native keyboard navigation. This is
+ # the title for a column containing the type of a table element. The
+ # type can be "layout" or "data".
+ columnHeaders.append(C_("structural navigation", "Description"))
+
+ def rowData(obj):
+ return [self._getTableCaption(obj) or '',
+ self._getTableDescription(obj)]
+
+ return title, columnHeaders, rowData
+
########################
# #
# Table Cells #
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]