/********************************************************************/
/* Copyright (c) 2019 System fugen G.K. and Yuzi Mizuno          */
/* All rights reserved.                                             */
/********************************************************************/

// SnapPointGenTool.h: MGSnapPointGenTool クラスのインターフェイス

#if !defined(AFX_SNAPPOINTGENTOOL_H__C3E4A879_05BA_4085_834F_11C7923E0464__INCLUDED_)
#define AFX_SNAPPOINTGENTOOL_H__C3E4A879_05BA_4085_834F_11C7923E0464__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Common/SelectState.h"
#include "SnapEvalDlg.h"

// class MGSnapPointGenTool
//
// Creates osnap points.
class MGSnapPointGenTool : public MGSelectState{
public:
	explicit MGSnapPointGenTool(fugenDoc* pDoc);

	virtual MGCommandBase* initial_clone(fugenDoc* pDoc)const;
	virtual bool initiate_tool();
	virtual bool OnCommandEnd(
	UINT nIDS,	//=0: erase the current message, and display no messages.
				//=1: display "xxxx" normally end.
				//otherwise: nIDS is a string id, and load the message from string table to display.
	bool erase_temporary_display=true
	);

private:
	bool input_param();
	
	// オプション入力ダイアログボックス
	// (あとで直す)
	CSnapEvalDlg                  m_dlg;
};

#endif // !defined(AFX_SNAPPOINTGENTOOL_H__C3E4A879_05BA_4085_834F_11C7923E0464__INCLUDED_)
