fat: Greatly simplify and clean up dosfs_get_file_map().
[haiku.git] / src / preferences / sounds / HApp.cpp
blob14efcbc68c234c6a71ec3a9f13cd223a16a9cdc2
1 /*
2 * Copyright 2003-2010, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Atsushi Takamatsu
7 * Jérôme Duval
8 * Oliver Ruiz Dorantes
9 */
12 #include "HApp.h"
13 #include "HWindow.h"
15 #include <Alert.h>
16 #include <Catalog.h>
17 #include <Locale.h>
20 #undef B_TRANSLATION_CONTEXT
21 #define B_TRANSLATION_CONTEXT "SoundsHApp"
24 HApp::HApp()
26 BApplication("application/x-vnd.Haiku-Sounds")
28 BRect rect;
29 rect.Set(200, 150, 590, 570);
31 HWindow* window = new HWindow(rect, B_TRANSLATE_SYSTEM_NAME("Sounds"));
32 window->Show();
36 HApp::~HApp()
41 void
42 HApp::AboutRequested()
44 BAlert* alert = new BAlert(B_TRANSLATE("About Sounds"),
45 B_TRANSLATE("Sounds\n"
46 " Brought to you by :\n"
47 "\tOliver Ruiz Dorantes\n"
48 "\tJérôme DUVAL.\n"
49 " Original work from Atsushi Takamatsu.\n"
50 "Copyright ©2003-2006 Haiku"),
51 B_TRANSLATE("OK"));
52 alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
53 alert->Go();
57 // #pragma mark -
60 int
61 main()
63 HApp app;
64 app.Run();
66 return 0;