#include <bbtkWxBlackBox.h>
Public Types | |
typedef WxBlackBox | Self |
typedef boost::shared_ptr< Self > | Pointer |
typedef boost::weak_ptr< Self > | WeakPointer |
typedef WxBlackBoxWindow | Window |
Public Member Functions | |
std::string | GetObjectName () const |
bbtk::BlackBox::Pointer | bbClone (const std::string &name) |
virtual void | bbLockDescriptor () |
std::string | bbGetInputWinTitle () |
void | bbSetInputWinTitle (std::string d) |
int | bbGetInputWinWidth () |
void | bbSetInputWinWidth (int d) |
int | bbGetInputWinHeight () |
void | bbSetInputWinHeight (int d) |
bool | bbGetInputWinDialog () |
void | bbSetInputWinDialog (bool d) |
Void | bbGetInputWinHide () |
void | bbSetInputWinHide (Void d) |
Void | bbGetInputWinClose () |
void | bbSetInputWinClose (Void d) |
wxWindow * | bbGetOutputWidget () |
void | bbSetOutputWidget (wxWindow *d) |
virtual void | bbExecute (bool force=false) |
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 * | bbGetWindow () |
Window * | bbGetContainingWindow () |
wxWindow * | bbGetWxParent () |
Returns the parent wxWindow that must be used to create the widget. | |
bool | bbIsShown () |
virtual void | bbUserOnShow () |
User callback invoked when the containing window is shown. | |
virtual void | bbUserOnHide () |
User callback invoked when the containing window is hidden. | |
Static Public Member Functions | |
static Pointer | New (const std::string &name) |
Protected Member Functions | |
WxBlackBox (const std::string &name, bool allocate_connectors=true) | |
WxBlackBox (Self &from, const std::string &name, bool allocate_connectors=true) | |
~WxBlackBox () | |
virtual void | bbUserConstructor () |
User callback called in the box contructor. | |
virtual void | bbUserCopyConstructor () |
User callback called in the box copy constructor. | |
virtual void | bbUserDestructor () |
User callback called in the box destructor. | |
virtual void | bbUserCreateWidget () |
virtual IOStatus | bbBackwardUpdate (Connection::Pointer caller) |
Main processing method of the box. | |
virtual void | bbProcess () |
void | bbShowWindow () |
void | bbHideWindow () |
Hides the WxBlackBoxWindow associated to the box (if exists). | |
void | bbCloseWindow () |
Closes (destroys) the WxBlackBoxWindow associated to the box (if exists). | |
bool | bbGetUpdateTransferedToParent () const |
void | bbSetUpdateTransferedToParent (bool b) |
Protected Attributes | |
std::string | bbmInputWinTitle |
int | bbmInputWinWidth |
int | bbmInputWinHeight |
bool | bbmInputWinDialog |
Void | bbmInputWinHide |
Void | bbmInputWinClose |
wxWindow * | bbmOutputWidget |
bool | bbmUpdateTransferedToParent |
Private Member Functions | |
WxBlackBox () | |
WxBlackBox (const WxBlackBox &) | |
void | bbSetWindow (Window *w) |
Sets the window. | |
void | bbSetWidgetEventHandler (WxBlackBoxWidgetEventHandler *w) |
Sets the Widget Event Handler. | |
WxBlackBoxWidgetEventHandler * | bbGetWidgetEventHandler () |
Gets the Widget Event Handler. | |
void | bbInitAttributes () |
Initialize the attributes of the class. | |
Private Attributes | |
Window * | bbmWindow |
The WxBlackBoxWindow associated to the box. | |
WxBlackBoxWidgetEventHandler * | bbmWidgetEventHandler |
The WxBlackBoxWidgetEventHandler associated to the box. | |
Friends | |
struct | Object::Deleter |
class | WxBlackBoxWindow |
friendship | |
class | WxBlackBoxWidgetEventHandler |
Definition at line 77 of file bbtkWxBlackBox.h.
typedef WxBlackBox bbtk::WxBlackBox::Self |
Definition at line 79 of file bbtkWxBlackBox.h.
typedef boost::shared_ptr<Self> bbtk::WxBlackBox::Pointer |
Definition at line 79 of file bbtkWxBlackBox.h.
typedef boost::weak_ptr<Self> bbtk::WxBlackBox::WeakPointer |
Definition at line 79 of file bbtkWxBlackBox.h.
typedef WxBlackBoxWindow bbtk::WxBlackBox::Window |
Definition at line 94 of file bbtkWxBlackBox.h.
bbtk::WxBlackBox::WxBlackBox | ( | const std::string & | name, | |
bool | allocate_connectors = true | |||
) | [protected] |
Definition at line 344 of file bbtkWxBlackBox.cxx.
bbtk::WxBlackBox::WxBlackBox | ( | Self & | from, | |
const std::string & | name, | |||
bool | allocate_connectors = true | |||
) | [protected] |
Definition at line 344 of file bbtkWxBlackBox.cxx.
bbtk::WxBlackBox::~WxBlackBox | ( | ) | [protected] |
Definition at line 344 of file bbtkWxBlackBox.cxx.
bbtk::WxBlackBox::WxBlackBox | ( | ) | [inline, private] |
Definition at line 79 of file bbtkWxBlackBox.h.
bbtk::WxBlackBox::WxBlackBox | ( | const WxBlackBox & | ) | [inline, private] |
Definition at line 79 of file bbtkWxBlackBox.h.
std::string bbtk::WxBlackBox::GetObjectName | ( | ) | const [inline] |
Definition at line 79 of file bbtkWxBlackBox.h.
static Pointer bbtk::WxBlackBox::New | ( | const std::string & | name | ) | [inline, static] |
Definition at line 79 of file bbtkWxBlackBox.h.
bbtk::BlackBox::Pointer bbtk::WxBlackBox::bbClone | ( | const std::string & | name | ) | [inline] |
Definition at line 79 of file bbtkWxBlackBox.h.
void bbtk::WxBlackBox::bbLockDescriptor | ( | ) | [virtual] |
Definition at line 344 of file bbtkWxBlackBox.cxx.
std::string bbtk::WxBlackBox::bbGetInputWinTitle | ( | ) | [inline] |
Definition at line 81 of file bbtkWxBlackBox.h.
Referenced by bbShowWindow().
void bbtk::WxBlackBox::bbSetInputWinTitle | ( | std::string | d | ) | [inline] |
Definition at line 81 of file bbtkWxBlackBox.h.
Referenced by bbInitAttributes().
int bbtk::WxBlackBox::bbGetInputWinWidth | ( | ) | [inline] |
Definition at line 82 of file bbtkWxBlackBox.h.
Referenced by bbShowWindow().
void bbtk::WxBlackBox::bbSetInputWinWidth | ( | int | d | ) | [inline] |
Definition at line 82 of file bbtkWxBlackBox.h.
Referenced by bbInitAttributes().
int bbtk::WxBlackBox::bbGetInputWinHeight | ( | ) | [inline] |
Definition at line 83 of file bbtkWxBlackBox.h.
Referenced by bbShowWindow().
void bbtk::WxBlackBox::bbSetInputWinHeight | ( | int | d | ) | [inline] |
Definition at line 83 of file bbtkWxBlackBox.h.
Referenced by bbInitAttributes().
bool bbtk::WxBlackBox::bbGetInputWinDialog | ( | ) | [inline] |
Definition at line 84 of file bbtkWxBlackBox.h.
Referenced by bbShowWindow().
void bbtk::WxBlackBox::bbSetInputWinDialog | ( | bool | d | ) | [inline] |
Definition at line 84 of file bbtkWxBlackBox.h.
Referenced by bbInitAttributes().
Void bbtk::WxBlackBox::bbGetInputWinHide | ( | ) | [inline] |
void bbtk::WxBlackBox::bbSetInputWinHide | ( | Void | d | ) | [inline] |
Void bbtk::WxBlackBox::bbGetInputWinClose | ( | ) | [inline] |
void bbtk::WxBlackBox::bbSetInputWinClose | ( | Void | d | ) | [inline] |
wxWindow* bbtk::WxBlackBox::bbGetOutputWidget | ( | ) | [inline] |
Definition at line 87 of file bbtkWxBlackBox.h.
Referenced by bbProcess(), and bbShowWindow().
void bbtk::WxBlackBox::bbSetOutputWidget | ( | wxWindow * | d | ) | [inline] |
Definition at line 87 of file bbtkWxBlackBox.h.
Referenced by bbInitAttributes().
void bbtk::WxBlackBox::bbExecute | ( | bool | force = false |
) | [virtual] |
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).
Main processing method of the box.
Definition at line 419 of file bbtkWxBlackBox.cxx.
References bbtkDebugMessage, bbtkDebugMessageDec, bbtkDebugMessageInc, and bbtk::i.
00420 { 00421 bbtkDebugMessageInc("process",2, 00422 "=> WxBlackBox::bbExecute() [" 00423 <<bbGetFullName()<<"]"<<std::endl); 00424 00425 // If the output 'Widget' is connected then 00426 // we must execute the parent box 00427 BlackBox::OutputConnectorMapType::const_iterator i 00428 = bbGetOutputConnectorMap().find("Widget"); 00429 00430 if ( i->second->GetConnectionVector().size() != 0 ) 00431 { 00432 bbtkDebugMessage("process",3, 00433 "-> Output 'Widget' connected : transfering execution to parent" 00434 <<std::endl); 00435 00436 i->second->GetConnectionVector().front() //.lock() 00437 ->GetBlackBoxTo()->bbExecute(force); 00438 00439 } 00440 // else call 'standard' BlackBox execution method 00441 else 00442 { 00443 BlackBox::bbExecute(force); 00444 } 00445 // 00446 00447 bbtkDebugMessageDec("process",2, 00448 "<= WxBlackBox::bbExecute() [" 00449 <<bbGetFullName()<<"]"<<std::endl); 00450 }
Window* bbtk::WxBlackBox::bbGetWindow | ( | ) | [inline] |
Returns the **OWN** window associated to the box If 0 returned = no window
Definition at line 98 of file bbtkWxBlackBox.h.
Referenced by bbCloseWindow(), bbGetContainingWindow(), bbHideWindow(), bbShowWindow(), and bbUserDestructor().
00098 { return bbmWindow; }
WxBlackBox::Window * bbtk::WxBlackBox::bbGetContainingWindow | ( | ) |
Returns the window containing the widget associated to the box Which can be the own window of **ANOTHER** box in case of a hierarchy of widgets. More precisely : If bbGetWindow() != 0 then returns bbGetWindow() Else if the output 'Widget' is connected then returns bbGetContainingWindow() of the box connected to 'Widget' Else returns 0;
Definition at line 704 of file bbtkWxBlackBox.cxx.
References bbGetContainingWindow(), bbGetWindow(), and bbtk::i.
Referenced by bbGetContainingWindow(), and bbIsShown().
00705 { 00706 if (bbGetWindow()!=0) return bbGetWindow(); 00707 BlackBox::OutputConnectorMapType::const_iterator i 00708 = bbGetOutputConnectorMap().find("Widget"); 00709 if ( i->second->GetConnectionVector().size() != 0 ) 00710 { 00711 return boost::static_pointer_cast<WxBlackBox> 00712 (i->second->GetConnectionVector().front() //.lock() 00713 ->GetBlackBoxTo())->bbGetContainingWindow(); 00714 } 00715 return 0; 00716 }
wxWindow * bbtk::WxBlackBox::bbGetWxParent | ( | ) |
Returns the parent wxWindow that must be used to create the widget.
Definition at line 721 of file bbtkWxBlackBox.cxx.
Referenced by bbShowWindow().
bool bbtk::WxBlackBox::bbIsShown | ( | ) |
Returns true iff the 'containing window' exists and is shown (see bbGetContainingWindow).
Definition at line 726 of file bbtkWxBlackBox.cxx.
References bbGetContainingWindow(), and bbtk::WxBlackBoxWindow::bbIsShown().
00727 { 00728 if (bbGetContainingWindow()!=0) 00729 return bbGetContainingWindow()->bbIsShown(); 00730 return false; 00731 }
virtual void bbtk::WxBlackBox::bbUserOnShow | ( | ) | [inline, virtual] |
User callback invoked when the containing window is shown.
Definition at line 119 of file bbtkWxBlackBox.h.
virtual void bbtk::WxBlackBox::bbUserOnHide | ( | ) | [inline, virtual] |
User callback invoked when the containing window is hidden.
Definition at line 124 of file bbtkWxBlackBox.h.
void bbtk::WxBlackBox::bbUserConstructor | ( | ) | [protected, virtual] |
User callback called in the box contructor.
Definition at line 348 of file bbtkWxBlackBox.cxx.
References bbInitAttributes(), and bbtkDebugMessage.
00349 { 00350 bbtkDebugMessage("Kernel",9,"WxBlackBox::bbUserConstructor()"<<std::endl); 00351 bbInitAttributes(); 00352 }
void bbtk::WxBlackBox::bbUserCopyConstructor | ( | ) | [protected, virtual] |
User callback called in the box copy constructor.
Definition at line 356 of file bbtkWxBlackBox.cxx.
References bbInitAttributes(), and bbtkDebugMessage.
00357 { 00358 bbtkDebugMessage("Kernel",9,"WxBlackBox::bbUserCopyConstructor()" 00359 <<std::endl); 00360 bbInitAttributes(); 00361 }
void bbtk::WxBlackBox::bbUserDestructor | ( | ) | [protected, virtual] |
User callback called in the box destructor.
Definition at line 366 of file bbtkWxBlackBox.cxx.
References bbGetWindow(), bbSetWindow(), and bbtkDebugMessage.
00367 { 00368 bbtkDebugMessage("wx",9,"==> WxBlackBox::bbUserDestructor() ["<<bbGetFullName()<<"]"<<std::endl); 00369 if (bbGetWindow()) { 00370 delete bbGetWindow(); 00371 bbSetWindow(0); 00372 } 00373 bbtkDebugMessage("wx",9,"<== WxBlackBox::bbUserDestructor() ["<<bbGetFullName()<<"]"<<std::endl); 00374 }
virtual void bbtk::WxBlackBox::bbUserCreateWidget | ( | ) | [inline, protected, virtual] |
User callback for creating the widget associated to the box Must be defined **
Definition at line 142 of file bbtkWxBlackBox.h.
References bbtkError.
Referenced by bbProcess().
00143 { 00144 bbtkError(bbGetTypeName()<<" is a WxBlackBox whose bbUserCreateWidget methods is not overloaded : is it a feature or a bug ?!?"); 00145 }
IOStatus bbtk::WxBlackBox::bbBackwardUpdate | ( | Connection::Pointer | caller | ) | [protected, virtual] |
Main processing method of the box.
Definition at line 456 of file bbtkWxBlackBox.cxx.
References bbGetUpdateTransferedToParent(), bbSetUpdateTransferedToParent(), bbtkDebugMessage, bbtkDebugMessageDec, bbtk::i, bbtk::MODIFIED, and bbtk::UPDATING.
00457 { 00458 bbtkDebugMessage("process",3, 00459 "=> WxBlackBox::bbBackwardUpdate(" 00460 <<(caller?caller->GetFullName():"0")<<") [" 00461 <<bbGetFullName()<<"]"<<std::endl); 00462 // If the caller's box to is not the box to connected to the 00463 // output 'Widget' 00464 if ( ! (( bbGetStatus() == MODIFIED ) || 00465 ( bbBoxProcessModeIsAlways() )) ) 00466 { 00467 bbtkDebugMessage("process",3,"Up-to-date : nothing to do"<<std::endl); 00468 bbtkDebugMessage("process",3, 00469 "<= WxBlackBox::bbBackwardUpdate(" 00470 <<(caller?caller->GetFullName():"0")<<") [" 00471 <<bbGetFullName()<<"]"<<std::endl); 00472 return bbGetStatus(); 00473 } 00474 00475 BlackBox::OutputConnectorMapType::const_iterator i 00476 = bbGetOutputConnectorMap().find("Widget") ; 00477 if ( i->second->GetConnectionVector().size() != 0 ) 00478 00479 { 00480 BlackBox::Pointer to = 00481 i->second->GetConnectionVector()[0]->GetBlackBoxTo(); 00482 00483 if (caller) 00484 { 00485 bbtkDebugMessage("process",3, 00486 "-> Output 'Widget' connected to '" 00487 <<to->bbGetFullName()<<"' - caller->to = '" 00488 <<caller->GetBlackBoxTo()->bbGetFullName() 00489 <<"'" 00490 <<std::endl); 00491 } 00492 else 00493 { 00494 bbtkDebugMessage("process",3, 00495 "-> Output 'Widget' connected to '" 00496 <<to->bbGetFullName()<<"'" 00497 <<std::endl); 00498 } 00499 if ((caller==0) || 00500 ((caller!=0) && 00501 (caller->GetBlackBoxTo() != to))&& 00502 (!bbGetUpdateTransferedToParent())&& 00503 (to->bbGetStatus()!=UPDATING)) 00504 { 00505 bbtkDebugMessage("process",3, 00506 " ... Transfering update order to parent" 00507 <<std::endl); 00508 00509 bbSetUpdateTransferedToParent(true); 00510 i->second->GetConnectionVector().front() //.lock() 00511 ->GetBlackBoxTo()->bbExecute(false); 00512 } 00513 else 00514 { 00515 bbSetUpdateTransferedToParent(false); 00516 bbtkDebugMessage("process",3, 00517 " ... No need to transfer to parent" 00518 <<std::endl); 00519 } 00520 } 00521 /* 00522 00523 // If the caller is not the connection to the output widget 00524 // and the output 'Widget' is connected then 00525 // we must execute the parent box 00526 // but only one time 00527 // (this is the role of the flag UpdateTransferedToParent) 00528 if ( (caller==0) || 00529 ((caller!=0)&&(caller->GetBlackBoxFromOutput()!="Widget")) 00530 ) 00531 { 00532 } 00533 */ 00534 // call 'standard' BlackBox execution method 00535 if (!bbGetUpdateTransferedToParent()) 00536 { 00537 AtomicBlackBox::bbBackwardUpdate(caller); 00538 } 00539 00540 bbtkDebugMessageDec("process",3, 00541 "<= WxBlackBox::bbBackwardUpdate() [" 00542 <<bbGetFullName()<<"]"<<std::endl); 00543 00544 return bbGetStatus(); 00545 00546 00547 }
void bbtk::WxBlackBox::bbProcess | ( | ) | [protected, virtual] |
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();
Definition at line 550 of file bbtkWxBlackBox.cxx.
References bbGetOutputWidget(), bbShowWindow(), and bbUserCreateWidget().
00551 { 00552 if (bbGetOutputWidget()==0) this->bbUserCreateWidget(); 00553 this->bbUserProcess(); 00554 bbShowWindow(); 00555 // this->bbUserOnShow(); 00556 }
void bbtk::WxBlackBox::bbShowWindow | ( | ) | [protected] |
If necessary creates the WxBlackBoxWindow associated to the box and shows it (does nothing if the box output 'Widget' is connected which means that the box does not have its own window but is contained into another window)
Specific methods for window creation during pipeline execution Shows the window associated to the box (called after bbProcess during bbExecute)
show->IsShown())
Definition at line 563 of file bbtkWxBlackBox.cxx.
References bbGetInputWinDialog(), bbGetInputWinHeight(), bbGetInputWinTitle(), bbGetInputWinWidth(), bbGetOutputWidget(), bbGetWidgetEventHandler(), bbGetWindow(), bbGetWxParent(), bbtk::WxBlackBoxWindow::bbShow(), bbtkDebugMessage, bbtkDebugMessageInc, bbtkError, and bbtk::std2wx().
Referenced by bbProcess().
00564 { 00565 bbtkDebugMessageInc("wx",1,"=> WxBlackBox::bbShowWindow() [" 00566 <<bbGetFullName()<<"]"<<std::endl); 00567 00568 // If Event Handler for the widget does not exist or is obsolete : create it 00569 if (bbGetOutputWidget()!=0) 00570 { 00571 if (bbGetWidgetEventHandler()==0) 00572 { 00573 bbtkDebugMessage("wx",3, 00574 "-> No widget event handler : creating one" 00575 <<std::endl); 00576 new WxBlackBoxWidgetEventHandler(GetThisPointer<WxBlackBox>(), 00577 bbGetOutputWidget()); 00578 } 00579 else if ( ! bbGetWidgetEventHandler()->IsHandlerOf 00580 ( bbGetOutputWidget() ) ) 00581 { 00582 bbtkDebugMessage("wx",3, 00583 "-> Obsolete widget event handler : re-creating one" 00584 <<std::endl); 00585 delete bbGetWidgetEventHandler(); 00586 new WxBlackBoxWidgetEventHandler(GetThisPointer<WxBlackBox>(), 00587 bbGetOutputWidget()); 00588 } 00589 // Sets the name of the wxWindow to the input WinTitle 00590 bbGetOutputWidget()->SetName(bbtk::std2wx(bbGetInputWinTitle())); 00591 } 00592 00593 // If the output 'Widget' is connected then it's gonna 00594 // be captured by its parent window : nothing to do 00595 if ( (*bbGetOutputConnectorMap().find("Widget")).second 00596 ->GetConnectionVector().size() != 0 ) 00597 { 00598 00599 bbtkDebugMessage("wx",2, 00600 "-> Output 'Widget' connected : nothing to do" 00601 <<std::endl); 00602 return; 00603 } 00604 00605 00606 Window* show = 0; 00607 // If the window already exists : no need creating it 00608 if (bbGetWindow()!=0) 00609 { 00610 bbtkDebugMessage("wx",2, 00611 "-> Window already exists" 00612 <<std::endl); 00613 show = bbGetWindow(); 00614 } 00615 // Else if the widget exists : create window 00616 else if (bbGetOutputWidget()!=0) 00617 { 00618 bbtkDebugMessage("wx",2, 00619 "-> Widget exists : creating the window" 00620 <<std::endl); 00621 00622 00623 // Input WinDialog set to true : creating a Dialog 00624 if (bbGetInputWinDialog()) 00625 { 00626 bbtkDebugMessage("wx",2, 00627 " Input WinDialog set to true : creating a Dialog" 00628 <<std::endl); 00629 show = (Window*) new WxBlackBoxDialog( GetThisPointer<WxBlackBox>(), 00630 bbGetWxParent(), 00631 std2wx( bbGetInputWinTitle() + " - bbtk (c) CREATIS LRMN"), 00632 wxSize( bbGetInputWinWidth() , bbGetInputWinHeight() ) ); 00633 } 00634 // Input WinDialog set to false : creating a Frame 00635 else 00636 { 00637 bbtkDebugMessage("process",2, 00638 " Input WinDialog set to false : creating a Frame" 00639 <<std::endl); 00640 show = (Window*) new WxBlackBoxFrame( GetThisPointer<WxBlackBox>(), 00641 bbGetWxParent(), 00642 std2wx( bbGetInputWinTitle() + " - bbtk (c) CREATIS LRMN"), 00643 wxSize( bbGetInputWinWidth() , bbGetInputWinHeight() ) ); 00644 } 00645 00646 } 00647 // No window nor widget : error 00648 else 00649 { 00650 bbtkError("WxBlackBox::bbShowWindow() [" 00651 <<bbGetFullName() 00652 <<"] : No widget. Did you set the box output 'Widget' in the processing method of the box ?"); 00653 } 00654 00655 00656 // Show the window 00657 if (true) 00658 { 00659 show->bbShow(); 00660 } 00661 else 00662 { 00663 bbtkDebugMessage("wx",2,"-> Already shown : nothing to do"<<std::endl); 00664 } 00665 00666 00667 bbtkDebugMessage("wx",1,"<= WxBlackBox::bbShowWindow() [" 00668 <<bbGetFullName()<<"]"<<std::endl); 00669 00670 }
void bbtk::WxBlackBox::bbHideWindow | ( | ) | [protected] |
Hides the WxBlackBoxWindow associated to the box (if exists).
Definition at line 677 of file bbtkWxBlackBox.cxx.
References bbGetWindow(), bbtk::WxBlackBoxWindow::bbHide(), bbtkDebugMessageDec, and bbtkDebugMessageInc.
00678 { 00679 bbtkDebugMessageInc("wx",1,"=> WxBlackBox::bbHideWindow() [" 00680 <<bbGetFullName()<<"]"<<std::endl); 00681 00682 if (bbGetWindow()!=0) bbGetWindow()->bbHide(); 00683 00684 bbtkDebugMessageDec("wx",1,"<= WxBlackBox::bbHideWindow() [" 00685 <<bbGetFullName()<<"]"<<std::endl); 00686 }
void bbtk::WxBlackBox::bbCloseWindow | ( | ) | [protected] |
Closes (destroys) the WxBlackBoxWindow associated to the box (if exists).
Definition at line 691 of file bbtkWxBlackBox.cxx.
References bbtk::WxBlackBoxWindow::bbClose(), bbGetWindow(), bbtkDebugMessageDec, and bbtkDebugMessageInc.
00692 { 00693 bbtkDebugMessageInc("wx",1,"=> WxBlackBox::bbCloseWindow() [" 00694 <<bbGetFullName()<<"]"<<std::endl); 00695 00696 if (bbGetWindow()!=0) bbGetWindow()->bbClose(); 00697 00698 bbtkDebugMessageDec("wx",1,"<= WxBlackBox::bbCloseWindow() [" 00699 <<bbGetFullName()<<"]"<<std::endl); 00700 }
void bbtk::WxBlackBox::bbSetWindow | ( | Window * | w | ) | [inline, private] |
Sets the window.
Definition at line 186 of file bbtkWxBlackBox.h.
Referenced by bbUserDestructor().
00186 { bbmWindow=w; }
void bbtk::WxBlackBox::bbSetWidgetEventHandler | ( | WxBlackBoxWidgetEventHandler * | w | ) | [inline, private] |
Sets the Widget Event Handler.
Definition at line 189 of file bbtkWxBlackBox.h.
Referenced by bbInitAttributes().
00190 { bbmWidgetEventHandler = w; }
WxBlackBoxWidgetEventHandler* bbtk::WxBlackBox::bbGetWidgetEventHandler | ( | ) | [inline, private] |
Gets the Widget Event Handler.
Definition at line 192 of file bbtkWxBlackBox.h.
Referenced by bbShowWindow().
00193 { return bbmWidgetEventHandler; }
void bbtk::WxBlackBox::bbInitAttributes | ( | ) | [private] |
Initialize the attributes of the class.
Definition at line 401 of file bbtkWxBlackBox.cxx.
References bbmWindow, bbSetInputWinDialog(), bbSetInputWinHeight(), bbSetInputWinTitle(), bbSetInputWinWidth(), bbSetOutputWidget(), bbSetUpdateTransferedToParent(), and bbSetWidgetEventHandler().
Referenced by bbUserConstructor(), and bbUserCopyConstructor().
00402 { 00403 bbmWindow = 0; 00404 // bbmWidget = 0; 00405 // bbSetInputWinParent(0); 00406 bbSetInputWinTitle(bbGetName()); 00407 bbSetInputWinWidth(800); 00408 bbSetInputWinHeight(800); 00409 bbSetInputWinDialog(false); 00410 bbSetOutputWidget(0); 00411 00412 bbSetWidgetEventHandler(0); 00413 bbSetUpdateTransferedToParent(false); 00414 }
bool bbtk::WxBlackBox::bbGetUpdateTransferedToParent | ( | ) | const [inline, protected] |
Definition at line 213 of file bbtkWxBlackBox.h.
Referenced by bbBackwardUpdate().
00213 { return bbmUpdateTransferedToParent; }
void bbtk::WxBlackBox::bbSetUpdateTransferedToParent | ( | bool | b | ) | [inline, protected] |
Definition at line 214 of file bbtkWxBlackBox.h.
Referenced by bbBackwardUpdate(), and bbInitAttributes().
00215 { bbmUpdateTransferedToParent = b; }
friend struct Object::Deleter [friend] |
Definition at line 79 of file bbtkWxBlackBox.h.
friend class WxBlackBoxWindow [friend] |
friend class WxBlackBoxWidgetEventHandler [friend] |
Definition at line 183 of file bbtkWxBlackBox.h.
std::string bbtk::WxBlackBox::bbmInputWinTitle [protected] |
Definition at line 79 of file bbtkWxBlackBox.h.
int bbtk::WxBlackBox::bbmInputWinWidth [protected] |
Definition at line 81 of file bbtkWxBlackBox.h.
int bbtk::WxBlackBox::bbmInputWinHeight [protected] |
Definition at line 82 of file bbtkWxBlackBox.h.
bool bbtk::WxBlackBox::bbmInputWinDialog [protected] |
Definition at line 83 of file bbtkWxBlackBox.h.
Void bbtk::WxBlackBox::bbmInputWinHide [protected] |
Definition at line 84 of file bbtkWxBlackBox.h.
Void bbtk::WxBlackBox::bbmInputWinClose [protected] |
Definition at line 85 of file bbtkWxBlackBox.h.
wxWindow* bbtk::WxBlackBox::bbmOutputWidget [protected] |
Definition at line 86 of file bbtkWxBlackBox.h.
Window* bbtk::WxBlackBox::bbmWindow [private] |
The WxBlackBoxWindow associated to the box.
Definition at line 197 of file bbtkWxBlackBox.h.
Referenced by bbInitAttributes().
WxBlackBoxWidgetEventHandler* bbtk::WxBlackBox::bbmWidgetEventHandler [private] |
The WxBlackBoxWidgetEventHandler associated to the box.
Definition at line 199 of file bbtkWxBlackBox.h.
bool bbtk::WxBlackBox::bbmUpdateTransferedToParent [protected] |
For Forward update mechanism when execution is called on a contained window Is set to true before transfering update to parent in order to not re-transfer a second time...
Definition at line 211 of file bbtkWxBlackBox.h.