usb_ecm: Use the current configuration instead of a fixed one.
[haiku.git] / src / preferences / sounds / HApp.cpp
blobb5330bf13bc22ec77ec656b6fcc077ca623d193c
1 /*
2 * Copyright 2003-2015, 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 HWindow* window = new HWindow(BRect(-1, -1, 390, 420),
29 B_TRANSLATE_SYSTEM_NAME("Sounds"));
30 window->Show();
34 HApp::~HApp()
39 void
40 HApp::AboutRequested()
42 BAlert* alert = new BAlert(B_TRANSLATE("About Sounds"),
43 B_TRANSLATE("Sounds\n"
44 " Brought to you by :\n"
45 "\tOliver Ruiz Dorantes\n"
46 "\tJérôme DUVAL.\n"
47 " Original work from Atsushi Takamatsu.\n"
48 "Copyright ©2003-2006 Haiku"),
49 B_TRANSLATE("OK"));
50 alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
51 alert->Go();
55 // #pragma mark -
58 int
59 main()
61 HApp app;
62 app.Run();
64 return 0;