]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuBitmapButtonIcon.cxx
b02d67cf0ead5a1778e7f0a4ae20a2dddff0f6e5
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuBitmapButtonIcon.cxx
1 //===== 
2 // 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)
3 //===== 
4 #include "bbcreaMaracasVisuBitmapButtonIcon.h"
5 #include "bbcreaMaracasVisuPackage.h"
6 namespace bbcreaMaracasVisu
7 {
8
9 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,BitmapButtonIcon)
10 BBTK_BLACK_BOX_IMPLEMENTATION(BitmapButtonIcon,bbtk::AtomicBlackBox);
11 //===== 
12 // 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)
13 //===== 
14 void BitmapButtonIcon::Process()
15 {
16                 int index = bbGetInputIndex();
17                 
18                 wxBitmap icon1(one_xpm);
19                 wxBitmap icon2(two_xpm);
20                 wxBitmap icon3(three_xpm);
21                 wxBitmap icon4(four_xpm);
22                 wxBitmap icon5(five_xpm);
23                 
24                 if(index==1){ bbSetOutputIcon( icon1 );}
25                 if(index==2){ bbSetOutputIcon( icon2 );}
26                 if(index==3){ bbSetOutputIcon( icon3 );}
27                 if(index==4){ bbSetOutputIcon( icon4 );}
28                 if(index==5){ bbSetOutputIcon( icon5 );}
29 }
30 //===== 
31 // 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)
32 //===== 
33 void BitmapButtonIcon::bbUserSetDefaultValues()
34 {
35   
36 }
37 //===== 
38 // 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)
39 //===== 
40 void BitmapButtonIcon::bbUserInitializeProcessing()
41 {
42   
43 }
44 //===== 
45 // 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)
46 //===== 
47 void BitmapButtonIcon::bbUserFinalizeProcessing()
48 {
49
50 }
51 }
52 // EO namespace bbcreaMaracasVisu
53
54