xref: /haiku/src/preferences/sounds/HApp.cpp (revision fef6144999c2fa611f59ee6ffe6dd7999501385c)
1 // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
2 //
3 //	Copyright (c) 2003, OpenBeOS
4 //
5 //  This software is part of the OpenBeOS distribution and is covered
6 //  by the OpenBeOS license.
7 //
8 //
9 //  File:        HApp.cpp
10 //  Author:      Jérôme Duval, Oliver Ruiz Dorantes, Atsushi Takamatsu
11 //  Description: Sounds Preferences
12 //  Created :    November 24, 2003
13 //
14 // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
15 
16 #include <Alert.h>
17 #include "HApp.h"
18 #include "HWindow.h"
19 
20 #define APP_SIG "application/x-vnd.Haiku.SoundsPrefs"
21 
22 /***********************************************************
23  * Constructor
24  ***********************************************************/
25 HApp::HApp() :BApplication(APP_SIG)
26 {
27 	BRect rect;
28 	rect.Set(200,150,500,450);
29 
30 	HWindow *win = new HWindow(rect,"Sounds");
31 	win->Show();
32 }
33 
34 /***********************************************************
35  * Destructor
36  ***********************************************************/
37 HApp::~HApp()
38 {
39 
40 }
41 
42 /***********************************************************
43  * AboutRequested
44  ***********************************************************/
45 void
46 HApp::AboutRequested()
47 {
48 	(new BAlert("About Sounds", "Sounds\n"
49 			    "  Brought to you by :\n"
50 			    "	Oliver Ruiz Dorantes\n"
51 			    "	Jérôme DUVAL.\n"
52 			    "  Original work from Atsushi Takamatsu.\n"
53 			    "OpenBeOS, 2003","OK"))->Go();
54 }
55 
56 int main()
57 {
58 	HApp app;
59 	app.Run();
60 	return 0;
61 }
62 
63