Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

cmds.h

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      cmds.h
00004  *
00005  *      Copyright (C) 1999-2002 Stefan Weyergraf (stefan@weyergraf.de)
00006  *
00007  *      This program is free software; you can redistribute it and/or modify
00008  *      it under the terms of the GNU General Public License version 2 as
00009  *      published by the Free Software Foundation.
00010  *
00011  *      This program is distributed in the hope that it will be useful,
00012  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *      GNU General Public License for more details.
00015  *
00016  *      You should have received a copy of the GNU General Public License
00017  *      along with this program; if not, write to the Free Software
00018  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #ifndef __CMDS_H__
00022 #define __CMDS_H__
00023 
00024 #include "global.h"
00025 
00026 #define CMD     dword
00027 
00028 #define msg_command                                     0x80000000
00029 #define HT_COMMAND(c)                           (msg_command+(c))
00030 
00031 #define cmd_quit                                        HT_COMMAND(100)
00032 #define cmd_about                                       HT_COMMAND(101)
00033 
00034 #define cmd_file_open                           HT_COMMAND(102)
00035 #define cmd_file_new                            HT_COMMAND(103)
00036 #define cmd_file_save                           HT_COMMAND(104)
00037 #define cmd_file_saveas                         HT_COMMAND(105)
00038 #define cmd_file_exec_cmd                       HT_COMMAND(106)
00039 
00040 #define cmd_edit_cut                            HT_COMMAND(120)
00041 #define cmd_edit_delete                         HT_COMMAND(121)
00042 #define cmd_edit_copy                           HT_COMMAND(122)
00043 #define cmd_edit_paste                          HT_COMMAND(123)
00044 #define cmd_edit_show_clipboard         HT_COMMAND(124)
00045 #define cmd_edit_clear_clipboard                HT_COMMAND(125)
00046 #define cmd_edit_copy_from_file         HT_COMMAND(126)
00047 #define cmd_edit_paste_into_file                HT_COMMAND(127)
00048 #define cmd_edit_copy_native                    HT_COMMAND(128)
00049 #define cmd_edit_paste_native                   HT_COMMAND(129)
00050 
00051 #define cmd_window_resizemove                   HT_COMMAND(140)
00052 #define cmd_window_switch_resizemove    HT_COMMAND(141)
00053 #define cmd_window_close                                HT_COMMAND(142)
00054 
00055 #define cmd_project_open                                HT_COMMAND(160)
00056 #define cmd_project_close                       HT_COMMAND(161)
00057 #define cmd_project_add_item                    HT_COMMAND(162)
00058 #define cmd_project_remove_item         HT_COMMAND(163)
00059 #define cmd_project_edit_item                   HT_COMMAND(164)
00060 
00061 #define cmd_popup_dialog_eval                   HT_COMMAND(180)
00062 #define cmd_popup_dialog_view_list              HT_COMMAND(181)
00063 #define cmd_popup_dialog_window_list    HT_COMMAND(182)
00064 #define cmd_popup_window_log                    HT_COMMAND(183)
00065 #define cmd_popup_window_help                   HT_COMMAND(184)
00066 #define cmd_popup_window_options                HT_COMMAND(185)
00067 #define cmd_popup_window_project                HT_COMMAND(186)
00068 #define cmd_popup_dialog_info_loader    HT_COMMAND(187)
00069 
00070 #define cmd_vstate_restore                      HT_COMMAND(190)
00071 
00072 #define cmd_analyser_save                       HT_COMMAND(200)
00073 
00074 /*
00075  *      htanaly  500- 999
00076  */
00077 
00078 /*
00079  *      htformat 1000- 1499
00080  */
00081  
00082 #define cmd_view_mode                           HT_COMMAND(1000)
00083 #define cmd_edit_mode                           HT_COMMAND(1001)
00084 #define cmd_view_mode_i                         HT_COMMAND(1002)
00085 #define cmd_edit_mode_i                         HT_COMMAND(1003)
00086 #define cmd_file_goto                           HT_COMMAND(1004)
00087 #define cmd_file_search                         HT_COMMAND(1005)
00088 #define cmd_file_replace                                HT_COMMAND(1006)
00089 #define cmd_file_blockop                                HT_COMMAND(1007)
00090 #define cmd_file_resize                         HT_COMMAND(1008)
00091 #define cmd_file_truncate                       HT_COMMAND(1009)
00092 #define cmd_file_extend                         HT_COMMAND(1010)
00093 
00094 /*
00095  *      hex 1500 - 1999
00096  */
00097  
00098 #define cmd_hex_entropy                         HT_COMMAND(1500)
00099 #define cmd_hex_display_bytes                   HT_COMMAND(1501)
00100 
00101 /*
00102  *      disasm 2000 - 2499
00103  */
00104  
00105 #define cmd_disasm_call_assembler               HT_COMMAND(2000)
00106 #define cmd_disasm_toggle1632                   HT_COMMAND(2001)
00107 
00108 /*typedef bool (*cmd_handler)(htmsg_param *data1, htmsg_param *data2);
00109 
00110 struct cmd_rec {
00111         CMD cmd;
00112         bool enabled;
00113         bool dynamic;
00114         cmd_handler handler;
00115 };
00116 
00117 struct cmd_name {
00118         CMD cmd;
00119         char *name;
00120 };
00121 
00122 extern cmd_name cmd_names[];*/
00123 
00124 #endif /* __CMDS_H__ */

Generated on Fri May 7 21:15:29 2004 by doxygen 1.3.5