13d5da9f4SDarkWyrm /* 23d5da9f4SDarkWyrm * Copyright 2002-2006, Haiku. All rights reserved. 33d5da9f4SDarkWyrm * Distributed under the terms of the MIT License. 43d5da9f4SDarkWyrm * 53d5da9f4SDarkWyrm * Authors: 63d5da9f4SDarkWyrm * DarkWyrm (darkwyrm@earthlink.net) 73d5da9f4SDarkWyrm */ 8a10cf76eSAxel Dörfler #include "APRMain.h" 9a10cf76eSAxel Dörfler #include "APRWindow.h" 10a10cf76eSAxel Dörfler #include <stdio.h> 11a10cf76eSAxel Dörfler #include "defs.h" 12a10cf76eSAxel Dörfler 13*b2543193SAdrien Destugues #include <Catalog.h> 14*b2543193SAdrien Destugues #include <Locale.h> 15*b2543193SAdrien Destugues 16a10cf76eSAxel Dörfler APRApplication::APRApplication(void) 17a10cf76eSAxel Dörfler : BApplication(APPEARANCE_APP_SIGNATURE) 18a10cf76eSAxel Dörfler { 19*b2543193SAdrien Destugues // Do this now because we need to call BWindow constructor with a translated 20*b2543193SAdrien Destugues // string. 21*b2543193SAdrien Destugues BCatalog cat; 22*b2543193SAdrien Destugues be_locale->GetAppCatalog(&cat); 23*b2543193SAdrien Destugues 2481213459SStephan Aßmus fWindow = new APRWindow(BRect(100, 100, 550, 420)); 25a10cf76eSAxel Dörfler fWindow->Show(); 26a10cf76eSAxel Dörfler } 27a10cf76eSAxel Dörfler 283d5da9f4SDarkWyrm int 293d5da9f4SDarkWyrm main(int, char**) 30a10cf76eSAxel Dörfler { 31a10cf76eSAxel Dörfler APRApplication myApplication; 32a10cf76eSAxel Dörfler myApplication.Run(); 33a10cf76eSAxel Dörfler 34a10cf76eSAxel Dörfler return(0); 35a10cf76eSAxel Dörfler } 36