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 /include | |
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 'include')
-rw-r--r-- | include/vcl/weld.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 18e0cd6abdbc..7921948027a3 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -1253,6 +1253,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); } @@ -1289,6 +1290,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; |