xref: /haiku/src/preferences/datatranslations/DataTranslationsWindow.h (revision 0b2dbe7d46ee888392907c60131b7f7652314175)
1 #ifndef DATATRANSLATIONS_WINDOW_H
2 #define DATATRANSLATIONS_WINDOW_H
3 
4 #ifndef _WINDOW_H
5 #include <Window.h>
6 #endif
7 
8 #include <Box.h>
9 #include <Button.h>
10 #include <SupportDefs.h>
11 #include <ListView.h>
12 #include <TranslatorRoster.h>
13 #include <TranslationDefs.h>
14 #include <ScrollView.h>
15 #include <Alert.h>
16 #include <String.h>
17 #include <StringView.h>
18 #include <Bitmap.h>
19 #include <storage/Path.h>
20 #include <storage/Directory.h>
21 #include <storage/Entry.h>
22 #include "DataTranslationsSettings.h"
23 #include "DataTranslationsView.h"
24 #include "IconView.h"
25 
26 class DataTranslationsWindow : public BWindow {
27 public:
28 	DataTranslationsWindow();
29 	~DataTranslationsWindow();
30 
31 	virtual	bool QuitRequested();
32 	virtual void MessageReceived(BMessage* message);
33 
34 private:
35 	status_t GetTranInfo(int32 id, const char *&tranName, const char *&tranInfo,
36 		int32 &tranVersion, BPath &tranPath);
37 
38 	status_t ShowConfigView(int32 id);
39 
40 	status_t PopulateListView();
41 	void SetupViews();
42 
43 	DataTranslationsView *fTranListView;
44 		// List of Translators (left pane of window)
45 
46 	BBox *fRightBox;
47 		// Box hosting fConfigView, fIconView,
48 		// fTranNameView and the Info button
49 
50 	BView *fConfigView;
51 		// the translator config view
52 
53 	IconView *fIconView;
54 		// icon in the info panel
55 
56 	BStringView *fTranNameView;
57 		// the translator name, in the info panel
58 };
59 
60 #endif // DATATRANSLATIONS_WINDOW_H
61 
62