class BBTK_EXPORT WxBlackBox : public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(WxBlackBox,bbtk::AtomicBlackBox);
class BBTK_EXPORT WxBlackBox : public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(WxBlackBox,bbtk::AtomicBlackBox);
BBTK_DECLARE_INPUT(WinTitle,std::string);
BBTK_DECLARE_INPUT(WinWidth,int);
BBTK_DECLARE_INPUT(WinHeight,int);
BBTK_DECLARE_INPUT(WinDialog,bool);
BBTK_DECLARE_INPUT(WinHide,Void);
BBTK_DECLARE_INPUT(WinClose,Void);
BBTK_DECLARE_INPUT(WinTitle,std::string);
BBTK_DECLARE_INPUT(WinWidth,int);
BBTK_DECLARE_INPUT(WinHeight,int);
BBTK_DECLARE_INPUT(WinDialog,bool);
BBTK_DECLARE_INPUT(WinHide,Void);
BBTK_DECLARE_INPUT(WinClose,Void);
public:
/// Main processing method of the box. Overloaded to handle windows inclusion : if the output Widget is connected then the execution is transfered to the box to which it is connected (as the container window must be created and displayed - this box will be executed by the normal pipeline recursion mechanism)
public:
/// Main processing method of the box. Overloaded to handle windows inclusion : if the output Widget is connected then the execution is transfered to the box to which it is connected (as the container window must be created and displayed - this box will be executed by the normal pipeline recursion mechanism)
Window* bbGetContainingWindow();
/// Returns the parent wxWindow that must be used to create the widget
Window* bbGetContainingWindow();
/// Returns the parent wxWindow that must be used to create the widget
//==================================================================
/// User callback for creating the widget associated to the box
/// ** Must be defined **
//==================================================================
/// User callback for creating the widget associated to the box
/// ** Must be defined **
{
bbtkError(bbGetTypeName()<<" is a WxBlackBox whose bbUserCreateWidget methods is not overloaded : is it a feature or a bug ?!?");
}
//==================================================================
{
bbtkError(bbGetTypeName()<<" is a WxBlackBox whose bbUserCreateWidget methods is not overloaded : is it a feature or a bug ?!?");
}
//==================================================================
//==================================================================
/// Main processing method of the box.
//==================================================================
/// Main processing method of the box.
{ \
bbtkDebugMessageInc("wx",1,"**> Creating widget for [" \
<<bbGetFullName()<<"]"<<std::endl); \
{ \
bbtkDebugMessageInc("wx",1,"**> Creating widget for [" \
<<bbGetFullName()<<"]"<<std::endl); \
bbtkDebugMessageInc("wx",1,"<** Creating widget for [" \
<<bbGetFullName()<<"]"<<std::endl); \
}
bbtkDebugMessageInc("wx",1,"<** Creating widget for [" \
<<bbGetFullName()<<"]"<<std::endl); \
}