Kaydet (Commit) 759ae3c3 authored tarafından Katarina Behrens's avatar Katarina Behrens

Move accessibility relations to .ui file

Change-Id: I910f01cbe2f3a87ff9c629a72231dd8106ddf973
üst bc3a2426
...@@ -154,14 +154,10 @@ void PosSizePropertyPanel::Initialize() ...@@ -154,14 +154,10 @@ void PosSizePropertyPanel::Initialize()
//Position : Horizontal / Vertical //Position : Horizontal / Vertical
mpMtrPosX->SetModifyHdl( LINK( this, PosSizePropertyPanel, ChangePosXHdl ) ); mpMtrPosX->SetModifyHdl( LINK( this, PosSizePropertyPanel, ChangePosXHdl ) );
mpMtrPosY->SetModifyHdl( LINK( this, PosSizePropertyPanel, ChangePosYHdl ) ); mpMtrPosY->SetModifyHdl( LINK( this, PosSizePropertyPanel, ChangePosYHdl ) );
mpMtrPosX->SetAccessibleName(OUString( "Horizontal")); //wj acc
mpMtrPosY->SetAccessibleName(OUString( "Vertical")); //wj acc
//Size : Width / Height //Size : Width / Height
mpMtrWidth->SetModifyHdl( LINK( this, PosSizePropertyPanel, ChangeWidthHdl ) ); mpMtrWidth->SetModifyHdl( LINK( this, PosSizePropertyPanel, ChangeWidthHdl ) );
mpMtrHeight->SetModifyHdl( LINK( this, PosSizePropertyPanel, ChangeHeightHdl ) ); mpMtrHeight->SetModifyHdl( LINK( this, PosSizePropertyPanel, ChangeHeightHdl ) );
mpMtrWidth->SetAccessibleName(OUString( "Width")); //wj acc
mpMtrHeight->SetAccessibleName(OUString( "Height")); //wj acc
//Size : Keep ratio //Size : Keep ratio
mpCbxScale->SetClickHdl( LINK( this, PosSizePropertyPanel, ClickAutoHdl ) ); mpCbxScale->SetClickHdl( LINK( this, PosSizePropertyPanel, ClickAutoHdl ) );
...@@ -169,7 +165,6 @@ void PosSizePropertyPanel::Initialize() ...@@ -169,7 +165,6 @@ void PosSizePropertyPanel::Initialize()
//rotation: //rotation:
mpMtrAngle->SetModifyHdl(LINK( this, PosSizePropertyPanel, AngleModifiedHdl)); mpMtrAngle->SetModifyHdl(LINK( this, PosSizePropertyPanel, AngleModifiedHdl));
mpMtrAngle->EnableAutocomplete( false ); mpMtrAngle->EnableAutocomplete( false );
mpMtrAngle->SetAccessibleName(OUString( "Rotation")); //wj acc
//rotation control //rotation control
mpDial->SetModifyHdl(LINK( this, PosSizePropertyPanel, RotationHdl)); mpDial->SetModifyHdl(LINK( this, PosSizePropertyPanel, RotationHdl));
...@@ -177,13 +172,6 @@ void PosSizePropertyPanel::Initialize() ...@@ -177,13 +172,6 @@ void PosSizePropertyPanel::Initialize()
//flip: //flip:
mpFlipTbx->SetSelectHdl( LINK( this, PosSizePropertyPanel, FlipHdl) ); mpFlipTbx->SetSelectHdl( LINK( this, PosSizePropertyPanel, FlipHdl) );
mpMtrPosX->SetAccessibleRelationLabeledBy(mpFtPosX);
mpMtrPosY->SetAccessibleRelationLabeledBy(mpFtPosY);
mpMtrWidth->SetAccessibleRelationLabeledBy(mpFtWidth);
mpMtrHeight->SetAccessibleRelationLabeledBy(mpFtHeight);
mpMtrAngle->SetAccessibleRelationLabeledBy(mpFtAngle);
mpFlipTbx->SetAccessibleRelationLabeledBy(mpFtFlip);
mpMtrAngle->InsertValue(0, FUNIT_CUSTOM); mpMtrAngle->InsertValue(0, FUNIT_CUSTOM);
mpMtrAngle->InsertValue(4500, FUNIT_CUSTOM); mpMtrAngle->InsertValue(4500, FUNIT_CUSTOM);
mpMtrAngle->InsertValue(9000, FUNIT_CUSTOM); mpMtrAngle->InsertValue(9000, FUNIT_CUSTOM);
......
...@@ -58,6 +58,14 @@ ...@@ -58,6 +58,14 @@
<property name="tooltip_text" translatable="yes">Enter the value for the horizontal position.</property> <property name="tooltip_text" translatable="yes">Enter the value for the horizontal position.</property>
<property name="invisible_char"></property> <property name="invisible_char"></property>
<property name="invisible_char_set">True</property> <property name="invisible_char_set">True</property>
<accessibility>
<relation type="labelled-by" target="horizontallabel"/>
</accessibility>
<child internal-child="accessible">
<object class="AtkObject" id="horizontalpos:0in-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Horizontal</property>
</object>
</child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -91,6 +99,14 @@ ...@@ -91,6 +99,14 @@
<property name="tooltip_text" translatable="yes">Enter the value for the vertical position.</property> <property name="tooltip_text" translatable="yes">Enter the value for the vertical position.</property>
<property name="invisible_char"></property> <property name="invisible_char"></property>
<property name="invisible_char_set">True</property> <property name="invisible_char_set">True</property>
<accessibility>
<relation type="labelled-by" target="verticallabel"/>
</accessibility>
<child internal-child="accessible">
<object class="AtkObject" id="verticalpos:0in-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Vertical</property>
</object>
</child>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
...@@ -125,6 +141,14 @@ ...@@ -125,6 +141,14 @@
<property name="tooltip_text" translatable="yes">Enter a width for the selected object.</property> <property name="tooltip_text" translatable="yes">Enter a width for the selected object.</property>
<property name="invisible_char"></property> <property name="invisible_char"></property>
<property name="invisible_char_set">True</property> <property name="invisible_char_set">True</property>
<accessibility>
<relation type="labelled-by" target="widthlabel"/>
</accessibility>
<child internal-child="accessible">
<object class="AtkObject" id="selectwidth:0in-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Width</property>
</object>
</child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -159,6 +183,14 @@ ...@@ -159,6 +183,14 @@
<property name="tooltip_text" translatable="yes">Enter a height for the selected object.</property> <property name="tooltip_text" translatable="yes">Enter a height for the selected object.</property>
<property name="invisible_char"></property> <property name="invisible_char"></property>
<property name="invisible_char_set">True</property> <property name="invisible_char_set">True</property>
<accessibility>
<relation type="labelled-by" target="heightlabel"/>
</accessibility>
<child internal-child="accessible">
<object class="AtkObject" id="selectheight:0in-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Height</property>
</object>
</child>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
...@@ -219,6 +251,14 @@ ...@@ -219,6 +251,14 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
<accessibility>
<relation type="labelled-by" target="rotationlabel"/>
</accessibility>
<child internal-child="accessible">
<object class="AtkObject" id="orientationcontrol-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Rotation</property>
</object>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -275,6 +315,9 @@ ...@@ -275,6 +315,9 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="halign">end</property> <property name="halign">end</property>
<accessibility>
<relation type="labelled-by" target="fliplabel"/>
</accessibility>
<child> <child>
<object class="GtkToolButton" id="flipvertical"> <object class="GtkToolButton" id="flipvertical">
<property name="visible">True</property> <property name="visible">True</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment