docs/ikteam: Delete most files.
[haiku.git] / src / preferences / filetypes / FileTypeWindow.h
blobb41e3f600627517d7111945e5ddec8034c9aa343
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_TYPE_WINDOW_H
6 #define FILE_TYPE_WINDOW_H
9 #include <Mime.h>
10 #include <String.h>
11 #include <Window.h>
13 #include <ObjectList.h>
15 class BButton;
16 class BMenuField;
17 class BTextControl;
19 class IconView;
20 class MimeTypeListView;
23 class FileTypeWindow : public BWindow {
24 public:
25 FileTypeWindow(BPoint position, const BMessage& refs);
26 virtual ~FileTypeWindow();
28 virtual void MessageReceived(BMessage* message);
29 virtual bool QuitRequested();
31 private:
32 BString _Title(const BMessage& refs);
33 void _SetTo(const BMessage& refs);
34 void _AdoptType(BMessage* message);
35 void _AdoptType();
36 void _AdoptPreferredApp(BMessage* message, bool sameAs);
37 void _AdoptPreferredApp();
38 void _UpdatePreferredApps();
40 private:
41 BObjectList<entry_ref> fEntries;
42 BString fCommonType;
43 BString fCommonPreferredApp;
45 BTextControl* fTypeControl;
46 BButton* fSelectTypeButton;
47 BButton* fSameTypeAsButton;
49 IconView* fIconView;
51 BMenuField* fPreferredField;
52 BButton* fSelectAppButton;
53 BButton* fSameAppAsButton;
56 #endif // FILE_TYPE_WINDOW_H