]> Creatis software - bbtk.git/blob - packages/wx/src/bbwxColourDialog.h
187726446bed5ee03bfa47b6fd77adc7fb2046ae
[bbtk.git] / packages / wx / src / bbwxColourDialog.h
1 /*=========================================================================
2                                                                                 
3   Program:   bbtk
4   Module:    $RCSfile: bbwxColourDialog.h,v $
5   Language:  C++
6   Date:      $Date: 2008/02/14 16:55:07 $
7   Version:   $Revision: 1.1 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*//**
18  /**
19  * \file 
20  * \brief Short description in one line
21  * 
22  * Long description which 
23  * can span multiple lines
24 */
25
26 /**
27  * \class bbwx::ColorDialog
28  * \brief 
29
30  */
31
32 #ifdef _USE_WXWIDGETS_
33
34
35 #ifndef __bbWxColourDialog_h__
36 #define __bbWxColourDialog_h__
37
38 #include "bbtkWxBlackBox.h"
39
40 #include <wx/colordlg.h>
41
42 // Namespace of the package "wx" is "bbwx" 
43 // Namespace associated to packages should be of the form :
44 // bbPACKAGENAME
45 namespace bbwx
46 {
47   
48   
49   
50
51   //=================================================================
52   class /*BBTK_EXPORT*/ ColourDialog : public bbtk::WxBlackBox
53   {
54     BBTK_USER_BLACK_BOX_INTERFACE(ColourDialog,bbtk::WxBlackBox);
55     BBTK_DECLARE_OUTPUT(Out,std::string);
56     BBTK_PROCESS(Process);
57     BBTK_CREATE_WIDGET(CreateWidget);
58     void Process();
59     void CreateWidget();
60
61   protected:
62     virtual void bbUserConstructor();
63   private:
64     wxColourDialog* mColorDialog;
65   };
66   //=================================================================
67   
68  
69   //=================================================================
70   // UserBlackBox description
71   BBTK_BEGIN_DESCRIBE_BLACK_BOX(ColourDialog,bbtk::WxBlackBox);
72   // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
73   BBTK_NAME("ColourDialog");
74   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
75   BBTK_DESCRIPTION("Colour chooser dialog (bbfication of wxColourDialog)");
76   BBTK_OUTPUT(ColourDialog,Out,"The colour selected by the user",std::string);
77   BBTK_END_DESCRIBE_BLACK_BOX(ColourDialog);
78   //=================================================================
79
80
81
82 }
83
84
85
86 //namespace bbtk
87 #endif  //__bbtkWxColourDialog_h__
88
89 #endif //_USE_WXWIDGETS_