Program: bbtk
Module: $RCSfile: bbwxColourSelectorButton.h,v $
Language: C++
- Date: $Date: 2008/11/25 11:17:25 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2009/05/15 14:58:03 $
+ Version: $Revision: 1.11 $
=========================================================================*/
/* ---------------------------------------------------------------------
* \class bbwx::ColourSelectorButton
* \brief
- * \class bbwx::wxColourPickerCtrlWidget
- * \brief
+
*/
#ifdef _USE_WXWIDGETS_
// 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);
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");
}//namespace bbtk
#endif // __bbtkWxColourSelector_h__
-#endif //_USE_WXWIDGETS_
+#endif //USE_WXWIDGETS