00001
00020
00021
00022
00023 #include <stdio.h>
00024 #include <signal.h>
00025
00026 #include "msmenus.h"
00027 #include "debug.h"
00028 #include "sigmenu.h"
00029
00030 #include "plotseg.h"
00031 #include "baseline.h"
00032 #include "bestfirst.h"
00033 #include "split.h"
00034 #include "associate.h"
00035 #include "chop.h"
00036 #include "tordvars.h"
00037 #include "permute.h"
00038
00039
00040
00041
00042 #ifndef GRAPHICS_DISABLED
00043 int handle_menu_3();
00044 int handle_menu_4();
00045 int handle_menu_5();
00046 int handle_menu_6();
00047 int handle_menu_7();
00048 int handle_menu_8();
00049 int handle_menu_9();
00050 #endif
00051
00052
00053
00054
00055
00059 void init_ms_debug() {
00060 static int first_time = 1;
00061
00062 if (first_time) {
00063 first_time = 0;
00064
00065 #ifndef GRAPHICS_DISABLED
00066 #ifndef SECURE_NAMES
00067 AddSignalMenuItem (SIGINT, 3, "Chopper", handle_menu_3);
00068 AddSignalMenuItem (SIGINT, 4, "Text Order", handle_menu_4);
00069 AddSignalMenuItem (SIGINT, 5, "Graphics", handle_menu_5);
00070 AddSignalMenuItem (SIGINT, 6, "Text Display", handle_menu_6);
00071 AddSignalMenuItem (SIGINT, 7, "Similarity Matcher", handle_menu_7);
00072 AddSignalMenuItem (SIGINT, 8, "Context", handle_menu_8);
00073 AddSignalMenuItem (SIGINT, 9, "Joiner", handle_menu_9);
00074 #endif
00075
00076 init_plotseg();
00077 init_render_vars();
00078 #endif
00079
00080 init_baseline();
00081 init_bestfirst_vars();
00082 init_splitter_vars();
00083 init_associate_vars();
00084 init_chop();
00085
00086 init_textord_vars();
00087 init_permute();
00088 }
00089 }
00090
00091
00092
00096 #ifndef GRAPHICS_DISABLED
00097 handle_menu (3, handle_menu_3)
00098 handle_menu (4, handle_menu_4)
00099 handle_menu (5, handle_menu_5)
00100 handle_menu (6, handle_menu_6)
00101 handle_menu (7, handle_menu_7)
00102 handle_menu (8, handle_menu_8)
00103 handle_menu (9, handle_menu_9)
00104 #endif