1d1360823SMatthew Wilber /*****************************************************************************/ 2d1360823SMatthew Wilber // ActiveTranslatorsWindow 3*2ca13760SColdfirex // Written by Michael Wilber, Haiku Translation Kit Team 4d1360823SMatthew Wilber // 5d1360823SMatthew Wilber // ActiveTranslatorsWindow.h 6d1360823SMatthew Wilber // 7d1360823SMatthew Wilber // BWindow class for displaying information about the currently open 8d1360823SMatthew Wilber // document 9d1360823SMatthew Wilber // 10d1360823SMatthew Wilber // 11*2ca13760SColdfirex // Copyright (c) 2003 Haiku Project 12d1360823SMatthew Wilber // 13d1360823SMatthew Wilber // Permission is hereby granted, free of charge, to any person obtaining a 14d1360823SMatthew Wilber // copy of this software and associated documentation files (the "Software"), 15d1360823SMatthew Wilber // to deal in the Software without restriction, including without limitation 16d1360823SMatthew Wilber // the rights to use, copy, modify, merge, publish, distribute, sublicense, 17d1360823SMatthew Wilber // and/or sell copies of the Software, and to permit persons to whom the 18d1360823SMatthew Wilber // Software is furnished to do so, subject to the following conditions: 19d1360823SMatthew Wilber // 20d1360823SMatthew Wilber // The above copyright notice and this permission notice shall be included 21d1360823SMatthew Wilber // in all copies or substantial portions of the Software. 22d1360823SMatthew Wilber // 23d1360823SMatthew Wilber // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 24d1360823SMatthew Wilber // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 25d1360823SMatthew Wilber // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 26d1360823SMatthew Wilber // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 27d1360823SMatthew Wilber // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 28d1360823SMatthew Wilber // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 29d1360823SMatthew Wilber // DEALINGS IN THE SOFTWARE. 30d1360823SMatthew Wilber /*****************************************************************************/ 31d1360823SMatthew Wilber 32d1360823SMatthew Wilber #ifndef ACTIVETRANSLATORSWINDOW_H 33d1360823SMatthew Wilber #define ACTIVETRANSLATORSWINDOW_H 34d1360823SMatthew Wilber 35d1360823SMatthew Wilber #include <Window.h> 36d1360823SMatthew Wilber #include <OutlineListView.h> 37e5ef5305SMatthew Wilber #include <List.h> 38d1360823SMatthew Wilber 39d1360823SMatthew Wilber class ActiveTranslatorsWindow : public BWindow { 40d1360823SMatthew Wilber public: 41e5ef5305SMatthew Wilber ActiveTranslatorsWindow(BRect rect, const char *name, BList *plist); 42d1360823SMatthew Wilber ~ActiveTranslatorsWindow(); 43d1360823SMatthew Wilber void FrameResized(float width, float height); 44d1360823SMatthew Wilber void MessageReceived(BMessage *pmsg); 45d1360823SMatthew Wilber void Quit(); 46d1360823SMatthew Wilber 47d1360823SMatthew Wilber private: 48e5ef5305SMatthew Wilber void AddTranslatorsToList(BList *plist, int32 group, BStringItem *pparent); 49d1360823SMatthew Wilber 50e5ef5305SMatthew Wilber BOutlineListView *fpListView; 51e5ef5305SMatthew Wilber BStringItem *fpUserItem; 52e5ef5305SMatthew Wilber BStringItem *fpSystemItem; 53d1360823SMatthew Wilber }; 54d1360823SMatthew Wilber 55d1360823SMatthew Wilber #endif // #ifndef ACTIVETRANSLATORSWINDOW_H 56