bbtk::WxBlackBoxFrame Class Reference

#include <bbtkWxBlackBox.h>

Inheritance diagram for bbtk::WxBlackBoxFrame:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

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


Detailed Description

Definition at line 304 of file bbtkWxBlackBox.h.


Constructor & Destructor Documentation

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

Definition at line 198 of file bbtkWxBlackBox.cxx.

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

00202     :  wxFrame( parent, 
00203                -1, 
00204                title,
00205                wxDefaultPosition,
00206                size,
00207                wxRESIZE_BORDER | 
00208                wxSYSTEM_MENU  |
00209                wxCLOSE_BOX |
00210                wxMAXIMIZE_BOX | 
00211                wxMINIMIZE_BOX | 
00212                wxCAPTION  
00213                 ),
00214        WxBlackBoxWindow(box)
00215   {
00216     bbtkDebugMessage("wx",9,"WxBlackBoxFrame::WxBlackBoxFrame("<<
00217                      bbGetBlackBox()->bbGetFullName()<<","<<parent<<","
00218                      <<title<<",size)"<<std::endl);
00219     // Insert the widget into the window
00220     wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
00221     wxWindow* widget = bbGetBlackBox()->bbGetOutputWidget();
00222     wxFrame* frame = (wxFrame*)this;
00223     widget->Reparent(frame);
00224     sizer->Add( widget, 1, wxALL|wxGROW, 2);
00225     //  frame->SetAutoLayout(true);
00226     frame->SetSizer(sizer);
00227     //frame->Fit();
00228     frame->Layout();
00229   }

Here is the call graph for this function:

bbtk::WxBlackBoxFrame::~WxBlackBoxFrame (  ) 

Definition at line 233 of file bbtkWxBlackBox.cxx.

00234   {
00235   }


Member Function Documentation

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

Reimplemented from bbtk::WxBlackBoxWindow.

Definition at line 239 of file bbtkWxBlackBox.cxx.

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

00240   { 
00241     if (bbIsShown()) return;
00242     bbtkDebugMessage("wx",5,"WxBlackBoxFrame::bbShow("
00243                      <<bbGetBlackBox()->bbGetFullName()<<")"<<std::endl);
00244     WxBlackBoxWindow::bbShow();
00245   wxFrame::Show();
00246     // This Update is ** MANDATORY ** 
00247     // to synchronize wxvtkRenderWindowInteractor objects
00248     // (force wx objects creation **NOW**)
00249 
00250 
00251 #if defined(_WIN32)
00252       wxFrame::Refresh();
00253 #endif
00254 
00255       wxFrame::Update();
00256       wxFrame::SetFocus();
00257     if (bbGetBlackBox()) bbGetBlackBox()->bbUserOnShow();
00258   }

Here is the call graph for this function:

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

Reimplemented from bbtk::WxBlackBoxWindow.

Definition at line 262 of file bbtkWxBlackBox.cxx.

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

00263   {
00264     bbtkDebugMessage("wx",9,"WxBlackBoxFrame::bbHide()"<<std::endl);
00265     WxBlackBoxWindow::bbHide();
00266     wxFrame::Hide();
00267     if (bbGetBlackBox()) bbGetBlackBox()->bbUserOnHide();
00268   }

Here is the call graph for this function:

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

Reimplemented from bbtk::WxBlackBoxWindow.

Definition at line 272 of file bbtkWxBlackBox.cxx.

References bbtkDebugMessage.

00273   {
00274     bbtkDebugMessage("wx",9,"WxBlackBoxFrame::bbClose()"<<std::endl);
00275     wxFrame::Close();
00276   }

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

Reimplemented from bbtk::WxBlackBoxWindow.

Definition at line 313 of file bbtkWxBlackBox.h.

00313 { return this; } 

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

Definition at line 277 of file bbtkWxBlackBox.h.

Referenced by bbtk::WxBlackBoxWindow::bbHide(), bbtk::WxBlackBox::bbIsShown(), bbShow(), bbtk::WxBlackBoxDialog::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 bbHide(), bbShow(), bbtk::WxBlackBoxDialog::bbShow(), bbtk::WxBlackBoxDialog::WxBlackBoxDialog(), and WxBlackBoxFrame().

00278 { return mBox.lock(); }

Here is the caller graph for this function:

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

Reimplemented in bbtk::WxBlackBoxDialog.

Definition at line 279 of file bbtkWxBlackBox.h.

00279 { 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