|
/*
***************************************************************************
kis v 1
(c) 2006, Florin DUMITRESCU
mailto: fdproxy@gmail.com
$Workfile: _Factory.cpp $
***************************************************************************
*/
#include "StdAfx.h"
#include "_factory.h"
#include "resource.h"
using namespace kis;
C_Factory::C_Factory(void)
{
}
C_Factory::~C_Factory(void)
{
}
SP_ActionExecutor C_Factory::CreateActionExecutor()
{
return CreateActionExecutor_Default();
}
SP_Action C_Factory::CreateAction( UINT a_Id, class CKisActionDemoDoc* a_pDoc, class CKisActionDemoView* a_pView )
{
switch ( a_Id )
{
case ID_ACTION_ADDSEGMENT:
return CreateAction_AddSegment( a_pDoc, a_pView );
case ID_ACTION_ADDRECTANGLE:
return CreateAction_AddRectangle( a_pDoc, a_pView );
case ID_ACTION_ADDELLIPSE:
return CreateAction_AddEllipse( a_pDoc, a_pView );
default:
ASSERT( 0 );
return SP_Action( 0 );
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.