summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-08 16:27:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-08 18:40:11 +0100
commitd0e65716347377628635c053ccb425d6284e3533 (patch)
tree02b9e186282577a295a9fefaa35dd1fdb8ea1f82 /cui
parent94956b3b29ae761a793363ec9e9e27fb612d7444 (diff)
add degrees and pixels as known spin field units
Change-Id: I5937843a5c5485f469ef1fb6b5844aa15c33a14d
Diffstat (limited to 'cui')
-rw-r--r--cui/source/inc/cuitabarea.hxx2
-rw-r--r--cui/source/options/optgdlg.cxx3
-rw-r--r--cui/source/options/optgdlg.hxx3
-rw-r--r--cui/source/tabpages/tpgradnt.cxx3
-rw-r--r--cui/source/tabpages/tphatch.cxx3
-rw-r--r--cui/uiconfig/ui/gradientpage.ui38
-rw-r--r--cui/uiconfig/ui/hatchpage.ui57
-rw-r--r--cui/uiconfig/ui/optviewpage.ui59
8 files changed, 43 insertions, 125 deletions
diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx
index 9bcc9968c187..ea850cc07f8f 100644
--- a/cui/source/inc/cuitabarea.hxx
+++ b/cui/source/inc/cuitabarea.hxx
@@ -370,7 +370,6 @@ private:
MetricField* m_pMtrCenterY;
FixedText* m_pFtAngle;
MetricField* m_pMtrAngle;
- FixedText* m_pFtAngleDegrees;
MetricField* m_pMtrBorder;
ColorLB* m_pLbColorFrom;
MetricField* m_pMtrColorFrom;
@@ -448,7 +447,6 @@ class SvxHatchTabPage : public SvxTabPage
private:
MetricField* m_pMtrDistance;
MetricField* m_pMtrAngle;
- FixedText* m_pFtAngleDegrees;
SvxRectCtl* m_pCtlAngle;
ListBox* m_pLbLineType;
ColorLB* m_pLbLineColor;
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index e11eef5e6608..a0f628469701 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -543,7 +543,6 @@ OfaViewTabPage::OfaViewTabPage(Window* pParent, const SfxItemSet& rSet)
get(m_pFontAntiAliasing, "aafont");
get(m_pAAPointLimitLabel, "aafrom");
get(m_pAAPointLimit, "aanf");
- get(m_pAAPointLimitUnits, "aaunits");
get(m_pMenuIconsLB, "menuicons");
get(m_pFontShowCB, "showfontpreview");
get(m_pFontHistoryCB, "showfonthistory");
@@ -562,7 +561,6 @@ OfaViewTabPage::OfaViewTabPage(Window* pParent, const SfxItemSet& rSet)
m_pFontAntiAliasing->Hide();
m_pAAPointLimitLabel->Hide();
m_pAAPointLimit->Hide();
- m_pAAPointLimitUnits->Hide();
#endif
@@ -637,7 +635,6 @@ IMPL_LINK( OfaViewTabPage, OnAntialiasingToggled, void*, NOTINTERESTEDIN )
m_pAAPointLimitLabel->Enable( bAAEnabled );
m_pAAPointLimit->Enable( bAAEnabled );
- m_pAAPointLimitUnits->Enable( bAAEnabled );
return 0L;
}
diff --git a/cui/source/options/optgdlg.hxx b/cui/source/options/optgdlg.hxx
index 49c7fdf304a0..56057e4bcd11 100644
--- a/cui/source/options/optgdlg.hxx
+++ b/cui/source/options/optgdlg.hxx
@@ -84,8 +84,7 @@ private:
CheckBox* m_pFontAntiAliasing;
FixedText* m_pAAPointLimitLabel;
- NumericField* m_pAAPointLimit;
- FixedText* m_pAAPointLimitUnits;
+ MetricField* m_pAAPointLimit;
ListBox* m_pMenuIconsLB;
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx
index 897605e9604d..fc3e04be3fc5 100644
--- a/cui/source/tabpages/tpgradnt.cxx
+++ b/cui/source/tabpages/tpgradnt.cxx
@@ -72,9 +72,6 @@ SvxGradientTabPage::SvxGradientTabPage
get(m_pMtrCenterY, "centerymtr");
get(m_pFtAngle, "angleft");
get(m_pMtrAngle, "anglemtr");
- m_pMtrAngle->SetUnit(FUNIT_CUSTOM);
- get(m_pFtAngleDegrees, "anglemtrdegrees");
- m_pMtrAngle->SetCustomUnitText(m_pFtAngleDegrees->GetText());
get(m_pMtrBorder, "bordermtr");
get(m_pLbColorFrom, "colorfromlb");
get(m_pMtrColorFrom, "colorfrommtr");
diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx
index 1076807ab7a2..2305c65fead0 100644
--- a/cui/source/tabpages/tphatch.cxx
+++ b/cui/source/tabpages/tphatch.cxx
@@ -70,9 +70,6 @@ SvxHatchTabPage::SvxHatchTabPage
{
get(m_pMtrDistance, "distancemtr");
get(m_pMtrAngle, "anglemtr");
- get(m_pFtAngleDegrees, "anglemtrdegrees");
- m_pMtrAngle->SetUnit(FUNIT_CUSTOM);
- m_pMtrAngle->SetCustomUnitText(m_pFtAngleDegrees->GetText());
get(m_pCtlAngle, "anglectl");
m_pCtlAngle->SetCS(CS_ANGLE);
Size aSize = LogicToPixel(Size(39, 39), MAP_APPFONT);
diff --git a/cui/uiconfig/ui/gradientpage.ui b/cui/uiconfig/ui/gradientpage.ui
index d2e6147e27bd..daaba62691a7 100644
--- a/cui/uiconfig/ui/gradientpage.ui
+++ b/cui/uiconfig/ui/gradientpage.ui
@@ -155,7 +155,7 @@
</packing>
</child>
<child>
- <object class="GtkSpinButton" id="anglemtr:0">
+ <object class="GtkSpinButton" id="anglemtr:0degrees">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">●</property>
@@ -285,42 +285,6 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="anglemtrdegrees">
- <property name="can_focus">False</property>
- <property name="label" translatable="yes"> degrees</property>
- </object>
- <packing>
- <property name="left_attach">2</property>
- <property name="top_attach">3</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
<placeholder/>
</child>
<child>
diff --git a/cui/uiconfig/ui/hatchpage.ui b/cui/uiconfig/ui/hatchpage.ui
index b78951e684cf..c1745314238f 100644
--- a/cui/uiconfig/ui/hatchpage.ui
+++ b/cui/uiconfig/ui/hatchpage.ui
@@ -2,6 +2,15 @@
<interface>
<!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires LibreOffice 1.0 -->
+ <object class="GtkAdjustment" id="angleadjustment">
+ <property name="upper">359</property>
+ <property name="step_increment">15</property>
+ </object>
+ <object class="GtkAdjustment" id="distanceadjustment">
+ <property name="lower">0.29999999999999999</property>
+ <property name="upper">99</property>
+ <property name="step_increment">100</property>
+ </object>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -71,6 +80,7 @@
<property name="xalign">0</property>
<property name="label" translatable="yes">A_ngle</property>
<property name="use_underline">True</property>
+ <property name="mnemonic_widget">anglemtr:0degrees</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -156,50 +166,28 @@
</packing>
</child>
<child>
- <object class="GtkBox" id="box1">
+ <object class="svxlo-SvxRectCtl" id="anglectl">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <child>
- <object class="GtkSpinButton" id="anglemtr:0">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="invisible_char">●</property>
- <property name="invisible_char_set">True</property>
- <property name="adjustment">angleadjustment</property>
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="anglemtrdegrees">
- <property name="can_focus">False</property>
- <property name="label" translatable="yes"> degrees</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
</object>
<packing>
<property name="left_attach">1</property>
- <property name="top_attach">1</property>
+ <property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
- <object class="svxlo-SvxRectCtl" id="anglectl">
+ <object class="GtkSpinButton" id="anglemtr:0degrees">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="invisible_char_set">True</property>
+ <property name="adjustment">angleadjustment</property>
</object>
<packing>
<property name="left_attach">1</property>
- <property name="top_attach">2</property>
+ <property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -393,13 +381,4 @@
</packing>
</child>
</object>
- <object class="GtkAdjustment" id="angleadjustment">
- <property name="upper">359</property>
- <property name="step_increment">15</property>
- </object>
- <object class="GtkAdjustment" id="distanceadjustment">
- <property name="lower">0.29999999999999999</property>
- <property name="upper">99</property>
- <property name="step_increment">100</property>
- </object>
</interface>
diff --git a/cui/uiconfig/ui/optviewpage.ui b/cui/uiconfig/ui/optviewpage.ui
index b537723587f6..c5ac1fbffa74 100644
--- a/cui/uiconfig/ui/optviewpage.ui
+++ b/cui/uiconfig/ui/optviewpage.ui
@@ -1,6 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkAdjustment" id="adjustment1">
+ <property name="lower">80</property>
+ <property name="upper">130</property>
+ <property name="value">100</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
+ <object class="GtkAdjustment" id="adjustment2">
+ <property name="lower">1</property>
+ <property name="upper">10000</property>
+ <property name="value">8</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
+ <object class="GtkAdjustment" id="adjustment3">
+ <property name="lower">10</property>
+ <property name="upper">90</property>
+ <property name="value">75</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
<object class="GtkBox" id="OptViewPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -187,7 +208,7 @@
<property name="can_focus">False</property>
<property name="label" translatable="yes">fro_m</property>
<property name="use_underline">True</property>
- <property name="mnemonic_widget">aanf</property>
+ <property name="mnemonic_widget">aanf:0pixels</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -197,20 +218,7 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="aaunits">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">pixels</property>
- </object>
- <packing>
- <property name="left_attach">2</property>
- <property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkSpinButton" id="aanf">
+ <object class="GtkSpinButton" id="aanf:0pixels">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
@@ -668,25 +676,4 @@
</packing>
</child>
</object>
- <object class="GtkAdjustment" id="adjustment1">
- <property name="lower">80</property>
- <property name="upper">130</property>
- <property name="value">100</property>
- <property name="step_increment">1</property>
- <property name="page_increment">10</property>
- </object>
- <object class="GtkAdjustment" id="adjustment2">
- <property name="lower">1</property>
- <property name="upper">10000</property>
- <property name="value">8</property>
- <property name="step_increment">1</property>
- <property name="page_increment">10</property>
- </object>
- <object class="GtkAdjustment" id="adjustment3">
- <property name="lower">10</property>
- <property name="upper">90</property>
- <property name="value">75</property>
- <property name="step_increment">1</property>
- <property name="page_increment">10</property>
- </object>
</interface>