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_TYPE_WINDOW_H 6 #define APPLICATION_TYPE_WINDOW_H 7 8 9 #include <Mime.h> 10 #include <String.h> 11 #include <Window.h> 12 13 class BButton; 14 class BCheckBox; 15 class BListView; 16 class BMenuField; 17 class BRadioButton; 18 class BTextControl; 19 class BTextView; 20 21 class IconView; 22 class MimeTypeListView; 23 24 25 class ApplicationTypeWindow : public BWindow { 26 public: 27 ApplicationTypeWindow(BPoint position, const BEntry& entry); 28 virtual ~ApplicationTypeWindow(); 29 30 virtual void MessageReceived(BMessage* message); 31 virtual bool QuitRequested(); 32 33 private: 34 BString _Title(const BEntry& entry); 35 void _SetTo(const BEntry& entry); 36 37 private: 38 BEntry fEntry; 39 40 BTextControl* fSignatureControl; 41 IconView* fIconView; 42 43 BCheckBox* fFlagsCheckBox; 44 BRadioButton* fSingleLaunchButton; 45 BRadioButton* fMultipleLaunchButton; 46 BRadioButton* fExclusiveLaunchButton; 47 BCheckBox* fArgsOnlyCheckBox; 48 BCheckBox* fBackgroundAppCheckBox; 49 50 BListView* fTypeListView; 51 BButton* fAddTypeButton; 52 BButton* fRemoveTypeButton; 53 IconView* fTypeIconView; 54 55 BTextControl* fMajorVersionControl; 56 BTextControl* fMiddleVersionControl; 57 BTextControl* fMinorVersionControl; 58 BTextControl* fInternalVersionControl; 59 BTextControl* fShortDescriptionControl; 60 BTextView* fLongDescriptionView; 61 }; 62 63 #endif // APPLICATION_TYPE_WINDOW_H 64