1c56079fbSMatthew Wilber /*****************************************************************************/ 2c56079fbSMatthew Wilber // TranslatorWindow 3*2ca13760SColdfirex // Written by Michael Wilber, Haiku Translation Kit Team 4c56079fbSMatthew Wilber // 5c56079fbSMatthew Wilber // TranslatorWindow.h 6c56079fbSMatthew Wilber // 7c56079fbSMatthew Wilber // This BWindow based object is used to hold a Translator's BView object when 8c56079fbSMatthew Wilber // the user runs the Translator as an application. 9c56079fbSMatthew Wilber // 10c56079fbSMatthew Wilber // 11*2ca13760SColdfirex // Copyright (c) 2004 Haiku Project 12c56079fbSMatthew Wilber // 13c56079fbSMatthew Wilber // Permission is hereby granted, free of charge, to any person obtaining a 14c56079fbSMatthew Wilber // copy of this software and associated documentation files (the "Software"), 15c56079fbSMatthew Wilber // to deal in the Software without restriction, including without limitation 16c56079fbSMatthew Wilber // the rights to use, copy, modify, merge, publish, distribute, sublicense, 17c56079fbSMatthew Wilber // and/or sell copies of the Software, and to permit persons to whom the 18c56079fbSMatthew Wilber // Software is furnished to do so, subject to the following conditions: 19c56079fbSMatthew Wilber // 20c56079fbSMatthew Wilber // The above copyright notice and this permission notice shall be included 21c56079fbSMatthew Wilber // in all copies or substantial portions of the Software. 22c56079fbSMatthew Wilber // 23c56079fbSMatthew Wilber // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 24c56079fbSMatthew Wilber // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 25c56079fbSMatthew Wilber // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 26c56079fbSMatthew Wilber // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 27c56079fbSMatthew Wilber // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 28c56079fbSMatthew Wilber // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 29c56079fbSMatthew Wilber // DEALINGS IN THE SOFTWARE. 30c56079fbSMatthew Wilber /*****************************************************************************/ 31c56079fbSMatthew Wilber 32c56079fbSMatthew Wilber #ifndef TRANSLATORWINDOW_H 33c56079fbSMatthew Wilber #define TRANSLATORWINDOW_H 34c56079fbSMatthew Wilber 35c56079fbSMatthew Wilber #include <Application.h> 3687f030bcSAdrien Destugues #include <Catalog.h> 3787f030bcSAdrien Destugues #include <Locale.h> 38c56079fbSMatthew Wilber #include <Rect.h> 39c56079fbSMatthew Wilber #include <Translator.h> 4087f030bcSAdrien Destugues #include <View.h> 4187f030bcSAdrien Destugues #include <Window.h> 4287f030bcSAdrien Destugues 43c56079fbSMatthew Wilber 44c56079fbSMatthew Wilber class TranslatorWindow : public BWindow { 45c56079fbSMatthew Wilber public: 46c56079fbSMatthew Wilber TranslatorWindow(BRect area, const char *title); 47c56079fbSMatthew Wilber // Sets up a BWindow with bounds area 48c56079fbSMatthew Wilber 49c56079fbSMatthew Wilber ~TranslatorWindow(); 50c56079fbSMatthew Wilber // Posts a quit message so that the application closes properly 51c56079fbSMatthew Wilber }; 52c56079fbSMatthew Wilber 5387f030bcSAdrien Destugues 54c56079fbSMatthew Wilber status_t 55a76f629eSRyan Leavengood LaunchTranslatorWindow(BTranslator *translator, const char *title, 56a76f629eSRyan Leavengood BRect rect = BRect(0, 0, 1, 1)); 57c56079fbSMatthew Wilber 58c56079fbSMatthew Wilber #endif // #ifndef TRANSLATORWINDOW_H 59c56079fbSMatthew Wilber 60