1/*****************************************************************************/
2// PNGTranslator
3// Written by Michael Wilber, Haiku Translation Kit Team
4//
5// Version:
6//
7// This translator opens and writes PNG images.
8//
9//
10// This application and all source files used in its construction, except
11// where noted, are licensed under the MIT License, and have been written
12// and are:
13//
14// Copyright (c) 2003 Haiku Project
15//
16// Permission is hereby granted, free of charge, to any person obtaining a
17// copy of this software and associated documentation files (the "Software"),
18// to deal in the Software without restriction, including without limitation
19// the rights to use, copy, modify, merge, publish, distribute, sublicense,
20// and/or sell copies of the Software, and to permit persons to whom the
21// Software is furnished to do so, subject to the following conditions:
22//
23// The above copyright notice and this permission notice shall be included
24// in all copies or substantial portions of the Software.
25//
26// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
27// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
29// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
31// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
32// DEALINGS IN THE SOFTWARE.
33/*****************************************************************************/
34
35#include <Application.h>
36#include <Catalog.h>
37#include "PNGTranslator.h"
38#include "PNGView.h"
39#include "TranslatorWindow.h"
40
41#undef B_TRANSLATION_CONTEXT
42#define B_TRANSLATION_CONTEXT "PNGTranslator"
43
44// ---------------------------------------------------------------
45// main
46//
47// Creates a BWindow for displaying info about the PNGTranslator
48//
49// Preconditions:
50//
51// Parameters:
52//
53// Postconditions:
54//
55// Returns:
56// ---------------------------------------------------------------
57int
58main()
59{
60	BApplication app("application/x-vnd.Haiku-PNGTranslator");
61	status_t result;
62	result = LaunchTranslatorWindow(new PNGTranslator,
63		B_TRANSLATE("PNG Settings"), BRect(0, 0, PNG_VIEW_WIDTH,
64		PNG_VIEW_HEIGHT));
65	if (result == B_OK) {
66		app.Run();
67		return 0;
68	} else
69		return 1;
70}
71