Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tparamundo.h"
Toshihiro Shimizu 890ddd
//#include "tparam.h"
Toshihiro Shimizu 890ddd
#include "tundo.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class ParamUndoManager : public TParamUndoManager
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	ParamUndoManager() {}
Toshihiro Shimizu 890ddd
	~ParamUndoManager() {}
Toshihiro Shimizu 890ddd
	void onChange(const TParamChange &change);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TParamUndoManager *TParamUndoManager::instance()
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	static ParamUndoManager instance;
Toshihiro Shimizu 890ddd
	return &instance;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void ParamUndoManager::onChange(const TParamChange &change)
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	assert(0);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	//if (!change.m_undoing && !change.m_dragging)
Toshihiro Shimizu 890ddd
	//  TUndoManager::manager()->add(change.createUndo());
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-------------------------------------------------------------------