bbtk::WidgetBlackBoxWindow< W > Class Template Reference

#include <bbtkWidgetBlackBoxWindow.h>

List of all members.

Public Types

typedef WidgetBlackBox< W >
::Pointer 
WidgetBlackBoxPointer
typedef WidgetBlackBox< W >
::WeakPointer 
WidgetBlackBoxWeakPointer

Public Member Functions

 WidgetBlackBoxWindow (WidgetBlackBoxPointer box)
virtual ~WidgetBlackBoxWindow ()
virtual void bbShow ()
virtual void bbHide ()
virtual void bbDestroy ()
bool bbIsShown ()
virtual WidgetBlackBoxPointer bbGetBlackBox ()
virtual bool bbIsDialog ()
virtual bool bbIsFrame ()

Private Attributes

WidgetBlackBoxWeakPointer mBox
bool mShown


Detailed Description

template<class W>
class bbtk::WidgetBlackBoxWindow< W >

Definition at line 62 of file bbtkWidgetBlackBoxWindow.h.


Member Typedef Documentation

template<class W >
typedef WidgetBlackBox<W>::Pointer bbtk::WidgetBlackBoxWindow< W >::WidgetBlackBoxPointer

Definition at line 65 of file bbtkWidgetBlackBoxWindow.h.

template<class W >
typedef WidgetBlackBox<W>::WeakPointer bbtk::WidgetBlackBoxWindow< W >::WidgetBlackBoxWeakPointer

Definition at line 66 of file bbtkWidgetBlackBoxWindow.h.


Constructor & Destructor Documentation

template<class W >
bbtk::WidgetBlackBoxWindow< W >::~WidgetBlackBoxWindow (  )  [inline, virtual]

Definition at line 64 of file bbtkWidgetBlackBoxWindow.txx.

References bbtk::WidgetBlackBoxWindow< W >::bbHide(), bbtkDebugMessage, and bbtk::WidgetBlackBoxWindow< W >::mBox.

00065   {
00066     bbtkDebugMessage("widget",9,
00067                      "WidgetBlackBoxWindow::~WidgetBlackBoxWindow() "
00068                      <<this<<std::endl);
00069     std::cout << "**** WidgetBlackBoxWindow::~WidgetBlackBoxWindow() "
00070               <<this<<std::endl;
00071     bbHide();
00072     if (!mBox.expired())
00073       {
00074         mBox.lock()->DecNbWindowsAlive();
00075         mBox.lock()->bbSetWindow(0);
00076       }
00077   }

Here is the call graph for this function:


Member Function Documentation

template<class W >
void bbtk::WidgetBlackBoxWindow< W >::bbDestroy (  )  [inline, virtual]

Definition at line 108 of file bbtkWidgetBlackBoxWindow.txx.

References bbtk::WidgetBlackBoxWindow< W >::bbHide(), bbtkDebugMessage, and bbtk::WidgetBlackBoxWindow< W >::mBox.

00109   {
00110     
00111     if (mBox.expired()) return;
00112     bbtkDebugMessage("widget",9,"WidgetBlackBoxWindow::bbDestroy() [" 
00113                      <<mBox.lock()->bbGetName()<<"]"<<std::endl);
00114     bbHide();
00115     mBox.lock()->DecNbWindowsAlive();
00116     mBox.lock()->bbSetWindow(0);
00117     
00118   }

Here is the call graph for this function:

template<class W >
virtual WidgetBlackBoxPointer bbtk::WidgetBlackBoxWindow< W >::bbGetBlackBox (  )  [inline, virtual]

Definition at line 74 of file bbtkWidgetBlackBoxWindow.h.

References bbtk::WidgetBlackBoxWindow< W >::mBox.

Referenced by bbtk::WidgetBlackBoxWindow< W >::bbShow().

00074 { return mBox.lock(); }

Here is the caller graph for this function:

template<class W >
void bbtk::WidgetBlackBoxWindow< W >::bbHide (  )  [inline, virtual]

Definition at line 96 of file bbtkWidgetBlackBoxWindow.txx.

References bbtk::WidgetBlackBoxWindow< W >::bbIsShown(), bbtkDebugMessage, bbtk::WidgetBlackBoxWindow< W >::mBox, and bbtk::WidgetBlackBoxWindow< W >::mShown.

Referenced by bbtk::WidgetBlackBoxWindow< W >::bbDestroy(), and bbtk::WidgetBlackBoxWindow< W >::~WidgetBlackBoxWindow().

00097   {
00098     if ((!bbIsShown())||(mBox.expired())) return;
00099     bbtkDebugMessage("widget",9,"WidgetBlackBoxWindow::bbHide() ["
00100                      <<mBox.lock()->bbGetName()<<"]"<<std::endl);
00101     mBox.lock()->DecNbWindowsShown();
00102     mShown = false;
00103   }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class W >
virtual bool bbtk::WidgetBlackBoxWindow< W >::bbIsDialog (  )  [inline, virtual]

Definition at line 77 of file bbtkWidgetBlackBoxWindow.h.

00077 { return false; }

template<class W >
virtual bool bbtk::WidgetBlackBoxWindow< W >::bbIsFrame (  )  [inline, virtual]

Definition at line 78 of file bbtkWidgetBlackBoxWindow.h.

00078 { return false; }

template<class W >
bool bbtk::WidgetBlackBoxWindow< W >::bbIsShown (  )  [inline]

Definition at line 73 of file bbtkWidgetBlackBoxWindow.h.

References bbtk::WidgetBlackBoxWindow< W >::mShown.

Referenced by bbtk::WidgetBlackBoxWindow< W >::bbHide(), and bbtk::WidgetBlackBoxWindow< W >::bbShow().

00073 { return mShown; }

Here is the caller graph for this function:

template<class W >
void bbtk::WidgetBlackBoxWindow< W >::bbShow (  )  [inline, virtual]

Definition at line 83 of file bbtkWidgetBlackBoxWindow.txx.

References bbtk::WidgetBlackBoxWindow< W >::bbGetBlackBox(), bbtk::WidgetBlackBoxWindow< W >::bbIsShown(), bbtkDebugMessage, bbtk::WidgetBlackBoxWindow< W >::mBox, and bbtk::WidgetBlackBoxWindow< W >::mShown.

00084   {
00085     if (bbIsShown()) return;
00086     bbtkDebugMessage("widget",9,"WidgetBlackBoxWindow::bbShow() ["
00087                      <<mBox.lock()->bbGetName()<<"]"<<std::endl);
00088     mBox.lock()->IncNbWindowsShown();
00089     mShown = true;
00090     if (bbGetBlackBox()) bbGetBlackBox()->bbUserOnShow();
00091   }

Here is the call graph for this function:


Member Data Documentation

template<class W >
WidgetBlackBoxWeakPointer bbtk::WidgetBlackBoxWindow< W >::mBox [private]

template<class W >
bool bbtk::WidgetBlackBoxWindow< W >::mShown [private]


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

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