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 ATTRIBUTE_WINDOW_H 6 #define ATTRIBUTE_WINDOW_H 7 8 9 #include "AttributeListView.h" 10 11 #include <Messenger.h> 12 #include <Mime.h> 13 #include <String.h> 14 #include <Window.h> 15 16 class BButton; 17 class BCheckBox; 18 class BMenu; 19 class BMenuField; 20 class BTextControl; 21 22 class FileTypesWindow; 23 24 25 class AttributeWindow : public BWindow { 26 public: 27 AttributeWindow(FileTypesWindow* target, BMimeType& type, 28 AttributeItem* item); 29 virtual ~AttributeWindow(); 30 31 virtual void MessageReceived(BMessage* message); 32 virtual bool QuitRequested(); 33 34 private: 35 void _CheckAcceptable(); 36 AttributeItem* _NewItemFromCurrent(); 37 38 private: 39 BMessenger fTarget; 40 BMimeType fMimeType; 41 AttributeItem fAttribute; 42 BTextControl* fPublicNameControl; 43 BTextControl* fAttributeControl; 44 BMenu* fTypeMenu; 45 BMenuField* fDisplayAsMenuField; 46 BMenuField* fAlignmentMenuField; 47 BCheckBox* fVisibleCheckBox; 48 BCheckBox* fEditableCheckBox; 49 BTextControl* fSpecialControl; 50 BTextControl* fWidthControl; 51 BButton* fAcceptButton; 52 }; 53 54 #endif // ATTRIBUTE_WINDOW_H 55