]> Creatis software - creaContours.git/commitdiff
BUG MACOS
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 31 Mar 2009 14:54:50 +0000 (14:54 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 31 Mar 2009 14:54:50 +0000 (14:54 +0000)
lib/Interface_Icons_NDimensions/interfMainPanel.cxx
lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx
lib/Interface_Icons_NDimensions/interfNewContourMenu.h

index 518991ae0899dbbbb68f64bdf1265e0614f4ac55..14abda7a95e7e401fe66e0b921c67f2886c08626 100644 (file)
@@ -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;
index 4b56e7b2f400f39a3763f855be843f68c63fe019..697ed9823649578540fafbef8efcf6fb94cfe103 100644 (file)
@@ -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();
+}
index 8f942ecf87a7f8957f436ef267136b9ba0bf2b48..1a6364e007dc8319848fbd67d2480cd5a5fafc4f 100644 (file)
@@ -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