]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxComboBox.h
#2452 BBTK Feature New Normal - ComboBox in wx package
[bbtk.git] / packages / wx / src / bbwxComboBox.h
diff --git a/packages/wx/src/bbwxComboBox.h b/packages/wx/src/bbwxComboBox.h
new file mode 100644 (file)
index 0000000..2d59f16
--- /dev/null
@@ -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_
+