xref: /haiku/src/add-ons/translators/sgi/SGIMain.cpp (revision b55a57da7173b9af0432bd3e148d03f06161d036)
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 "SGITranslator.h"
39 #include "TranslatorWindow.h"
40 
41 // ---------------------------------------------------------------
42 // main
43 //
44 // Creates a BWindow for displaying info about the SGITranslator
45 //
46 // Preconditions:
47 //
48 // Parameters:
49 //
50 // Postconditions:
51 //
52 // Returns:
53 // ---------------------------------------------------------------
54 int
55 main()
56 {
57 	BApplication app("application/x-vnd.Haiku-SGITranslator");
58 	status_t result;
59 	result = LaunchTranslatorWindow(new SGITranslator,
60 		"SGI Settings", BRect(0, 0, 225, 175));
61 	if (result == B_OK) {
62 		app.Run();
63 		return 0;
64 	} else
65 		return 1;
66 }
67