1 /* 2 * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef APPLICATION_TYPES_WINDOW_H 6 #define APPLICATION_TYPES_WINDOW_H 7 8 9 #include <Alert.h> 10 #include <Mime.h> 11 #include <Window.h> 12 13 class BButton; 14 class BListView; 15 class BMenuField; 16 class BMimeType; 17 class BOutlineListView; 18 class BStringView; 19 class BTextView; 20 21 class MimeTypeListView; 22 class StringView; 23 24 25 class ApplicationTypesWindow : public BWindow { 26 public: 27 ApplicationTypesWindow(const BMessage& settings); 28 virtual ~ApplicationTypesWindow(); 29 30 virtual void MessageReceived(BMessage* message); 31 virtual bool QuitRequested(); 32 33 private: 34 BRect _Frame(const BMessage& settings) const; 35 void _SetType(BMimeType* type, int32 forceUpdate = 0); 36 void _UpdateCounter(); 37 void _RemoveUninstalled(); 38 39 private: 40 BMimeType fCurrentType; 41 42 MimeTypeListView* fTypeListView; 43 BButton* fRemoveTypeButton; 44 45 StringView* fNameView; 46 StringView* fSignatureView; 47 StringView* fPathView; 48 49 StringView* fVersionView; 50 StringView* fDescriptionLabel; 51 BTextView* fDescriptionView; 52 53 BButton* fTrackerButton; 54 BButton* fLaunchButton; 55 BButton* fEditButton; 56 }; 57 58 #endif // APPLICATION_TYPES_WINDOW_H 59