diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2020-04-08 12:58:34 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2020-04-15 17:35:44 +0200 |
commit | 9b1c9ac6edcdeae431d6104c586ca7feffbb6483 (patch) | |
tree | 395bddaa18a31abfbc8a86277028b0d6087eb130 /cui/source/inc/about.hxx | |
parent | 0db34d1c5dd7d06435c5a5d58a42da2cbe007006 (diff) |
Related tdf#130778: New About dialog
More flexible dialog
logo & about images as SVGs
Change-Id: Icefa035893e241a7dee6aa28236e6b89b38477de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91908
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'cui/source/inc/about.hxx')
-rw-r--r-- | cui/source/inc/about.hxx | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/cui/source/inc/about.hxx b/cui/source/inc/about.hxx index aeda433cb2bd..ab03768a27df 100644 --- a/cui/source/inc/about.hxx +++ b/cui/source/inc/about.hxx @@ -22,24 +22,18 @@ #include <vcl/bitmapex.hxx> #include <vcl/weld.hxx> -class AboutDialog : public weld::DialogController +class AboutDialog : public weld::GenericDialogController { private: - std::unique_ptr<weld::Builder> m_xBuilder; - std::shared_ptr<weld::AboutDialog> m_xDialog; - std::unique_ptr<weld::Container> m_xContentArea; - std::unique_ptr<weld::Button> m_xCreditsButton; - std::unique_ptr<weld::Button> m_xWebsiteButton; - std::unique_ptr<weld::Button> m_xReleaseNotesButton; - std::unique_ptr<weld::Button> m_xCloseButton; + std::unique_ptr<weld::LinkButton> m_pCreditsButton; + std::unique_ptr<weld::LinkButton> m_pWebsiteButton; + std::unique_ptr<weld::LinkButton> m_pReleaseNotesButton; + std::unique_ptr<weld::Button> m_pCloseButton; - BitmapEx aLogoBitmap; - BitmapEx aBackgroundBitmap; - - OUString m_buildIdLinkString; - - void SetBuildIdLink(); - void SetLogo(); + std::unique_ptr<weld::Image> m_pBrandImage; + std::unique_ptr<weld::Image> m_pAboutImage; + std::unique_ptr<weld::Label> m_pVersionLabel; + std::unique_ptr<weld::Label> m_pCopyrightLabel; static OUString GetBuildId(); static OUString GetVersionString(); @@ -49,11 +43,7 @@ private: public: AboutDialog(weld::Window* pParent); - virtual weld::Dialog* getDialog() override { return m_xDialog.get(); } virtual ~AboutDialog() override; - - DECL_LINK(HandleClick, weld::Button&, void); - DECL_LINK(SizeAllocHdl, const Size&, void); }; #endif // INCLUDED_CUI_SOURCE_INC_ABOUT_HXX |