Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Mouse Gestures for Internet Explorer

, 21 Sep 2005
Adding mouse gesture recognition to Internet Explorer.
mousegestures_inst.zip
mousegestures_inst_1.zip
mousegestures_src.zip
src
gesture.weights
images
about.bmp
ClickLeftRight.bmp
ClickRightLeft.bmp
down.bmp
downarrow.bmp
downleft.bmp
downright.bmp
downup.bmp
exclamation.bmp
left.bmp
leftarrow.bmp
leftright.bmp
none.bmp
right.bmp
rightarrow.bmp
rightleft.bmp
up.bmp
uparrow.bmp
updown.bmp
upleft.bmp
upright.bmp
wheel.bmp
MouseGestures.rgs
mousegestures_src_1.zip
MouseGestures
BrowserHelperObject.rgs
gesture.weights
images
about.bmp
ClickLeftRight.bmp
ClickRightLeft.bmp
down.bmp
downleft.bmp
downright.bmp
downup.bmp
left.bmp
none.bmp
right.bmp
up.bmp
updown.bmp
upleft.bmp
upright.bmp
wheel.bmp
MouseGestures.def
MouseGestures.dsp
MouseGesturesCfg.rgs
///////////////////////////////////////////////////////////////
//
// 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,
            ActionBase::Maximise,
            ActionBase::CommandOpen,
            ActionBase::CommandSave,
            ActionBase::CommandSaveAs,
            ActionBase::CommandPrint,
            ActionBase::CommandPrintPreview,
            ActionBase::CommandPageSetup,
            ActionBase::CommandProperties,
            ActionBase::CommandCut,
            ActionBase::CommandCopy,
            ActionBase::CommandPaste,
            ActionBase::CommandUndo,
            ActionBase::CommandRedo,
            ActionBase::CommandSelectAll,
            ActionBase::CommandClearSelection,
            ActionBase::CommandStop,
            ActionBase::User0,
            ActionBase::User1,
            ActionBase::User2,
            ActionBase::User3,
            ActionBase::User4,
            ActionBase::User5,
            ActionBase::User6,
            ActionBase::User7,
            ActionBase::User8,
            ActionBase::User9,
        };

        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" ),
            _T( "Maximise window" ),
            _T( "Open a document in this window" ),
            _T( "Save changes" ),
            _T( "Save this document as a file" ),
            _T( "Print this page" ),
            _T( "Preview how this document will print" ),
            _T( "Page Setup" ),
            _T( "Display the properties of this document" ),
            _T( "Cut" ),
            _T( "Copy" ),
            _T( "Paste" ),
            _T( "Undo" ),
            _T( "Redo" ),
            _T( "Select All" ),
            _T( "Clear Selection" ),
            _T( "Stop the current page from loading" ),
            _T( "User Action 0" ),
            _T( "User Action 1" ),
            _T( "User Action 2" ),
            _T( "User Action 3" ),
            _T( "User Action 4" ),
            _T( "User Action 5" ),
            _T( "User Action 6" ),
            _T( "User Action 7" ),
            _T( "User Action 8" ),
            _T( "User Action 9" ),
        };

        if( ( action >= 0 ) && ( action < ACTION_COUNT ) )
        {
            return ACTION_DESCN[ action ];
        }

        return _T( "-- Unmapped --" );
    }
}

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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Ralph Hare
Web Developer
United Kingdom United Kingdom
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 21 Sep 2005
Article Copyright 2003 by Ralph Hare
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid