diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-08-29 20:17:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-08-30 22:18:37 +0200 |
commit | 69fbf74d5bf9c474a6ec04101426dfe79b4ad9bf (patch) | |
tree | b7ca5a562f9f2a65a04264e8dfdc0db0439d9da0 /extensions/source/abpilot/typeselectionpage.hxx | |
parent | 8cecd48af5dbd290d06641b7feeb7c0969752d57 (diff) |
weld addressbook wizard
Change-Id: I118ed34ddaf7d62e5bb15497399cd10533339328
Reviewed-on: https://gerrit.libreoffice.org/78287
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions/source/abpilot/typeselectionpage.hxx')
-rw-r--r-- | extensions/source/abpilot/typeselectionpage.hxx | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/extensions/source/abpilot/typeselectionpage.hxx b/extensions/source/abpilot/typeselectionpage.hxx index 219afd059bf2..cf5c537b39f0 100644 --- a/extensions/source/abpilot/typeselectionpage.hxx +++ b/extensions/source/abpilot/typeselectionpage.hxx @@ -22,30 +22,28 @@ #include "abspage.hxx" #include "addresssettings.hxx" -#include <vcl/edit.hxx> -#include <vcl/vclptr.hxx> - +#include <vcl/weld.hxx> namespace abp { class TypeSelectionPage final : public AddressBookSourcePage { - VclPtr<RadioButton> m_pEvolution; - VclPtr<RadioButton> m_pEvolutionGroupwise; - VclPtr<RadioButton> m_pEvolutionLdap; - VclPtr<RadioButton> m_pMORK; - VclPtr<RadioButton> m_pThunderbird; - VclPtr<RadioButton> m_pKab; - VclPtr<RadioButton> m_pMacab; - VclPtr<RadioButton> m_pOther; + std::unique_ptr<weld::RadioButton> m_xEvolution; + std::unique_ptr<weld::RadioButton> m_xEvolutionGroupwise; + std::unique_ptr<weld::RadioButton> m_xEvolutionLdap; + std::unique_ptr<weld::RadioButton> m_xMORK; + std::unique_ptr<weld::RadioButton> m_xThunderbird; + std::unique_ptr<weld::RadioButton> m_xKab; + std::unique_ptr<weld::RadioButton> m_xMacab; + std::unique_ptr<weld::RadioButton> m_xOther; struct ButtonItem { - VclPtr<RadioButton> m_pItem; + weld::RadioButton* m_pItem; AddressSourceType m_eType; bool m_bVisible; - ButtonItem( RadioButton *pItem, + ButtonItem( weld::RadioButton *pItem, AddressSourceType eType, bool bVisible ) : m_pItem( pItem ), @@ -57,7 +55,7 @@ namespace abp std::vector< ButtonItem > m_aAllTypes; public: - explicit TypeSelectionPage( OAddressBookSourcePilot* _pParent ); + explicit TypeSelectionPage(OAddressBookSourcePilot* pDialog, TabPageParent pPageParent); virtual ~TypeSelectionPage() override; virtual void dispose() override; @@ -76,7 +74,7 @@ namespace abp // OImportPage overridables virtual bool canAdvance() const override; - DECL_LINK( OnTypeSelected, Button*, void ); + DECL_LINK( OnTypeSelected, weld::Button&, void ); void selectType( AddressSourceType _eType ); }; |