//
//  CRPathEditor.h
//  CRKit
//
//  Created by Yaroslav Glushchenko on 4/10/10.
//  Copyright 2010 Corner-A. All rights reserved.
//

#ifndef _CRPATHEDITOR_
#define _CRPATHEDITOR_

//////////////////////////////////////////////////////////////////////
// Specials for path editors of all kinds
//////////////////////////////////////////////////////////////////////
typedef enum {
	CRPointActionNone,
	CRPointActionInsert,
	CRPointActionMove,
	CRPointActionRemove
} CRPointActionType;

typedef enum {
	CRPathNormalRenderingMode = 0,
	CRPathHiddenRenderingMode = 1
} CRPathRenderingMode;

class CRPointAction
{
public:
	NSPoint location;
	NSUInteger index1;
	NSUInteger index2;
	CRPointActionType action;
	id attachedData;
	
public:
	CRPointAction();
	CRPointAction(NSPoint loc, NSUInteger idx1, NSUInteger idx2, CRPointActionType at, id data = nil);
	void Reset();
};

#endif //_CRPATHEDITOR_