2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:43:35 +00:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2009-01-03 01:38:44 +00:00
|
|
|
|
2009-08-25 01:50:27 +00:00
|
|
|
// This file holds global data for DolphinWx and DebuggerWx
|
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include <cstddef>
|
|
|
|
#include <wx/event.h>
|
2009-02-01 20:20:58 +00:00
|
|
|
|
2009-08-27 07:33:07 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
Toolbar_Step,
|
|
|
|
Toolbar_StepOver,
|
2014-10-15 09:04:23 +00:00
|
|
|
Toolbar_StepOut,
|
2009-08-27 07:33:07 +00:00
|
|
|
Toolbar_Skip,
|
|
|
|
Toolbar_GotoPC,
|
|
|
|
Toolbar_SetPC,
|
2014-12-21 01:36:26 +00:00
|
|
|
Toolbar_Debug_Bitmap_Max
|
2009-08-27 07:33:07 +00:00
|
|
|
};
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
enum
|
|
|
|
{
|
2015-04-19 20:36:41 +00:00
|
|
|
// Emulation menu
|
|
|
|
IDM_LOAD_STATE = 200,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_SAVE_STATE,
|
|
|
|
IDM_SELECT_SLOT,
|
|
|
|
IDM_SAVE_FIRST_STATE,
|
|
|
|
IDM_UNDO_LOAD_STATE,
|
|
|
|
IDM_UNDO_SAVE_STATE,
|
|
|
|
IDM_LOAD_STATE_FILE,
|
|
|
|
IDM_SAVE_STATE_FILE,
|
|
|
|
IDM_SAVE_SLOT_1,
|
|
|
|
IDM_SAVE_SLOT_2,
|
|
|
|
IDM_SAVE_SLOT_3,
|
|
|
|
ID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DM_FRAME_SKIP_4,
|
|
|
|
IDM_FRAME_SKIP_5,
|
|
|
|
IDM_FRAME_SKIP_6,
|
|
|
|
IDM_FRAME_SKIP_7,
|
|
|
|
IDM_FRAME_SKIP_8,
|
|
|
|
IDM_FRAME_SKIP_9,
|
2008-12-08 04:46:09 +00:00
|
|
|
IDM_PLAY,
|
2009-10-06 15:49:20 +00:00
|
|
|
IDM_STOP,
|
|
|
|
IDM_RESET,
|
2010-04-12 01:33:10 +00:00
|
|
|
IDM_TOGGLE_FULLSCREEN,
|
2015-04-19 20:36:41 +00:00
|
|
|
|
|
|
|
// Movie menu
|
2009-08-21 09:26:34 +00:00
|
|
|
IDM_RECORD,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_PLAY_RECORD,
|
|
|
|
IDM_RECORD_EXPORT,
|
|
|
|
IDM_RECORD_READ_ONLY,
|
|
|
|
IDM_TAS_INPUT,
|
|
|
|
IDM_TOGGLE_PAUSE_MOVIE,
|
|
|
|
IDM_SHOW_LAG,
|
|
|
|
IDM_SHOW_FRAME_COUNT,
|
|
|
|
IDM_SHOW_INPUT_DISPLAY,
|
2009-08-22 02:05:02 +00:00
|
|
|
IDM_FRAMESTEP,
|
2009-02-27 03:56:34 +00:00
|
|
|
IDM_SCREENSHOT,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_TOGGLE_DUMP_FRAMES,
|
|
|
|
IDM_TOGGLE_DUMP_AUDIO,
|
2015-04-19 20:36:41 +00:00
|
|
|
|
|
|
|
// File menu
|
2008-12-08 04:46:09 +00:00
|
|
|
IDM_BROWSE,
|
2010-07-30 03:51:49 +00:00
|
|
|
IDM_DRIVES,
|
2009-02-21 23:44:40 +00:00
|
|
|
IDM_DRIVE1,
|
|
|
|
IDM_DRIVE24 = IDM_DRIVE1 + 23,//248,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2015-04-19 20:36:41 +00:00
|
|
|
// Tools menu
|
|
|
|
IDM_MEMCARD,
|
2008-12-08 04:46:09 +00:00
|
|
|
IDM_CHEATS,
|
2009-05-13 21:50:24 +00:00
|
|
|
IDM_NETPLAY,
|
2009-09-02 21:54:53 +00:00
|
|
|
IDM_RESTART,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_CHANGE_DISC,
|
|
|
|
IDM_LIST_CHANGE_DISC,
|
2008-12-08 04:46:09 +00:00
|
|
|
IDM_PROPERTIES,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_GAME_WIKI,
|
2009-04-28 02:30:50 +00:00
|
|
|
IDM_LOAD_WII_MENU,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_MENU_INSTALL_WAD,
|
|
|
|
IDM_LIST_INSTALL_WAD,
|
2011-03-27 02:55:08 +00:00
|
|
|
IDM_FIFOPLAYER,
|
2009-12-27 19:31:02 +00:00
|
|
|
IDM_CONNECT_WIIMOTE1,
|
|
|
|
IDM_CONNECT_WIIMOTE2,
|
|
|
|
IDM_CONNECT_WIIMOTE3,
|
|
|
|
IDM_CONNECT_WIIMOTE4,
|
2013-06-26 10:23:29 +00:00
|
|
|
IDM_CONNECT_BALANCEBOARD,
|
2009-04-28 02:30:50 +00:00
|
|
|
|
2015-04-19 20:36:41 +00:00
|
|
|
// View menu
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_LIST_WAD,
|
|
|
|
IDM_LIST_WII,
|
|
|
|
IDM_LIST_GC,
|
|
|
|
IDM_LIST_JAP,
|
|
|
|
IDM_LIST_PAL,
|
|
|
|
IDM_LIST_USA,
|
|
|
|
IDM_LIST_AUSTRALIA,
|
|
|
|
IDM_LIST_FRANCE,
|
|
|
|
IDM_LIST_GERMANY,
|
|
|
|
IDM_LIST_ITALY,
|
|
|
|
IDM_LIST_KOREA,
|
|
|
|
IDM_LIST_NETHERLANDS,
|
|
|
|
IDM_LIST_RUSSIA,
|
|
|
|
IDM_LIST_SPAIN,
|
|
|
|
IDM_LIST_TAIWAN,
|
2015-04-08 22:55:16 +00:00
|
|
|
IDM_LIST_WORLD,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_LIST_UNKNOWN,
|
|
|
|
IDM_LIST_DRIVES,
|
|
|
|
IDM_PURGE_CACHE,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2015-04-19 20:36:41 +00:00
|
|
|
// Help menu
|
|
|
|
IDM_HELP_WEBSITE,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_HELP_ONLINE_DOCS,
|
|
|
|
IDM_HELP_GITHUB,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2015-04-19 20:36:41 +00:00
|
|
|
// Options menu
|
2011-02-14 02:18:03 +00:00
|
|
|
IDM_CONFIG_GFX_BACKEND,
|
2014-12-21 00:25:57 +00:00
|
|
|
IDM_CONFIG_AUDIO,
|
2014-11-22 20:29:13 +00:00
|
|
|
IDM_CONFIG_CONTROLLERS,
|
2011-02-12 06:46:33 +00:00
|
|
|
IDM_CONFIG_HOTKEYS,
|
2015-01-27 01:24:47 +00:00
|
|
|
IDM_CONFIG_MENU_COMMANDS,
|
2011-02-18 12:34:24 +00:00
|
|
|
IDM_CONFIG_LOGGER,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2013-10-29 05:23:17 +00:00
|
|
|
// Views
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_LOG_WINDOW,
|
|
|
|
IDM_LOG_CONFIG_WINDOW,
|
|
|
|
IDM_REGISTER_WINDOW,
|
|
|
|
IDM_WATCH_WINDOW,
|
|
|
|
IDM_BREAKPOINT_WINDOW,
|
|
|
|
IDM_MEMORY_WINDOW,
|
|
|
|
IDM_JIT_WINDOW,
|
|
|
|
IDM_SOUND_WINDOW,
|
|
|
|
IDM_VIDEO_WINDOW,
|
|
|
|
IDM_CODE_WINDOW,
|
2009-08-25 01:50:27 +00:00
|
|
|
|
2014-06-04 13:54:48 +00:00
|
|
|
// List Column Title Toggles
|
|
|
|
IDM_SHOW_SYSTEM,
|
|
|
|
IDM_SHOW_BANNER,
|
2015-04-20 11:00:15 +00:00
|
|
|
IDM_SHOW_MAKER,
|
2014-06-04 13:54:48 +00:00
|
|
|
IDM_SHOW_ID,
|
|
|
|
IDM_SHOW_REGION,
|
|
|
|
IDM_SHOW_SIZE,
|
|
|
|
IDM_SHOW_STATE,
|
|
|
|
|
|
|
|
|
2010-07-22 02:05:28 +00:00
|
|
|
// Float Window IDs
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_LOG_WINDOW_PARENT,
|
|
|
|
IDM_LOG_CONFIG_WINDOW_PARENT,
|
|
|
|
IDM_REGISTER_WINDOW_PARENT,
|
|
|
|
IDM_BREAKPOINT_WINDOW_PARENT,
|
|
|
|
IDM_MEMORY_WINDOW_PARENT,
|
|
|
|
IDM_JIT_WINDOW_PARENT,
|
|
|
|
IDM_SOUND_WINDOW_PARENT,
|
|
|
|
IDM_VIDEO_WINDOW_PARENT,
|
|
|
|
IDM_CODE_WINDOW_PARENT,
|
2010-07-22 02:05:28 +00:00
|
|
|
|
|
|
|
// Float popup menu IDs
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_FLOAT_LOG_WINDOW,
|
|
|
|
IDM_FLOAT_LOG_CONFIG_WINDOW,
|
|
|
|
IDM_FLOAT_REGISTER_WINDOW,
|
|
|
|
IDM_FLOAT_BREAKPOINT_WINDOW,
|
|
|
|
IDM_FLOAT_MEMORY_WINDOW,
|
|
|
|
IDM_FLOAT_JIT_WINDOW,
|
|
|
|
IDM_FLOAT_SOUND_WINDOW,
|
|
|
|
IDM_FLOAT_VIDEO_WINDOW,
|
|
|
|
IDM_FLOAT_CODE_WINDOW,
|
2010-07-26 03:46:14 +00:00
|
|
|
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
// Debugger Menu Entries
|
|
|
|
// --------------------
|
|
|
|
// CPU Mode
|
|
|
|
IDM_INTERPRETER,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_AUTOMATIC_START, IDM_BOOT_TO_PAUSE,
|
|
|
|
IDM_JIT_NO_BLOCK_CACHE, IDM_JIT_NO_BLOCK_LINKING, // JIT
|
|
|
|
IDM_JIT_OFF,
|
|
|
|
IDM_JIT_LS_OFF, IDM_JIT_LSLXZ_OFF, IDM_JIT_LSLWZ_OFF, IDM_JIT_LSLBZX_OFF,
|
|
|
|
IDM_JIT_LSP_OFF, IDM_JIT_LSF_OFF,
|
|
|
|
IDM_JIT_I_OFF,
|
|
|
|
IDM_JIT_FP_OFF,
|
|
|
|
IDM_JIT_P_OFF,
|
|
|
|
IDM_JIT_SR_OFF,
|
|
|
|
IDM_FONT_PICKER,
|
2010-07-22 02:05:28 +00:00
|
|
|
|
2009-08-25 01:50:27 +00:00
|
|
|
// Symbols
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_CLEAR_SYMBOLS,
|
|
|
|
IDM_SCAN_FUNCTIONS,
|
|
|
|
IDM_LOAD_MAP_FILE, IDM_LOAD_MAP_FILE_AS, IDM_LOAD_BAD_MAP_FILE,
|
|
|
|
IDM_SAVEMAPFILE, IDM_SAVE_MAP_FILE_WITH_CODES, IDM_SAVE_MAP_FILE_AS,
|
|
|
|
IDM_CREATE_SIGNATURE_FILE,
|
|
|
|
IDM_APPEND_SIGNATURE_FILE,
|
|
|
|
IDM_COMBINE_SIGNATURE_FILES,
|
2013-04-08 05:16:50 +00:00
|
|
|
IDM_RENAME_SYMBOLS,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_USE_SIGNATURE_FILE,
|
|
|
|
IDM_PATCH_HLE_FUNCTIONS,
|
2009-08-25 01:50:27 +00:00
|
|
|
|
|
|
|
// JIT
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_CLEAR_CODE_CACHE,
|
|
|
|
IDM_LOG_INSTRUCTIONS,
|
|
|
|
IDM_SEARCH_INSTRUCTION,
|
2009-08-25 01:50:27 +00:00
|
|
|
|
|
|
|
// Profiler
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_PROFILE_BLOCKS,
|
|
|
|
IDM_WRITE_PROFILE,
|
2009-08-25 01:50:27 +00:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
// Debugger Toolbar
|
2009-09-08 16:07:13 +00:00
|
|
|
// --------------------
|
2009-08-27 07:33:07 +00:00
|
|
|
ID_TOOLBAR_DEBUG,
|
2009-08-25 01:50:27 +00:00
|
|
|
IDM_STEP,
|
|
|
|
IDM_STEPOVER,
|
2014-10-15 09:04:23 +00:00
|
|
|
IDM_STEPOUT,
|
2010-08-08 06:00:22 +00:00
|
|
|
IDM_TOGGLE_BREAKPOINT,
|
2009-08-25 01:50:27 +00:00
|
|
|
IDM_SKIP,
|
|
|
|
IDM_SETPC,
|
|
|
|
IDM_GOTOPC,
|
|
|
|
IDM_ADDRBOX,
|
2009-08-27 07:33:07 +00:00
|
|
|
|
|
|
|
ID_TOOLBAR_AUI,
|
2009-08-30 19:44:42 +00:00
|
|
|
IDM_SAVE_PERSPECTIVE,
|
|
|
|
IDM_ADD_PERSPECTIVE,
|
2015-03-07 01:33:33 +00:00
|
|
|
IDM_PERSPECTIVES_ADD_PANE_TOP,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE_BOTTOM,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE_LEFT,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE_RIGHT,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE_CENTER,
|
2009-08-30 19:44:42 +00:00
|
|
|
IDM_EDIT_PERSPECTIVES,
|
2009-08-27 17:17:48 +00:00
|
|
|
IDM_TAB_SPLIT,
|
2009-09-02 15:23:53 +00:00
|
|
|
IDM_NO_DOCKING,
|
2009-08-30 19:44:42 +00:00
|
|
|
IDM_PERSPECTIVES_0,
|
|
|
|
IDM_PERSPECTIVES_100 = IDM_PERSPECTIVES_0 + 100,
|
2009-08-25 01:50:27 +00:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_TOGGLE_DUAL_CORE, // Other
|
|
|
|
IDM_TOGGLE_SKIP_IDLE,
|
2008-12-08 04:46:09 +00:00
|
|
|
IDM_TOGGLE_TOOLBAR,
|
|
|
|
IDM_TOGGLE_STATUSBAR,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_NOTIFY_MAP_LOADED,
|
|
|
|
IDM_OPEN_CONTAINING_FOLDER,
|
|
|
|
IDM_OPEN_SAVE_FOLDER,
|
|
|
|
IDM_EXPORT_SAVE,
|
|
|
|
IDM_IMPORT_SAVE,
|
|
|
|
IDM_EXPORT_ALL_SAVE,
|
|
|
|
IDM_SET_DEFAULT_ISO,
|
|
|
|
IDM_DELETE_ISO,
|
|
|
|
IDM_COMPRESS_ISO,
|
|
|
|
IDM_MULTI_COMPRESS_ISO,
|
|
|
|
IDM_MULTI_DECOMPRESS_ISO,
|
|
|
|
IDM_UPDATE_DISASM_DIALOG,
|
|
|
|
IDM_UPDATE_GUI,
|
|
|
|
IDM_UPDATE_STATUS_BAR,
|
|
|
|
IDM_UPDATE_TITLE,
|
|
|
|
IDM_UPDATE_BREAKPOINTS,
|
|
|
|
IDM_UPDATE_JIT_PANE,
|
2010-11-11 00:55:06 +00:00
|
|
|
IDM_PANIC,
|
2011-01-30 22:02:47 +00:00
|
|
|
IDM_KEYSTATE,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_WINDOW_SIZE_REQUEST,
|
2014-06-20 00:43:57 +00:00
|
|
|
IDM_STOPPED,
|
2008-12-08 04:46:09 +00:00
|
|
|
IDM_HOST_MESSAGE,
|
2014-12-21 01:36:26 +00:00
|
|
|
IDM_FULLSCREEN_REQUEST,
|
2008-12-23 08:47:37 +00:00
|
|
|
|
2009-01-04 21:53:41 +00:00
|
|
|
IDM_MPANEL, ID_STATUSBAR,
|
|
|
|
|
2014-11-17 02:58:37 +00:00
|
|
|
IDM_FREELOOK_DECREASE_SPEED,
|
2015-01-20 22:35:20 +00:00
|
|
|
IDM_FREELOOK_INCREASE_SPEED,
|
2014-11-17 02:58:37 +00:00
|
|
|
IDM_FREELOOK_RESET_SPEED,
|
|
|
|
IDM_FREELOOK_UP,
|
|
|
|
IDM_FREELOOK_DOWN,
|
|
|
|
IDM_FREELOOK_LEFT,
|
|
|
|
IDM_FREELOOK_RIGHT,
|
|
|
|
IDM_FREELOOK_ZOOM_IN,
|
|
|
|
IDM_FREELOOK_ZOOM_OUT,
|
|
|
|
IDM_FREELOOK_RESET,
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
ID_TOOLBAR = 500,
|
|
|
|
};
|
|
|
|
|
2010-08-03 03:20:44 +00:00
|
|
|
// custom message macro
|
|
|
|
#define EVT_HOST_COMMAND(id, fn) \
|
|
|
|
DECLARE_EVENT_TABLE_ENTRY(\
|
2009-01-03 01:38:44 +00:00
|
|
|
wxEVT_HOST_COMMAND, id, wxID_ANY, \
|
|
|
|
(wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent(wxCommandEventFunction, &fn), \
|
2014-03-09 20:14:26 +00:00
|
|
|
(wxObject*) nullptr \
|
2009-01-03 01:38:44 +00:00
|
|
|
),
|
|
|
|
|
2014-11-06 03:19:52 +00:00
|
|
|
wxDECLARE_EVENT(wxEVT_HOST_COMMAND, wxCommandEvent);
|