xref: /haiku/src/apps/glteapot/TeapotApp.cpp (revision 83b1a68c52ba3e0e8796282759f694b7fdddf06d)
1 /*
2 	Copyright 1999, Be Incorporated.   All Rights Reserved.
3 	This file may be used under the terms of the Be Sample Code License.
4 */
5 
6 
7 #include "TeapotApp.h"
8 
9 #include <Catalog.h>
10 
11 
12 int
13 main(int argc, char** argv)
14 {
15 	TeapotApp* app = new TeapotApp("application/x-vnd.Haiku-GLTeapot");
16 	app->Run();
17 	delete app;
18 	return 0;
19 }
20 
21 
22 TeapotApp::TeapotApp(const char* sign)
23 	:
24 	BApplication(sign)
25 {
26 	fTeapotWindow = new TeapotWindow(BRect(5, 25, 300, 315),
27 		B_TRANSLATE_SYSTEM_NAME("GLTeapot"), B_TITLED_WINDOW, 0);
28 	fTeapotWindow->Show();
29 }
30 
31 
32 void
33 TeapotApp::MessageReceived(BMessage* msg)
34 {
35 	switch (msg->what) {
36 
37 		default:
38 			BApplication::MessageReceived(msg);
39 	}
40 }
41