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