-
- //==================================================================
- // The base of the hierarchy of windows associated to a KWBlackBox
- class BBTK_EXPORT vtkKWBlackBoxWindow
- {
- public:
- vtkKWBlackBoxWindow();
- virtual ~vtkKWBlackBoxWindow();
- virtual void bbShow();
- virtual void bbHide();
- virtual void bbClose();
- bool bbIsShown() { return mShown; }
- void bbSetBlackBox(KWBlackBox::Pointer box)
- {
- mBox = box;
- mBox.lock()->bbSetWindow(this);
- }
- virtual KWBlackBox::Pointer bbGetBlackBox() { return mBox.lock(); }
- private:
- KWBlackBox::WeakPointer mBox;
- bool mShown;
- };
- //==================================================================
-
-
- //==================================================================
- // Dialog window which is modal
- // Name of window must not begin with uppercase letter
- class BBTK_EXPORT vtkKWBlackBoxDialog : public vtkKWDialog,
- public vtkKWBlackBoxWindow
- {
- public:
- static vtkKWBlackBoxDialog* New();
- vtkTypeRevisionMacro(vtkKWBlackBoxDialog,vtkKWDialog);
- void bbShow();
- void bbHide();
- void bbClose();
- void Cancel();
- protected:
- vtkKWBlackBoxDialog();
- ~vtkKWBlackBoxDialog();
- private:
- vtkKWBlackBoxDialog(const vtkKWBlackBoxDialog&); // Not implemented.
- void operator=(const vtkKWBlackBoxDialog&); // Not implemented.
- };
- //==================================================================
-
- //==================================================================
- // Frame window which is not modal
- class BBTK_EXPORT vtkKWBlackBoxFrame : public vtkKWWindowBase,
- public vtkKWBlackBoxWindow
- {
- public:
- static vtkKWBlackBoxFrame* New();
- vtkTypeRevisionMacro(vtkKWBlackBoxFrame,vtkKWWindowBase);
- void bbShow();
- void bbHide();
- void bbClose();
- protected:
- vtkKWBlackBoxFrame();
- ~vtkKWBlackBoxFrame();
- private:
- vtkKWBlackBoxFrame(const vtkKWBlackBoxFrame&); // Not implemented.
- void operator=(const vtkKWBlackBoxFrame&); // Not implemented.
- };
- //==================================================================
-
-
- /*
- //=================================================================
- // Handles the destroy events of a widget associated to a KWBlackBox
- // in order to signal the widget death to its associated box
- class BBTK_EXPORT KWBlackBoxWidgetEventHandler : public wxEvtHandler
- {
- public:
- /// Ctor with the box and widget
- KWBlackBoxWidgetEventHandler( KWBlackBox::Pointer box, wxWindow *widget );
- /// Dtor
- ~KWBlackBoxWidgetEventHandler();
- /// Returns true iff is the handler for that window
- bool IsHandlerOf( wxWindow* w ) { return mWindow == w; }
- // wxWindow* GetKWWindow() { return mWindow; }
- /// Method processing the destroy event of the widget
- void OnWindowDestroy(wxWindowDestroyEvent&);
- //
- //bool IsDead() { return mDead; }
-
- private:
- KWBlackBox::WeakPointer mBox;
- wxWindow* mWindow;
- //bool mDead;
- };
- //=================================================================
- */
-
-