[at-spi] Add RELATION_NODE_PARENT_OF relationship.



commit 8d89f3a3137730b8eece2a4a27cb1e121ec60108
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Nov 6 16:14:52 2009 +0800

    Add RELATION_NODE_PARENT_OF relationship.
    
    Bug #569428.

 cspi/spi.h                                 |    2 ++
 cspi/spi_accessible.c                      |    1 +
 docs/reference/cspi/tmpl/spi_relation.sgml |    1 +
 idl/Accessibility_Relation.idl             |    5 ++++-
 libspi/relation.c                          |    1 +
 5 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/cspi/spi.h b/cspi/spi.h
index ba2d319..ef74205 100644
--- a/cspi/spi.h
+++ b/cspi/spi.h
@@ -126,6 +126,7 @@ typedef enum
  * SPI_RELATION_MEMBER_OF: Indicates an object is a member of a group of one or
 more target objects.
  * SPI_RELATION_NODE_CHILD_OF: Indicates an object is a cell in a treetable which is displayed because a cell in the same column is expanded and identifies that cell.
+ * SPI_RELATION_NODE_PARENT_OF: Indicates an object is a cell in a treetable and is expanded to display other cells in the same column.
  * SPI_RELATION_EXTENDED: This value indicates that a relation other than those pre-specified by this version of AT-SPI
  * is present.
  * SPI_RELATION_FLOWS_TO: Indicates that the object has content that flows logically to another
@@ -156,6 +157,7 @@ typedef enum
   SPI_RELATION_CONTROLLED_BY,
   SPI_RELATION_MEMBER_OF,
   SPI_RELATION_NODE_CHILD_OF,
+  SPI_RELATION_NODE_PARENT_OF,
   SPI_RELATION_EXTENDED,
   SPI_RELATION_FLOWS_TO,
   SPI_RELATION_FLOWS_FROM,
diff --git a/cspi/spi_accessible.c b/cspi/spi_accessible.c
index 6f5187a..573dd45 100644
--- a/cspi/spi_accessible.c
+++ b/cspi/spi_accessible.c
@@ -1201,6 +1201,7 @@ cspi_init_relation_type_table (AccessibleRelationType *relation_type_table)
   relation_type_table [Accessibility_RELATION_MEMBER_OF] = SPI_RELATION_MEMBER_OF;
   relation_type_table [Accessibility_RELATION_TOOLTIP_FOR] = SPI_RELATION_NULL;
   relation_type_table [Accessibility_RELATION_NODE_CHILD_OF] = SPI_RELATION_NODE_CHILD_OF;
+  relation_type_table [Accessibility_RELATION_NODE_PARENT_OF] = SPI_RELATION_NODE_PARENT_OF;
   relation_type_table [Accessibility_RELATION_EXTENDED] = SPI_RELATION_EXTENDED;
   relation_type_table [Accessibility_RELATION_FLOWS_TO] = SPI_RELATION_FLOWS_TO;
   relation_type_table [Accessibility_RELATION_FLOWS_FROM] = SPI_RELATION_FLOWS_FROM;
diff --git a/docs/reference/cspi/tmpl/spi_relation.sgml b/docs/reference/cspi/tmpl/spi_relation.sgml
index 9d81c1a..d2d13cf 100644
--- a/docs/reference/cspi/tmpl/spi_relation.sgml
+++ b/docs/reference/cspi/tmpl/spi_relation.sgml
@@ -29,6 +29,7 @@ AccessibleRelations and RelationSets
 @SPI_RELATION_CONTROLLED_BY: 
 @SPI_RELATION_MEMBER_OF: 
 @SPI_RELATION_NODE_CHILD_OF: 
+ SPI_RELATION_NODE_PARENT_OF: 
 @SPI_RELATION_EXTENDED: 
 @SPI_RELATION_FLOWS_TO: 
 @SPI_RELATION_FLOWS_FROM: 
diff --git a/idl/Accessibility_Relation.idl b/idl/Accessibility_Relation.idl
index 1f81b48..17f25a5 100644
--- a/idl/Accessibility_Relation.idl
+++ b/idl/Accessibility_Relation.idl
@@ -53,8 +53,11 @@ module Accessibility {
     RELATION_MEMBER_OF,
     /** Object is a tooltip associated with another object. */
     RELATION_TOOLTIP_FOR,
-    /** Reserved for future use. */
+    /** Object is a cell in a treetable which is displayed because a cell in the same column is 
+     * expanded and identifies that cell. */
     RELATION_NODE_CHILD_OF,
+    /** Reciprocal of RELATION_NODE_CHILD_OF. */
+    RELATION_NODE_PARENT_OF,
     /** Used to indicate that a relationship exists, but its type is not specified in the enumeration
      * and must be obtained via a call to getRelationTypeName.  */
     RELATION_EXTENDED,
diff --git a/libspi/relation.c b/libspi/relation.c
index 6d487d4..9bf1d5d 100644
--- a/libspi/relation.c
+++ b/libspi/relation.c
@@ -43,6 +43,7 @@ spi_init_relation_type_table (Accessibility_RelationType *types)
   types[ATK_RELATION_LABELLED_BY] = Accessibility_RELATION_LABELLED_BY;
   types[ATK_RELATION_MEMBER_OF] = Accessibility_RELATION_MEMBER_OF;
   types[ATK_RELATION_NODE_CHILD_OF] = Accessibility_RELATION_NODE_CHILD_OF;
+  types[ATK_RELATION_NODE_PARENT_OF] = Accessibility_RELATION_NODE_PARENT_OF;
   types[ATK_RELATION_FLOWS_TO] = Accessibility_RELATION_FLOWS_TO;
   types[ATK_RELATION_FLOWS_FROM] = Accessibility_RELATION_FLOWS_FROM;
   types[ATK_RELATION_SUBWINDOW_OF] = Accessibility_RELATION_SUBWINDOW_OF;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]