diff options
author | andreas kainz <kainz.a@gmail.com> | 2020-01-17 13:38:42 +0100 |
---|---|---|
committer | andreas_kainz <kainz.a@gmail.com> | 2020-01-18 09:04:45 +0100 |
commit | 56c6a53ffcba1b8eac8b953b8724557df856954d (patch) | |
tree | 43700635e3c29b154a9a71aef4265b7316c55244 /sc/uiconfig | |
parent | 30c9468ec9e289d0c259c6ac11aec372fc419e04 (diff) |
calc sidebar numberformat alignment and arrangement
Change-Id: Id283e72ea0f54124df5daa5f74baef62b544e0f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86974
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
Diffstat (limited to 'sc/uiconfig')
-rw-r--r-- | sc/uiconfig/scalc/ui/sidebarnumberformat.ui | 244 |
1 files changed, 134 insertions, 110 deletions
diff --git a/sc/uiconfig/scalc/ui/sidebarnumberformat.ui b/sc/uiconfig/scalc/ui/sidebarnumberformat.ui index 3f1d139a11ee..09704d6ef5d0 100644 --- a/sc/uiconfig/scalc/ui/sidebarnumberformat.ui +++ b/sc/uiconfig/scalc/ui/sidebarnumberformat.ui @@ -2,21 +2,6 @@ <!-- Generated with glade 3.22.1 --> <interface domain="sc"> <requires lib="gtk+" version="3.18"/> - <object class="GtkAdjustment" id="adjustment1"> - <property name="upper">20</property> - <property name="step_increment">1</property> - <property name="page_increment">10</property> - </object> - <object class="GtkAdjustment" id="adjustment2"> - <property name="upper">8</property> - <property name="step_increment">1</property> - <property name="page_increment">1</property> - </object> - <object class="GtkAdjustment" id="adjustment3"> - <property name="upper">20</property> - <property name="step_increment">1</property> - <property name="page_increment">10</property> - </object> <object class="GtkGrid" id="NumberFormatPropertyPanel"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -30,49 +15,19 @@ <property name="orientation">vertical</property> <property name="spacing">6</property> <child> - <object class="GtkGrid" id="grid1"> + <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="column_spacing">6</property> - <child> - <object class="GtkComboBoxText" id="category"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="tooltip_text" translatable="yes" context="sidebarnumberformat|category|tooltip_text">Select a category of contents.</property> - <property name="valign">center</property> - <property name="hexpand">True</property> - <items> - <item translatable="yes" context="sidebarnumberformat|category">General</item> - <item translatable="yes" context="sidebarnumberformat|category">Number</item> - <item translatable="yes" context="sidebarnumberformat|category">Percent</item> - <item translatable="yes" context="sidebarnumberformat|category">Currency</item> - <item translatable="yes" context="sidebarnumberformat|category">Date </item> - <item translatable="yes" context="sidebarnumberformat|category">Time</item> - <item translatable="yes" context="sidebarnumberformat|category">Scientific</item> - <item translatable="yes" context="sidebarnumberformat|category">Fraction</item> - <item translatable="yes" context="sidebarnumberformat|category">Boolean Value</item> - <item translatable="yes" context="sidebarnumberformat|category">Text</item> - </items> - <child internal-child="accessible"> - <object class="AtkObject" id="category-atkobject"> - <property name="AtkObject::accessible-name" translatable="yes" context="sidebarnumberformat|category-atkobject">Category</property> - </object> - </child> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - </packing> - </child> + <property name="spacing">6</property> <child> <object class="GtkToolbar" id="numberformat"> <property name="visible">True</property> - <property name="can_focus">True</property> + <property name="can_focus">False</property> <property name="toolbar_style">icons</property> <property name="show_arrow">False</property> <property name="icon_size">2</property> <child> - <object class="GtkMenuToolButton" id=".uno:NumberFormatCurrency"> + <object class="GtkToggleToolButton" id=".uno:NumberFormatDecimal"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="use_underline">True</property> @@ -94,7 +49,7 @@ </packing> </child> <child> - <object class="GtkToggleToolButton" id=".uno:NumberFormatDecimal"> + <object class="GtkMenuToolButton" id=".uno:NumberFormatCurrency"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="use_underline">True</property> @@ -106,8 +61,40 @@ </child> </object> <packing> - <property name="left_attach">1</property> - <property name="top_attach">0</property> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBoxText" id="category"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="tooltip_text" translatable="yes" context="sidebarnumberformat|category|tooltip_text">Select a category of contents.</property> + <property name="valign">center</property> + <property name="hexpand">True</property> + <items> + <item translatable="yes" context="sidebarnumberformat|category">General</item> + <item translatable="yes" context="sidebarnumberformat|category">Number</item> + <item translatable="yes" context="sidebarnumberformat|category">Percent</item> + <item translatable="yes" context="sidebarnumberformat|category">Currency</item> + <item translatable="yes" context="sidebarnumberformat|category">Date </item> + <item translatable="yes" context="sidebarnumberformat|category">Time</item> + <item translatable="yes" context="sidebarnumberformat|category">Scientific</item> + <item translatable="yes" context="sidebarnumberformat|category">Fraction</item> + <item translatable="yes" context="sidebarnumberformat|category">Boolean Value</item> + <item translatable="yes" context="sidebarnumberformat|category">Text</item> + </items> + <child internal-child="accessible"> + <object class="AtkObject" id="category-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="sidebarnumberformat|category-atkobject">Category</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> </packing> </child> </object> @@ -118,22 +105,24 @@ </packing> </child> <child> - <object class="GtkBox" id="box3"> + <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="spacing">12</property> + <property name="spacing">6</property> <child> <object class="GtkBox" id="box4"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="valign">center</property> <property name="orientation">vertical</property> - <property name="spacing">6</property> <child> - <object class="GtkLabel" id="denominatorplaceslabel"> + <object class="GtkLabel" id="decimalplaceslabel"> + <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes" context="sidebarnumberformat|denominatorplaceslabel">Den_ominator places:</property> + <property name="label" translatable="yes" context="sidebarnumberformat|decimalplaceslabel">_Decimal places:</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">denominatorplaces</property> + <property name="mnemonic_widget">decimalplaces</property> + <property name="xalign">0</property> </object> <packing> <property name="expand">False</property> @@ -142,12 +131,12 @@ </packing> </child> <child> - <object class="GtkLabel" id="decimalplaceslabel"> - <property name="visible">True</property> + <object class="GtkLabel" id="denominatorplaceslabel"> <property name="can_focus">False</property> - <property name="label" translatable="yes" context="sidebarnumberformat|decimalplaceslabel">_Decimal places:</property> + <property name="label" translatable="yes" context="sidebarnumberformat|denominatorplaceslabel">Den_ominator places:</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">decimalplaces</property> + <property name="mnemonic_widget">denominatorplaces</property> + <property name="xalign">0</property> </object> <packing> <property name="expand">False</property> @@ -155,15 +144,28 @@ <property name="position">0</property> </packing> </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="valign">center</property> + <property name="hexpand">True</property> + <property name="orientation">vertical</property> <child> - <object class="GtkSpinButton" id="decimalplaces"> - <property name="visible">True</property> + <object class="GtkSpinButton" id="denominatorplaces"> <property name="can_focus">True</property> - <property name="tooltip_text" translatable="yes" context="sidebarnumberformat|decimalplaces|tooltip_text">Enter the number of decimal places that you want to display.</property> - <property name="adjustment">adjustment3</property> + <property name="tooltip_text" translatable="yes" context="sidebarnumberformat|denominatorplaces|tooltip_text">Enter the number of places for the denominator that you want to display.</property> + <property name="adjustment">adjustment2</property> <child internal-child="accessible"> - <object class="AtkObject" id="decimalplaces-atkobject"> - <property name="AtkObject::accessible-name" translatable="yes" context="sidebarnumberformat|decimalplaces-atkobject">Decimal Places</property> + <object class="AtkObject" id="denominatorplaces-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="sidebarnumberformat|denominatorplaces-atkobject">Denominator Places</property> </object> </child> </object> @@ -174,13 +176,14 @@ </packing> </child> <child> - <object class="GtkSpinButton" id="denominatorplaces"> + <object class="GtkSpinButton" id="decimalplaces"> + <property name="visible">True</property> <property name="can_focus">True</property> - <property name="tooltip_text" translatable="yes" context="sidebarnumberformat|denominatorplaces|tooltip_text">Enter the number of places for the denominator that you want to display.</property> - <property name="adjustment">adjustment2</property> + <property name="tooltip_text" translatable="yes" context="sidebarnumberformat|decimalplaces|tooltip_text">Enter the number of decimal places that you want to display.</property> + <property name="adjustment">adjustment3</property> <child internal-child="accessible"> - <object class="AtkObject" id="denominatorplaces-atkobject"> - <property name="AtkObject::accessible-name" translatable="yes" context="sidebarnumberformat|denominatorplaces-atkobject">Denominator Places</property> + <object class="AtkObject" id="decimalplaces-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="sidebarnumberformat|decimalplaces-atkobject">Decimal Places</property> </object> </child> </object> @@ -194,53 +197,52 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">0</property> + <property name="position">1</property> </packing> </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box5"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">6</property> <child> - <object class="GtkBox" id="box5"> + <object class="GtkLabel" id="leadingzeroeslabel"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">6</property> - <child> - <object class="GtkLabel" id="leadingzeroeslabel"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="sidebarnumberformat|leadingzeroeslabel">Leading _zeroes:</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">leadingzeroes</property> - <property name="xalign">0</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkSpinButton" id="leadingzeroes"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="tooltip_text" translatable="yes" context="sidebarnumberformat|leadingzeroes|tooltip_text">Enter the maximum number of zeroes to display before the decimal point.</property> - <property name="adjustment">adjustment1</property> - <child internal-child="accessible"> - <object class="AtkObject" id="leadingzeroes-atkobject"> - <property name="AtkObject::accessible-name" translatable="yes" context="sidebarnumberformat|leadingzeroes-atkobject">Leading Zeroes</property> - </object> - </child> + <property name="label" translatable="yes" context="sidebarnumberformat|leadingzeroeslabel">Leading _zeroes:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">leadingzeroes</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="leadingzeroes"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="tooltip_text" translatable="yes" context="sidebarnumberformat|leadingzeroes|tooltip_text">Enter the maximum number of zeroes to display before the decimal point.</property> + <property name="hexpand">True</property> + <property name="adjustment">adjustment1</property> + <child internal-child="accessible"> + <object class="AtkObject" id="leadingzeroes-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="sidebarnumberformat|leadingzeroes-atkobject">Leading Zeroes</property> </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> </child> </object> <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="pack_type">end</property> <property name="position">1</property> </packing> </child> @@ -248,7 +250,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">3</property> + <property name="position">2</property> </packing> </child> <child> @@ -308,4 +310,26 @@ </packing> </child> </object> + <object class="GtkSizeGroup" id="sizegroupLabel"> + <widgets> + <widget name="box4"/> + <widget name="leadingzeroeslabel"/> + <widget name="numberformat"/> + </widgets> + </object> + <object class="GtkAdjustment" id="adjustment1"> + <property name="upper">20</property> + <property name="step_increment">1</property> + <property name="page_increment">10</property> + </object> + <object class="GtkAdjustment" id="adjustment2"> + <property name="upper">8</property> + <property name="step_increment">1</property> + <property name="page_increment">1</property> + </object> + <object class="GtkAdjustment" id="adjustment3"> + <property name="upper">20</property> + <property name="step_increment">1</property> + <property name="page_increment">10</property> + </object> </interface> |