From 0777bad2bf8ef3c6b8dc122f4553d5cec5e47a4a Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Thu, 2 May 2013 15:06:40 +0200 Subject: [PATCH] Feature #2005 Black Box with MiniTools Icons The black box must load all minitools icons and make them available as wxBitmap*'s. The black box is called MiniToolsIcons. For now it only loads the CreaDevManager Icon as it's the only icon created for CreaTools --- CMakeLists.txt | 2 +- bbtk_package_creaMiniTools/CMakeLists.txt | 2 +- .../src/bbcreaMiniToolsMiniToolsIcons.cxx | 71 +++++ .../src/bbcreaMiniToolsMiniToolsIcons.h | 51 +++ .../src/images/CDM64.xpm | 297 ++++++++++++++++++ 5 files changed, 421 insertions(+), 2 deletions(-) create mode 100644 bbtk_package_creaMiniTools/src/bbcreaMiniToolsMiniToolsIcons.cxx create mode 100644 bbtk_package_creaMiniTools/src/bbcreaMiniToolsMiniToolsIcons.h create mode 100644 bbtk_package_creaMiniTools/src/images/CDM64.xpm diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ae9091..03371d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,7 @@ SET(USE_CREA OFF) SET(USE_GDCM OFF) SET(USE_GDCM_VTK OFF) SET(USE_GDCM2 OFF) -SET(USE_WXWIDGETS OFF) +SET(USE_WXWIDGETS ON) SET(USE_KWWIDGETS OFF) SET(USE_VTK OFF) SET(USE_ITK OFF) diff --git a/bbtk_package_creaMiniTools/CMakeLists.txt b/bbtk_package_creaMiniTools/CMakeLists.txt index 4486074..da4190c 100644 --- a/bbtk_package_creaMiniTools/CMakeLists.txt +++ b/bbtk_package_creaMiniTools/CMakeLists.txt @@ -67,7 +67,7 @@ SET(USE_BOOST ON) # SET(${BBTK_PACKAGE_NAME}_USE_GDCM ON) # SET(${BBTK_PACKAGE_NAME}_USE_GDCM_VTK ON) # SET(${BBTK_PACKAGE_NAME}_USE_GSMIS ON) -# SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON) + SET(${BBTK_PACKAGE_NAME}_USE_WXWIDGETS ON) # SET(${BBTK_PACKAGE_NAME}_USE_KWWIDGETS ON) #=========================================================================== diff --git a/bbtk_package_creaMiniTools/src/bbcreaMiniToolsMiniToolsIcons.cxx b/bbtk_package_creaMiniTools/src/bbcreaMiniToolsMiniToolsIcons.cxx new file mode 100644 index 0000000..9859575 --- /dev/null +++ b/bbtk_package_creaMiniTools/src/bbcreaMiniToolsMiniToolsIcons.cxx @@ -0,0 +1,71 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#include "bbcreaMiniToolsMiniToolsIcons.h" +#include "bbcreaMiniToolsPackage.h" +#include "images/CDM64.xpm" +namespace bbcreaMiniTools +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMiniTools,MiniToolsIcons) +BBTK_BLACK_BOX_IMPLEMENTATION(MiniToolsIcons,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void MiniToolsIcons::Process() +{ + +// THE MAIN PROCESSING METHOD BODY +// Here we simply set the input 'In' value to the output 'Out' +// And print out the output value +// INPUT/OUTPUT ACCESSORS ARE OF THE FORM : +// void bbSet{Input|Output}NAME(const TYPE&) +// const TYPE& bbGet{Input|Output}NAME() const +// Where : +// * NAME is the name of the input/output +// (the one provided in the attribute 'name' of the tag 'input') +// * TYPE is the C++ type of the input/output +// (the one provided in the attribute 'type' of the tag 'input') + bbSetOutputIconCreaDevManager( new wxBitmap(CDM64) ); + //std::cout << "Output value = " < +#ifdef __BORLANDC__ +#pragma hdrstop +#endif +#ifndef WX_PRECOMP +#include +#endif + +namespace bbcreaMiniTools +{ + +class bbcreaMiniTools_EXPORT MiniToolsIcons + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(MiniToolsIcons,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== + BBTK_DECLARE_OUTPUT(IconCreaDevManager,wxBitmap*); + BBTK_PROCESS(Process); + void Process(); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(MiniToolsIcons,bbtk::AtomicBlackBox); +BBTK_NAME("MiniToolsIcons"); +BBTK_AUTHOR("DanielGonzalez"); +BBTK_DESCRIPTION("Icon vector"); +BBTK_CATEGORY("loader"); +BBTK_OUTPUT(MiniToolsIcons,IconCreaDevManager,"CreaDevManager Icon",wxBitmap*,""); +BBTK_END_DESCRIBE_BLACK_BOX(MiniToolsIcons); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +} +// EO namespace bbcreaMiniTools + +#endif // __bbcreaMiniToolsMiniToolsIcons_h_INCLUDED__ + diff --git a/bbtk_package_creaMiniTools/src/images/CDM64.xpm b/bbtk_package_creaMiniTools/src/images/CDM64.xpm new file mode 100644 index 0000000..165ffbf --- /dev/null +++ b/bbtk_package_creaMiniTools/src/images/CDM64.xpm @@ -0,0 +1,297 @@ +/* XPM */ +const static char * CDM64[] = { +"64 64 230 2", +" c None", +". c #1D242D", +"+ c #1C232C", +"@ c #1A212B", +"# c #19212A", +"$ c #192029", +"% c #19202A", +"& c #1A212A", +"* c #141C25", +"= c #131A24", +"- c #202730", +"; c #272E37", +"> c #2B313A", +", c #282F37", +"' c #222931", +") c #151C25", +"! c #131B24", +"~ c #4A5158", +"{ c #A0A4A7", +"] c #CFD0D2", +"^ c #E6E7E8", +"/ c #F1F2F2", +"( c #E9EAEB", +"_ c #D4D5D7", +": c #A8ABAE", +"< c #575D63", +"[ c #151D26", +"} c #1B222B", +"| c #141B25", +"1 c #777B81", +"2 c #F6F7F7", +"3 c #FFFFFF", +"4 c #898C91", +"5 c #161D26", +"6 c #4C5158", +"7 c #FBFBFC", +"8 c #FDFDFD", +"9 c #F4F4F5", +"0 c #F1F1F2", +"a c #565B62", +"b c #141B24", +"c c #A3A5AA", +"d c #E1E1E3", +"e c #898D92", +"f c #4E535A", +"g c #30373E", +"h c #252C35", +"i c #272D36", +"j c #AAADB0", +"k c #151C26", +"l c #222831", +"m c #D3D5D7", +"n c #B0B2B5", +"o c #252C34", +"p c #030A15", +"q c #232A33", +"r c #272E36", +"s c #D8D9DB", +"t c #232A32", +"u c #C6C8CA", +"v c #0F1720", +"w c #323940", +"x c #929599", +"y c #CACCCE", +"z c #E9E9EA", +"A c #F6F6F7", +"B c #293038", +"C c #2D343C", +"D c #F3F3F4", +"E c #52575F", +"F c #5F646A", +"G c #ECECED", +"H c #52575E", +"I c #2F353D", +"J c #DADCDD", +"K c #6D7177", +"L c #FAFAFA", +"M c #F9F9F9", +"N c #F2F2F3", +"O c #EEEFEF", +"P c #EDEEEF", +"Q c #EFEFF0", +"R c #EEEEEF", +"S c #2D333C", +"T c #E2E3E4", +"U c #D5D7D8", +"V c #777B80", +"W c #41474F", +"X c #2C323B", +"Y c #2A3139", +"Z c #2B323A", +"` c #30363E", +" . c #2A313A", +".. c #242A33", +"+. c #282E37", +"@. c #252B34", +"#. c #212831", +"$. c #242B34", +"%. c #222932", +"&. c #F1F1F1", +"*. c #9B9FA2", +"=. c #0F1620", +"-. c #181F28", +";. c #B7B9BC", +">. c #171E27", +",. c #FCFCFC", +"'. c #52585F", +"). c #121922", +"!. c #F2F3F3", +"~. c #2B3139", +"{. c #373D45", +"]. c #73787D", +"^. c #E1E2E3", +"/. c #F4F4F4", +"(. c #F5F5F5", +"_. c #DFE0E1", +":. c #C9CBCD", +"<. c #B3B5B8", +"[. c #7D8186", +"}. c #3C4249", +"|. c #2D333B", +"1. c #262C35", +"2. c #5E6369", +"3. c #CCCED0", +"4. c #DCDDDE", +"5. c #9B9EA2", +"6. c #4C5259", +"7. c #2A3039", +"8. c #40464D", +"9. c #D1D2D4", +"0. c #A0A3A7", +"a. c #696E73", +"b. c #4B5057", +"c. c #6F7379", +"d. c #EFF0F0", +"e. c #D2D4D5", +"f. c #BEC0C2", +"g. c #BCBEC1", +"h. c #C8C9CC", +"i. c #D8DADB", +"j. c #D8D9DA", +"k. c #292F38", +"l. c #F8F8F9", +"m. c #9FA2A6", +"n. c #4F545B", +"o. c #1E252E", +"p. c #595E65", +"q. c #8D9095", +"r. c #C4C6C8", +"s. c #808489", +"t. c #E6E6E7", +"u. c #363C44", +"v. c #85898E", +"w. c #ABAEB1", +"x. c #C9CACC", +"y. c #5B6067", +"z. c #41474E", +"A. c #B2B4B7", +"B. c #CDCED0", +"C. c #383E46", +"D. c #F7F8F8", +"E. c #DEDFE0", +"F. c #444951", +"G. c #7E8287", +"H. c #92959A", +"I. c #CECFD1", +"J. c #242B33", +"K. c #51565D", +"L. c #63686E", +"M. c #212830", +"N. c #1F262F", +"O. c #E8E9EA", +"P. c #20262F", +"Q. c #DADBDD", +"R. c #E0E0E2", +"S. c #6B6F75", +"T. c #1E252D", +"U. c #232932", +"V. c #262D36", +"W. c #494F56", +"X. c #D9DADC", +"Y. c #3F454D", +"Z. c #95989C", +"`. c #DBDCDE", +" + c #CBCDCF", +".+ c #585D64", +"++ c #64696F", +"@+ c #656A70", +"#+ c #D6D7D9", +"$+ c #C5C7C9", +"%+ c #353B43", +"&+ c #3D434B", +"*+ c #B8BABD", +"=+ c #D1D3D5", +"-+ c #BBBDC0", +";+ c #A3A5A9", +">+ c #73777C", +",+ c #121923", +"'+ c #51575E", +")+ c #F2F2F2", +"!+ c #ECEDED", +"~+ c #B6B8BB", +"{+ c #B5B7BA", +"]+ c #121A23", +"^+ c #CED0D1", +"/+ c #20272F", +"(+ c #AEB0B3", +"_+ c #75797F", +":+ c #40454E", +"<+ c #2C333B", +"[+ c #2E353D", +"}+ c #30363F", +"|+ c #9C9FA3", +"1+ c #131A23", +"2+ c #5C6167", +"3+ c #F0F1F1", +"4+ c #F7F7F7", +"5+ c #929699", +"6+ c #F3F3F3", +"7+ c #6E7378", +"8+ c #161E27", +"9+ c #5D6268", +"0+ c #ABADB1", +"a+ c #D6D6D8", +"b+ c #EBECED", +"c+ c #E7E8E9", +"d+ c #CDCFD0", +"e+ c #9DA0A4", +"f+ c #454B52", +"g+ c #1A222B", +" ", +" ", +" ", +" ", +" ", +" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", +" . . + @ # $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ % & + . . ", +" . . . * = - ; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > , ' ) = + . . ", +" . + ! ~ { ] ^ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / ( _ : < [ } . ", +" . . | 1 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 5 + . ", +" . . | 6 7 3 3 3 8 9 0 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 0 9 8 3 3 3 3 a = . . ", +" . . b c 3 3 d e f g h i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i h g f e d 3 3 j k + . ", +" . } l m 3 n o p 5 q r i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i i r q 5 p o n 3 s t & . ", +" . % , 9 u v w x y z / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / z y x w v u A B $ . ", +" . $ C D E F G 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 G F H D C $ . ", +" . $ I J K L 3 3 3 3 M N / / / O P Q / / / 0 P P R P P P P R P P 0 / / / Q P O / / / N M 3 3 3 3 L K J I $ . ", +" . $ S T U 3 3 3 s V W X Y Z i ` .h ..+.@.@.B Y , o , B .` > , ' #.$.%.o Y q - r Y X W V s 3 3 3 U T S $ . ", +" . $ > &.3 3 3 *.$.=.-.+ + + . . . . . + . . . . . . . . . . . . . . . . . . . . & $ $ 5 =.$.*.3 3 3 &.> $ . ", +" . $ > / 3 3 ;.* >.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . >.* ;.3 3 / > $ . ", +" . $ > / 3 ,.'.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . ).'.,.3 / > $ . ", +" . $ > / 3 !.~.+ . . . . . . . . . . . . . . . {.].n ] ^./.(._.:.<.[.}.. . . . . . . . . . . & |.!.3 / > $ . ", +" . $ > / 3 / 1.. . . . . . . . . . . . . . 2.3.3 3 3 3 3 3 3 3 3 3 3 3 4.5.6.. . . . . . . . } 7./ 3 / > $ . ", +" . $ > / 3 / 1.. . . . . . . . . . . . 8.9.3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 0.. . . . . . . . + > / 3 / > $ . ", +" . $ > / 3 / 1.. . . . . . . . . . . a./.3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 b.. . . . . . . . + > / 3 / > $ . ", +" . $ > / 3 / 1.. . . . . . . . . . c.3 3 3 3 3 3 3 3 d.e.f.g.h.i.,.3 3 3 j.. . . . . . . . . + k./ 3 / > $ . ", +" . $ > / 3 / 1.. . . . . . . . . '.M 3 3 3 3 3 l.m.n.o.. . . . . r p.q.r.s.. . . . . . . . . . i / 3 / > $ . ", +" . $ > / 3 / i . . . . . . . . ..t.3 3 3 3 3 u u.. . . . . . . . . . . . . . . . . . . . . . . $./ 3 / > $ . ", +" . $ > / 3 / k.+ . . . . . . . v.3 3 3 3 3 w.- . . . . . . . . . . . . . . . . . . . . . . . . #./ 3 / > $ . ", +" . $ > / 3 / > + . . . . . . ' d.3 3 3 3 x.#.. . . . . . . . . . . . . . . . . . . . . . . . . - / 3 / > $ . ", +" . $ > / 3 / > + . . . . . . y.3 3 3 3 ,.z.. . . . . . . . . . . . . . . . . . . . . . . . . . - / 3 / > $ . ", +" . $ > / 3 / k.+ . . . . . . 0.3 3 3 3 A.. . . . . . . . . . . . . . . . . . . . . . . . . . . - / 3 / > $ . ", +" . $ > / 3 / +.. . . . . . . B.3 3 3 3 a.. . . . . . . . . . . . . . . . . . . . . . . . . . . - / 3 / > $ . ", +" . $ > / 3 / 1.. . . . . . . T 3 3 3 3 C.. . . . . . . . . . . . . . . . . . . . . . . . . . . - / 3 / > $ . ", +" . $ > / 3 / ... . . . . . . D.3 3 3 3 ... . . . . . . . . . . . . . . . . . . . . . . . . . . #./ 3 / > $ . ", +" . $ > / 3 / @.+ . . . . . . N 3 3 3 3 > . . . . . . . . . . . . . . . . . . . . . . . . . . . ../ 3 / > $ . ", +" . $ > / 3 / i . . . . . . . E.3 3 3 3 F.. . . . . . . . . . . . . . . . . . . . . . + - . . . @./ 3 / > $ . ", +" . $ > / 3 / , + . . . . . . h.3 3 3 3 G.. . . . . . . . . . . . . . . . . . . . . + . . . . . o / 3 / > $ . ", +" . $ > / 3 / +.. . . . . . . H.3 3 3 3 I.. . . . . . . . . . . . . + . . . . . . . . . . . . . ../ 3 / > $ . ", +" . $ > / 3 / J.o.. . . . . . K.3 3 3 3 3 L.. . . . . . . . . . . . . . . . . . . . . . . . . . M./ 3 / > $ . ", +" . $ > / 3 / @.o.. . . . . . N.t.3 3 3 3 O.{.. . . . . . . . . . . . . . . . . . . . . . . . . P./ 3 / > $ . ", +" . $ > / 3 / +.. . . . . . . . 1 3 3 3 3 3 Q.C.. . . . . . . . . . . . . . . . . . . . . . . . . / 3 / > $ . ", +" . $ > / 3 / B + . . . . . . . #.R.3 3 3 3 3 Q S.T.. . . . . . . . . . . U.. . . . . . . . . . . / 3 / > $ . ", +" . $ > / 3 / V.+ . . . . . . . . W.2 3 3 3 3 3 3 X.[.Y.. . . . . h p.Z.9.`.T.. . . . . . . . . N./ 3 / > $ . ", +" . $ > / 3 / $.+ . . . . . . . . . S.3 3 3 3 3 3 3 3 3 d.`. +i.Q 3 3 3 3 3 .+. . . . . . . . . #./ 3 / > $ . ", +" . $ > / 3 / 1.. . . . . . . . . . . ++/.3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ;.. . . . . . . . . $./ 3 / > $ . ", +" . $ > / 3 / 1.. . . . . . . . . . . . F.e.3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 L C . . . . . . . . 1./ 3 / > $ . ", +" . $ > / 3 / @.. . . . . . . . . . . . . T.@+#+3 3 3 3 3 3 3 3 3 3 3 ,.$+[.%+. . . . . . . . . i / 3 / > $ . ", +" . $ > / 3 / 1.+ . . . . . . . . . . . . . . . &+[.*+=+t.l.R _ -+;+>+C + . . . . . . . . . . . +./ 3 / > $ . ", +" . $ > / 3 !.> + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . } X !.3 / > $ . ", +" . $ > / 3 ,.H 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + ,+'+,.3 )+> $ . ", +" . $ B !+3 3 ~+| } . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + >.| {+3 3 z , % . ", +" . & t i.3 3 3 5.%.& + + . . . . . . . . . . . . . . . . . . . . . . . + + } + . . . . + ]+$.5.3 3 3 ^+/+} . ", +" . + 5 (+3 3 3 3 s _+:+$.o.. N.#.$.1.1.1.1.1.1.J.$.k.<+[+[+1.' $.1.1.i k.> > i l N.. o.}+_+s 3 3 3 3 |+1+. . ", +" . . 1+2+3 3 3 3 3 3 l./ / / / / / / / / / / / / 3+P P P P 3+/ / / / / / / / / / / / / l.3 3 3 3 3 4+F.k . . ", +" . + -.5+3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 6+7+= . . ", +" . @ 8+9+0+a+b+/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / c+d+e+f+= + . ", +" . . + ]+5 %.k.> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > +.- ]+) . . . ", +" . . + & % $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ # g++ . . ", +" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", +" ", +" ", +" ", +" ", +" "}; -- 2.47.1