From d078d1fbc762fbb62bd08fe80dfe726feb078543 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 18 Jan 2017 00:09:34 +0000 Subject: [PATCH] frmSearch: Added window icon --- source/bitmaps/bigimgs/searchicon.png | Bin 0 -> 3154 bytes source/search/frmSearch.cpp | 11 ++++++++++- source/search/frmSearch.h | 3 ++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 source/bitmaps/bigimgs/searchicon.png diff --git a/source/bitmaps/bigimgs/searchicon.png b/source/bitmaps/bigimgs/searchicon.png new file mode 100644 index 0000000000000000000000000000000000000000..ebf2742aec2c11c5e52f07b36cb34eb3f2d425d3 GIT binary patch literal 3154 zcmV-Y46XBtP)?e3^xZIMOAx+Cc7Znv(^*1?Y3mD<_qwA%WHZRr#(ppF=UU5Bj>2{pVF1p|cT zEeXj@a`Sp$&pE%BXa5LUGQv&n4L1>I`OG|X&dfdM`906~_ndQnFBiDN6|QiF|HrUQ zI=gFAw3G+L14^o;O34|}L z{|+R72-4FH)3Qv<3)3``xF@)d3nv~$EHWUqR;{LCKE3UpYhTSoEa`Gd0<5SVSgM40 zl^aHhX?Ypv900%pH`~javn>|PvSM6&yB0c(Go zy7owyzOgH+=WBvj3K!kMR;8rc9h~G@(zv|J9eY}-lePe>-{_eZ=llQ|CUJv`p6z8hJe;n-U|8quXmY>V(ywkMf)(!TMt^r#x9QRI{(J3$=5+m~OIiY~d^0p# zFuo5&xnK<09)9LqmEK>@E%UTr?0Ub+iaZ)+KF+7OK(I%uL&5#GjtKW{6MwQ(}r1L;PX~3*oy)dxBZ}I;tb&IjwLIXE= z7_T-NDj1MOKu<*LP2H0Aj@Cv(z=NbHOJPcn3U<}e)U2B zik3ciNg@_OsI9eaud17lb?bDx$)$oZ`X#`fb07SzQt~FP1d9CF_vkGpFLDNA0GnbO z-^erADh^B@j2{x9SXj}kol@^4K&BHA12Auf@9@X1@hOhtS1BcPOLb{^+pdjoj3K{K z;iFx!VsogR2zLqBg~h4!z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DZb6>mMF#Tc2i3+v79WZ2Y!qSsVI#I-F57*zuJl(<-;Sbb8)~e222hZ9N=8Rz)vyfC;u{**gwsf z{~$5r!OfF7kJl=xYQjC8hHwW5Xx=POu%IOWaPicl6O+m&1@nvYBe@0sL}Vc9>+gx= zbe#=N3AKf0^@aMYorE(L02pK72E(+{9{l+JotRo;?}b}U)B3qo;+l9QY&h{KG>tx6W{iPz1Kco`FDn+mf9dwXO>woo` z3ox8n5B=QRA5!y)x$~hhRRKPxwGC21!RW(iG_M{z9(F!`AAj-oM|FY!85H?Fa3r8p z5W!#(5Iu_OpKcgStm7iUCGof|v%E0*jqn;A1_$K1DZudVV#AJ%Wr5KmtXbHEU)DFJ)7<4(0YkjF>=!8VuYuoU zkTe+SXqCWNI}B?js(!pH)n+bV0SF8)-SHBN{HtLagOOe=@eAGwyak$8;)~CIkV-Qd zA6sV(210P|1L%uyf-MIh1EmL#$<7D&)Te{dD^-p6E=;YN%bm^33=H6PO0zZ?-~*JvUv_MXKZ1s&*j2`~3vU4(?*fc@XIlDYnT2mk;p|0@PJ zx(pF#cQO(F!tB6fla3*aNz``a;YcC}0Oo_`tWDU$&kQx=N6F)4h!`jkgC^Q`G z4SDf{<}aexvCdbBmPrSE8Qp50Fdo>_5_o>;cmH9^!G`OK<2gA#1069h{@5`Yzlm4F zHavhaYysKT2a>tE{6B*u@ZHzS@2D;r*!YPk&3f0aKp*#C_*o>?01;n|CBKVZ%*W?i z006*qw_S&9&#UlzzI4IZK&wMY=zDPcum7Cv_RDWFlrGzk1~I?#H5l4}R9S;BM{0wk swjyDz!krsVe%2vg;R;u{!ez_<0-;e0B9wV9!vFvP07*qoM6N<$g65?9jsO4v literal 0 HcmV?d00001 diff --git a/source/search/frmSearch.cpp b/source/search/frmSearch.cpp index 3ef2a0d..b2d1ac3 100644 --- a/source/search/frmSearch.cpp +++ b/source/search/frmSearch.cpp @@ -1,6 +1,6 @@ // frmSearch.cpp - Search form. // -// (c) 2012-2015 Xestia Software Development. +// (c) 2012-2017 Xestia Software Development. // // This file is part of Xestia Address Book. // @@ -59,6 +59,15 @@ frmSearch::frmSearch( wxWindow* parent ) frmSearchADT( parent ) { + // Setup the application icon. + + wxMemoryInputStream istream(bigimgs_searchicon_png, sizeof(bigimgs_searchicon_png)); + wxImage bigimgs_searchiconi(istream, wxBITMAP_TYPE_PNG); + wxBitmap searchiconbmp(bigimgs_searchiconi, -1); + wxIcon searchicon; + searchicon.CopyFromBitmap(searchiconbmp); + this->SetIcon(searchicon); + // Setup the search window. XABSearchPanel *InitPanel = new XABSearchPanel( tabSearch ); diff --git a/source/search/frmSearch.h b/source/search/frmSearch.h index 63abb01..088818f 100644 --- a/source/search/frmSearch.h +++ b/source/search/frmSearch.h @@ -1,6 +1,6 @@ // frmSearch.h - Search form header. // -// (c) 2012-2015 Xestia Software Development. +// (c) 2012-2017 Xestia Software Development. // // This file is part of Xestia Address Book. // @@ -28,6 +28,7 @@ Subclass of frmSearchADT, which is generated by wxFormBuilder. #include "../vcard/vcard.h" #include "../widgets/XABContactMenu.h" #include "XABSearchPanel.h" +#include "../bitmaps.h" #include #include -- 2.39.5