3 #include "bbtkQtBlackBoxDialog.h"
4 #include "bbtkQtBlackBox.h"
10 //=========================================================================
11 QtBlackBoxDialog::QtBlackBoxDialog(QtBlackBox::Pointer box,
13 const std::string& title,
14 int width, int height)
21 bbtkDebugMessage("widget",9,"["<<
22 box->bbGetName()<<"] QtBlackBoxDialog("<<parent<<",\""
23 <<title<<"\","<<width<<"x"<<height<<")"<<std::endl);
24 Qt::IncNbWindowsAlive();
25 // Sets up the GUI inherited from Ui::bbtkQtblackBoxDialog
27 resize ( width , height );
28 setWindowTitle(title.c_str());
31 box->bbSetWindow(this);
33 box->bbUserCreateWidget(widget);
35 // Insert into the layout
36 horizontalLayout->addWidget(box->bbGetOutputWidget());
42 //=========================================================================
45 //=========================================================================
46 QtBlackBoxDialog::~QtBlackBoxDialog()
49 bbtkDebugMessage("widget",9,"["<<mBox.lock()->bbGetName()
50 <<"] $$$$$$$$$$$$$$$$$$$ ~QtBlackBoxDialog()"
53 bbtkDebugMessage("widget",9,"[DEAD] $$$$$$$$$$$$$$$$$$$$$ ~QtBlackBoxDialog()"<<std::endl);
54 //bbtkDebugMessage("widget",9,"WxFrame::~WxFrame()"<<std::endl);
55 if (mBox.lock()) mBox.lock()->bbSetWindow(0);
56 Qt::DecNbWindowsAlive();
58 //=========================================================================