From: Steve Brokenshire Date: Thu, 9 Mar 2017 23:53:22 +0000 (+0000) Subject: frmPreferences: Added icons X-Git-Tag: release-0.18~10 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=0690fc58f73ac6938d29f6df9d66ce96c43516ce frmPreferences: Added icons --- diff --git a/source/bitmaps/icons/hideaddressbooks.png b/source/bitmaps/icons/hideaddressbooks.png new file mode 100644 index 0000000..7aecb6f Binary files /dev/null and b/source/bitmaps/icons/hideaddressbooks.png differ diff --git a/source/bitmaps/icons/windowpos.png b/source/bitmaps/icons/windowpos.png new file mode 100644 index 0000000..de56d77 Binary files /dev/null and b/source/bitmaps/icons/windowpos.png differ diff --git a/source/frmPreferences.cpp b/source/frmPreferences.cpp index c9623e0..2b2f481 100644 --- a/source/frmPreferences.cpp +++ b/source/frmPreferences.cpp @@ -23,6 +23,7 @@ #include "common/preferences.h" #include "common/dirs.h" #include "bitmaps.h" +#include "bitmaps/preferences.h" #include "import/import.h" #include "export/export.h" @@ -33,7 +34,6 @@ #include #include - frmPreferences::frmPreferences( wxWindow* parent ) : frmPreferencesADT( parent ) @@ -44,6 +44,17 @@ frmPreferencesADT( parent ) wxMemoryInputStream astream(icons_accinet_png, sizeof(icons_accinet_png)); wxMemoryInputStream bstream(icons_acclocal_png, sizeof(icons_acclocal_png)); wxMemoryInputStream cstream(icons_accunsupported_png, sizeof(icons_accunsupported_png)); + wxMemoryInputStream windowposstream(icons_windowpos_png, sizeof(icons_windowpos_png)); + wxMemoryInputStream hideaddressbooksstream(icons_hideaddressbooks_png, sizeof(icons_hideaddressbooks_png)); + + wxImage icons_windowpos_png(windowposstream, wxBITMAP_TYPE_PNG); + wxBitmap WindowPosition(icons_windowpos_png, -1); + + wxImage icons_hideaddressbooks_png(hideaddressbooksstream, wxBITMAP_TYPE_PNG); + wxBitmap HideAddressBooks(icons_hideaddressbooks_png, -1); + + bmpWindowPosition->SetBitmap(WindowPosition); + bmpLocalAddressBooks->SetBitmap(HideAddressBooks); wxImage icons_accinet_png(astream, wxBITMAP_TYPE_PNG); wxBitmap AccInet(icons_accinet_png, -1);