#ifdef USE_QT #include "bbtkQtBlackBoxDialog.h" #include "bbtkQtBlackBox.h" namespace bbtk { //========================================================================= QtBlackBoxDialog::QtBlackBoxDialog(QtBlackBox::Pointer box, QWidget *parent, const std::string& title, int width, int height) : QDialog(parent), mBox(box) // QDialog( parent ) { bbtkDebugMessage("widget",9,"["<< box->bbGetName()<<"] QtBlackBoxDialog("<bbSetWindow(this); // Create the widget box->bbUserCreateWidget(widget); // Insert into the layout horizontalLayout->addWidget(box->bbGetOutputWidget()); // updateGeometry(); } //========================================================================= //========================================================================= QtBlackBoxDialog::~QtBlackBoxDialog() { if (mBox.lock()) bbtkDebugMessage("widget",9,"["<bbGetName() <<"] $$$$$$$$$$$$$$$$$$$ ~QtBlackBoxDialog()" <bbSetWindow(0); Qt::DecNbWindowsAlive(); } //========================================================================= } #endif