/////////////////////////////////////////////////////////////
// Cinema 4D SDK                                           //
/////////////////////////////////////////////////////////////
// (c) MAXON Computer GmbH, all rights reserved            //
/////////////////////////////////////////////////////////////

#ifndef C4D_TOOLPLUGIN_H__
#define C4D_TOOLPLUGIN_H__

#include "ge_math.h"
#include "c4d_tooldata.h"
#include "c4d_baseplugin.h"

#ifdef CINEWARE_NAMESPACE_ENABLE
	CINEWARE_NAMESPACE_BEGIN
#endif

/// @cond IGNORE

// INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF
// INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF
// INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF

struct TOOLPLUGIN : public STATICPLUGIN
{
	String			*help;
	BaseBitmap	*command_icon;

	Bool					(ToolData::*InitTool						)(BaseDocument *doc, BaseContainer &data, BaseThread *bt);
	void					(ToolData::*FreeTool						)(BaseDocument *doc, BaseContainer &data);

	Bool					(ToolData::*MouseInput					)(BaseDocument *doc, BaseContainer &data, BaseDraw *bd, EditorWindow *win, const BaseContainer &msg);
	Int32					(ToolData::*GetState						)(BaseDocument *doc);
	Bool					(ToolData::*GetCursorInfo				)(BaseDocument *doc, BaseContainer &data, BaseDraw *bd, Float x, Float y, BaseContainer &bc);
	TOOLDRAW			(ToolData::*Draw								)(BaseDocument *doc, BaseContainer &data, BaseDraw *bd, BaseDrawHelp *bh, BaseThread *bt, TOOLDRAWFLAGS flags);

	CDialog*			(ToolData::*AllocDialog					)(BaseContainer *bc, CDialog *cd_parent, Int32 dlg_id);
	void					(ToolData::*FreeDialog					)(CDialog *cd);

	Bool					(ToolData::*InitDisplayControl	)(BaseDocument *doc, const BaseContainer &data, BaseDraw *bd, const AtomArray *active);
	void					(ToolData::*FreeDisplayControl	)();

	Bool					(ToolData::*KeyboardInput				)(BaseDocument *doc, BaseContainer &data, BaseDraw *bd, EditorWindow *win, const BaseContainer &msg);
	Bool					(ToolData::*GetDDescription			)(const BaseDocument *doc, const BaseContainer &data, Description *description, DESCFLAGS_DESC &flags) const;
	Bool					(ToolData::*GetDParameter				)(const BaseDocument *doc, const BaseContainer &data, const DescID &id, GeData &t_data, DESCFLAGS_GET &flags) const;
	Bool					(ToolData::*GetDEnabling				)(const BaseDocument *doc, const BaseContainer &data, const DescID &id, const GeData &t_data, DESCFLAGS_ENABLE flags, const BaseContainer *itemdesc) const;
	Bool					(ToolData::*SetDParameter				)(BaseDocument *doc, BaseContainer &data, const DescID &id, const GeData &t_data, DESCFLAGS_SET &flags);
	Bool					(ToolData::*Message							)(BaseDocument *doc, BaseContainer &data, Int32 type, void *t_data);
	void					(ToolData::*InitDefaultSettings	)(BaseDocument *pDoc, BaseContainer &data);
	Bool					(ToolData::*DoCommand						)(ModelingCommandData &mdat);
	const String	(ToolData::*GetResourceSymbol		)() const;

	Bool					(ToolData::*DisplayControl			)(BaseDocument *doc, BaseObject *op, BaseObject *chainstart, BaseDraw *bd, BaseDrawHelp *bh, ControlDisplayStruct &cds) const;

	Bool					(ToolData::*TranslateDescID			)(BaseDocument *doc, BaseContainer &data, const DescID &id, DescID &res_id, C4DAtom *&res_at);

	void* reserved[(32-21)*C4DPL_MEMBERMULTIPLIER-2];
};

// INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF
// INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF
// INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF -- INTERNAL STUFF

/// @endcond

#ifdef CINEWARE_NAMESPACE_ENABLE
	CINEWARE_NAMESPACE_END
#endif

#endif // C4D_TOOLPLUGIN_H__
