]> git.saurik.com Git - wxWidgets.git/blame - src/common/uiactioncmn.cpp
Removed two instances of 'template<>' - looks like VC6 did not need it after all...
[wxWidgets.git] / src / common / uiactioncmn.cpp
CommitLineData
a02a5cfc
KO
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/common/uiactioncmn.cpp
3// Purpose: wxUIActionSimulator common implementation
4// Author: Kevin Ollivier
5// Modified by:
6// Created: 2010-03-06
7// RCS-ID: $Id: menu.cpp 54129 2008-06-11 19:30:52Z SC $
8// Copyright: (c) Kevin Ollivier
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/wxprec.h"
13
9b7e0226
VZ
14#if wxUSE_UIACTIONSIMULATOR
15
a02a5cfc
KO
16#include "wx/uiaction.h"
17
18wxUIActionSimulator::wxUIActionSimulator()
19{
20}
21
22wxUIActionSimulator::~wxUIActionSimulator()
23{
24}
25
26
9b7e0226 27bool wxUIActionSimulator::MouseClick(int button)
a02a5cfc
KO
28{
29 MouseDown(button);
30 MouseUp(button);
9b7e0226 31
a02a5cfc
KO
32 return true;
33}
34
9b7e0226 35bool wxUIActionSimulator::MouseDblClick(int button)
a02a5cfc
KO
36{
37 MouseDown(button);
38 MouseUp(button);
39 MouseDown(button);
40 MouseUp(button);
9b7e0226 41
a02a5cfc
KO
42 return true;
43}
44
45bool wxUIActionSimulator::MouseDragDrop(long x1, long y1, long x2, long y2, int button)
46{
47 MouseMove(x1, y1);
48 MouseDown(button);
9b7e0226 49 MouseMove(x2, y2);
a02a5cfc 50 MouseUp(button);
9b7e0226 51
a02a5cfc
KO
52 return true;
53}
54
55bool wxUIActionSimulator::Char(int keycode, bool shiftDown, bool cmdDown, bool altDown)
56{
57 Key(keycode, false, shiftDown, cmdDown, altDown);
58 Key(keycode, true, shiftDown, cmdDown, altDown);
9b7e0226 59
a02a5cfc 60 return true;
9b7e0226
VZ
61}
62
63#endif // wxUSE_UIACTIONSIMULATOR