COMPASSi/trunk/code/inc/Application/CmdDefine.h

142 lines
8.7 KiB
C
Raw Normal View History

2025-06-25 15:06:42 +08:00
#ifndef CmdDefine_H
#define CmdDefine_H
enum CMD
{
CMD_unknown = -1,
// 1000 存储一级界面对应功能函数
CMD_exit = 1000, //退出
CMD_application_send_qt2web,
CMD_application_open_helppdf, //帮助
CMD_application_open_UIFunction,
CMD_update_3d = 1200,
CMD_update_2d = 1201,
CMD_update_ui_state = 1202, //更新界面状态
CMD_command_stream_modeling = 1300, //命令流建模
CMD_menu_files_new_file = 1500, //新建
CMD_menu_files_open_file, //打开
CMD_menu_files_save, //保存
CMD_menu_files_save_as, //另存为
CMD_menu_files_import_xls = 1510, //导入型值表
CMD_menu_files_import_xls_ok = 1511, //导入型值表_ok
CMD_menu_files_import_iges = 1520, //导入iges 弹出窗口
CMD_menu_files_import_iges_ok, //导入iges 文件
CMD_menu_files_import_dxf = 1530, //导入dxf
CMD_menu_files_import_ship = 1540, //导入总纵强度ship
CMD_menu_files_export_iges = 1550, //导出iges 弹出窗口
CMD_menu_files_export_iges_ok, //导出iges
CMD_menu_files_load_recent_file = 1560, //最近打开的文件
CMD_menu_files_init_recent_file_list, //初始化最近打开的文件列表
CMD_menu_files_init_color_value, //颜色初始化
CMD_menu_ship_engineering_information_open = 1600, //工程信息 打开
CMD_menu_ship_engineering_information_ok , //工程信息 点击ok 下发保存
CMD_menu_ship_main_elements_open, //主要要素
CMD_menu_ship_main_elements_ok, //主要要素
CMD_menu_ship_hull_scale_open, //船体标尺 打开
CMD_menu_ship_hull_scale_ok, //船体标尺 点击ok 下发保存
CMD_menu_tool_option = 1700, //选项
CMD_menu_tool_option_ok,
CMD_menu_tool_profile_calculator, //型材计算器
CMD_menu_tool_inclined_rod_calculator, //斜杆计算器
CMD_menu_tool_pillar_calculator, //支柱计算器
CMD_menu_tool_scientific_calculator, //科学计算器
CMD_log_window_out_log = 1800, //log 窗口输出log
CMD_tool_snap_start_point = 1900, //捕获起点
CMD_tool_snap_end_point, //捕获终点
CMD_tool_snap_line_point, //捕获线上点
CMD_tool_snap_any_point, //捕获任意点
CMD_tool_snap_cross_point, //捕获交叉点
CMD_tool_create_point, //创建点
CMD_tool_create_line, //创建线
CMD_tool_create_surface, //创建面
CMD_tool_create_solid, //创建体
CMD_value_from, //obj 设置显隐
CMD_tool_create_mainbody, //创建主船体
CMD_tool_create_unit, //创建单元体
CMD_tool_create_space, //创建舱室
CMD_tool_create_appendage, //创建附体
CMD_tool_copy, //复制
CMD_tool_trim, //修剪
CMD_tool_mirror, //镜像
CMD_tool_intersection, //交集
CMD_tool_join, //连接
CMD_tool_delete, //删除
CMD_tool_undo, //撤销
CMD_tool_redo, //重做
CMD_hull_show_tree = 2000, //船壳树(几何树默认读入)
CMD_structure_show_tree, //结构树
CMD_analysis_show_tree, //分析树
CMD_result_show_tree, //结果树
CMD_tool_show_obj_command =2100, //显示命令 命令
CMD_tool_show_pt_curve_xyz, //显示 点、线 坐标 XYZ
CMD_tool_show_curve_rib_crd, //显示曲线肋位坐标 #
CMD_tool_show_curve_station_points_crd, //显示曲线站位点坐标 $
CMD_tool_find_and_locate_obj, //查找并定位图元
CMD_tool_find_obj_crd, //查询坐标
CMD_tool_find_obj_V, //查询体积
//stab
CMD_stab_create_cal = 3000, //创建稳性计算
CMD_stab_cal, //稳性计算
CMD_stab_delete_cal, //删除稳性计算
CMD_stab_model_editor_hydro_static, //稳性计算模型编辑器:静水力
CMD_stab_model_editor_tank_cap, //稳性计算模型编辑器:舱容
CMD_stab_model_editor_intact, //稳性计算模型编辑器:完整稳性
CMD_stab_model_editor_allow_kg, //稳性计算模型编辑器:许用重心高度
CMD_stab_model_editor_damage, //稳性计算模型编辑器:破损稳性
CMD_stab_model_editor_damage_prob, //稳性计算模型编辑器:概率破损
CMD_stab_model_editor_inclining, //稳性计算模型编辑器:倾斜试验
CMD_stab_model_editor_save, //稳性计算模型数据保存(到内存)
CMD_stab_model_editor_check, //稳性计算模型数据检查
//structure
CMD_structure_create_section = 3100, //创建横剖面
CMD_structure_create_cal, //创建结构计算
CMD_structure_cal, //结构计算
CMD_structure_delete_cal, //删除结构计算
CMD_structure_section_editor, //横剖面编辑器
CMD_structure_scantlings_editor, //结构-规范校核编辑器
CMD_structure_strength_editor, //结构-总纵强度编辑器
CMD_structure_twbg_editor, //结构-总纵强度-船体梁横剖面编辑器
CMD_structure_patp_editor, //结构-总纵强度-船体有限梁编辑器
CMD_structure_zcmt_editor, //结构-总纵强度-船体梁外载编辑器
CMD_structure_cprt_editor, //结构-总纵强度-总纵强度校核编辑器
//certification
CMD_certify_create_cal = 3200, //创建发证计算
CMD_certify_cal, //发证计算
CMD_certify_delete_cal, //删除发证计算
CMD_certify_Tonnage, //发证吨位计算编辑器
CMD_certify_check_Tonnage, //发证吨位计算编辑器数检
CMD_certify_save_Tonnage, //发证吨位计算编辑器保存
CMD_certify_OK_Tonnage, //发证吨位计算编辑器确认
CMD_certify_EEDI, //发证EEDI编辑器
CMD_certify_check_EEDI, //发证EEDI编辑器数检
CMD_certify_save_EEDI, //发证EEDI编辑器保存
CMD_certify_OK_EEDI //发证EEDI编辑器确认
};
#endif