xref: /haiku/src/preferences/sounds/HApp.cpp (revision 62f5ba006a08b0df30631375878effaf67ae5dbc)
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 	:
20 	BApplication("application/x-vnd.Haiku-Sounds")
21 {
22 	BRect rect;
23 	rect.Set(200, 150, 590, 570);
24 
25 	HWindow* window = new HWindow(rect, "Sounds");
26 	window->Show();
27 }
28 
29 
30 HApp::~HApp()
31 {
32 }
33 
34 
35 void
36 HApp::AboutRequested()
37 {
38 	BAlert* alert = new BAlert("About Sounds",
39 		"Sounds\n"
40 		"  Brought to you by :\n"
41 		"	Oliver Ruiz Dorantes\n"
42 		"	Jérôme DUVAL.\n"
43 		"  Original work from Atsushi Takamatsu.\n"
44 		"Copyright " B_UTF8_COPYRIGHT "2003-2006 Haiku", "OK");
45 	alert->Go();
46 }
47 
48 
49 //	#pragma mark -
50 
51 
52 int
53 main(int, char**)
54 {
55 	HApp app;
56 	app.Run();
57 
58 	return 0;
59 }
60 
61