1 // MultiTest.cpp 2 3 #include "MainControlWindow.h" 4 #include "MultiTest.h" 5 6 int main(int argc, char **argv) 7 { 8 MultiTestApplication app; 9 app.Run(); 10 11 return 0; 12 } 13 14 MultiTestApplication::MultiTestApplication() 15 : BApplication("application/x-vnd.MultiTest") 16 { 17 pRoster = new BTranslatorRoster(); 18 pRoster->AddTranslators(); 19 20 MainControlWindow *pWindow; 21 pWindow = new MainControlWindow(); 22 23 // make window visible 24 pWindow->Show(); 25 } 26 27 MultiTestApplication::~MultiTestApplication() 28 { 29 delete pRoster; 30 } 31 32 BTranslatorRoster * 33 MultiTestApplication::GetTranslatorRoster() const 34 { 35 return pRoster; 36 }