| 232 | |
| 233 | |
| 234 | bool ClsResultApp::OnInit() |
| 235 | { |
| 236 | // make sure to call this first |
| 237 | wxInitAllImageHandlers(); |
| 238 | |
| 239 | |
| 240 | mframe = new ClsResultFrame( _("TUM openSMILE classifier demo output"), wxPoint(50, 50), wxSize(650, 350), smileObj->nClasses, smileObj->nRegression ); |
| 241 | mframe->Show(true); |
| 242 | int i; |
| 243 | for (i=0; i<smileObj->nClasses ; i++) { |
| 244 | mframe->drawPane->loadClassImage(i,smileObj->className[i],smileObj->imageFile[i],wxBITMAP_TYPE_JPEG); |
| 245 | |
| 246 | } |
| 247 | for (i=0; i<smileObj->nRegression ; i++) { |
| 248 | mframe->drawPane->setRegressionText(i,smileObj->regressionName[i]); |
| 249 | } |
| 250 | SetTopWindow(mframe); |
| 251 | return true; |
| 252 | } |
| 253 | |
| 254 | ClsResultFrame::ClsResultFrame(const wxString& title, const wxPoint& pos, const wxSize& size, int nCls, int nReg) |
| 255 | : wxFrame(NULL, wxID_ANY, title, pos, size) |
nothing calls this directly
no test coverage detected