1a5f7275dSStefano Ceccherini//------------------------------------------------------------------------------
2cc26ee39SRene Gollent//	Copyright (c) 2001-2010, Haiku
3a5f7275dSStefano Ceccherini//
4a5f7275dSStefano Ceccherini//	Permission is hereby granted, free of charge, to any person obtaining a
5a5f7275dSStefano Ceccherini//	copy of this software and associated documentation files (the "Software"),
6a5f7275dSStefano Ceccherini//	to deal in the Software without restriction, including without limitation
7a5f7275dSStefano Ceccherini//	the rights to use, copy, modify, merge, publish, distribute, sublicense,
8a5f7275dSStefano Ceccherini//	and/or sell copies of the Software, and to permit persons to whom the
9a5f7275dSStefano Ceccherini//	Software is furnished to do so, subject to the following conditions:
10a5f7275dSStefano Ceccherini//
11a5f7275dSStefano Ceccherini//	The above copyright notice and this permission notice shall be included in
12a5f7275dSStefano Ceccherini//	all copies or substantial portions of the Software.
13a5f7275dSStefano Ceccherini//
14a5f7275dSStefano Ceccherini//	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15a5f7275dSStefano Ceccherini//	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16a5f7275dSStefano Ceccherini//	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17a5f7275dSStefano Ceccherini//	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18a5f7275dSStefano Ceccherini//	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19a5f7275dSStefano Ceccherini//	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20a5f7275dSStefano Ceccherini//	DEALINGS IN THE SOFTWARE.
21a5f7275dSStefano Ceccherini//
22a5f7275dSStefano Ceccherini//	File Name:		ZombieReplicantView.h
23a5f7275dSStefano Ceccherini//	Author:			Marc Flerackers (mflerackers@androme.be)
24a5f7275dSStefano Ceccherini//	Description:	Class for Zombie replicants
25a5f7275dSStefano Ceccherini//------------------------------------------------------------------------------
26a5f7275dSStefano Ceccherini
27a5f7275dSStefano Ceccherini#ifndef _ZOMBIE_REPLICANT_VIEW_H
28a5f7275dSStefano Ceccherini#define _ZOMBIE_REPLICANT_VIEW_H
29a5f7275dSStefano Ceccherini
30a5f7275dSStefano Ceccherini#include <BeBuild.h>
31a5f7275dSStefano Ceccherini#include <Box.h>
32a5f7275dSStefano Ceccherini
33a5f7275dSStefano Ceccherini
347c42f05dSStefano Ceccheriniconst static rgb_color kZombieColor = {220, 220, 220, 255};
357c42f05dSStefano Ceccherini
367c42f05dSStefano Ceccherini
37a5f7275dSStefano Ceccherini// _BZombieReplicantView_ class ------------------------------------------------
38a5f7275dSStefano Ceccheriniclass _BZombieReplicantView_ : public BBox {
39a5f7275dSStefano Ceccherini
40a5f7275dSStefano Ceccherinipublic:
412041484bSRene Gollent								_BZombieReplicantView_(BRect frame,
422041484bSRene Gollent									status_t error);
432041484bSRene Gollent	virtual						~_BZombieReplicantView_();
44a5f7275dSStefano Ceccherini
452041484bSRene Gollent	virtual	void				MessageReceived(BMessage*msg);
46a5f7275dSStefano Ceccherini
472041484bSRene Gollent	virtual	void				Draw(BRect updateRect);
48a5f7275dSStefano Ceccherini
492041484bSRene Gollent	virtual	void				MouseDown(BPoint);
50a5f7275dSStefano Ceccherini
512041484bSRene Gollent	virtual status_t			Archive(BMessage* archive,
522041484bSRene Gollent									bool deep = true) const;
532041484bSRene Gollent
542041484bSRene Gollent			void				SetArchive(BMessage*);
55a5f7275dSStefano Ceccherini
56a5f7275dSStefano Ceccheriniprivate:
572041484bSRene Gollent			status_t			fError;
582041484bSRene Gollent			BMessage*			fArchive;
59a5f7275dSStefano Ceccherini};
60a5f7275dSStefano Ceccherini
61a5f7275dSStefano Ceccherini#endif /* _ZOMBIE_REPLICANT_VIEW_H */
62