bbtk::WxDialog Class Reference

List of all members.

Public Member Functions

 WxDialog (WxBlackBox::Pointer box, wxWindow *parent, wxString title, wxSize size)
 ~WxDialog ()
void OnCloseWindow (wxCloseEvent &event)
 DECLARE_EVENT_TABLE ()

Public Attributes

WxBlackBox::WeakPointer mBox


Detailed Description

Definition at line 146 of file bbtkWxBlackBox.cxx.


Constructor & Destructor Documentation

bbtk::WxDialog::WxDialog ( WxBlackBox::Pointer  box,
wxWindow *  parent,
wxString  title,
wxSize  size 
)

Definition at line 168 of file bbtkWxBlackBox.cxx.

References bbtkDebugMessage, and bbtk::Wx::IncNbWindowsAlive().

00172     :
00173     wxDialog( parent, 
00174                 -1, 
00175                 title,
00176                 wxDefaultPosition,
00177                 size,
00178                 wxRESIZE_BORDER | 
00179                 wxSYSTEM_MENU  |
00180                 wxCLOSE_BOX |
00181                 wxMAXIMIZE_BOX | 
00182                 wxMINIMIZE_BOX | 
00183                 wxCAPTION  
00184               ),
00185     mBox(b)
00186   {
00187     bbtkDebugMessage("widget",9,"WxDialog::WxDialog ["<<b->bbGetName()<<"]"
00188                      <<std::endl);
00189     Wx::IncNbWindowsAlive();
00190     b->bbSetWindow(this);
00191     // Insert the widget into the window
00192     wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
00193     b->bbUserCreateWidget(this);
00194     wxWindow* widget = b->bbGetOutputWidget();
00195     sizer->Add( widget, 1, wxALL|wxGROW, 2);
00196     SetSizer(sizer);
00197     Layout();
00198   }
  //==================================================================

Here is the call graph for this function:

bbtk::WxDialog::~WxDialog (  ) 

Definition at line 201 of file bbtkWxBlackBox.cxx.

References bbtkDebugMessage.

00202     { 
00203       bbtkDebugMessage("widget",9,"WxDialog::~WxDialog()"<<std::endl);
00204       //bbtkDebugMessage("widget",9,"WxFrame::~WxFrame()"<<std::endl);
00205       //      if (mBox.lock()) mBox.lock()->bbSetWindow(0); 
00206       //      Wx::DecNbWindowsAlive();
00207     }


Member Function Documentation

bbtk::WxDialog::DECLARE_EVENT_TABLE (  ) 

void bbtk::WxDialog::OnCloseWindow ( wxCloseEvent &  event  ) 

Definition at line 210 of file bbtkWxBlackBox.cxx.

References bbtkDebugMessage, bbtk::Wx::DecNbWindowsAlive(), and mBox.

00211     {
00212       bbtkDebugMessage("widget",9,"WxDialog::OnCloseWindow()"<<std::endl);
00213       if (mBox.lock()) mBox.lock()->bbSetWindow(0); 
00214       Wx::DecNbWindowsAlive();
00215       this->Destroy();
00216     }

Here is the call graph for this function:


Member Data Documentation

Definition at line 157 of file bbtkWxBlackBox.cxx.

Referenced by OnCloseWindow().


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

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