xref: /haiku/src/apps/resedit/Editor.h (revision e61a091fd0c39cd112ac6902c65f1106a969e8be)
108cf72ceSDarkWyrm /*
208cf72ceSDarkWyrm  * Copyright (c) 2005-2006, Haiku, Inc.
308cf72ceSDarkWyrm  * Distributed under the terms of the MIT license.
408cf72ceSDarkWyrm  *
508cf72ceSDarkWyrm  * Author:
608cf72ceSDarkWyrm  *		DarkWyrm <darkwyrm@earthlink.net>
708cf72ceSDarkWyrm  */
808cf72ceSDarkWyrm #ifndef EDITOR_H
908cf72ceSDarkWyrm #define EDITOR_H
1008cf72ceSDarkWyrm 
11*e61a091fSDarkWyrm #include <Window.h>
12*e61a091fSDarkWyrm #include <Handler.h>
13*e61a091fSDarkWyrm 
14*e61a091fSDarkWyrm class ResourceData;
15*e61a091fSDarkWyrm 
16*e61a091fSDarkWyrm #define M_UPDATE_RESOURCE 'uprs'
17*e61a091fSDarkWyrm 
18*e61a091fSDarkWyrm class Editor : public BWindow
1908cf72ceSDarkWyrm {
2008cf72ceSDarkWyrm public:
21*e61a091fSDarkWyrm 						Editor(const BRect &frame, ResourceData *data,
22*e61a091fSDarkWyrm 								BHandler *owner);
2308cf72ceSDarkWyrm 	virtual				~Editor(void);
24*e61a091fSDarkWyrm 
25*e61a091fSDarkWyrm 	ResourceData *		GetData(void) const { return fResData; }
26*e61a091fSDarkWyrm 	BHandler *			GetOwner(void) const { return fOwner; }
27*e61a091fSDarkWyrm private:
28*e61a091fSDarkWyrm 	ResourceData		*fResData;
29*e61a091fSDarkWyrm 	BHandler			*fOwner;
3008cf72ceSDarkWyrm };
3108cf72ceSDarkWyrm 
3208cf72ceSDarkWyrm #endif
33