]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfMainPanel.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_Icons_NDimensions / interfMainPanel.cxx
index fcf7d0d2b9f744b3959cf7bebae3ffb080eccfdc..f3e4129201d23b8f60606f60631d0ce3b78a908c 100644 (file)
@@ -35,6 +35,7 @@ interfMainPanel::interfMainPanel(wxWindow * parent, int sizex, int sizey, wxEvtH
        mirrorPanel             = NULL;
        thresholdPanel          = NULL;
        currentWindow           = NULL;
+       testPanel = NULL;
 
 //CMRU 17-08-09 ------------------------------------------------------------------
        infoPanelCalibration = NULL;
@@ -439,7 +440,25 @@ void interfMainPanel::onImport(){
 }
 
 void interfMainPanel::onTest(){
-       wxContourMainFrame::getInstance()->onTest();
+       if(testPanel==NULL)
+       {
+               testPanel = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, 
+                       wxDefaultSize, wxBORDER_STATIC, wxString(_T("")));
+               wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);    
+               testPanel->SetSizer(flexsizer, true);
+               testPanel->SetAutoLayout( true );       
+               panelTest = new interfTestPanel(testPanel);
+
+               wxStaticText* stattext = new wxStaticText(mirrorPanel,  -1, 
+                       wxString(_T("   Test Panel   ")), 
+                       wxDefaultPosition, wxDefaultSize, 
+                       wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
+
+               flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
+               flexsizer->Add(panelTest, wxEXPAND);
+               testPanel->Layout();
+               showPanel(testPanel);
+       }       
 }
 
 void interfMainPanel::RefreshInterface()