
#ifndef _RESOURCE_HPP_
#define _RESOURCE_HPP_

#include "../Wisp/wispmenu.hpp"
#include "../Wisp/wisptoolbar.hpp"

enum
{
	CMD_ID_SYSEXPLORER = 1,
	CMD_ID_CONSOLE = 2,
//DV 3,
//PEH 4, HWPROP
//PER 5,
//PEI 6,
//PEE 7,
//CBP 8,
//DBP 9,

	CMD_ID_TRACE = 0xB,
	CMD_ID_CALL_STACK = 0xC,
	CMD_ID_CMTLIST = 0xD,
	CMD_ID_MODULES = 0xE, //HWND
	CMD_ID_THREADS = 0xF,
	CMD_ID_SEH = 0x10,

	CMD_ID_SOURCE_MAIN_SPLIT = 0x12,
	CMD_ID_SOURCE_VIEW_PLIT = 0x13,
	CMD_ID_SYSTEM_MAIN_SPLIT = 0x14,
	CMD_ID_SYSTEM_VIEW_SPLIT = 0x15,
	CMD_ID_SYSTEM_MONIT_SPLIT = 0x16,
	CMD_ID_MULTICODE = 0x17,
	CMD_ID_MULTIDATA = 0x18,
	CMD_ID_TERMWND = 0x19,
	CMD_ID_GENE_REG = 0x1A,
	CMD_ID_FPU_REG = 0x1B,
	CMD_ID_SSE_REG = 0x1C,

	CMD_ID_CV0 = 0xF5,
	CMD_ID_CV1 = 0xF6,
	CMD_ID_CV2 = 0xF7,
	CMD_ID_CV3 = 0xF8,
	CMD_ID_CV4 = 0xF9,
	CMD_ID_CV5 = 0xFA,
	CMD_ID_CV6 = 0xFB,
	CMD_ID_CV7 = 0xFC,
	CMD_ID_CV8 = 0xFD,

	CMD_ID_SOURCE = 0xCE,
	CMD_ID_SDS = 0xD0,
	CMD_ID_WATCH = 0xD1,

	CMD_ID_DV0 = 0x100,
	CMD_ID_DV1 = 0x101,
	CMD_ID_DV2 = 0x102,
	CMD_ID_DV3 = 0x103,
	CMD_ID_DV4 = 0x104,
	CMD_ID_DV5 = 0x105,
	CMD_ID_DV6 = 0x106,
	CMD_ID_DV7 = 0x107,
	CMD_ID_DV8 = 0x108,

//PEH 0x101
//PEH 0x102
//PEI 0x103
//PEI 0x104
//PED 0x105,

	//0x259,
	//0x25A,
//
	EVENT_ID_OPEN = 0x21,
	EVENT_ID_CLOSE = 0x22,
	EVENT_ID_SAVECMT = 0x23,
	EVENT_ID_LOADCMT = 0x24,
	EVENT_ID_LOADSYM = 0x25,
//0x26,
	EVENT_ID_NEXTPOS = 0x27,
	EVENT_ID_PREVPOS = 0x28,
	EVENT_ID_SAVEPOS = 0x29,
	EVENT_ID_CLRPOS = 0x2A,
	EVENT_ID_SEARCH_TRANSFER_REF = 0x2B,
	EVENT_ID_SEARCH_OPERAND_REF = 0x2C,
	EVENT_ID_DBG_RESET = 0x2D,
	EVENT_ID_DBG_STEP = 0x2E,
	EVENT_ID_DBG_PROCEED = 0x2F,
	EVENT_ID_DBG_STEPB = 0x30,
	EVENT_ID_DBG_RETURN = 0x31,
	EVENT_ID_GO = 0x32,
	EVENT_ID_BREAK_POINT = 0x33,
	EVENT_ID_DBG_LIST = 0x34,
	EVENT_ID_CONFIG_OPTION = 0x35,
	EVENT_ID_PLUGINS = 0x36,
	EVENT_ID_GENE_REG = 0x37,
	EVENT_ID_FPU_REG = 0x38,
	EVENT_ID_SSE_REG = 0x39,
	EVENT_ID_SDS_FOCUS = 0x3A,
//0x3B,
	EVENT_ID_WATCH_LIST = 0x3C,
	EVENT_ID_SRC_CONSOLE = 0x3D,
	EVENT_ID_STACK_WATCH_LIST = 0x3E,
	EVENT_ID_IDT = 0x3F,
	EVENT_ID_GDT = 0x40,
	EVENT_ID_LDT = 0x41,
	EVENT_ID_PROCESS = 0x42,
	EVENT_ID_THREADS = 0x43,
	EVENT_ID_MODULES = 0x44,
	EVENT_ID_FUNCTIONS = 0x45,
	EVENT_ID_HWND = 0x46,
	EVENT_ID_RUNTRACE = 0x47,
	EVENT_ID_MEMSEARCH = 0x48,
	EVENT_ID_CMTLIST = 0x49,
	EVENT_ID_PAGEMAP = 0x4A,
	EVENT_ID_REG_HELP = 0x4B,
	EVENT_ID_ABOUT = 0x4C,
	EVENT_ID_CHECK_NEW_VER = 0x4D,
	EVENT_ID_OBJDIR = 0x4E,
//OLD SYSER 0x4F,
	EVENT_ID_CALC = 0x50,
	EVENT_ID_CALLSTACK = 0x51,
	EVENT_ID_REGVIEW = 0x52,
	EVENT_ID_DATAVIEW = 0x53,
	EVENT_ID_SOFTKB = 0x54,
	EVENT_ID_HOTKEY = 0x55,
	EVENT_ID_PE_EXPLORER = 0x56,
	EVENT_ID_IBM = 0x57,
	EVENT_ID_EBCDIC = 0x58,
	EVENT_ID_ANSI = 0x59,
//? 0x5A,
//? 0x5B,
	EVENT_ID_EDIT_UNDO = 0x5C,
	EVENT_ID_EDIT_REDO = 0x5D,
	EVENT_ID_EDIT_CUT = 0x5E,
	EVENT_ID_EDIT_COPY = 0x5F,
	EVENT_ID_EDIT_PASTE = 0x60,
	EVENT_ID_EDIT_GOTO = 0x61,
	EVENT_ID_EDIT_FIND = 0x62,
	EVENT_ID_EDIT_REPLACE = 0x63,
	EVENT_ID_TOGGLE_BM = 0x64,
	EVENT_ID_NEXT_BM = 0x65,
	EVENT_ID_PREV_BM = 0x66,
	EVENT_ID_CLEAR_BM = 0x67,
	EVENT_ID_SEH = 0x68,
	EVENT_ID_MENU_FILE = 0x69,
	EVENT_ID_MENU_DEBUG = 0x6A,
	EVENT_ID_MENU_MONITOR = 0x6B,
	EVENT_ID_MENU_VIEW = 0x6C,
	EVENT_ID_MENU_INFO = 0x6D,
	EVENT_ID_MENU_OPTION = 0x6E,
	EVENT_ID_MENU_TOOLS = 0x6F,
	EVENT_ID_MENU_HELP = 0x70,
	EVENT_ID_FILE0 = 0x71,
	EVENT_ID_FILE1 = 0x72,
	EVENT_ID_FILE2 = 0x73,
	EVENT_ID_FILE3 = 0x74,
	EVENT_ID_FILE4 = 0x75,
	EVENT_ID_FILE5 = 0x76,
	EVENT_ID_FILE6 = 0x77,
	EVENT_ID_FILE7 = 0x78,
	EVENT_ID_FILE8 = 0x79,
	EVENT_ID_ACTIVE_MODULE = 0x7A,
	EVENT_ID_INSTRINFO = 0x7B,
	EVENT_ID_CAX_DATA = 0x7C,
	EVENT_ID_CBX_DATA = 0x7D,
	EVENT_ID_CCX_DATA = 0x7E,
	EVENT_ID_CDX_DATA = 0x7F,
	EVENT_ID_CSP_DATA = 0x80,
	EVENT_ID_CBP_DATA = 0x81,
	EVENT_ID_CSI_DATA = 0x82,
	EVENT_ID_CDI_DATA = 0x83,
	EVENT_ID_R8_DATA = 0x300,
	EVENT_ID_R9_DATA = 0x301,
	EVENT_ID_R10_DATA = 0x302,
	EVENT_ID_R11_DATA = 0x303,
	EVENT_ID_R12_DATA = 0x304,
	EVENT_ID_R13_DATA = 0x305,
	EVENT_ID_R14_DATA = 0x306,
	EVENT_ID_R15_DATA = 0x307,
	EVENT_ID_CIP_DATA = 0x84,
	EVENT_ID_CAX_CODE = 0x85,
	EVENT_ID_CBX_CODE = 0x86,
	EVENT_ID_CCX_CODE = 0x87,
	EVENT_ID_CDX_CODE = 0x88,
	EVENT_ID_CSP_CODE = 0x89,
	EVENT_ID_CBP_CODE = 0x8A,
	EVENT_ID_CSI_CODE = 0x8B,
	EVENT_ID_CDI_CODE = 0x8C,
	EVENT_ID_R8_CODE = 0x400,
	EVENT_ID_R9_CODE = 0x401,
	EVENT_ID_R10_CODE = 0x402,
	EVENT_ID_R11_CODE = 0x403,
	EVENT_ID_R12_CODE = 0x404,
	EVENT_ID_R13_CODE = 0x405,
	EVENT_ID_R14_CODE = 0x406,
	EVENT_ID_R15_CODE = 0x407,
	EVENT_ID_CIP_CODE = 0x8D,
	EVENT_ID_SHOW_CODE = 0x8E,
	EVENT_ID_SHOW_CODE_AT = 0x8F,
	EVENT_ID_SHOW_CSP_ADDR = 0x90,
	EVENT_ID_SHOW_CBP_ADDR = 0x91,
	EVENT_ID_DATA_FOCUS = 0x92,
	EVENT_ID_SHOW_DATA = 0x93,
	EVENT_ID_SHOW_DATA_AT = 0x94,
	EVENT_ID_NEW_DATA = 0x95,
	EVENT_ID_DISASM = 0x96,
	EVENT_ID_NEW_CODE = 0x97,
	EVENT_ID_DASM_PHYS_ADDR = 0x98,
	EVENT_ID_SHOW_PHYS_ADDR = 0x99,
	EVENT_ID_SHOW_OP = 0x9A,
	EVENT_ID_ATTACH_TYPE = 0x9B,
	EVENT_ID_SHOW_OFFSET = 0x9C,
	EVENT_ID_DATA_WIDTH = 0x700, //+++
	EVENT_ID_FIND_FORM = 0x9D,
//0x9E, ???
	EVENT_ID_DV_ADDR_MODE = 0x9F,
	EVENT_ID_DV0 = 0xA0,
	EVENT_ID_DV1 = 0xA1,
	EVENT_ID_DV2 = 0xA2,
	EVENT_ID_DV3 = 0xA3,
	EVENT_ID_DV4 = 0xA4,
	EVENT_ID_DV5 = 0xA5,
	EVENT_ID_DV6 = 0xA6,
	EVENT_ID_DV7 = 0xA7,
	EVENT_ID_DV8 = 0xA8,
	EVENT_ID_OP_BFLIP = 0xA9,
	EVENT_ID_OP_BINV = 0xAA,
	EVENT_ID_OP_SHL = 0xAB,
	EVENT_ID_OP_SHR = 0xAC,
	EVENT_ID_OP_ROL = 0xAD,
	EVENT_ID_OP_ROR = 0xAE,
	EVENT_ID_OP_BSHL = 0xAF,
	EVENT_ID_OP_BSHR = 0xB0,
	EVENT_ID_OP_XOR = 0xB1,
	EVENT_ID_OP_OR = 0xB2,
	EVENT_ID_OP_AND = 0xB3,
	EVENT_ID_OP_SIG = 0xB4,
	EVENT_ID_OP_ADD = 0xB5,
	EVENT_ID_OP_SUB = 0xB6,
	EVENT_ID_OP_MUL = 0xB7,
	EVENT_ID_OP_DIV = 0xB8,
	EVENT_ID_OP_MOD = 0xB9,
	EVENT_ID_OP_UPR = 0xBA,
	EVENT_ID_OP_LWR = 0xBB,
	EVENT_ID_OP_INV = 0xBC,
	EVENT_ID_GOTO_KTHREAD = 0xBD,
	EVENT_ID_GOTO_KPROCESS = 0xBE,
	EVENT_ID_GOTO_THREAD_START_ADDR = 0xBF,
	EVENT_ID_GOTO_THREAD_EIP = 0xC0,
	EVENT_ID_BP_THREAD = 0xC1,
	EVENT_ID_BP_PROCESS = 0xC2,
	EVENT_ID_CODE_FOCUS = 0xC3,
	EVENT_ID_FOLLOW_CIP_AUTO = 0xC4,
	EVENT_ID_FOLLOW_CIP_SYSEXPLORER = 0xC5,
	EVENT_ID_FOLLOW_CIP_SRCEXPLORER = 0xC6,
	EVENT_ID_IDENTIFY_FUNCTION = 0xC7, //??? TODO CHECK
	EVENT_ID_DV_SHOW_DATA_AT = 0xC8,
	EVENT_ID_CV_OPEN = 0xC9,
	EVENT_ID_DV_SHOW_DATA_AT_REL = 0xCA,
	EVENT_ID_COPYVAL = 0xCB,
	EVENT_ID_COPYADDR = 0xCC,
	EVENT_ID_COPYSEL = 0xCD,
	EVENT_ID_COPYSEL_CLANG = 0xCE,
	EVENT_ID_COPYSEL_SPACE = 0xCF,
	EVENT_ID_FLOAT_MODE = 0xD0,
	EVENT_ID_CV_ADDR_MODE = 0xD1,
	EVENT_ID_CV_OFFSET_MODE = 0xD2,
	EVENT_ID_CV_SWITCH_SYM = 0xD3,
	EVENT_ID_CV_FULL_SYM = 0xD4,
	EVENT_ID_REL_CSP = 0xD5,
	EVENT_ID_REL_CBP = 0xD6,
	EVENT_ID_LOW_HIGH_ADDR = 0xD7,
	EVENT_ID_REL_CIP = 0xD8,
	EVENT_ID_EDIT_CODE = 0xD9,
	EVENT_ID_EDIT_CMT = 0xDA,
	EVENT_ID_STRREF = 0xDB,
	EVENT_ID_STRFIND = 0xDC,
	EVENT_ID_CV_NEXT_CIP = 0xDD,
	EVENT_ID_CV_PREV_CIP = 0xDE,
	EVENT_ID_CV_SHOW_AT = 0xDF,
	EVENT_ID_CV_NEXT = 0xE0,
	EVENT_ID_CV_PREV = 0xE1,
	EVENT_ID_CV0 = 0xE2,
	EVENT_ID_CV1 = 0xE3,
	EVENT_ID_CV2 = 0xE4,
	EVENT_ID_CV3 = 0xE5,
	EVENT_ID_CV4 = 0xE6,
	EVENT_ID_CV5 = 0xE7,
	EVENT_ID_CV6 = 0xE8,
	EVENT_ID_CV7 = 0xE9,
	EVENT_ID_CV8 = 0xEA,
	EVENT_ID_HISTORY_NEXT = 0xEB,
	EVENT_ID_HISTORY_PREV = 0xEC,
	EVENT_ID_SEARCH_AGAIN = 0xED,
	EVENT_ID_SEARCH = 0xEE,
//0xEF, EVENT_ID_HEX_WATCH = 0xEF,
	EVENT_ID_DEL_WATCH = 0xF0,
	EVENT_ID_WATCH_ADD = 0xF1,
	EVENT_ID_GOTO_HERE = 0xF2, //EVENT_ID_GOTO_MODULE_BASE
//0xF3,				   //EVENT_ID_ANALYZE_FUNCTION
	EVENT_ID_WATCH_DEL = 0xF4, //UNLOAD


	EVENT_ID_SOURCECODEWND_ADDWATCH = 0x114,
	EVENT_ID_SOURCECODEWND_EXPANSION = 0x115,
	EVENT_ID_SOURCECODEWND_COLLAPSE = 0x116,
	EVENT_ID_SOURCECODEWND_GOTOLINE = 0x117,
	EVENT_ID_INSREMBP = 0x118, //TOGGLE_BP
	EVENT_ID_ENDISMBP = 0x119, //SWITCH_BP
	EVENT_ID_BP_ENABLE_ALL = 0x11A,
	EVENT_ID_BP_REMOVE_ALL = 0x11B,
	EVENT_ID_BP_DISABLE_ALL = 0x11C,
//0x11D,
//0x11E,
	EVENT_ID_SHOW_HERE = 0x11F,
};

//
extern WISP_MENU_GROUP_ITEM SystemExplorerMainMenu[];
extern WISP_TOOLBAR_RES_ITEM SystemExplorerToolbar[];

//
extern WISP_MENU_GROUP_ITEM SourceDebugMainMenu[];
extern WISP_TOOLBAR_RES_ITEM SourceDebugToolbar[];

#endif