2013-04-17 21:43:35 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// 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,
|
|
|
|
Toolbar_Skip,
|
|
|
|
Toolbar_GotoPC,
|
|
|
|
Toolbar_SetPC,
|
|
|
|
ToolbarDebugBitmapMax
|
|
|
|
};
|
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
enum
|
|
|
|
{
|
2009-01-04 19:52:55 -07:00
|
|
|
IDM_LOADSTATE = 200, // File menu
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_SAVESTATE,
|
2012-11-08 00:40:49 -07:00
|
|
|
IDM_SAVEFIRSTSTATE,
|
2009-06-28 15:11:51 -06:00
|
|
|
IDM_UNDOLOADSTATE,
|
|
|
|
IDM_UNDOSAVESTATE,
|
2009-06-27 19:11:35 -06:00
|
|
|
IDM_LOADSTATEFILE,
|
|
|
|
IDM_SAVESTATEFILE,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_SAVESLOT1,
|
|
|
|
IDM_SAVESLOT2,
|
|
|
|
IDM_SAVESLOT3,
|
|
|
|
IDM_SAVESLOT4,
|
|
|
|
IDM_SAVESLOT5,
|
|
|
|
IDM_SAVESLOT6,
|
|
|
|
IDM_SAVESLOT7,
|
|
|
|
IDM_SAVESLOT8,
|
2013-08-02 18:42:30 -06:00
|
|
|
IDM_SAVESLOT9,
|
|
|
|
IDM_SAVESLOT10,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_LOADSLOT1,
|
|
|
|
IDM_LOADSLOT2,
|
|
|
|
IDM_LOADSLOT3,
|
|
|
|
IDM_LOADSLOT4,
|
|
|
|
IDM_LOADSLOT5,
|
|
|
|
IDM_LOADSLOT6,
|
|
|
|
IDM_LOADSLOT7,
|
|
|
|
IDM_LOADSLOT8,
|
2013-08-02 18:42:30 -06:00
|
|
|
IDM_LOADSLOT9,
|
|
|
|
IDM_LOADSLOT10,
|
2012-11-08 00:40:49 -07:00
|
|
|
IDM_LOADLAST1,
|
|
|
|
IDM_LOADLAST2,
|
|
|
|
IDM_LOADLAST3,
|
|
|
|
IDM_LOADLAST4,
|
|
|
|
IDM_LOADLAST5,
|
|
|
|
IDM_LOADLAST6,
|
|
|
|
IDM_LOADLAST7,
|
|
|
|
IDM_LOADLAST8,
|
2009-08-07 19:39:56 -06:00
|
|
|
IDM_FRAMESKIP0,
|
|
|
|
IDM_FRAMESKIP1,
|
|
|
|
IDM_FRAMESKIP2,
|
|
|
|
IDM_FRAMESKIP3,
|
|
|
|
IDM_FRAMESKIP4,
|
|
|
|
IDM_FRAMESKIP5,
|
|
|
|
IDM_FRAMESKIP6,
|
|
|
|
IDM_FRAMESKIP7,
|
|
|
|
IDM_FRAMESKIP8,
|
|
|
|
IDM_FRAMESKIP9,
|
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,
|
2009-08-21 03:26:34 -06:00
|
|
|
IDM_RECORD,
|
2009-08-21 13:55:03 -06:00
|
|
|
IDM_PLAYRECORD,
|
2010-08-30 01:05:47 -06:00
|
|
|
IDM_RECORDEXPORT,
|
2011-02-11 19:14:20 -07:00
|
|
|
IDM_RECORDREADONLY,
|
2011-06-24 00:50:50 -06:00
|
|
|
IDM_TASINPUT,
|
2012-11-10 19:57:31 -07:00
|
|
|
IDM_TOGGLE_PAUSEMOVIE,
|
2012-11-11 15:57:06 -07:00
|
|
|
IDM_SHOWLAG,
|
2009-08-21 20:05:02 -06:00
|
|
|
IDM_FRAMESTEP,
|
2009-02-26 20:56:34 -07:00
|
|
|
IDM_SCREENSHOT,
|
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
|
|
|
|
2010-06-01 15:03:02 -06:00
|
|
|
IDM_MEMCARD, // Tools menu
|
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,
|
2008-12-23 01:47:37 -07:00
|
|
|
IDM_CHANGEDISC,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_PROPERTIES,
|
2011-02-25 16:33:11 -07:00
|
|
|
IDM_GAMEWIKI,
|
2009-04-27 20:30:50 -06:00
|
|
|
IDM_LOAD_WII_MENU,
|
2011-05-07 20:56:09 -06:00
|
|
|
IDM_MENU_INSTALLWAD,
|
|
|
|
IDM_LIST_INSTALLWAD,
|
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
|
|
|
|
2009-06-06 01:36:22 -06:00
|
|
|
IDM_LISTWAD,
|
2009-04-27 20:30:50 -06:00
|
|
|
IDM_LISTWII,
|
|
|
|
IDM_LISTGC,
|
|
|
|
IDM_LISTJAP,
|
|
|
|
IDM_LISTPAL,
|
|
|
|
IDM_LISTUSA,
|
2010-01-10 22:07:56 -07:00
|
|
|
IDM_LISTFRANCE,
|
|
|
|
IDM_LISTITALY,
|
|
|
|
IDM_LISTKOREA,
|
|
|
|
IDM_LISTTAIWAN,
|
|
|
|
IDM_LIST_UNK,
|
2009-04-27 20:30:50 -06:00
|
|
|
IDM_LISTDRIVES,
|
2009-06-06 01:36:22 -06:00
|
|
|
IDM_PURGECACHE,
|
2008-12-23 01:47:37 -07:00
|
|
|
|
2010-06-01 15:03:02 -06:00
|
|
|
IDM_HELPWEBSITE, // Help menu
|
2013-08-31 02:31:34 -06:00
|
|
|
IDM_HELPONLINEDOCS,
|
2014-06-18 13:33:14 -06:00
|
|
|
IDM_HELPGITHUB,
|
2008-12-23 01:47:37 -07:00
|
|
|
|
2011-02-13 19:18:03 -07:00
|
|
|
IDM_CONFIG_GFX_BACKEND,
|
|
|
|
IDM_CONFIG_DSP_EMULATOR,
|
2010-06-03 12:05:08 -06:00
|
|
|
IDM_CONFIG_PAD_PLUGIN,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_CONFIG_WIIMOTE_PLUGIN,
|
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
|
2009-08-24 19:50:27 -06:00
|
|
|
IDM_LOGWINDOW,
|
2011-02-21 08:01:00 -07:00
|
|
|
IDM_LOGCONFIGWINDOW,
|
2009-08-24 19:50:27 -06:00
|
|
|
IDM_REGISTERWINDOW,
|
|
|
|
IDM_BREAKPOINTWINDOW,
|
|
|
|
IDM_MEMORYWINDOW,
|
|
|
|
IDM_JITWINDOW,
|
|
|
|
IDM_SOUNDWINDOW,
|
|
|
|
IDM_VIDEOWINDOW,
|
2010-07-25 21:46:14 -06:00
|
|
|
IDM_CODEWINDOW,
|
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,
|
|
|
|
IDM_SHOW_NOTES,
|
|
|
|
IDM_SHOW_ID,
|
|
|
|
IDM_SHOW_REGION,
|
|
|
|
IDM_SHOW_SIZE,
|
|
|
|
IDM_SHOW_STATE,
|
|
|
|
|
|
|
|
|
2010-07-21 20:05:28 -06:00
|
|
|
// Float Window IDs
|
|
|
|
IDM_LOGWINDOW_PARENT,
|
2011-02-21 08:01:00 -07:00
|
|
|
IDM_LOGCONFIGWINDOW_PARENT,
|
2010-07-21 20:05:28 -06:00
|
|
|
IDM_REGISTERWINDOW_PARENT,
|
|
|
|
IDM_BREAKPOINTWINDOW_PARENT,
|
|
|
|
IDM_MEMORYWINDOW_PARENT,
|
|
|
|
IDM_JITWINDOW_PARENT,
|
|
|
|
IDM_SOUNDWINDOW_PARENT,
|
|
|
|
IDM_VIDEOWINDOW_PARENT,
|
2010-07-25 21:46:14 -06:00
|
|
|
IDM_CODEWINDOW_PARENT,
|
2010-07-21 20:05:28 -06:00
|
|
|
|
|
|
|
// Float popup menu IDs
|
|
|
|
IDM_FLOAT_LOGWINDOW,
|
2011-02-21 08:01:00 -07:00
|
|
|
IDM_FLOAT_LOGCONFIGWINDOW,
|
2010-07-21 20:05:28 -06:00
|
|
|
IDM_FLOAT_REGISTERWINDOW,
|
|
|
|
IDM_FLOAT_BREAKPOINTWINDOW,
|
|
|
|
IDM_FLOAT_MEMORYWINDOW,
|
|
|
|
IDM_FLOAT_JITWINDOW,
|
|
|
|
IDM_FLOAT_SOUNDWINDOW,
|
|
|
|
IDM_FLOAT_VIDEOWINDOW,
|
2010-07-25 21:46:14 -06:00
|
|
|
IDM_FLOAT_CODEWINDOW,
|
|
|
|
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
// Debugger Menu Entries
|
|
|
|
// --------------------
|
|
|
|
// CPU Mode
|
|
|
|
IDM_INTERPRETER,
|
|
|
|
IDM_AUTOMATICSTART, IDM_BOOTTOPAUSE,
|
|
|
|
IDM_JITNOBLOCKCACHE, IDM_JITBLOCKLINKING, // JIT
|
|
|
|
IDM_JITOFF,
|
|
|
|
IDM_JITLSOFF, IDM_JITLSLXZOFF, IDM_JITLSLWZOFF, IDM_JITLSLBZXOFF,
|
|
|
|
IDM_JITLSPOFF, IDM_JITLSFOFF,
|
|
|
|
IDM_JITIOFF,
|
|
|
|
IDM_JITFPOFF,
|
|
|
|
IDM_JITPOFF,
|
|
|
|
IDM_JITSROFF,
|
|
|
|
IDM_FONTPICKER,
|
2010-07-21 20:05:28 -06:00
|
|
|
|
2009-08-24 19:50:27 -06:00
|
|
|
// Symbols
|
|
|
|
IDM_CLEARSYMBOLS,
|
|
|
|
IDM_SCANFUNCTIONS,
|
|
|
|
IDM_LOADMAPFILE,
|
|
|
|
IDM_SAVEMAPFILE, IDM_SAVEMAPFILEWITHCODES,
|
|
|
|
IDM_CREATESIGNATUREFILE,
|
2013-04-07 23:16:50 -06:00
|
|
|
IDM_RENAME_SYMBOLS,
|
2009-08-24 19:50:27 -06:00
|
|
|
IDM_USESIGNATUREFILE,
|
|
|
|
IDM_PATCHHLEFUNCTIONS,
|
|
|
|
|
|
|
|
// JIT
|
|
|
|
IDM_CLEARCODECACHE,
|
|
|
|
IDM_LOGINSTRUCTIONS,
|
|
|
|
IDM_SEARCHINSTRUCTION,
|
|
|
|
|
|
|
|
// Profiler
|
|
|
|
IDM_PROFILEBLOCKS,
|
|
|
|
IDM_WRITEPROFILE,
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
// 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,
|
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,
|
|
|
|
IDM_PERSPECTIVES_ADD_PANE,
|
|
|
|
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
|
|
|
// --------------------------------------------------------------
|
|
|
|
|
2008-12-23 01:47:37 -07:00
|
|
|
IDM_TOGGLE_DUALCORE, // Other
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_TOGGLE_SKIPIDLE,
|
|
|
|
IDM_TOGGLE_TOOLBAR,
|
|
|
|
IDM_TOGGLE_STATUSBAR,
|
|
|
|
IDM_NOTIFYMAPLOADED,
|
2008-12-23 01:47:37 -07:00
|
|
|
IDM_OPENCONTAININGFOLDER,
|
2009-05-02 12:06:42 -06:00
|
|
|
IDM_OPENSAVEFOLDER,
|
2010-01-14 00:19:10 -07:00
|
|
|
IDM_EXPORTSAVE,
|
2010-01-05 00:34:03 -07:00
|
|
|
IDM_IMPORTSAVE,
|
2013-08-18 15:59:05 -06:00
|
|
|
IDM_EXPORTALLSAVE,
|
2008-12-23 01:47:37 -07:00
|
|
|
IDM_SETDEFAULTGCM,
|
|
|
|
IDM_DELETEGCM,
|
|
|
|
IDM_COMPRESSGCM,
|
|
|
|
IDM_MULTICOMPRESSGCM,
|
|
|
|
IDM_MULTIDECOMPRESSGCM,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_UPDATELOGDISPLAY,
|
|
|
|
IDM_UPDATEDISASMDIALOG,
|
|
|
|
IDM_UPDATEGUI,
|
|
|
|
IDM_UPDATESTATUSBAR,
|
2010-04-15 14:58:34 -06:00
|
|
|
IDM_UPDATETITLE,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_UPDATEBREAKPOINTS,
|
2010-11-10 17:55:06 -07:00
|
|
|
IDM_PANIC,
|
2011-01-30 15:02:47 -07:00
|
|
|
IDM_KEYSTATE,
|
2011-01-31 21:35:25 -07:00
|
|
|
IDM_WINDOWSIZEREQUEST,
|
2008-12-07 21:46:09 -07:00
|
|
|
IDM_HOST_MESSAGE,
|
2008-12-23 01:47:37 -07:00
|
|
|
|
2009-01-04 14:53:41 -07:00
|
|
|
IDM_MPANEL, ID_STATUSBAR,
|
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
ID_TOOLBAR = 500,
|
|
|
|
LIST_CTRL = 1000
|
|
|
|
};
|
|
|
|
|
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
|
|
|
),
|
|
|
|
|
2010-08-02 21:20:44 -06:00
|
|
|
extern const wxEventType wxEVT_HOST_COMMAND;
|