summaryrefslogtreecommitdiff
path: root/sd/uiconfig
diff options
context:
space:
mode:
authorRashesh <rashesh.padia@collabora.com>2024-11-25 17:07:59 +0530
committerTomaž Vajngerl <quikee@gmail.com>2024-12-04 07:40:30 +0100
commita36a58933a1e07d3f54bacd5c2fe8ca53063a63a (patch)
tree577e3a8959f7d0dedf7409d899ab4de5a039588a /sd/uiconfig
parent171aa32c38569803f7470cf30180b66707e2db41 (diff)
sd: convert sidebar masterpage panels from drawingview to iconview
- also removes unused PreviewValueSet Change-Id: I5e7dacb4f472de526a61366295bc91edca12e9ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177642 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd/uiconfig')
-rw-r--r--sd/uiconfig/simpress/ui/masterpagepanel.ui41
-rw-r--r--sd/uiconfig/simpress/ui/masterpagepanelall.ui41
-rw-r--r--sd/uiconfig/simpress/ui/masterpagepanelrecent.ui41
3 files changed, 105 insertions, 18 deletions
diff --git a/sd/uiconfig/simpress/ui/masterpagepanel.ui b/sd/uiconfig/simpress/ui/masterpagepanel.ui
index 429032ed2148..666d30ffacb5 100644
--- a/sd/uiconfig/simpress/ui/masterpagepanel.ui
+++ b/sd/uiconfig/simpress/ui/masterpagepanel.ui
@@ -3,22 +3,51 @@
<interface domain="sd">
<requires lib="gtk+" version="3.20"/>
<!-- n-columns=1 n-rows=1 -->
- <object class="GtkGrid" id="MasterPagePanel">
+ <object class="GtkTreeStore" id="liststore1">
+ <columns>
+ <!-- column-name pixbuf -->
+ <column type="GdkPixbuf"/>
+ <!-- column-name id -->
+ <column type="gchararray"/>
+ </columns>
+ </object>
+ <object class="GtkBox" id="MasterPagePanel">
<property name="visible">True</property>
<property name="can-focus">False</property>
- <property name="hexpand">True</property>
<property name="vexpand">True</property>
+ <property name="orientation">vertical</property>
<child>
- <object class="GtkDrawingArea" id="usedvalueset">
+ <object class="GtkScrolledWindow" id="masterpagecurrent_icons_scrolled_window">
<property name="visible">True</property>
<property name="can-focus">True</property>
- <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_STRUCTURE_MASK</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
+ <property name="hscrollbar-policy">never</property>
+ <property name="shadow-type">in</property>
+ <child>
+ <object class="GtkIconView" id="masterpagecurrent_icons">
+ <property name="visible">True</property>
+ <property name="item-padding">2</property>
+ <property name="can-focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="model">liststore1</property>
+ <property name="pixbuf-column">0</property>
+ <property name="item-width">55</property>
+ <property name="margin">6</property>
+ <property name="activate-on-single-click">True</property>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="masterpagecurrent_icons-atkobject">
+ <property name="AtkObject::accessible-description" translatable="yes" context="masterpagecurrentpanel|extended_tip|masterpagecurrent_icons">Currently selected master slide.</property>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
<packing>
- <property name="left-attach">0</property>
- <property name="top-attach">0</property>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
diff --git a/sd/uiconfig/simpress/ui/masterpagepanelall.ui b/sd/uiconfig/simpress/ui/masterpagepanelall.ui
index 979d06990e9e..078c4b7bec09 100644
--- a/sd/uiconfig/simpress/ui/masterpagepanelall.ui
+++ b/sd/uiconfig/simpress/ui/masterpagepanelall.ui
@@ -3,22 +3,51 @@
<interface domain="sd">
<requires lib="gtk+" version="3.20"/>
<!-- n-columns=1 n-rows=1 -->
- <object class="GtkGrid" id="MasterPagePanel">
+ <object class="GtkTreeStore" id="liststore1">
+ <columns>
+ <!-- column-name pixbuf -->
+ <column type="GdkPixbuf"/>
+ <!-- column-name id -->
+ <column type="gchararray"/>
+ </columns>
+ </object>
+ <object class="GtkBox" id="MasterPagePanel">
<property name="visible">True</property>
<property name="can-focus">False</property>
- <property name="hexpand">True</property>
<property name="vexpand">True</property>
+ <property name="orientation">vertical</property>
<child>
- <object class="GtkDrawingArea" id="allvalueset">
+ <object class="GtkScrolledWindow" id="masterpageall_icons_scrolled_window">
<property name="visible">True</property>
<property name="can-focus">True</property>
- <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_STRUCTURE_MASK</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
+ <property name="hscrollbar-policy">never</property>
+ <property name="shadow-type">in</property>
+ <child>
+ <object class="GtkIconView" id="masterpageall_icons">
+ <property name="item-padding">2</property>
+ <property name="visible">True</property>
+ <property name="can-focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="model">liststore1</property>
+ <property name="pixbuf-column">0</property>
+ <property name="activate-on-single-click">True</property>
+ <property name="item-width">55</property>
+ <property name="margin">6</property>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="masterpageall_icons-atkobject">
+ <property name="AtkObject::accessible-description" translatable="yes" context="masterpageallpanel|extended_tip|masterpageall_icons">Select master slide from available.</property>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
<packing>
- <property name="left-attach">0</property>
- <property name="top-attach">0</property>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
diff --git a/sd/uiconfig/simpress/ui/masterpagepanelrecent.ui b/sd/uiconfig/simpress/ui/masterpagepanelrecent.ui
index 4ec8487cfc5c..9be8d5a3ec9e 100644
--- a/sd/uiconfig/simpress/ui/masterpagepanelrecent.ui
+++ b/sd/uiconfig/simpress/ui/masterpagepanelrecent.ui
@@ -3,22 +3,51 @@
<interface domain="sd">
<requires lib="gtk+" version="3.20"/>
<!-- n-columns=1 n-rows=1 -->
- <object class="GtkGrid" id="MasterPagePanel">
+ <object class="GtkTreeStore" id="liststore1">
+ <columns>
+ <!-- column-name pixbuf -->
+ <column type="GdkPixbuf"/>
+ <!-- column-name id -->
+ <column type="gchararray"/>
+ </columns>
+ </object>
+ <object class="GtkBox" id="MasterPagePanel">
<property name="visible">True</property>
<property name="can-focus">False</property>
- <property name="hexpand">True</property>
<property name="vexpand">True</property>
+ <property name="orientation">vertical</property>
<child>
- <object class="GtkDrawingArea" id="recentvalueset">
+ <object class="GtkScrolledWindow" id="masterpagerecent_icons_scrolled_window">
<property name="visible">True</property>
<property name="can-focus">True</property>
- <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_STRUCTURE_MASK</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
+ <property name="hscrollbar-policy">never</property>
+ <property name="shadow-type">in</property>
+ <child>
+ <object class="GtkIconView" id="masterpagerecent_icons">
+ <property name="item-padding">2</property>
+ <property name="visible">True</property>
+ <property name="can-focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="model">liststore1</property>
+ <property name="pixbuf-column">0</property>
+ <property name="item-width">55</property>
+ <property name="margin">6</property>
+ <property name="activate-on-single-click">True</property>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="masterpagerecent_icons-atkobject">
+ <property name="AtkObject::accessible-description" translatable="yes" context="masterpagerecentpanel|extended_tip|masterpagerecent_icons">Select recenty used master slide.</property>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
<packing>
- <property name="left-attach">0</property>
- <property name="top-attach">0</property>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
</packing>
</child>
</object>