xref: /haiku/src/preferences/datatranslations/DataTranslationsWindow.h (revision d3d8b26997fac34a84981e6d2b649521de2cc45a)
1 /*
2  * Copyright 2002-2006, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Authors:
6  *		Oliver Siebenmarck
7  *		Andrew McCall, mccall@digitalparadise.co.uk
8  *		Michael Wilber
9  */
10 #ifndef DATA_TRANSLATIONS_WINDOW_H
11 #define DATA_TRANSLATIONS_WINDOW_H
12 
13 
14 #include "IconView.h"
15 
16 #include <Window.h>
17 
18 class BBox;
19 class BView;
20 
21 class IconView;
22 class TranslatorListView;
23 
24 
25 class DataTranslationsWindow : public BWindow {
26 	public:
27 		DataTranslationsWindow();
28 		~DataTranslationsWindow();
29 
30 		virtual	bool QuitRequested();
31 		virtual void MessageReceived(BMessage* message);
32 
33 	private:
34 		status_t _GetTranslatorInfo(int32 id, const char *&name, const char *&info,
35 			int32 &version, BPath &path);
36 		void _ShowInfoAlert(int32 id);
37 		status_t _ShowConfigView(int32 id);
38 		status_t _PopulateListView();
39 		void _SetupViews();
40 
41 		TranslatorListView *fTranslatorListView;
42 
43 		BBox *fRightBox;
44 			// Box hosting fConfigView, fIconView,
45 			// fTranNameView and the Info button
46 
47 		BView *fConfigView;
48 			// the translator config view
49 
50 		IconView *fIconView;
51 		BStringView *fTranslatorNameView;
52 };
53 
54 #endif	// DATA_TRANSLATIONS_WINDOW_H
55 
56