2 * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef FILE_TYPE_WINDOW_H
6 #define FILE_TYPE_WINDOW_H
13 #include <ObjectList.h>
20 class MimeTypeListView
;
23 class FileTypeWindow
: public BWindow
{
25 FileTypeWindow(BPoint position
, const BMessage
& refs
);
26 virtual ~FileTypeWindow();
28 virtual void MessageReceived(BMessage
* message
);
29 virtual bool QuitRequested();
32 BString
_Title(const BMessage
& refs
);
33 void _SetTo(const BMessage
& refs
);
34 void _AdoptType(BMessage
* message
);
36 void _AdoptPreferredApp(BMessage
* message
, bool sameAs
);
37 void _AdoptPreferredApp();
38 void _UpdatePreferredApps();
41 BObjectList
<entry_ref
> fEntries
;
43 BString fCommonPreferredApp
;
45 BTextControl
* fTypeControl
;
46 BButton
* fSelectTypeButton
;
47 BButton
* fSameTypeAsButton
;
51 BMenuField
* fPreferredField
;
52 BButton
* fSelectAppButton
;
53 BButton
* fSameAppAsButton
;
56 #endif // FILE_TYPE_WINDOW_H