00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00048 #ifdef _USE_WXWIDGETS_
00049
00050
00051
00052
00053 #ifndef __bbWxRadioButton_h__
00054 #define __bbWxRadioButton_h__
00055
00056 #include "bbtkWxBlackBox.h"
00057 #include "bbwx_EXPORT.h"
00058
00059
00060
00061
00062
00063 namespace bbwx
00064 {
00065
00066
00067 class bbwx_EXPORT RadioButton : public bbtk::WxBlackBox
00068 {
00069
00070 BBTK_BLACK_BOX_INTERFACE(RadioButton,bbtk::WxBlackBox);
00071 BBTK_DECLARE_INPUT(In,int);
00072 BBTK_DECLARE_INPUT(In0,std::string);
00073 BBTK_DECLARE_INPUT(In1,std::string);
00074 BBTK_DECLARE_INPUT(In2,std::string);
00075 BBTK_DECLARE_INPUT(In3,std::string);
00076 BBTK_DECLARE_INPUT(In4,std::string);
00077 BBTK_DECLARE_INPUT(In5,std::string);
00078 BBTK_DECLARE_INPUT(In6,std::string);
00079 BBTK_DECLARE_INPUT(In7,std::string);
00080 BBTK_DECLARE_INPUT(In8,std::string);
00081 BBTK_DECLARE_INPUT(In9,std::string);
00082 BBTK_DECLARE_INPUT(Title,std::string);
00083 BBTK_DECLARE_OUTPUT(Out,int);
00084 BBTK_CREATE_WIDGET(CreateWidget);
00085 BBTK_PROCESS(Process);
00086 void Process();
00087 void CreateWidget(wxWindow*);
00088
00089 protected:
00090 virtual void bbUserConstructor();
00091 };
00092
00093
00094
00095 BBTK_BEGIN_DESCRIBE_BLACK_BOX(RadioButton,bbtk::WxBlackBox);
00096 BBTK_NAME("RadioButton");
00097 BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
00098 BBTK_DESCRIPTION("RadioButton group widget 0-9 entries");
00099 BBTK_INPUT(RadioButton,In,"Set initial item",int,"");
00100
00101 BBTK_INPUT(RadioButton,In0,"option 0",std::string,"");
00102 BBTK_INPUT(RadioButton,In1,"option 1",std::string,"");
00103 BBTK_INPUT(RadioButton,In2,"option 2",std::string,"");
00104 BBTK_INPUT(RadioButton,In3,"option 3",std::string,"");
00105 BBTK_INPUT(RadioButton,In4,"option 4",std::string,"");
00106 BBTK_INPUT(RadioButton,In5,"option 5",std::string,"");
00107 BBTK_INPUT(RadioButton,In6,"option 6",std::string,"");
00108 BBTK_INPUT(RadioButton,In7,"option 7",std::string,"");
00109 BBTK_INPUT(RadioButton,In8,"option 8",std::string,"");
00110 BBTK_INPUT(RadioButton,In9,"option 9",std::string,"");
00111
00112 BBTK_INPUT(RadioButton,Title,"Title of the widget (default '') ",
00113 std::string,"");
00114
00115 BBTK_OUTPUT(RadioButton,Out,"Item selected",int,"");
00116 BBTK_END_DESCRIBE_BLACK_BOX(RadioButton);
00117
00118
00119 }
00120
00121
00122 #endif //__bbWxRadioButton_h__
00123
00124 #endif //_USE_WXWIDGETS_