15ac11f96SAxel Dörfler /* 2be741f6eSAxel Dörfler * Copyright 2002-2015, Haiku, Inc. 35ac11f96SAxel Dörfler * Distributed under the terms of the MIT license. 45ac11f96SAxel Dörfler * 55ac11f96SAxel Dörfler * Authors: 65ac11f96SAxel Dörfler * Oliver Siebenmarck 75ac11f96SAxel Dörfler * Andrew McCall, mccall@digitalparadise.co.uk 85ac11f96SAxel Dörfler * Michael Wilber 95ac11f96SAxel Dörfler */ 105ac11f96SAxel Dörfler #ifndef DATA_TRANSLATIONS_WINDOW_H 115ac11f96SAxel Dörfler #define DATA_TRANSLATIONS_WINDOW_H 12a10cf76eSAxel Dörfler 13a10cf76eSAxel Dörfler 144cbdf747SJonas Sundström #include <Box.h> 159b4ad591SJonas Sundström #include <Button.h> 164b428674SJonas Sundström #include <IconView.h> 174cbdf747SJonas Sundström #include <Path.h> 184cbdf747SJonas Sundström #include <View.h> 19f4265833SJonas Sundström #include <Window.h> 20f4265833SJonas Sundström 214cbdf747SJonas Sundström #include "TranslatorListView.h" 225ac11f96SAxel Dörfler 23be741f6eSAxel Dörfler 24a1eccae9SMarkus Himmel class BTranslatorReleaseDelegate; 25*f0650dc9Slooncraz class BTextView; 265ac11f96SAxel Dörfler 27be741f6eSAxel Dörfler 28a10cf76eSAxel Dörfler class DataTranslationsWindow : public BWindow { 29a10cf76eSAxel Dörfler public: 30a10cf76eSAxel Dörfler DataTranslationsWindow(); 31a10cf76eSAxel Dörfler ~DataTranslationsWindow(); 32a10cf76eSAxel Dörfler 33a10cf76eSAxel Dörfler virtual bool QuitRequested(); 34a10cf76eSAxel Dörfler virtual void MessageReceived(BMessage* message); 35a10cf76eSAxel Dörfler 36a10cf76eSAxel Dörfler private: 37eb88c867SJonas Sundström void _ShowInfoView(); 38f4265833SJonas Sundström status_t _GetTranslatorInfo(int32 id, const char*& name, 39f4265833SJonas Sundström const char*& info, int32& version, BPath& path); 405ac11f96SAxel Dörfler void _ShowInfoAlert(int32 id); 415ac11f96SAxel Dörfler status_t _ShowConfigView(int32 id); 425ac11f96SAxel Dörfler status_t _PopulateListView(); 435ac11f96SAxel Dörfler void _SetupViews(); 44a10cf76eSAxel Dörfler 455ac11f96SAxel Dörfler TranslatorListView* fTranslatorListView; 46a1eccae9SMarkus Himmel BTranslatorReleaseDelegate* fRelease; 47a10cf76eSAxel Dörfler 48a10cf76eSAxel Dörfler BBox* fRightBox; 49a10cf76eSAxel Dörfler BView* fConfigView; 50a10cf76eSAxel Dörfler IconView* fIconView; 519b4ad591SJonas Sundström BButton* fButton; 52*f0650dc9Slooncraz BTextView* fInfoText; 53a10cf76eSAxel Dörfler }; 54a10cf76eSAxel Dörfler 55a10cf76eSAxel Dörfler 56f4265833SJonas Sundström #endif // DATA_TRANSLATIONS_WINDOW_H 57