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