X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fwx%2Fsrc%2FbbwxComboBox.h;fp=packages%2Fwx%2Fsrc%2FbbwxComboBox.h;h=2d59f16f14d9282b22c761aa6018c4f82d30d84d;hb=6bbede25055ab1e1ad6a1ac4777131bd59efaecc;hp=0000000000000000000000000000000000000000;hpb=97d535e9ee0ea003f7d31aca910f34bff316a119;p=bbtk.git diff --git a/packages/wx/src/bbwxComboBox.h b/packages/wx/src/bbwxComboBox.h new file mode 100644 index 0000000..2d59f16 --- /dev/null +++ b/packages/wx/src/bbwxComboBox.h @@ -0,0 +1,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) +//===== +#ifdef _USE_WXWIDGETS_ +#ifndef __bbwxComboBox_h_INCLUDED__ +#define __bbwxComboBox_h_INCLUDED__ +#include "bbwx_EXPORT.h" +#include "bbtkWxBlackBox.h" + +namespace bbwx +{ + +class bbwx_EXPORT ComboBox + : + public bbtk::WxBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(ComboBox,bbtk::WxBlackBox); +//===== +// 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_INPUT(Title,std::string); + BBTK_DECLARE_INPUT(Selection, int ); + BBTK_DECLARE_INPUT(In,std::vector< std::string >); + BBTK_DECLARE_OUTPUT(Out, int ); + BBTK_DECLARE_OUTPUT(OutString, std::string ); + BBTK_PROCESS(Process); + void Process(); + BBTK_CREATE_WIDGET(CreateWidget); + void CreateWidget(wxWindow*); +//===== +// 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(ComboBox,bbtk::WxBlackBox); + BBTK_NAME("ComboBox"); + BBTK_AUTHOR("Info-Dev"); + BBTK_DESCRIPTION("No Description."); + BBTK_CATEGORY("__CategoryBlackBox__"); + BBTK_INPUT(ComboBox,Title,"Title prepended to the text",std::string,""); + BBTK_INPUT(ComboBox,Selection,"i element to be selected (default 0)",int,""); + BBTK_INPUT(ComboBox,In,"Vector of strings",std::vector< std::string >,""); + + BBTK_OUTPUT(ComboBox,Out,"i Item selected",int,""); + BBTK_OUTPUT(ComboBox,OutString,"string Item selected",std::string,""); + +BBTK_END_DESCRIBE_BLACK_BOX(ComboBox); +//===== +// 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 bbwx + +#endif // __bbwxComboBox_h_INCLUDED__ +#endif // _USE_WXWIDGETS_ +