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)
17 QtBlackBoxDialogParent(box,parent)
20 bbtkDebugMessage("qt",9,"QtBlackBoxDialog::QtBlackBoxDialog("<<
21 bbGetBlackBox()->bbGetFullName()<<","<<parent<<","
22 <<title<<","<<width<<"x"<<height<<")"<<std::endl);
23 // Sets up the GUI inherited from Ui::bbtkQtblackBoxDialog
25 resize ( width , height );
26 setWindowTitle(title.c_str());
30 box->bbUserCreateWidget(widget);
32 // Insert into the layout
33 horizontalLayout->addWidget(box->bbGetOutputWidget());
39 //=========================================================================
41 //=========================================================================
42 void QtBlackBoxDialog::bbShow()
44 if (bbIsShown()) return;
45 bbtkDebugMessage("qt",5,"QtBlackBoxDialog::bbShow() ["
46 <<bbGetBlackBox()->bbGetFullName()<<"]"<<std::endl);
51 //SetReturnCode( wxDialog::ShowModal() );
54 //=========================================================================
56 //=========================================================================
57 void QtBlackBoxDialog::bbHide()
59 bbtkDebugMessage("qt",9,"QtBlackBoxDialog::bbHide()"<<std::endl);
64 //=========================================================================
66 //=========================================================================
67 void QtBlackBoxDialog::bbClose()
69 bbtkDebugMessage("qt",9,"QtBlackBoxDialog::bbClose()"<<std::endl);
70 //wxDialog::Destroy();
72 //=========================================================================
74 //=========================================================================
75 QtBlackBoxDialog::~QtBlackBoxDialog()
78 //=========================================================================