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)
4 #include "bbwxListCtrl.h"
5 #include "bbwxPackage.h"
7 #include <wx/listctrl.h>
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,ListCtrl)
13 BBTK_BLACK_BOX_IMPLEMENTATION(ListCtrl,bbtk::WxBlackBox);
15 // 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)
17 void ListCtrl::Process()
19 wxListCtrl *lstctrl= ((wxListCtrl*)bbGetOutputWidget());
20 lstctrl->DeleteAllColumns();
22 unsigned int i,iSize=bbGetInputTitles().size();
25 lstctrl->AppendColumn( bbtk::std2wx( bbGetInputTitles()[i] ) , wxLIST_FORMAT_CENTRE );
28 unsigned int j,jSize=bbGetInputColumn00().size();
31 lstctrl->InsertItem(j, bbtk::std2wx("0") );
32 lstctrl->SetItem(j,0, bbtk::std2wx( bbGetInputColumn00()[j] ) );
34 if ((bbGetInputColumn01().size()==jSize ) && (1<iSize) ) { lstctrl->SetItem(j,1, bbtk::std2wx( bbGetInputColumn01()[j] ) ); }
35 if ((bbGetInputColumn02().size()==jSize ) && (2<iSize) ) { lstctrl->SetItem(j,2, bbtk::std2wx( bbGetInputColumn02()[j] ) ); }
36 if ((bbGetInputColumn03().size()==jSize ) && (3<iSize) ) { lstctrl->SetItem(j,3, bbtk::std2wx( bbGetInputColumn03()[j] ) ); }
37 if ((bbGetInputColumn04().size()==jSize ) && (4<iSize) ) { lstctrl->SetItem(j,4, bbtk::std2wx( bbGetInputColumn04()[j] ) ); }
38 if ((bbGetInputColumn05().size()==jSize ) && (5<iSize) ) { lstctrl->SetItem(j,5, bbtk::std2wx( bbGetInputColumn05()[j] ) ); }
39 if ((bbGetInputColumn06().size()==jSize ) && (6<iSize) ) { lstctrl->SetItem(j,6, bbtk::std2wx( bbGetInputColumn06()[j] ) ); }
40 if ((bbGetInputColumn07().size()==jSize ) && (7<iSize) ) { lstctrl->SetItem(j,7, bbtk::std2wx( bbGetInputColumn07()[j] ) ); }
41 if ((bbGetInputColumn08().size()==jSize ) && (8<iSize) ) { lstctrl->SetItem(j,8, bbtk::std2wx( bbGetInputColumn08()[j] ) ); }
42 if ((bbGetInputColumn09().size()==jSize ) && (9<iSize) ) { lstctrl->SetItem(j,9, bbtk::std2wx( bbGetInputColumn09()[j] ) ); }
43 if ((bbGetInputColumn10().size()==jSize ) && (10<iSize)) { lstctrl->SetItem(j,10,bbtk::std2wx( bbGetInputColumn10()[j] ) ); }
44 if ((bbGetInputColumn11().size()==jSize ) && (10<iSize)) { lstctrl->SetItem(j,11,bbtk::std2wx( bbGetInputColumn11()[j] ) ); }
45 if ((bbGetInputColumn12().size()==jSize ) && (10<iSize)) { lstctrl->SetItem(j,12,bbtk::std2wx( bbGetInputColumn12()[j] ) ); }
46 if ((bbGetInputColumn13().size()==jSize ) && (10<iSize)) { lstctrl->SetItem(j,13,bbtk::std2wx( bbGetInputColumn13()[j] ) ); }
47 if ((bbGetInputColumn14().size()==jSize ) && (10<iSize)) { lstctrl->SetItem(j,14,bbtk::std2wx( bbGetInputColumn14()[j] ) ); }
48 if ((bbGetInputColumn15().size()==jSize ) && (10<iSize)) { lstctrl->SetItem(j,15,bbtk::std2wx( bbGetInputColumn15()[j] ) ); }
56 // 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)
58 void ListCtrl::CreateWidget(wxWindow* parent)
61 bbSetOutputWidget( new wxListCtrl ( parent , -1, wxDefaultPosition, wxDefaultSize, wxLC_REPORT ) );
65 // 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)
67 void ListCtrl::bbUserSetDefaultValues()
72 // 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)
74 void ListCtrl::bbUserInitializeProcessing()
79 // 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)
81 void ListCtrl::bbUserFinalizeProcessing()