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-03-04 11:03:53 +0100 |
commit | 168b3ccdbd085af43cd52a2f3ea0213aebed9ae5 (patch) | |
tree | 9e3e0f07de5556fe2cff827c253213514c89a3e4 /include | |
parent | 1299ca78262c0c2eac1ceeb518af6f7bd0f9b8dd (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111660
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/salvtables.hxx | 1 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/salvtables.hxx b/include/vcl/salvtables.hxx index 498cd1c6d94e..be939b4176f6 100644 --- a/include/vcl/salvtables.hxx +++ b/include/vcl/salvtables.hxx @@ -1463,6 +1463,7 @@ private: DECL_LINK(SelectHdl, SvTreeListBox*, void); DECL_LINK(DeSelectHdl, SvTreeListBox*, void); DECL_LINK(DoubleClickHdl, SvTreeListBox*, bool); + DECL_LINK(CommandHdl, const CommandEvent&, bool); public: SalInstanceIconView(::IconView* pIconView, SalInstanceBuilder* pBuilder, bool bTakeOwnership); diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 30231aecaf30..ef208a1bc662 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -1055,6 +1055,7 @@ private: protected: Link<IconView&, void> m_aSelectionChangeHdl; Link<IconView&, bool> m_aItemActivatedHdl; + Link<const CommandEvent&, bool> m_aCommandHdl; void signal_selection_changed() { m_aSelectionChangeHdl.Call(*this); } bool signal_item_activated() { return m_aItemActivatedHdl.Call(*this); } @@ -1091,6 +1092,8 @@ public: */ void connect_item_activated(const Link<IconView&, bool>& rLink) { m_aItemActivatedHdl = rLink; } + void connect_command(const Link<const CommandEvent&, bool>& rLink) { m_aCommandHdl = rLink; } + virtual OUString get_selected_id() const = 0; virtual void clear() = 0; |