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 FILE_TYPES_WINDOW_H 6 #define FILE_TYPES_WINDOW_H 7 8 9 #include <Window.h> 10 11 class BButton; 12 class BListView; 13 class BMenuField; 14 class BMimeType; 15 class BOutlineListView; 16 class BTextControl; 17 18 class AttributeListView; 19 class IconView; 20 21 22 class FileTypesWindow : public BWindow { 23 public: 24 FileTypesWindow(BRect frame); 25 virtual ~FileTypesWindow(); 26 27 virtual void MessageReceived(BMessage* message); 28 virtual bool QuitRequested(); 29 30 private: 31 void _UpdateExtensions(BMimeType* type); 32 void _AddSignature(BMenuItem* item, const char* signature); 33 void _UpdatePreferredApps(BMimeType* type); 34 void _SetType(BMimeType* type); 35 36 private: 37 BOutlineListView* fTypeListView; 38 BButton* fRemoveTypeButton; 39 40 IconView* fIconView; 41 42 BListView* fExtensionListView; 43 BButton* fAddExtensionButton; 44 BButton* fRemoveExtensionButton; 45 46 BTextControl* fInternalNameControl; 47 BTextControl* fTypeNameControl; 48 49 BMenuField* fPreferredField; 50 BButton* fSelectButton; 51 BButton* fSameAsButton; 52 53 AttributeListView* fAttributeListView; 54 BButton* fAddAttributeButton; 55 BButton* fRemoveAttributeButton; 56 57 }; 58 59 #endif // FILE_TYPES_WINDOW_H 60