bbtk::WxBlackBoxDialog Class Reference

#include <bbtkWxBlackBox.h>

Inheritance diagram for bbtk::WxBlackBoxDialog:

Inheritance graph
[legend]
Collaboration diagram for bbtk::WxBlackBoxDialog:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WxBlackBoxDialog (WxBlackBox::Pointer box, wxWindow *parent, wxString title, wxSize size)
 ~WxBlackBoxDialog ()
void bbShow ()
void bbHide ()
void bbClose ()
wxDialog * bbGetDialog ()
bool bbIsShown ()
virtual WxBlackBox::Pointer bbGetBlackBox ()
virtual wxFrame * bbGetFrame ()


Detailed Description

Definition at line 289 of file bbtkWxBlackBox.h.


Constructor & Destructor Documentation

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

Definition at line 121 of file bbtkWxBlackBox.cxx.

References bbtk::WxBlackBoxWindow::bbGetBlackBox(), and bbtkDebugMessage.

00125     :
00126     wxDialog( parent, 
00127                 -1, 
00128                 title,
00129                 wxDefaultPosition,
00130                 size,
00131                 wxRESIZE_BORDER | 
00132                 wxSYSTEM_MENU  |
00133                 wxCLOSE_BOX |
00134                 wxMAXIMIZE_BOX | 
00135                 wxMINIMIZE_BOX | 
00136                 wxCAPTION  
00137               ),
00138     WxBlackBoxWindow(box)
00139   {
00140     bbtkDebugMessage("wx",9,"WxBlackBoxDialog::WxBlackBoxDialog("<<
00141                      bbGetBlackBox()->bbGetFullName()<<","<<parent<<","
00142                      <<title<<",size)"<<std::endl);
00143     // Insert the widget into the window
00144     wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
00145     wxWindow* widget = bbGetBlackBox()->bbGetOutputWidget();
00146     widget->Reparent(this);
00147     sizer->Add( widget, 1, wxALL|wxEXPAND, 2);
00148     //SetAutoLayout(true);
00149     SetSizer(sizer);
00150     Layout();
00151   }
  //=========================================================================

Here is the call graph for this function:

bbtk::WxBlackBoxDialog::~WxBlackBoxDialog (  ) 

Definition at line 184 of file bbtkWxBlackBox.cxx.

00185   {
00186   }


Member Function Documentation

void bbtk::WxBlackBoxDialog::bbShow (  )  [virtual]

Reimplemented from bbtk::WxBlackBoxWindow.

Definition at line 155 of file bbtkWxBlackBox.cxx.

References bbClose(), bbtk::WxBlackBoxWindow::bbGetBlackBox(), bbtk::WxBlackBoxWindow::bbIsShown(), and bbtkDebugMessage.

00156   { 
00157     if (bbIsShown()) return;
00158     bbtkDebugMessage("wx",5,"WxBlackBoxDialog::bbShow() ["
00159                      <<bbGetBlackBox()->bbGetFullName()<<"]"<<std::endl);
00160     WxBlackBoxWindow::bbShow();
00161     SetReturnCode( wxDialog::ShowModal() ); 
00162     bbClose();
00163   }

Here is the call graph for this function:

void bbtk::WxBlackBoxDialog::bbHide (  )  [virtual]

Reimplemented from bbtk::WxBlackBoxWindow.

Definition at line 167 of file bbtkWxBlackBox.cxx.

References bbtkDebugMessage.

00168   {
00169     bbtkDebugMessage("wx",9,"WxBlackBoxDialog::bbHide()"<<std::endl);
00170     WxBlackBoxWindow::bbHide();
00171     Hide();
00172   }

void bbtk::WxBlackBoxDialog::bbClose (  )  [virtual]

Reimplemented from bbtk::WxBlackBoxWindow.

Definition at line 176 of file bbtkWxBlackBox.cxx.

References bbtkDebugMessage.

Referenced by bbShow().

00177   {
00178     bbtkDebugMessage("wx",9,"WxBlackBoxDialog::bbClose()"<<std::endl);
00179     wxDialog::Destroy();
00180   }

Here is the caller graph for this function:

wxDialog* bbtk::WxBlackBoxDialog::bbGetDialog (  )  [inline, virtual]

Reimplemented from bbtk::WxBlackBoxWindow.

Definition at line 298 of file bbtkWxBlackBox.h.

00298 { return this; } 

bool bbtk::WxBlackBoxWindow::bbIsShown (  )  [inline, inherited]

Definition at line 277 of file bbtkWxBlackBox.h.

Referenced by bbtk::WxBlackBoxWindow::bbHide(), bbtk::WxBlackBox::bbIsShown(), bbtk::WxBlackBoxFrame::bbShow(), bbShow(), and bbtk::WxBlackBoxWindow::bbShow().

00277 { return mShown; }

Here is the caller graph for this function:

virtual WxBlackBox::Pointer bbtk::WxBlackBoxWindow::bbGetBlackBox (  )  [inline, virtual, inherited]

Definition at line 278 of file bbtkWxBlackBox.h.

Referenced by bbtk::WxBlackBoxFrame::bbHide(), bbtk::WxBlackBoxFrame::bbShow(), bbShow(), WxBlackBoxDialog(), and bbtk::WxBlackBoxFrame::WxBlackBoxFrame().

00278 { return mBox.lock(); }

Here is the caller graph for this function:

virtual wxFrame* bbtk::WxBlackBoxWindow::bbGetFrame (  )  [inline, virtual, inherited]

Reimplemented in bbtk::WxBlackBoxFrame.

Definition at line 280 of file bbtkWxBlackBox.h.

00280 { return 0; } 


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

Generated on Wed Nov 12 11:38:56 2008 for BBTK by  doxygen 1.5.6