X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=packages%2Fwx%2Fsrc%2FbbwxCheckBox.cxx;h=48d209128460cd25edd4fa75c15dc5a403bc4c82;hb=31e2f200e025912534be06735c258e2b41285a28;hp=28c0ec9883aafa2195fe498ef13606d24cd75580;hpb=75cedb45ce5353caf2b8cdd6c6f7fcff3b3a6555;p=bbtk.git diff --git a/packages/wx/src/bbwxCheckBox.cxx b/packages/wx/src/bbwxCheckBox.cxx index 28c0ec9..48d2091 100644 --- a/packages/wx/src/bbwxCheckBox.cxx +++ b/packages/wx/src/bbwxCheckBox.cxx @@ -71,41 +71,7 @@ #include "bbtkUtilities.h" namespace bbwx -{ - //-------------------------------------------------------------------------- - // The widget created by the box - class CheckBoxWidget : public wxPanel - { - public: - /// Ctor with the two first params the parent window and the creator box - /// which must be passed to the WxBlackBoxWidget constructor. - /// The other params initialize the widget - CheckBoxWidget(CheckBox* box, wxWindow *parent, - wxString title, - bool value, int reactiveOnKeyStroke - ); - /// Dtor - ~CheckBoxWidget(); - /// Events callbacks - /// Called when the box is clicked - void OnCheckBoxClick(wxCommandEvent& event); - - // Accessors - bool GetValue() { return mwxCheckBox->GetValue(); } - void SetValue(bool val); - // Update the texts which display the min/max/current values of the slider - - private: - CheckBox* mBox; - wxCheckBox *mwxCheckBox; - int _reactiveOnKeyStroke; - bool val; - }; - //------------------------------------------------------------------------ - //------------------------------------------------------------------------ - //------------------------------------------------------------------------ - - +{ //------------------------------------------------------------------------- CheckBoxWidget::CheckBoxWidget(CheckBox* box, wxWindow *parent, @@ -173,7 +139,12 @@ namespace bbwx //------------------------------------------------------------------------- void CheckBoxWidget::OnCheckBoxClick(wxCommandEvent& event) { - // When user clicks the box + OnCheckBoxClick_(); + } + //------------------------------------------------------------------------- + void CheckBoxWidget::OnCheckBoxClick_() + { + // When user clicks the box // we update the output of the box mBox->bbSetOutputOut( mwxCheckBox->GetValue() ); mBox->bbSetInputIn( mwxCheckBox->GetValue() ); @@ -183,8 +154,6 @@ namespace bbwx //} } //------------------------------------------------------------------------- - - //------------------------------------------------------------------------- //------------------------------------------------------------------------- @@ -242,9 +211,6 @@ namespace bbwx bbGetInputReactiveOnKeystroke() ); bbSetOutputWidget( w ); -//GetName - std::cout<<"TESTING.... DELETE ME!!!!! bbwxCheckBox.cxx ---- PARENT : "<GetName())<