summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-02-25 21:11:39 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-02-28 01:13:47 +0100
commit129deefc1f4ab9b3bc5005d6646ed07064a6aec1 (patch)
treeabe6a1a50f0a30e0f762a6b4512835c1606e6f2c /include
parenteb3789bd35e9dc62e92008467bfaa0650cd8d6be (diff)
devtools: on demand create the content of tab pages
Until now all the tree views in each tab page were populated at once when the object was inspected. With this change, the tree views are filled on demand when the user enters a tab page, and is cleaned when the user leaves a tab page. Change-Id: I7f2ff89ab4c09412563b71e6524d4529318dee85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111533 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/devtools/DevelopmentToolDockingWindow.hxx1
-rw-r--r--include/sfx2/devtools/ObjectInspectorTreeHandler.hxx6
2 files changed, 6 insertions, 1 deletions
diff --git a/include/sfx2/devtools/DevelopmentToolDockingWindow.hxx b/include/sfx2/devtools/DevelopmentToolDockingWindow.hxx
index 97b0c8e06e68..f5c214949c6a 100644
--- a/include/sfx2/devtools/DevelopmentToolDockingWindow.hxx
+++ b/include/sfx2/devtools/DevelopmentToolDockingWindow.hxx
@@ -37,6 +37,7 @@ private:
std::unique_ptr<weld::TreeView> mpDocumentModelTreeView;
std::unique_ptr<weld::ToggleButton> mpSelectionToggle;
std::unique_ptr<weld::Toolbar> mpObjectInspectorToolbar;
+ std::unique_ptr<weld::Notebook> mpObjectInspectorNotebook;
css::uno::Reference<css::uno::XInterface> mxRoot;
css::uno::Reference<css::uno::XInterface> mxCurrentSelection;
diff --git a/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx b/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx
index c61da73aa6e4..65a16be8c890 100644
--- a/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx
+++ b/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx
@@ -30,6 +30,7 @@ private:
std::unique_ptr<weld::TreeView>& mpMethodsTreeView;
std::unique_ptr<weld::Label>& mpClassNameLabel;
std::unique_ptr<weld::Toolbar>& mpObjectInspectorToolbar;
+ std::unique_ptr<weld::Notebook>& mpObjectInspectorNotebook;
std::deque<css::uno::Any> maInspectionStack;
@@ -58,7 +59,8 @@ public:
std::unique_ptr<weld::TreeView>& pPropertiesTreeView,
std::unique_ptr<weld::TreeView>& pMethodsTreeView,
std::unique_ptr<weld::Label>& pClassNameLabel,
- std::unique_ptr<weld::Toolbar>& pObjectInspectorToolbar);
+ std::unique_ptr<weld::Toolbar>& pObjectInspectorToolbar,
+ std::unique_ptr<weld::Notebook>& pObjectInspectorNotebook);
DECL_LINK(ExpandingHandlerInterfaces, const weld::TreeIter&, bool);
DECL_LINK(ExpandingHandlerServices, const weld::TreeIter&, bool);
@@ -68,6 +70,8 @@ public:
DECL_LINK(PopupMenuHandler, const CommandEvent&, bool);
DECL_LINK(ToolbarButtonClicked, const OString&, void);
+ DECL_LINK(NotebookEnterPage, const OString&, void);
+ DECL_LINK(NotebookLeavePage, const OString&, bool);
void introspect(css::uno::Reference<css::uno::XInterface> const& xInterface);