1450bb3e5SStephan Aßmus /* 2450bb3e5SStephan Aßmus Copyright 1999, Be Incorporated. All Rights Reserved. 3450bb3e5SStephan Aßmus This file may be used under the terms of the Be Sample Code License. 4450bb3e5SStephan Aßmus */ 5450bb3e5SStephan Aßmus 6066522e8SJonas Sundström 7450bb3e5SStephan Aßmus #include "TeapotApp.h" 8450bb3e5SStephan Aßmus 9066522e8SJonas Sundström #include <Catalog.h> 10066522e8SJonas Sundström 11066522e8SJonas Sundström 12450bb3e5SStephan Aßmus int main(int argc,char ** argv)13450bb3e5SStephan Aßmusmain(int argc, char** argv) 14450bb3e5SStephan Aßmus { 15450bb3e5SStephan Aßmus TeapotApp* app = new TeapotApp("application/x-vnd.Haiku-GLTeapot"); 16450bb3e5SStephan Aßmus app->Run(); 17450bb3e5SStephan Aßmus delete app; 18450bb3e5SStephan Aßmus return 0; 19450bb3e5SStephan Aßmus } 20450bb3e5SStephan Aßmus 21450bb3e5SStephan Aßmus TeapotApp(const char * sign)22450bb3e5SStephan AßmusTeapotApp::TeapotApp(const char* sign) 23066522e8SJonas Sundström : 24066522e8SJonas Sundström BApplication(sign) 25450bb3e5SStephan Aßmus { 26066522e8SJonas Sundström fTeapotWindow = new TeapotWindow(BRect(5, 25, 300, 315), 27*560ff447SJonas Sundström B_TRANSLATE_SYSTEM_NAME("GLTeapot"), B_TITLED_WINDOW, 0); 28450bb3e5SStephan Aßmus fTeapotWindow->Show(); 29450bb3e5SStephan Aßmus } 30450bb3e5SStephan Aßmus 31450bb3e5SStephan Aßmus 32450bb3e5SStephan Aßmus void MessageReceived(BMessage * msg)33450bb3e5SStephan AßmusTeapotApp::MessageReceived(BMessage* msg) 34450bb3e5SStephan Aßmus { 35450bb3e5SStephan Aßmus switch (msg->what) { 36450bb3e5SStephan Aßmus 37450bb3e5SStephan Aßmus default: 38450bb3e5SStephan Aßmus BApplication::MessageReceived(msg); 39450bb3e5SStephan Aßmus } 40450bb3e5SStephan Aßmus } 41