1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!--==========================================================================
3 STARTS THE DESCRIPTION OF THE BLACK BOX -->
4 <blackbox name="__BLACKBOXNAME__" widget>
5 <!--========================================================================
6 THE BOX DOCUMENTATION -->
7 <author>__AUTHOR__</author>
8 <description>__DESCRIPTION__</description>
9 <category>__CategoryBlackBox__</category>
11 <!--========================================================================
12 #include directives to be put in the .h generated
13 There must be one tag per file to include -->
15 <!--========================================================================
16 INPUTS/OUTPUTS DECLARATION -->
18 <input name="Title" type="std::string" description="Title prepended to the text"/>
19 <input name="In" type="std::string" description="Text"/>
22 bbSetOutputWidget( new wxStaticText ( parent , -1 , _T("") ) );
25 <!--========================================================================
30 if (bbGetInputTitle()!="")
32 msg = bbGetInputTitle()+": " + bbGetInputIn();
38 ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
41 <!--======================================================================
42 CONSTRUCTORS / DESTRUCTORS (OPTIONAL) -->
50 <!-- THE COPY-CONSTRUCTION METHOD BODY :
52 But this is where you should allocate the output pointers if any
53 and copy the pointed values (to avoid bug caused by multiple references)-->
60 <!-- THE DESTRUCTION METHOD BODY :
62 but this is where you should desallocate the output pointers if any -->