From b759327567c5102f13a565e54f8c8663c2458816 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Tue, 31 Mar 2009 14:54:50 +0000 Subject: [PATCH] BUG MACOS --- lib/Interface_Icons_NDimensions/interfMainPanel.cxx | 1 + lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx | 8 ++++++++ lib/Interface_Icons_NDimensions/interfNewContourMenu.h | 3 +++ 3 files changed, 12 insertions(+) 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 -- 2.45.1