]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxColourSelectorButton.h
*** empty log message ***
[bbtk.git] / packages / wx / src / bbwxColourSelectorButton.h
index aef50a25df702588980f645ca9c26ac4db8e04de..3e6a81e449b4fd789a4595ae2565825d72f041c8 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxColourSelectorButton.h,v $
   Language:  C++
-  Date:      $Date: 2008/11/25 11:17:25 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2008/12/12 08:55:23 $
+  Version:   $Revision: 1.10 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -41,8 +41,7 @@
  * \class bbwx::ColourSelectorButton
  * \brief 
 
- * \class bbwx::wxColourPickerCtrlWidget
- * \brief 
+
  */
 
 #ifdef _USE_WXWIDGETS_
@@ -55,8 +54,7 @@
 
 // Include wxBlackBox definition
 #include "bbtkWxBlackBox.h"
-
-#include <wx/clrpicker.h>
+#include "bbwx_EXPORT.h"
 
 // Namespace of the package "wx" is "bbwx" 
 // Namespace associated to packages should be of the form :
 namespace bbwx
 {
 
-  //=================================================================
-class ColourSelectorButton;
-
-class wxColourPickerCtrlWidget :public wxPanel
-{
 
-public:
-   wxColourPickerCtrlWidget( ColourSelectorButton* box,
-                             wxWindow *parent,
-                             unsigned char  cr,
-                             unsigned char  cg,
-                             unsigned char  cb  );
-
-   ~wxColourPickerCtrlWidget();
-   void OnColorChange(wxColourPickerEvent& e);
-   void UpdateBox();
-private:
-   wxColourPickerCtrl *picker;
-   ColourSelectorButton *mBox;
-};
-
-//------------------------------------------------------------------------
-// The black box
-  class /*BBTK_EXPORT*/ ColourSelectorButton : public bbtk::WxBlackBox
+  //------------------------------------------------------------------------
+  // The black box
+  class bbwx_EXPORT ColourSelectorButton : public bbtk::WxBlackBox
   {
     BBTK_BLACK_BOX_INTERFACE(ColourSelectorButton,bbtk::WxBlackBox);
     BBTK_DECLARE_INPUT(In,std::string);
@@ -96,17 +74,13 @@ private:
     BBTK_CREATE_WIDGET(CreateWidget);
     void Process();
     void CreateWidget(wxWindow*);
-
   protected:
     virtual void bbUserConstructor();
-    /*
-  private:
-     wxColourPickerCtrlWidget* pickerWidget;
-    */
   };
+  //=================================================================
 
   //=================================================================
-  // UserBlackBox description
+  // BlackBox description
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(ColourSelectorButton,bbtk::WxBlackBox);
   // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
   BBTK_NAME("ColourSelectorButton");
@@ -120,4 +94,4 @@ private:
 }//namespace bbtk
 #endif  // __bbtkWxColourSelector_h__
 
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS