]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxStaticBox.h
Feature #2002 Static Box Widget Black Box
[bbtk.git] / packages / wx / src / bbwxStaticBox.h
diff --git a/packages/wx/src/bbwxStaticBox.h b/packages/wx/src/bbwxStaticBox.h
new file mode 100644 (file)
index 0000000..b32ea30
--- /dev/null
@@ -0,0 +1,50 @@
+//===== 
+// 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 __bbwxStaticBox_h_INCLUDED__
+#define __bbwxStaticBox_h_INCLUDED__
+#include "bbwx_EXPORT.h"
+#include "bbtkWxBlackBox.h"
+#include <wx/statbox.h>
+
+namespace bbwx
+{
+
+  class bbwx_EXPORT StaticBox : public bbtk::WxBlackBox
+  {
+    BBTK_BLACK_BOX_INTERFACE(StaticBox,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(BoxTitle,std::string);
+    BBTK_DECLARE_INPUT(BoxContent,wxWindow*);
+    BBTK_PROCESS(Process);
+    void Process();
+    BBTK_CREATE_WIDGET(CreateWidget);
+    void CreateWidget(wxWindow*);
+    BBTK_ON_SHOW_WIDGET(OnShowWidget);
+    void OnShowWidget();
+
+//===== 
+// 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(StaticBox,bbtk::WxBlackBox);
+  BBTK_NAME("StaticBox");
+  BBTK_AUTHOR("daniel.gonzalez@creatis.insa-lyon.fr");
+  BBTK_DESCRIPTION("A static box widget is a rectangle drawn around a widget to denote a logical grouping of items.");
+  // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
+  BBTK_INPUT(StaticBox,BoxTitle,"Title assigned to the Static Box",std::string,"");
+  BBTK_INPUT(StaticBox,BoxContent,"Contained widget",wxWindow*,"");
+  BBTK_END_DESCRIBE_BLACK_BOX(StaticBox);
+//===== 
+// 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 // __bbwxStaticBox_h_INCLUDED__
+#endif // _USE_WXWIDGETS_
+