00001 /*========================================================================= 00002 Program: bbtk 00003 Module: $RCSfile: bbwxCheckBox.h,v $ 00004 Language: C++ 00005 Date: $Date: 2009/01/13 09:57:13 $ 00006 Version: $Revision: 1.1 $ 00007 =========================================================================*/ 00008 00009 /* --------------------------------------------------------------------- 00010 00011 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale) 00012 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux 00013 * 00014 * This software is governed by the CeCILL-B license under French law and 00015 * abiding by the rules of distribution of free software. You can use, 00016 * modify and/ or redistribute the software under the terms of the CeCILL-B 00017 * license as circulated by CEA, CNRS and INRIA at the following URL 00018 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 00019 * or in the file LICENSE.txt. 00020 * 00021 * As a counterpart to the access to the source code and rights to copy, 00022 * modify and redistribute granted by the license, users are provided only 00023 * with a limited warranty and the software's author, the holder of the 00024 * economic rights, and the successive licensors have only limited 00025 * liability. 00026 * 00027 * The fact that you are presently reading this means that you have had 00028 * knowledge of the CeCILL-B license and that you accept its terms. 00029 * ------------------------------------------------------------------------ */ 00030 00047 #ifdef _USE_WXWIDGETS_ 00048 00049 // Prevents multiple inclusions : use symbols of the form 00050 // __FILENAME_INCLUDED__ 00051 // where FILENAME must be replaced by the actual file name 00052 #ifndef __bbwxCheckBox_h_INCLUDED__ 00053 #define __bbwxCheckBox_h_INCLUDED__ 00054 00055 // Include wxBlackBox definition 00056 #include "bbtkWxBlackBox.h" 00057 00058 #include "bbwx_EXPORT.h" 00059 00060 00061 // Namespace of the package "wx" is "bbwx" 00062 // Namespace associated to packages should be of the form : 00063 // bbPACKAGENAME 00064 namespace bbwx 00065 { 00066 00067 //------------------------------------------------------------------------ 00068 // The black box 00069 class bbwx_EXPORT CheckBox : public bbtk::WxBlackBox 00070 { 00071 00072 BBTK_BLACK_BOX_INTERFACE(CheckBox,bbtk::WxBlackBox); 00073 BBTK_DECLARE_INPUT(In,bool); 00074 BBTK_DECLARE_INPUT(Title,std::string); 00075 BBTK_DECLARE_OUTPUT(Out,bool); 00076 BBTK_PROCESS(Process); 00077 BBTK_CREATE_WIDGET(CreateWidget); 00078 void Process(); 00079 void CreateWidget(wxWindow*); 00080 00081 protected: 00082 virtual void bbUserConstructor(); 00083 }; 00084 //================================================================= 00085 00086 //================================================================= 00087 // the black box description 00088 BBTK_BEGIN_DESCRIBE_BLACK_BOX(CheckBox,bbtk::WxBlackBox); 00089 BBTK_NAME("CheckBox"); 00090 BBTK_AUTHOR("jpr@creatis.insa-lyon.fr"); 00091 // Already inserted for any WxBlackBox BBTK_CATEGORY("widget"); 00092 BBTK_DESCRIPTION("CheckBox widget (wxCheckBox)"); 00093 BBTK_INPUT(CheckBox, In, "Initial value of the CheckBox (default false)",bool, ""); 00094 BBTK_INPUT(CheckBox, Title,"Title shown above the CheckBox (default '') ", std::string,""); 00095 BBTK_OUTPUT(CheckBox,Out, "Current value of the CheckBox", bool, ""); 00096 BBTK_END_DESCRIBE_BLACK_BOX(CheckBox); 00097 //================================================================= 00098 00099 00100 00101 } //namespace bbwx 00102 00103 #endif //__bbtkwxCheckBox_h_INCLUDED__ 00104 00105 #endif //_USE_WXWIDGETS_