bbtk::QtBlackBoxDialog Class Reference

#include <bbtkQtBlackBoxDialog.h>

List of all members.

Public Member Functions

 QtBlackBoxDialog (QtBlackBox::Pointer box, QWidget *parent, const std::string &title, int width, int height)
 ~QtBlackBoxDialog ()

Private Attributes

QtBlackBox::WeakPointer mBox


Detailed Description

Definition at line 48 of file bbtkQtBlackBoxDialog.h.


Constructor & Destructor Documentation

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   }
  //=========================================================================

Here is the call graph for this function:

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   }

Here is the call graph for this function:


Member Data Documentation

Definition at line 59 of file bbtkQtBlackBoxDialog.h.

Referenced by ~QtBlackBoxDialog().


The documentation for this class was generated from the following files:

Generated on Thu May 31 14:15:03 2012 for BBTK by  doxygen 1.5.7.1