]> Creatis software - bbtk.git/blob - kernel/src/vtkKWBlackBoxDialog.h
f47f89f744a436426615827c3efb25776b1029e7
[bbtk.git] / kernel / src / vtkKWBlackBoxDialog.h
1 #ifndef __vtkKWBlackBoxDialog_h_INCLUDED__
2 #define __vtkKWBlackBoxDialog_h_INCLUDED__
3
4 #ifdef USE_KWWIDGETS
5
6 #include "bbtkKWBlackBox.h"
7 #include "vtkKWDialog.h"
8
9 typedef bbtk::KWBlackBox::Pointer BBPointer;
10 typedef bbtk::KWBlackBox::WeakPointer BBWeakPointer;
11
12 class BBTK_EXPORT vtkKWBlackBoxDialog : public vtkKWDialog
13                                           //public vtkKWBlackBoxWindow
14
15 {
16 public:
17   
18
19   static vtkKWBlackBoxDialog* New();
20
21   vtkTypeRevisionMacro(vtkKWBlackBoxDialog,vtkKWDialog);
22   void bbShow();  
23   void bbHide();
24   void bbClose();
25   void Cancel();
26   bool bbIsShown() { return mShown; }
27   void bbSetBlackBox(BBPointer box) 
28   { 
29     mBox = box; 
30     mBox.lock()->bbSetWindow(this);
31   }
32   virtual BBPointer bbGetBlackBox() { return mBox.lock(); }
33 protected:
34   vtkKWBlackBoxDialog();
35   ~vtkKWBlackBoxDialog();
36 private:
37   vtkKWBlackBoxDialog(const vtkKWBlackBoxDialog&);   // Not implemented.
38   void operator=(const vtkKWBlackBoxDialog&);  // Not implemented.
39   BBWeakPointer mBox;
40   bool mShown;
41 };
42 //==================================================================
43
44 #endif
45 #endif