xref: /haiku/src/preferences/datatranslations/DataTranslationsWindow.h (revision 7056e542b7e59831b783e0c892ce27af93d893b3)
1 /*
2  * Copyright 2002-2015, 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 <Box.h>
15 #include <Button.h>
16 #include <IconView.h>
17 #include <Path.h>
18 #include <View.h>
19 #include <Window.h>
20 
21 #include "TranslatorListView.h"
22 
23 
24 class BTranslatorReleaseDelegate;
25 class BTextView;
26 
27 
28 class DataTranslationsWindow : public BWindow {
29 public:
30 							DataTranslationsWindow();
31 							~DataTranslationsWindow();
32 
33 	virtual	bool			QuitRequested();
34 	virtual	void			MessageReceived(BMessage* message);
35 
36 private:
37 			void			_ShowInfoView();
38 			status_t		_GetTranslatorInfo(int32 id, const char*& name,
39 								const char*& info, int32& version, BPath& path);
40 			void			_ShowInfoAlert(int32 id);
41 			status_t		_ShowConfigView(int32 id);
42 			status_t		_PopulateListView();
43 			void			_SetupViews();
44 
45 			TranslatorListView*	fTranslatorListView;
46 			BTranslatorReleaseDelegate*		fRelease;
47 
48 			BBox*			fRightBox;
49 			BView*			fConfigView;
50 			IconView*		fIconView;
51 			BButton*		fButton;
52 			BTextView*		fInfoText;
53 };
54 
55 
56 #endif	// DATA_TRANSLATIONS_WINDOW_H
57