xref: /haiku/src/preferences/sounds/HApp.cpp (revision 89755088d790ff4fe36f8aa77dacb2bd15507108)
1 /*
2  * Copyright 2003-2006, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Atsushi Takamatsu
7  *		Jérôme Duval
8  *		Oliver Ruiz Dorantes
9  */
10 
11 
12 #include "HApp.h"
13 #include "HWindow.h"
14 
15 #include <Alert.h>
16 
17 
18 HApp::HApp()
19 	: BApplication("application/x-vnd.Haiku-Sounds")
20 {
21 	BRect rect;
22 	rect.Set(200, 150, 500, 450);
23 
24 	HWindow *win = new HWindow(rect, "Sounds");
25 	win->Show();
26 }
27 
28 
29 HApp::~HApp()
30 {
31 }
32 
33 
34 void
35 HApp::AboutRequested()
36 {
37 	(new BAlert("About Sounds", "Sounds\n"
38 			    "  Brought to you by :\n"
39 			    "	Oliver Ruiz Dorantes\n"
40 			    "	Jérôme DUVAL.\n"
41 			    "  Original work from Atsushi Takamatsu.\n"
42 			    "Copyright " B_UTF8_COPYRIGHT "2003-2006 Haiku", "OK"))->Go();
43 }
44 
45 
46 //	#pragma mark -
47 
48 
49 int
50 main(int, char**)
51 {
52 	HApp app;
53 	app.Run();
54 
55 	return 0;
56 }
57 
58