diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-07-28 08:20:56 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-07-28 14:25:30 +0200 |
commit | ed5251e19ee37cb65d4560534026f04ecb690a5c (patch) | |
tree | c8f03c4b9d6b063c3ae3c6a25ca2ae3e1de7b140 /svx/uiconfig | |
parent | 14b0715b02b7711db0c65c79bf48ed4dca1e515d (diff) |
sidebar: Use GtkGrid, adjustments & mnemonic wdgts in SidebarGraphicPanel.
Change-Id: I1f06733e292986ed0136837ccd6e3a5ba48d07bd
Diffstat (limited to 'svx/uiconfig')
-rw-r--r-- | svx/uiconfig/ui/sidebargraphic.ui | 343 |
1 files changed, 189 insertions, 154 deletions
diff --git a/svx/uiconfig/ui/sidebargraphic.ui b/svx/uiconfig/ui/sidebargraphic.ui index 5b6453f17776..1403d307a8d8 100644 --- a/svx/uiconfig/ui/sidebargraphic.ui +++ b/svx/uiconfig/ui/sidebargraphic.ui @@ -1,6 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <interface> <!-- interface-requires gtk+ 3.0 --> + <object class="GtkAdjustment" id="0to100adjustment"> + <property name="upper">100</property> + <property name="step_increment">1</property> + <property name="page_increment">10</property> + </object> <object class="GtkGrid" id="GraphicPropertyPanel"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -14,180 +19,154 @@ <property name="orientation">vertical</property> <property name="spacing">12</property> <child> - <object class="GtkBox" id="box2"> + <object class="GtkGrid" id="grid2"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="orientation">vertical</property> + <property name="row_spacing">6</property> + <property name="column_spacing">6</property> + <property name="column_homogeneous">True</property> <child> - <object class="GtkBox" id="box3"> + <object class="GtkLabel" id="brightnesslabel"> <property name="visible">True</property> <property name="can_focus">False</property> - <child> - <object class="GtkLabel" id="brightnesslabel"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">_Brightness:</property> - <property name="use_underline">True</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="contrastlabel"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="margin_left">10</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">_Contrast:</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Brightness:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">setbrightness:%</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="setbrightness:%"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="has_tooltip">True</property> + <property name="tooltip_markup" translatable="yes">Specify the luminance of the graphic.</property> + <property name="tooltip_text" translatable="yes">Specify the luminance of the graphic.</property> + <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + <property name="adjustment">plusminus100adjustment</property> + <property name="climb_rate">1</property> </object> <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> + <property name="left_attach">0</property> + <property name="top_attach">1</property> + <property name="width">1</property> + <property name="height">1</property> </packing> </child> <child> - <object class="GtkBox" id="box4"> + <object class="GtkLabel" id="contrastlabel"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="margin_bottom">10</property> - <child> - <object class="GtkSpinButton" id="setbrightness:%"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="tooltip_markup" translatable="yes">Specify the luminance of the graphic.</property> - <property name="tooltip_text" translatable="yes">Specify the luminance of the graphic.</property> - <property name="invisible_char">•</property> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkSpinButton" id="setcontrast:%"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="tooltip_markup" translatable="yes">Specify the degree of difference between the lightest and darkest parts of the graphic.</property> - <property name="tooltip_text" translatable="yes">Specify the degree of difference between the lightest and darkest parts of the graphic.</property> - <property name="margin_left">10</property> - <property name="invisible_char">•</property> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="pack_type">end</property> - <property name="position">1</property> - </packing> - </child> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Contrast:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">setcontrast:%</property> </object> <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> </packing> </child> <child> - <object class="GtkBox" id="box5"> + <object class="GtkSpinButton" id="setcontrast:%"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="has_tooltip">True</property> + <property name="tooltip_markup" translatable="yes">Specify the degree of difference between the lightest and darkest parts of the graphic.</property> + <property name="tooltip_text" translatable="yes">Specify the degree of difference between the lightest and darkest parts of the graphic.</property> + <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + <property name="adjustment">plusminus100adjustment</property> + <property name="climb_rate">1</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">1</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="colorlmodelabel"> <property name="visible">True</property> <property name="can_focus">False</property> - <child> - <object class="GtkLabel" id="colorlmodelabel"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Color _mode:</property> - <property name="use_underline">True</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="transparencylabel"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="margin_left">30</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">_Transparency:</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> + <property name="xalign">0</property> + <property name="label" translatable="yes">Color _mode:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">setcolormode</property> </object> <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">2</property> + <property name="left_attach">0</property> + <property name="top_attach">2</property> + <property name="width">1</property> + <property name="height">1</property> </packing> </child> <child> - <object class="GtkBox" id="box6"> + <object class="GtkComboBoxText" id="setcolormode"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="margin_bottom">10</property> - <child> - <object class="GtkComboBoxText" id="setcolormode"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="margin_right">10</property> - <property name="wrap_width">1</property> - <property name="row_span_column">0</property> - <property name="entry_text_column">0</property> - <property name="id_column">1</property> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkSpinButton" id="settransparency:%"> - <property name="width_request">120</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="tooltip_markup" translatable="yes">Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent.</property> - <property name="tooltip_text" translatable="yes">Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent.</property> - <property name="invisible_char">•</property> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="pack_type">end</property> - <property name="position">1</property> - </packing> - </child> + <property name="wrap_width">1</property> + <property name="row_span_column">0</property> + <property name="entry_text_column">0</property> + <property name="id_column">1</property> </object> <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">3</property> + <property name="left_attach">0</property> + <property name="top_attach">3</property> + <property name="width">1</property> + <property name="height">1</property> </packing> </child> <child> - <object class="GtkBox" id="box7"> + <object class="GtkLabel" id="transparencylabel"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Transparency:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">settransparency:%</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">2</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="settransparency:%"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="has_tooltip">True</property> + <property name="tooltip_markup" translatable="yes">Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent.</property> + <property name="tooltip_text" translatable="yes">Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent.</property> + <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + <property name="adjustment">0to100adjustment</property> + <property name="climb_rate">1</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">3</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box9"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">6</property> <child> <object class="GtkImage" id="image1"> <property name="visible">True</property> @@ -204,9 +183,13 @@ <object class="GtkSpinButton" id="setred:%"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="has_tooltip">True</property> <property name="tooltip_markup" translatable="yes">Red</property> <property name="tooltip_text" translatable="yes">Red</property> <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + <property name="adjustment">plusminus100adjustment</property> + <property name="climb_rate">1</property> </object> <packing> <property name="expand">True</property> @@ -214,45 +197,63 @@ <property name="position">1</property> </packing> </child> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">4</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box10"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">6</property> <child> <object class="GtkImage" id="image2"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="margin_left">10</property> <property name="pixbuf">svx/res/symphony/AdjustColorGreen_16x16.png</property> </object> <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">2</property> + <property name="position">0</property> </packing> </child> <child> <object class="GtkSpinButton" id="setgreen:%"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="has_tooltip">True</property> <property name="tooltip_markup" translatable="yes">Green</property> <property name="tooltip_text" translatable="yes">Green</property> <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + <property name="adjustment">plusminus100adjustment</property> + <property name="climb_rate">1</property> </object> <packing> <property name="expand">True</property> <property name="fill">True</property> <property name="pack_type">end</property> - <property name="position">3</property> + <property name="position">1</property> </packing> </child> </object> <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">4</property> + <property name="left_attach">1</property> + <property name="top_attach">4</property> + <property name="width">1</property> + <property name="height">1</property> </packing> </child> <child> - <object class="GtkBox" id="box8"> + <object class="GtkBox" id="box11"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="spacing">6</property> <child> <object class="GtkImage" id="image3"> <property name="visible">True</property> @@ -269,9 +270,13 @@ <object class="GtkSpinButton" id="setblue:%"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="has_tooltip">True</property> <property name="tooltip_markup" translatable="yes">Blue</property> <property name="tooltip_text" translatable="yes">Blue</property> <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + <property name="adjustment">plusminus100adjustment</property> + <property name="climb_rate">1</property> </object> <packing> <property name="expand">True</property> @@ -279,40 +284,57 @@ <property name="position">1</property> </packing> </child> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">5</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box12"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">6</property> <child> <object class="GtkImage" id="image4"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="margin_left">10</property> <property name="pixbuf">svx/res/symphony/AdjustColorGamma_16x16.png</property> </object> <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">2</property> + <property name="position">0</property> </packing> </child> <child> <object class="GtkSpinButton" id="setgamma:0"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="has_tooltip">True</property> <property name="tooltip_markup" translatable="yes">Specify the gamma value that affects the brightness of the midtone values.</property> <property name="tooltip_text" translatable="yes">Specify the gamma value that affects the brightness of the midtone values.</property> <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + <property name="adjustment">gammaadjustment</property> + <property name="climb_rate">0.10000000000000001</property> <property name="digits">2</property> </object> <packing> <property name="expand">True</property> <property name="fill">True</property> <property name="pack_type">end</property> - <property name="position">3</property> + <property name="position">1</property> </packing> </child> </object> <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">5</property> + <property name="left_attach">1</property> + <property name="top_attach">5</property> + <property name="width">1</property> + <property name="height">1</property> </packing> </child> </object> @@ -331,4 +353,17 @@ </packing> </child> </object> + <object class="GtkAdjustment" id="gammaadjustment"> + <property name="lower">0.01</property> + <property name="upper">10</property> + <property name="value">1</property> + <property name="step_increment">0.10000000000000001</property> + <property name="page_increment">1</property> + </object> + <object class="GtkAdjustment" id="plusminus100adjustment"> + <property name="lower">-100</property> + <property name="upper">100</property> + <property name="step_increment">1</property> + <property name="page_increment">10</property> + </object> </interface> |