2015-05-23 22:55:12 -06:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 21:43:35 -06:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2009-01-02 18:38:44 -07:00
|
|
|
|
2009-08-24 19:50:27 -06:00
|
|
|
// This file holds global data for DolphinWx and DebuggerWx
|
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
#include <cstddef>
|
|
|
|
#include <wx/event.h>
|
2009-02-01 13:20:58 -07:00
|
|
|
|
2009-08-27 01:33:07 -06:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
Toolbar_Step,
|
|
|
|
Toolbar_StepOver,
|
2014-10-15 03:04:23 -06:00
|
|
|
Toolbar_StepOut,
|
2009-08-27 01:33:07 -06:00
|
|
|
Toolbar_Skip,
|
|
|
|
Toolbar_GotoPC,
|
|
|
|
Toolbar_SetPC,
|
2014-12-20 18:36:26 -07:00
|
|
|
Toolbar_Debug_Bitmap_Max
|
2009-08-27 01:33:07 -06:00
|
|
|
};
|
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
enum
|
|
|
|
{
|
2015-04-19 14:36:41 -06:00
|
|
|
// Emulation menu
|
|
|
|
IDM_LOAD_STATE = 200,
|
2014-12-20 18:36:26 -07: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-07 21:46:09 -07:00
|
|
|
IDM_PLAY,
|
2009-10-06 09:49:20 -06:00
|
|
|
IDM_STOP,
|
|
|
|
IDM_RESET,
|
2010-04-11 19:33:10 -06:00
|
|
|
IDM_TOGGLE_FULLSCREEN,
|
2015-04-19 14:36:41 -06:00
|
|
|
|
|
|
|
// Movie menu
|
2009-08-21 03:26:34 -06:00
|
|
|
IDM_RECORD,
|
2014-12-20 18:36:26 -07: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-21 20:05:02 -06:00
|
|
|
IDM_FRAMESTEP,
|
2009-02-26 20:56:34 -07:00
|
|
|
IDM_SCREENSHOT,
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_TOGGLE_DUMP_FRAMES,
|
|
|
|
IDM_TOGGLE_DUMP_AUDIO,
|
2015-04-19 14:36:41 -06:00
|
|
|
|
|
|
|
// File menu
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_BROWSE,
|
2010-07-29 21:51:49 -06:00
|
|
|
IDM_DRIVES,
|
2009-02-21 16:44:40 -07:00
|
|
|
IDM_DRIVE1,
|
|
|
|
IDM_DRIVE24 = IDM_DRIVE1 + 23,//248,
|
2008-12-23 01:47:37 -07:00
|
|
|
|
2015-04-19 14:36:41 -06:00
|
|
|
// Tools menu
|
|
|
|
IDM_MEMCARD,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_CHEATS,
|
2009-05-13 15:50:24 -06:00
|
|
|
IDM_NETPLAY,
|
2009-09-02 15:54:53 -06:00
|
|
|
IDM_RESTART,
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_CHANGE_DISC,
|
|
|
|
IDM_LIST_CHANGE_DISC,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_PROPERTIES,
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_GAME_WIKI,
|
2009-04-27 20:30:50 -06:00
|
|
|
IDM_LOAD_WII_MENU,
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_MENU_INSTALL_WAD,
|
|
|
|
IDM_LIST_INSTALL_WAD,
|
2011-03-26 20:55:08 -06:00
|
|
|
IDM_FIFOPLAYER,
|
2009-12-27 12:31:02 -07:00
|
|
|
IDM_CONNECT_WIIMOTE1,
|
|
|
|
IDM_CONNECT_WIIMOTE2,
|
|
|
|
IDM_CONNECT_WIIMOTE3,
|
|
|
|
IDM_CONNECT_WIIMOTE4,
|
2013-06-26 04:23:29 -06:00
|
|
|
IDM_CONNECT_BALANCEBOARD,
|
2009-04-27 20:30:50 -06:00
|
|
|
|
2015-04-19 14:36:41 -06:00
|
|
|
// View menu
|
2014-12-20 18:36:26 -07: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 16:55:16 -06:00
|
|
|
IDM_LIST_WORLD,
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_LIST_UNKNOWN,
|
|
|
|
IDM_LIST_DRIVES,
|
|
|
|
IDM_PURGE_CACHE,
|
2008-12-23 01:47:37 -07:00
|
|
|
|
2015-04-19 14:36:41 -06:00
|
|
|
// Help menu
|
|
|
|
IDM_HELP_WEBSITE,
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_HELP_ONLINE_DOCS,
|
|
|
|
IDM_HELP_GITHUB,
|
2008-12-23 01:47:37 -07:00
|
|
|
|
2015-04-19 14:36:41 -06:00
|
|
|
// Options menu
|
2011-02-13 19:18:03 -07:00
|
|
|
IDM_CONFIG_GFX_BACKEND,
|
2014-12-20 17:25:57 -07:00
|
|
|
IDM_CONFIG_AUDIO,
|
2014-11-22 13:29:13 -07:00
|
|
|
IDM_CONFIG_CONTROLLERS,
|
2011-02-11 23:46:33 -07:00
|
|
|
IDM_CONFIG_HOTKEYS,
|
2011-02-18 05:34:24 -07:00
|
|
|
IDM_CONFIG_LOGGER,
|
2008-12-23 01:47:37 -07:00
|
|
|
|
2013-10-28 23:23:17 -06:00
|
|
|
// Views
|
2014-12-20 18:36:26 -07: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-24 19:50:27 -06:00
|
|
|
|
2014-06-04 07:54:48 -06:00
|
|
|
// List Column Title Toggles
|
|
|
|
IDM_SHOW_SYSTEM,
|
|
|
|
IDM_SHOW_BANNER,
|
2015-04-20 05:00:15 -06:00
|
|
|
IDM_SHOW_MAKER,
|
2014-06-04 07:54:48 -06:00
|
|
|
IDM_SHOW_ID,
|
|
|
|
IDM_SHOW_REGION,
|
|
|
|
IDM_SHOW_SIZE,
|
|
|
|
IDM_SHOW_STATE,
|
|
|
|
|
|
|
|
|
2010-07-21 20:05:28 -06:00
|
|
|
// Float Window IDs
|
2014-12-20 18:36:26 -07: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-21 20:05:28 -06:00
|
|
|
|
|
|
|
// Float popup menu IDs
|
2014-12-20 18:36:26 -07: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-25 21:46:14 -06:00
|
|
|
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
// Debugger Menu Entries
|
|
|
|
// --------------------
|
|
|
|
// CPU Mode
|
|
|
|
IDM_INTERPRETER,
|
2014-12-20 18:36:26 -07: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-21 20:05:28 -06:00
|
|
|
|
2009-08-24 19:50:27 -06:00
|
|
|
// Symbols
|
2014-12-20 18:36:26 -07: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-07 23:16:50 -06:00
|
|
|
IDM_RENAME_SYMBOLS,
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_USE_SIGNATURE_FILE,
|
|
|
|
IDM_PATCH_HLE_FUNCTIONS,
|
2009-08-24 19:50:27 -06:00
|
|
|
|
|
|
|
// JIT
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_CLEAR_CODE_CACHE,
|
|
|
|
IDM_LOG_INSTRUCTIONS,
|
|
|
|
IDM_SEARCH_INSTRUCTION,
|
2009-08-24 19:50:27 -06:00
|
|
|
|
|
|
|
// Profiler
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_PROFILE_BLOCKS,
|
|
|
|
IDM_WRITE_PROFILE,
|
2009-08-24 19:50:27 -06:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
// Debugger Toolbar
|
2009-09-08 10:07:13 -06:00
|
|
|
// --------------------
|
2009-08-27 01:33:07 -06:00
|
|
|
ID_TOOLBAR_DEBUG,
|
2009-08-24 19:50:27 -06:00
|
|
|
IDM_STEP,
|
|
|
|
IDM_STEPOVER,
|
2014-10-15 03:04:23 -06:00
|
|
|
IDM_STEPOUT,
|
2010-08-08 00:00:22 -06:00
|
|
|
IDM_TOGGLE_BREAKPOINT,
|
2009-08-24 19:50:27 -06:00
|
|
|
IDM_SKIP,
|
|
|
|
IDM_SETPC,
|
|
|
|
IDM_GOTOPC,
|
|
|
|
IDM_ADDRBOX,
|
2009-08-27 01:33:07 -06:00
|
|
|
|
|
|
|
ID_TOOLBAR_AUI,
|
2009-08-30 13:44:42 -06:00
|
|
|
IDM_SAVE_PERSPECTIVE,
|
|
|
|
IDM_ADD_PERSPECTIVE,
|
2015-03-06 18:33:33 -07: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 13:44:42 -06:00
|
|
|
IDM_EDIT_PERSPECTIVES,
|
2009-08-27 11:17:48 -06:00
|
|
|
IDM_TAB_SPLIT,
|
2009-09-02 09:23:53 -06:00
|
|
|
IDM_NO_DOCKING,
|
2009-08-30 13:44:42 -06:00
|
|
|
IDM_PERSPECTIVES_0,
|
|
|
|
IDM_PERSPECTIVES_100 = IDM_PERSPECTIVES_0 + 100,
|
2009-08-24 19:50:27 -06:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_TOGGLE_DUAL_CORE, // Other
|
|
|
|
IDM_TOGGLE_SKIP_IDLE,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_TOGGLE_TOOLBAR,
|
|
|
|
IDM_TOGGLE_STATUSBAR,
|
2014-12-20 18:36:26 -07: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-10 17:55:06 -07:00
|
|
|
IDM_PANIC,
|
2011-01-30 15:02:47 -07:00
|
|
|
IDM_KEYSTATE,
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_WINDOW_SIZE_REQUEST,
|
2014-06-19 18:43:57 -06:00
|
|
|
IDM_STOPPED,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_HOST_MESSAGE,
|
2014-12-20 18:36:26 -07:00
|
|
|
IDM_FULLSCREEN_REQUEST,
|
2008-12-23 01:47:37 -07:00
|
|
|
|
2009-01-04 14:53:41 -07:00
|
|
|
IDM_MPANEL, ID_STATUSBAR,
|
|
|
|
|
2014-11-16 19:58:37 -07:00
|
|
|
IDM_FREELOOK_DECREASE_SPEED,
|
2015-01-20 15:35:20 -07:00
|
|
|
IDM_FREELOOK_INCREASE_SPEED,
|
2014-11-16 19:58:37 -07: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-07 21:46:09 -07:00
|
|
|
ID_TOOLBAR = 500,
|
|
|
|
};
|
|
|
|
|
2010-08-02 21:20:44 -06:00
|
|
|
// custom message macro
|
|
|
|
#define EVT_HOST_COMMAND(id, fn) \
|
|
|
|
DECLARE_EVENT_TABLE_ENTRY(\
|
2009-01-02 18:38:44 -07:00
|
|
|
wxEVT_HOST_COMMAND, id, wxID_ANY, \
|
|
|
|
(wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent(wxCommandEventFunction, &fn), \
|
2014-03-09 14:14:26 -06:00
|
|
|
(wxObject*) nullptr \
|
2009-01-02 18:38:44 -07:00
|
|
|
),
|
|
|
|
|
2014-11-05 20:19:52 -07:00
|
|
|
wxDECLARE_EVENT(wxEVT_HOST_COMMAND, wxCommandEvent);
|