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