xref: /haiku/src/add-ons/translators/tiff/TIFFMain.cpp (revision a381c8a06378de22ff08adf4282b4e3f7e50d250)
1 /*****************************************************************************/
2 // TIFFTranslator
3 // Written by Michael Wilber, OBOS Translation Kit Team
4 //
5 // Version:
6 //
7 // This translator opens and writes TIFF 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 OpenBeOS 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 "TIFFTranslator.h"
37 #include "TranslatorWindow.h"
38 
39 // ---------------------------------------------------------------
40 // main
41 //
42 // Creates a BWindow for displaying info about the TIFFTranslator
43 //
44 // Preconditions:
45 //
46 // Parameters:
47 //
48 // Postconditions:
49 //
50 // Returns:
51 // ---------------------------------------------------------------
52 int
53 main()
54 {
55 	BApplication app("application/x-vnd.obos-tiff-translator");
56 	status_t result;
57 	result = LaunchTranslatorWindow(new TIFFTranslator,
58 		"TIFF Settings", BRect(0, 0, 225, 175));
59 	if (result == B_OK) {
60 		app.Run();
61 		return 0;
62 	} else
63 		return 1;
64 }
65