///////////////////////////////////////////////////////////////
//
// Action.cpp
//
// Created: 04/10/2003
// Copyright (c) 2003 Ralph Hare (ralph.hare@ysgyfarnog.co.uk)
// All rights reserved.
//
// The code and information is provided "as-is" without
// warranty of any kind, either expressed or implied.
//
///////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Action.h"
namespace Action
{
const ACTION * GetActionMap()
{
static const ACTION ACTION_MAP[ Action::ACTION_COUNT ] =
{
ActionBase::GotoPrevious,
ActionBase::GotoNext,
ActionBase::GotoTop,
ActionBase::GotoBottom,
ActionBase::GoHome,
ActionBase::Close,
ActionBase::OpenNewForeWindow,
ActionBase::OpenNewBackWindow,
ActionBase::Refresh,
ActionBase::Reload,
ActionBase::Minimise,
ActionBase::Restore,
ActionBase::Duplicate,
ActionBase::ScrollWindows
};
return ACTION_MAP;
}
LPCTSTR GetDescription( ActionIndex action )
{
static LPCTSTR ACTION_DESCN[ Action::ACTION_COUNT ] =
{
_T( "Goto previous document in history" ),
_T( "Goto next document in history" ),
_T( "Goto top of document" ),
_T( "Goto bottom of document" ),
_T( "Go Home" ),
_T( "Close window" ),
_T( "Open new foreground window" ),
_T( "Open new background window" ),
_T( "Refresh document" ),
_T( "Reload document" ),
_T( "Minimise window" ),
_T( "Restore window" ),
_T( "Duplicate window" ),
_T( "Scroll through open windows" ),
};
if( ( action >= 0 ) && ( action < ACTION_COUNT ) )
{
return ACTION_DESCN[ action ];
}
return _T( "Unmapped" );
}
}