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