xref: /haiku/src/preferences/datatranslations/DataTranslationsWindow.h (revision 579f1dbca962a2a03df54f69fdc6e9423f91f20e)
1 /*
2  * Copyright 2002-2007, 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 DataTranslationsWindow : public BWindow {
25 public:
26 							DataTranslationsWindow();
27 							~DataTranslationsWindow();
28 
29 	virtual	bool			QuitRequested();
30 	virtual	void			MessageReceived(BMessage* message);
31 
32 private:
33 			void			_ShowInfoView();
34 			status_t		_GetTranslatorInfo(int32 id, const char*& name,
35 								const char*& info, 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 			BView*			fConfigView;
45 			IconView*		fIconView;
46 			BButton*		fButton;
47 };
48 
49 
50 #endif	// DATA_TRANSLATIONS_WINDOW_H
51