xref: /haiku/src/apps/resedit/Editor.h (revision 481f986b59e7782458dcc5fe98ad59a57480e5db)
1 /*
2  * Copyright (c) 2005-2010, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Author:
6  *		DarkWyrm <darkwyrm@gmail.com>
7  */
8 #ifndef EDITOR_H
9 #define EDITOR_H
10 
11 #include <Window.h>
12 #include <Handler.h>
13 
14 class ResourceData;
15 
16 #define M_UPDATE_RESOURCE 'uprs'
17 
18 class Editor : public BWindow
19 {
20 public:
21 						Editor(const BRect &frame, ResourceData *data,
22 								BHandler *owner);
23 	virtual				~Editor(void);
24 
25 	ResourceData *		GetData(void) const { return fResData; }
26 	BHandler *			GetOwner(void) const { return fOwner; }
27 private:
28 	ResourceData		*fResData;
29 	BHandler			*fOwner;
30 };
31 
32 #endif
33