5
* Andreas Matthies <andreas.matthies@gmx.net>
6
* Andreas Boose <viceteam@t-online.de>
8
* This file is part of VICE, the Versatile Commodore Emulator.
9
* See README for copyright notice.
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
40
void uievent_command(HWND hwnd, WPARAM wparam)
45
case IDM_EVENT_DIRECTORY:
46
fname = uilib_select_file(hwnd,
47
TEXT("Select start snapshot for event history"),
48
UILIB_FILTER_ALL | UILIB_FILTER_SNAPSHOT,
49
UILIB_SELECTOR_TYPE_FILE_SAVE,
50
UILIB_SELECTOR_STYLE_EVENT_START);
52
fname = uilib_select_file(hwnd,
53
TEXT("Select end snapshot for event history"),
54
UILIB_FILTER_ALL | UILIB_FILTER_SNAPSHOT,
55
UILIB_SELECTOR_TYPE_FILE_SAVE,
56
UILIB_SELECTOR_STYLE_EVENT_END);
59
case IDM_EVENT_TOGGLE_RECORD:
61
int recording_new = (event_record_active() ? 0 : 1);
69
case IDM_EVENT_TOGGLE_PLAYBACK:
71
int playback_new = (event_playback_active() ? 0 : 1);
74
event_playback_start();
76
event_playback_stop();
79
case IDM_EVENT_SETMILESTONE:
80
case IDM_EVENT_SETMILESTONE | 0x00010000:
81
event_record_set_milestone();
83
case IDM_EVENT_RESETMILESTONE:
84
case IDM_EVENT_RESETMILESTONE | 0x00010000:
85
event_record_reset_milestone();