1 /* 2 * Copyright 2003-2015, 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 #include <Catalog.h> 17 #include <Locale.h> 18 19 20 #undef B_TRANSLATION_CONTEXT 21 #define B_TRANSLATION_CONTEXT "SoundsHApp" 22 23 24 HApp::HApp() 25 : 26 BApplication("application/x-vnd.Haiku-Sounds") 27 { 28 HWindow* window = new HWindow(BRect(-1, -1, 390, 420), 29 B_TRANSLATE_SYSTEM_NAME("Sounds")); 30 window->Show(); 31 } 32 33 34 HApp::~HApp() 35 { 36 } 37 38 39 void 40 HApp::AboutRequested() 41 { 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(); 52 } 53 54 55 // #pragma mark - 56 57 58 int 59 main() 60 { 61 HApp app; 62 app.Run(); 63 64 return 0; 65 } 66 67