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