1 /*
2  *	HT Editor
3  *	cmds.h
4  *
5  *	Copyright (C) 1999-2002 Stefan Weyergraf
6  *
7  *	This program is free software; you can redistribute it and/or modify
8  *	it under the terms of the GNU General Public License version 2 as
9  *	published by the Free Software Foundation.
10  *
11  *	This program is distributed in the hope that it will be useful,
12  *	but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *	GNU General Public License for more details.
15  *
16  *	You should have received a copy of the GNU General Public License
17  *	along with this program; if not, write to the Free Software
18  *	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  */
20 
21 #ifndef __CMDS_H__
22 #define __CMDS_H__
23 
24 #include "io/types.h"
25 
26 #define CMD	uint32
27 
28 #define msg_command				0x80000000
29 #define HT_COMMAND(c)				(msg_command+(c))
30 
31 #define cmd_quit				HT_COMMAND(100)
32 #define cmd_about				HT_COMMAND(101)
33 
34 #define cmd_file_open				HT_COMMAND(102)
35 #define cmd_file_new				HT_COMMAND(103)
36 #define cmd_file_save				HT_COMMAND(104)
37 #define cmd_file_saveas				HT_COMMAND(105)
38 #define cmd_file_exec_cmd			HT_COMMAND(106)
39 
40 #define cmd_edit_cut				HT_COMMAND(120)
41 #define cmd_edit_delete				HT_COMMAND(121)
42 #define cmd_edit_copy				HT_COMMAND(122)
43 #define cmd_edit_paste				HT_COMMAND(123)
44 #define cmd_edit_show_clipboard			HT_COMMAND(124)
45 #define cmd_edit_clear_clipboard		HT_COMMAND(125)
46 #define cmd_edit_copy_from_file			HT_COMMAND(126)
47 #define cmd_edit_paste_into_file		HT_COMMAND(127)
48 #define cmd_edit_copy_native			HT_COMMAND(128)
49 #define cmd_edit_paste_native			HT_COMMAND(129)
50 
51 #define cmd_window_resizemove			HT_COMMAND(140)
52 #define cmd_window_switch_resizemove		HT_COMMAND(141)
53 #define cmd_window_close			HT_COMMAND(142)
54 #define cmd_window_tile_vertical		HT_COMMAND(143)
55 #define cmd_window_tile_horizontal		HT_COMMAND(144)
56 
57 #define cmd_project_open			HT_COMMAND(160)
58 #define cmd_project_close			HT_COMMAND(161)
59 #define cmd_project_add_item			HT_COMMAND(162)
60 #define cmd_project_remove_item			HT_COMMAND(163)
61 #define cmd_project_edit_item			HT_COMMAND(164)
62 
63 #define cmd_popup_dialog_eval			HT_COMMAND(180)
64 #define cmd_popup_dialog_view_list		HT_COMMAND(181)
65 #define cmd_popup_dialog_window_list		HT_COMMAND(182)
66 #define cmd_popup_window_log			HT_COMMAND(183)
67 #define cmd_popup_window_help			HT_COMMAND(184)
68 #define cmd_popup_window_options		HT_COMMAND(185)
69 #define cmd_popup_window_project		HT_COMMAND(186)
70 #define cmd_popup_dialog_info_loader		HT_COMMAND(187)
71 
72 #define cmd_vstate_restore			HT_COMMAND(190)
73 
74 #define cmd_analyser_save			HT_COMMAND(200)
75 
76 /*
77  *	htanaly  500- 999
78  */
79 
80 /*
81  *	htformat 1000- 1499
82  */
83 
84 #define cmd_view_mode				HT_COMMAND(1000)
85 #define cmd_edit_mode				HT_COMMAND(1001)
86 #define cmd_view_mode_i				HT_COMMAND(1002)
87 #define cmd_edit_mode_i				HT_COMMAND(1003)
88 #define cmd_file_goto				HT_COMMAND(1004)
89 #define cmd_file_search				HT_COMMAND(1005)
90 #define cmd_file_replace			HT_COMMAND(1006)
91 #define cmd_file_blockop			HT_COMMAND(1007)
92 #define cmd_file_resize				HT_COMMAND(1008)
93 #define cmd_file_truncate			HT_COMMAND(1009)
94 #define cmd_file_extend				HT_COMMAND(1010)
95 
96 /*
97  *	hex 1500 - 1999
98  */
99 
100 #define cmd_hex_entropy				HT_COMMAND(1500)
101 #define cmd_hex_display_bytes			HT_COMMAND(1501)
102 #define cmd_hex_display_disp			HT_COMMAND(1502)
103 
104 /*
105  *	disasm 2000 - 2499
106  */
107 
108 #define cmd_disasm_call_assembler		HT_COMMAND(2000)
109 #define cmd_disasm_toggle1632			HT_COMMAND(2001)
110 
111 #endif /* __CMDS_H__ */
112