vtkKWBlackBoxDialog.h

Go to the documentation of this file.
00001 #ifndef __vtkKWBlackBoxDialog_h_INCLUDED__
00002 #define __vtkKWBlackBoxDialog_h_INCLUDED__
00003 
00004 #ifdef USE_KWWIDGETS
00005 
00006 #include "bbtkKWBlackBox.h"
00007 #include "vtkKWDialog.h"
00008 #include "vtkKWFrame.h"
00009 
00010 
00011 typedef bbtk::KWBlackBox::Pointer BBPointer;
00012 typedef bbtk::KWBlackBox::WeakPointer BBWeakPointer;
00013 
00014 class BBTK_EXPORT vtkKWBlackBoxDialog : public vtkKWDialog,
00015                                         public WidgetBlackBoxWindow<vtkKWWidget>
00016 
00017 {
00018 public:
00019   
00020 
00021   static vtkKWBlackBoxDialog* New();
00022 
00023   vtkTypeRevisionMacro(vtkKWBlackBoxDialog,vtkKWDialog);
00024   void bbShow();  
00025   void bbHide();
00026   void bbClose();
00027   void Cancel();
00028   bool bbIsShown() { return mShown; }
00029   void bbSetBlackBox(BBPointer box) 
00030   { 
00031     mBox = box; 
00032     mBox.lock()->bbSetWindow(this);
00033   }
00034   virtual BBPointer bbGetBlackBox() { return mBox.lock(); }
00035   vtkKWFrame* GetFrame() { return mFrame; }
00036   void CreateWidget();
00037   //  void Pack();
00038 protected:
00039   vtkKWBlackBoxDialog();
00040   ~vtkKWBlackBoxDialog();
00041 private:
00042   vtkKWBlackBoxDialog(const vtkKWBlackBoxDialog&);   // Not implemented.
00043   void operator=(const vtkKWBlackBoxDialog&);  // Not implemented.
00044   BBWeakPointer mBox;
00045   bool mShown;
00046   vtkKWFrame* mFrame;
00047 };
00048 //==================================================================
00049 
00050 #endif
00051 #endif

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