mirrorPanel = NULL;
thresholdPanel = NULL;
currentWindow = NULL;
+ testPanel = NULL;
//CMRU 17-08-09 ------------------------------------------------------------------
infoPanelCalibration = NULL;
}
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()