diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-02-02 16:12:55 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-02-11 18:50:48 +0100 |
commit | fd9b52502de6044a2249ff81407ac579a35ad3a1 (patch) | |
tree | 131722a0c23bb9eaa55e22eb5cab841429a6012e /svx/uiconfig/ui/stylespreview.ui | |
parent | b11db88d0174fbad25f7ee04726ae27ceb1488c3 (diff) |
tdf#139429 Convert Style previews widget to IconView
- this adds labels to easily identify the styles
- easier to work with many styles
- nice native widget in gtk3
- double click opens the style settings
- added Command callback fro iconview
Change-Id: I08743515cbd2a4e4bd592d1509e48bbe2a43b129
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110408
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'svx/uiconfig/ui/stylespreview.ui')
-rw-r--r-- | svx/uiconfig/ui/stylespreview.ui | 157 |
1 files changed, 31 insertions, 126 deletions
diff --git a/svx/uiconfig/ui/stylespreview.ui b/svx/uiconfig/ui/stylespreview.ui index 7e1a3c9fe952..45d836da0d02 100644 --- a/svx/uiconfig/ui/stylespreview.ui +++ b/svx/uiconfig/ui/stylespreview.ui @@ -1,150 +1,55 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.22.2 --> +<!-- Generated with glade 3.20.4 --> <interface domain="svx"> <requires lib="gtk+" version="3.20"/> + <object class="GtkTreeStore" id="liststore1"> + <columns> + <!-- column-name expander --> + <column type="GdkPixbuf"/> + <!-- column-name text --> + <column type="gchararray"/> + <!-- column-name id --> + <column type="gchararray"/> + </columns> + </object> <object class="GtkBox" id="ApplyStyleBox"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="hexpand">True</property> + <property name="spacing">6</property> <child> <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="valign">center</property> - <child> - <!-- n-columns=1 n-rows=1 --> - <object class="GtkGrid" id="stylescontainer"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="valign">center</property> - <child> - <object class="GtkDrawingArea" id="style4"> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">1</property> - </packing> - </child> - <child> - <object class="GtkDrawingArea" id="style3"> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">0</property> - </packing> - </child> - <child> - <object class="GtkDrawingArea" id="style2"> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">1</property> - </packing> - </child> - <child> - <object class="GtkDrawingArea" id="style1"> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - </packing> - </child> - <child> - <object class="GtkDrawingArea" id="style5"> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">2</property> - <property name="top_attach">0</property> - </packing> - </child> - <child> - <object class="GtkDrawingArea" id="style6"> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">2</property> - <property name="top_attach">1</property> - </packing> - </child> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> + <property name="spacing">3</property> <child> - <object class="GtkBox"> + <object class="GtkScrolledWindow"> + <property name="width_request">360</property> + <property name="height_request">65</property> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can_focus">True</property> <property name="valign">center</property> - <property name="orientation">vertical</property> + <property name="hscrollbar_policy">never</property> + <property name="vscrollbar_policy">always</property> + <property name="shadow_type">in</property> + <property name="min_content_width">70</property> <child> - <object class="GtkToolbar" id="uptoolbar"> + <object class="GtkIconView" id="stylesview"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="toolbar_style">icons</property> - <child> - <object class="GtkToolButton" id="up"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="stylespreview|up">Previous</property> - <property name="use_underline">True</property> - <property name="icon_name">cmd/sc_prevrecord.png</property> - </object> - <packing> - <property name="expand">False</property> - <property name="homogeneous">True</property> - </packing> - </child> + <property name="can_focus">True</property> + <property name="margin">0</property> + <property name="model">liststore1</property> + <property name="columns">3</property> + <property name="item_width">70</property> + <property name="pixbuf-column">0</property> + <property name="text-column">1</property> </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkToolbar" id="downtoolbar"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="toolbar_style">icons</property> - <child> - <object class="GtkToolButton" id="down"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="stylespreview|down">Next</property> - <property name="use_underline">True</property> - <property name="icon_name">cmd/sc_nextrecord.png</property> - </object> - <packing> - <property name="expand">False</property> - <property name="homogeneous">True</property> - </packing> - </child> - </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="position">1</property> + <property name="fill">False</property> + <property name="position">0</property> </packing> </child> </object> |