Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.h,v $
Language: C++
- Date: $Date: 2008/11/25 11:17:13 $
- Version: $Revision: 1.21 $
+ Date: $Date: 2008/12/08 12:54:27 $
+ Version: $Revision: 1.22 $
========================================================================*/
virtual void bbUserOnHide() {}
//==================================================================
- // LG 24/11/08 : New widget pipeline
- void bbCreateWidgetAndEventHandler(wxWindow* parent);
+ // LG 24/11/08 : New widget pipeline
+ void bbCreateWidgetAndEventHandler(wxWindow* parent);
protected:
//==================================================================
/// User callback for creating the widget associated to the box
/// ** Must be defined **
- // LG 24/11/08 : New widget pipeline
- virtual void bbUserCreateWidget(wxWindow* parent)
+ // LG 24/11/08 : New widget pipeline
+ virtual void bbUserCreateWidget(wxWindow* parent)
{
bbtkError(bbGetTypeName()<<" is a WxBlackBox whose bbUserCreateWidget methods is not overloaded : is it a feature or a bug ?!?");
}
//==================================================================
- wxWindow* bbCreateWidgetOfInput(const std::string& in, wxWindow* parent);
+ //==================================================================
+ // For layout widgets : creates and returns the widget
+ // of the box connected to input in
+ wxWindow* bbCreateWidgetOfInput(const std::string& in, wxWindow* parent);
+ //==================================================================
//==================================================================
/// Main processing method of the box.
- virtual IOStatus bbBackwardUpdate( Connection::Pointer caller );
+ // No more overloaded
+ // virtual void bbBackwardUpdate( Connection::Pointer caller );
//==================================================================
-
+
//==================================================================
- /// Overloaded processing method for WxBlackBoxes :
- /// 1) if the widget is null then
- /// calls the user defined widget creation method : bbUserCreateWidget()
- /// 2) calls the user defined processing method : bbUserProcess()
- /// 3) displays the window : bbShowWindow();
+ /// Overloaded processing method for WxBlackBoxes which handles
+ /// the window creation if needed
virtual void bbProcess();
//==================================================================
/// on a contained window
/// Is set to true before transfering update to parent
/// in order to not re-transfer a second time...
+ /*
bool bbmUpdateTransferedToParent;
bool bbGetUpdateTransferedToParent() const { return bbmUpdateTransferedToParent; }
void bbSetUpdateTransferedToParent(bool b)
{ bbmUpdateTransferedToParent = b; }
-
+ */
};
//=================================================================