[Libreoffice-commits] core.git: sfx2/source sfx2/uiconfig

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 12 15:05:15 UTC 2021


 sfx2/source/devtools/ObjectInspectorTreeHandler.cxx |    5 ++
 sfx2/uiconfig/ui/developmenttool.ui                 |   40 +++++++++++++++++---
 2 files changed, 40 insertions(+), 5 deletions(-)

New commits:
commit cd2e32cae86f31e7dff8b350e3c5e551c79f4bc1
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Thu Mar 11 12:26:38 2021 +0900
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Mar 12 16:04:26 2021 +0100

    devtools: make all columns sorted in all tree views
    
    Change-Id: I0a20948fcad6919c5ee1a0f18d649ed9f7808114
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112371
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index e0f2b4ae9d5d..6b6a1bdfcc1d 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -736,6 +736,11 @@ ObjectInspectorTreeHandler::ObjectInspectorTreeHandler(
     mpPropertiesTreeView->connect_changed(LINK(this, ObjectInspectorTreeHandler, SelectionChanged));
     mpMethodsTreeView->connect_changed(LINK(this, ObjectInspectorTreeHandler, SelectionChanged));
 
+    mpInterfacesTreeView->make_sorted();
+    mpServicesTreeView->make_sorted();
+    mpPropertiesTreeView->make_sorted();
+    mpMethodsTreeView->make_sorted();
+
     mpObjectInspectorToolbar->connect_clicked(
         LINK(this, ObjectInspectorTreeHandler, ToolbarButtonClicked));
     mpObjectInspectorToolbar->set_item_sensitive("inspect", false);
diff --git a/sfx2/uiconfig/ui/developmenttool.ui b/sfx2/uiconfig/ui/developmenttool.ui
index 22c1f5f315f1..9f23752d7f26 100644
--- a/sfx2/uiconfig/ui/developmenttool.ui
+++ b/sfx2/uiconfig/ui/developmenttool.ui
@@ -174,9 +174,12 @@
                           <object class="GtkTreeSelection"/>
                         </child>
                         <child>
-                          <object class="GtkTreeViewColumn" id="treeviewcolumn4">
+                          <object class="GtkTreeViewColumn" id="interfaces_treeviewcolumn1">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|name">Name</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">0</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext4"/>
                               <attributes>
@@ -223,6 +226,9 @@
                           <object class="GtkTreeViewColumn" id="services_treeviewcolumn1">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|name">Name</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">0</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext7"/>
                               <attributes>
@@ -273,6 +279,9 @@
                           <object class="GtkTreeViewColumn" id="properties_treeviewcolumn1">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|object">Object</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">0</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext1"/>
                               <attributes>
@@ -285,6 +294,9 @@
                           <object class="GtkTreeViewColumn" id="properties_treeviewcolumn2">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|value">Value</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">1</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext2"/>
                               <attributes>
@@ -297,6 +309,9 @@
                           <object class="GtkTreeViewColumn" id="properties_treeviewcolumn3">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|type">Type</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">2</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext3"/>
                               <attributes>
@@ -309,6 +324,9 @@
                           <object class="GtkTreeViewColumn" id="properties_treeviewcolumn4">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|info">Info</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">3</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext5"/>
                               <attributes>
@@ -356,9 +374,12 @@
                           <object class="GtkTreeSelection"/>
                         </child>
                         <child>
-                          <object class="GtkTreeViewColumn" id="treeviewcolumn10">
+                          <object class="GtkTreeViewColumn" id="methods_treeviewcolumn1">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|method">Method</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">0</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext10"/>
                               <attributes>
@@ -368,9 +389,12 @@
                           </object>
                         </child>
                         <child>
-                          <object class="GtkTreeViewColumn" id="treeviewcolumn11">
+                          <object class="GtkTreeViewColumn" id="methods_treeviewcolumn2">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|returntype">Return Type</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">1</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext11"/>
                               <attributes>
@@ -380,9 +404,12 @@
                           </object>
                         </child>
                         <child>
-                          <object class="GtkTreeViewColumn" id="treeviewcolumn12">
+                          <object class="GtkTreeViewColumn" id="methods_treeviewcolumn3">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|parameters">Parameters</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">2</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext12"/>
                               <attributes>
@@ -392,9 +419,12 @@
                           </object>
                         </child>
                         <child>
-                          <object class="GtkTreeViewColumn" id="treeviewcolumn13">
+                          <object class="GtkTreeViewColumn" id="methods_treeviewcolumn4">
                             <property name="resizable">True</property>
                             <property name="title" translatable="yes" context="developmenttool|implementation_class">Implementation Class</property>
+                            <property name="clickable">True</property>
+                            <property name="sort-indicator">True</property>
+                            <property name="sort-column-id">3</property>
                             <child>
                               <object class="GtkCellRendererText" id="obj_insp_cellrenderertext13"/>
                               <attributes>


More information about the Libreoffice-commits mailing list