xref: /haiku/src/preferences/filetypes/NewFileTypeWindow.h (revision 041ea260089705137d559753470b0eec731e5640)
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 NEW_FILE_TYPE_WINDOW_H
6 #define NEW_FILE_TYPE_WINDOW_H
7 
8 
9 #include <Messenger.h>
10 #include <Window.h>
11 
12 class BButton;
13 class BMenu;
14 class BTextControl;
15 
16 class FileTypesWindow;
17 
18 
19 class NewFileTypeWindow : public BWindow {
20 	public:
21 		NewFileTypeWindow(FileTypesWindow* target, const char* currentType);
22 		virtual ~NewFileTypeWindow();
23 
24 		virtual void MessageReceived(BMessage* message);
25 		virtual bool QuitRequested();
26 
27 	private:
28 		BMessenger		fTarget;
29 		BMenu*			fSupertypesMenu;
30 		BTextControl*	fNameControl;
31 		BButton*		fAddButton;
32 };
33 
34 #endif	// NEW_FILE_TYPE_WINDOW_H
35