1 /* 2 * Part of the MiniTerminal. 3 * 4 * Copyright 2005 Michael Lotz. All rights reserved. 5 * Distributed under the Haiku License. 6 */ 7 8 #include "MiniApp.h" 9 #include "MiniWin.h" 10 #include "MiniView.h" 11 12 MiniApp::MiniApp() 13 : BApplication("application/x-vnd.Haiku.MiniTerminal") 14 { 15 fWindow = new MiniWin(BRect(50, 50, 630, 435)); 16 fWindow->Show(); 17 } 18 19 20 void 21 MiniApp::ReadyToRun() 22 { 23 fWindow->View()->Start(); 24 } 25 26 27 MiniApp::~MiniApp() 28 { 29 } 30 31 32 int 33 main(void) 34 { 35 MiniApp *app = new MiniApp(); 36 app->Run(); 37 delete app; 38 return 0; 39 } 40