Program: bbtk
Module: $RCSfile: bbtkKWBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/12/08 12:54:26 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/12/11 09:50:35 $
+ Version: $Revision: 1.7 $
=========================================================================*/
/* ---------------------------------------------------------------------
}
//=========================================================================
- //=========================================================================
- /// Main processing method of the box.
- void KWBlackBox::bbExecute(bool force)
- {
- bbtkDebugMessageInc("process",2,
- "=> KWBlackBox::bbExecute("<<(int)force<<") ["
- <<bbGetFullName()<<"]"<<std::endl);
-
- // If the output 'Widget' is connected then
- // we must execute the parent box
- BlackBox::OutputConnectorMapType::const_iterator i
- = bbGetOutputConnectorMap().find("Widget");
-
- if ( i->second->GetConnectionVector().size() != 0 )
- {
- bbtkWarning("Execution called on '"<<bbGetFullName()
- <<"' although its Output 'Widget' is connected: "
- <<"if the widget is not created yet then it will not be! "
- <<"Execute the top level Layout widget to create and "
- <<"display the widget.");
- }
-
- AtomicBlackBox::bbExecute(force);
-
- bbtkDebugMessageDec("process",2,
- "<= KWBlackBox::bbExecute() ["
- <<bbGetFullName()<<"]"<<std::endl);
- }
- //=========================================================================
-
//=========================================================================
void KWBlackBox::bbProcess()
{
-/*
- if (bbGetOutputWidget()==0) this->bbUserCreateWidget();
- this->bbUserProcess();
- bbShowWindow();
- // this->bbUserOnShow();
-*/
+
this->bbUserProcess();
// If output widget not connected create the window