X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fwx%2Fsrc%2FbbwxCommandButton.cxx;h=e216d9904ad0efc8ab52ac0ed2c306e1a82901ff;hb=5196156e0ab3bdf5ea8205d9cbccf558ca3004ad;hp=b56228f3d35c5f6209299166a72f6bd3f0b83b20;hpb=8586ecb2c333e453ce5e50e3e91971d124dec578;p=bbtk.git diff --git a/packages/wx/src/bbwxCommandButton.cxx b/packages/wx/src/bbwxCommandButton.cxx index b56228f..e216d99 100644 --- a/packages/wx/src/bbwxCommandButton.cxx +++ b/packages/wx/src/bbwxCommandButton.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbwxCommandButton.cxx,v $ Language: C++ - Date: $Date: 2008/11/25 11:31:03 $ - Version: $Revision: 1.13 $ + Date: $Date: 2008/12/12 08:55:23 $ + Version: $Revision: 1.14 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -46,8 +46,27 @@ namespace bbwx { - BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,CommandButton); - + + + //-------------------------------------------------------------------------- + class CommandButtonWidget : public wxPanel + { + public: + CommandButtonWidget(CommandButton* box, wxWindow *parent, + wxString title); + ~CommandButtonWidget(); + void OnCommandButton( wxEvent& ); + void SetLabel(wxString title); + void SetColour(wxColour color); + + private: + CommandButton* mBox; + wxButton *mwxCommandButton; + }; + + //-------------------------------------------------------------------------- + //-------------------------------------------------------------------------- + CommandButtonWidget::CommandButtonWidget(CommandButton* box, wxWindow *parent, wxString title ) @@ -166,7 +185,7 @@ namespace bbwx //-------------------------------------------------------------------------- //-------------------------------------------------------------------------- - + BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,CommandButton); BBTK_BLACK_BOX_IMPLEMENTATION(CommandButton,bbtk::WxBlackBox); void CommandButton::bbUserConstructor()