xref: /haiku/src/tests/servers/app/playground/main.cpp (revision 25a7b01d15612846f332751841da3579db313082)
1 #include <stdio.h>
2 #include <string.h>
3 
4 #include <Application.h>
5 #include <Catalog.h>
6 #include <Message.h>
7 
8 #include "ObjectWindow.h"
9 
10 #undef B_TRANSLATION_CONTEXT
11 #define B_TRANSLATION_CONTEXT "Playground"
12 
13 
14 // main
15 int
main(int argc,char ** argv)16 main(int argc, char** argv)
17 {
18 	BApplication* app = new BApplication("application/x-vnd.Haiku-Playground");
19 
20 	BRect frame(50.0, 50.0, 600.0, 400.0);
21 	BWindow* window = new ObjectWindow(frame, B_TRANSLATE_SYSTEM_NAME("Playground"));
22 
23 	window->Show();
24 
25 	app->Run();
26 
27 	delete app;
28 	return 0;
29 }
30