00001 /*========================================================================= 00002 Program: bbtk 00003 Module: $RCSfile: bbtkKWBlackBox.h,v $ 00004 Language: C++ 00005 Date: $Date: 2009/04/08 07:56:11 $ 00006 Version: $Revision: 1.6 $ 00007 ========================================================================*/ 00008 00009 00010 /* --------------------------------------------------------------------- 00011 00012 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale) 00013 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux 00014 * 00015 * This software is governed by the CeCILL-B license under French law and 00016 * abiding by the rules of distribution of free software. You can use, 00017 * modify and/ or redistribute the software under the terms of the CeCILL-B 00018 * license as circulated by CEA, CNRS and INRIA at the following URL 00019 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 00020 * or in the file LICENSE.txt. 00021 * 00022 * As a counterpart to the access to the source code and rights to copy, 00023 * modify and redistribute granted by the license, users are provided only 00024 * with a limited warranty and the software's author, the holder of the 00025 * economic rights, and the successive licensors have only limited 00026 * liability. 00027 * 00028 * The fact that you are presently reading this means that you have had 00029 * knowledge of the CeCILL-B license and that you accept its terms. 00030 * ------------------------------------------------------------------------ */ 00045 #ifndef __bbtkKWBlackBox_h_INCLUDED__ 00046 #define __bbtkKWBlackBox_h_INCLUDED__ 00047 00048 00049 #ifdef USE_KWWIDGETS 00050 00051 #include "bbtkWidgetBlackBox.h" 00052 00053 00054 #include "bbtkKW.h" 00055 00056 00057 00058 namespace bbtk 00059 { 00060 00061 00062 00063 //================================================================== 00065 class BBTK_EXPORT KWBlackBox : public bbtk::WidgetBlackBox<vtkKWWidget> 00066 { 00067 BBTK_BLACK_BOX_INTERFACE(KWBlackBox,bbtk::WidgetBlackBox<vtkKWWidget>); 00068 public: 00069 //================================================================== 00071 virtual void bbCreateDialogWindow(); 00072 //================================================================== 00073 00074 //================================================================== 00076 virtual void bbCreateFrameWindow(); 00077 //================================================================== 00078 00079 //================================================================== 00080 // virtual void InitWindowManagerIfNeeded(); 00081 virtual void IncNbWindowsAlive(); 00082 virtual void DecNbWindowsAlive(); 00083 virtual int GetNbWindowsAlive(); 00084 virtual bool IsSomeWindowAlive(); 00085 00086 virtual void IncNbWindowsShown(); 00087 virtual void DecNbWindowsShown(); 00088 virtual int GetNbWindowsShown(); 00089 virtual bool IsSomeWindowShown(); 00090 //================================================================== 00091 00092 00093 00094 //================================================================== 00095 vtkKWWidget* bbCreateWidgetOfInput(const std::string& in, 00096 vtkKWFrame* parent); 00097 //================================================================== 00098 00099 00100 }; 00101 //================================================================= 00102 00103 00104 //================================================================= 00105 // KWBlackBoxDescriptor declaration 00106 class KWBlackBoxDescriptor : public WidgetBlackBoxDescriptor<vtkKWWidget> 00107 BBTK_BEGIN_DESCRIBE_BLACK_BOX_BODY(KWBlackBox); 00108 BBTK_NAME("KWBlackBox"); 00109 BBTK_END_DESCRIBE_BLACK_BOX(KWBlackBox); 00110 //================================================================= 00111 00112 00113 00114 00115 00116 00117 00118 00119 } //namespace bbtk 00120 00121 00122 00123 #endif // USE_KWWIDGETS 00124 #endif //__bbtkKWBlackBox_h__