2 * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef APPLICATION_TYPE_WINDOW_H
6 #define APPLICATION_TYPE_WINDOW_H
11 #include <AppFileInfo.h>
24 class MimeTypeListView
;
27 class ApplicationTypeWindow
: public BWindow
{
29 ApplicationTypeWindow(BPoint position
, const BEntry
& entry
);
30 virtual ~ApplicationTypeWindow();
32 virtual void FrameResized(float width
, float height
);
33 virtual void MessageReceived(BMessage
* message
);
34 virtual bool QuitRequested();
37 BString
_Title(const BEntry
& entry
);
38 void _SetTo(const BEntry
& entry
);
39 void _UpdateAppFlagsEnabled();
40 void _MakeNumberTextControl(BTextControl
* control
);
43 bool _Flags(uint32
& flags
) const;
44 BMessage
_SupportedTypes() const;
45 version_info
_VersionInfo() const;
47 void _CheckSaveMenuItem(uint32 flags
);
48 uint32
_NeedsSaving(uint32 flags
) const;
55 version_info versionInfo
;
57 BMessage supportedTypes
;
60 bool typeIconsChanged
;
63 CHECK_SIGNATUR
= 1 << 0,
65 CHECK_VERSION
= 1 << 2,
69 CHECK_TYPE_ICONS
= 1 << 5,
71 CHECK_ALL
= 0xffffffff
76 AppInfo fOriginalInfo
;
78 BTextControl
* fSignatureControl
;
82 BCheckBox
* fFlagsCheckBox
;
83 BRadioButton
* fSingleLaunchButton
;
84 BRadioButton
* fMultipleLaunchButton
;
85 BRadioButton
* fExclusiveLaunchButton
;
86 BCheckBox
* fArgsOnlyCheckBox
;
87 BCheckBox
* fBackgroundAppCheckBox
;
89 BListView
* fTypeListView
;
90 BButton
* fAddTypeButton
;
91 BButton
* fRemoveTypeButton
;
92 IconView
* fTypeIconView
;
94 BTextControl
* fMajorVersionControl
;
95 BTextControl
* fMiddleVersionControl
;
96 BTextControl
* fMinorVersionControl
;
97 BPopUpMenu
* fVarietyMenu
;
98 BTextControl
* fInternalVersionControl
;
99 BTextControl
* fShortDescriptionControl
;
100 BTextView
* fLongDescriptionView
;
102 BMenuItem
* fSaveMenuItem
;
103 uint32 fChangedProperties
;
106 #endif // APPLICATION_TYPE_WINDOW_H