xref: /haiku/src/add-ons/translators/pcx/main.cpp (revision 83b1a68c52ba3e0e8796282759f694b7fdddf06d)
1 /*
2  * Copyright 2008, Jérôme Duval, korli@users.berlios.de. All rights reserved.
3  * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
4  * Distributed under the terms of the MIT License.
5  */
6 
7 
8 #include "PCXTranslator.h"
9 #include "PCX.h"
10 
11 #include "TranslatorWindow.h"
12 #include <Application.h>
13 #include <Catalog.h>
14 
15 
16 #undef B_TRANSLATION_CONTEXT
17 #define B_TRANSLATION_CONTEXT "main"
18 
19 
20 int
21 main(int /*argc*/, char **/*argv*/)
22 {
23 	BApplication app("application/x-vnd.Haiku-PCXTranslator");
24 
25 	status_t result;
26 	result = LaunchTranslatorWindow(new PCXTranslator,
27 		B_TRANSLATE("PCX Settings"), BRect(0, 0, 225, 175));
28 	if (result != B_OK)
29 		return 1;
30 
31 	app.Run();
32 	return 0;
33 }
34 
35