summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-06-03 22:11:34 +0200
committerTomaž Vajngerl <quikee@gmail.com>2013-06-04 00:18:04 +0200
commit4786d95b3187442ad2c3d0760e9bdcbc0a5e6825 (patch)
tree0577a658d15b5200de090b728229ca3f65546bde /cui
parent01c5c1de3acc9039fabef1fa03d171fa1a75a702 (diff)
fdo#60120 Modify DialControl to store 100th degree angle.
DialControl internally stores the angle to a 100th of a degree percision, but when SetRotation is called, the value was always rounded to a 1 degree percision. This has now been modified to round only on DialControl mouse interaction. Additionally add add a parameter to SetLinkedField which states the number of decimal places the NumericField is set to. This change makes possible to set the NumericField to 100th of a Degree as the internal angle is represented in. Default value is 0, so no change is needed to existing DialControls. Change-Id: I1f0c20092cdfccbd0878d7eb620bfdad7825b0fb
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/transfrm.cxx2
-rw-r--r--cui/source/tabpages/transfrm.src5
2 files changed, 4 insertions, 3 deletions
diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx
index 973852116e64..a20ea83fa43a 100644
--- a/cui/source/tabpages/transfrm.cxx
+++ b/cui/source/tabpages/transfrm.cxx
@@ -235,7 +235,7 @@ SvxAngleTabPage::SvxAngleTabPage( Window* pParent, const SfxItemSet& rInAttrs )
aCtlRect.SetAccessibleRelationMemberOf(&aFlPosition);
aCtlAngle.SetAccessibleRelationLabeledBy(&aFtAnglePresets);
aCtlAngle.SetAccessibleRelationMemberOf(&aFlAngle);
- aCtlAngle.SetLinkedField( &maNfAngle );
+ aCtlAngle.SetLinkedField( &maNfAngle, 2 );
}
// -----------------------------------------------------------------------
diff --git a/cui/source/tabpages/transfrm.src b/cui/source/tabpages/transfrm.src
index b3220c838d97..69446b4ab861 100644
--- a/cui/source/tabpages/transfrm.src
+++ b/cui/source/tabpages/transfrm.src
@@ -390,8 +390,9 @@ TabPage RID_SVXPAGE_ANGLE
Repeat = TRUE ;
Spin = TRUE ;
Minimum = 0 ;
- Maximum = 359 ;
- SpinSize = 5 ;
+ Maximum = 35999 ;
+ DecimalDigits = 2 ;
+ SpinSize = 10 ;
};
FixedText FT_ANGLEPRESETS
{