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 "IconView.h" 15 16 #include <Window.h> 17 18 class BBox; 19 class BStringView; 20 class BView; 21 22 class IconView; 23 class TranslatorListView; 24 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 _GetTranslatorInfo(int32 id, const char *&name, const char *&info, 36 int32 &version, BPath &path); 37 void _ShowInfoAlert(int32 id); 38 status_t _ShowConfigView(int32 id); 39 status_t _PopulateListView(); 40 void _SetupViews(); 41 42 TranslatorListView *fTranslatorListView; 43 44 BBox *fRightBox; 45 // Box hosting fConfigView, fIconView, 46 // fTranNameView and the Info button 47 48 BView *fConfigView; 49 // the translator config view 50 51 IconView *fIconView; 52 }; 53 54 #endif // DATA_TRANSLATIONS_WINDOW_H 55 56