From: Eduardo Davila Date: Tue, 31 Mar 2009 14:54:50 +0000 (+0000) Subject: BUG MACOS X-Git-Tag: EED.02Oct2009~56 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b759327567c5102f13a565e54f8c8663c2458816;p=creaContours.git BUG MACOS --- diff --git a/lib/Interface_Icons_NDimensions/interfMainPanel.cxx b/lib/Interface_Icons_NDimensions/interfMainPanel.cxx index 518991a..14abda7 100644 --- a/lib/Interface_Icons_NDimensions/interfMainPanel.cxx +++ b/lib/Interface_Icons_NDimensions/interfMainPanel.cxx @@ -32,6 +32,7 @@ interfMainPanel::interfMainPanel(wxWindow * parent, int sizex, int sizey, wxEvtH mirrorPanel=NULL; splitterwindow = new wxSplitterWindow(this,-1, wxDefaultPosition, wxSize(sizex, sizey), wxSP_3DSASH, wxString(_T(""))); + splitterwindow->SetMinimumPaneSize( 10 ); sizey = sizey/8; currentWindow = NULL; diff --git a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx index 4b56e7b..697ed98 100644 --- a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx +++ b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx @@ -44,6 +44,11 @@ void interfNewContourMenu::initButtons(wxEvtHandler* evtHandler) { funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourLine); hand.push_back(this); + path.push_back(datadir + "/Line.png"); + nom.push_back("Create Points"); + funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourPoints); + hand.push_back(this); + this->addButtons(path, nom); this->setVectorFunction(funct); @@ -86,3 +91,6 @@ void interfNewContourMenu::onCreateContourLine( wxCommandEvent& event ){ interfMainPanel::getInstance()->onCreateContourLine(); } +void interfNewContourMenu::onCreateContourPoints( wxCommandEvent& event ){ + interfMainPanel::getInstance()->onCreateContourLine(); +} diff --git a/lib/Interface_Icons_NDimensions/interfNewContourMenu.h b/lib/Interface_Icons_NDimensions/interfNewContourMenu.h index 8f942ec..1a6364e 100644 --- a/lib/Interface_Icons_NDimensions/interfNewContourMenu.h +++ b/lib/Interface_Icons_NDimensions/interfNewContourMenu.h @@ -45,6 +45,9 @@ private: ** This method is in charge of capturing the event when the button is clicked **/ void onCreateContourLine( wxCommandEvent& event ); + + void onCreateContourPoints( wxCommandEvent& event ); + }; #endif