#include <bbtkQtBlackBoxDialog.h>
Public Member Functions | |
QtBlackBoxDialog (QtBlackBox::Pointer box, QWidget *parent, const std::string &title, int width, int height) | |
~QtBlackBoxDialog () | |
Private Attributes | |
QtBlackBox::WeakPointer | mBox |
Definition at line 48 of file bbtkQtBlackBoxDialog.h.
bbtk::QtBlackBoxDialog::QtBlackBoxDialog | ( | QtBlackBox::Pointer | box, | |
QWidget * | parent, | |||
const std::string & | title, | |||
int | width, | |||
int | height | |||
) |
Definition at line 41 of file bbtkQtBlackBoxDialog.cxx.
References bbtkDebugMessage, and bbtk::Qt::IncNbWindowsAlive().
00046 : 00047 QDialog(parent), 00048 mBox(box) 00049 // QDialog( parent ) 00050 { 00051 bbtkDebugMessage("widget",9,"["<< 00052 box->bbGetName()<<"] QtBlackBoxDialog("<<parent<<",\"" 00053 <<title<<"\","<<width<<"x"<<height<<")"<<std::endl); 00054 Qt::IncNbWindowsAlive(); 00055 // Sets up the GUI inherited from Ui::bbtkQtblackBoxDialog 00056 setupUi(this); 00057 resize ( width , height ); 00058 setWindowTitle(title.c_str()); 00059 00061 box->bbSetWindow(this); 00062 // Create the widget 00063 box->bbUserCreateWidget(widget); 00064 00065 // Insert into the layout 00066 horizontalLayout->addWidget(box->bbGetOutputWidget()); 00067 00068 00069 // updateGeometry(); 00070 00071 } //=========================================================================
bbtk::QtBlackBoxDialog::~QtBlackBoxDialog | ( | ) |
Definition at line 76 of file bbtkQtBlackBoxDialog.cxx.
References bbtkDebugMessage, bbtk::Qt::DecNbWindowsAlive(), and mBox.
00077 { 00078 if (mBox.lock()) 00079 bbtkDebugMessage("widget",9,"["<<mBox.lock()->bbGetName() 00080 <<"] $$$$$$$$$$$$$$$$$$$ ~QtBlackBoxDialog()" 00081 <<std::endl); 00082 else 00083 bbtkDebugMessage("widget",9,"[DEAD] $$$$$$$$$$$$$$$$$$$$$ ~QtBlackBoxDialog()"<<std::endl); 00084 //bbtkDebugMessage("widget",9,"WxFrame::~WxFrame()"<<std::endl); 00085 if (mBox.lock()) mBox.lock()->bbSetWindow(0); 00086 Qt::DecNbWindowsAlive(); 00087 }