wordrec/djmenus.h File Reference

Go to the source code of this file.

Functions


Function Documentation

void dj_cleanup (  ) 

Call at end of program to clean up.

Note:
File: djmenus.h (Formerly djmenus.h)
Create and initialize menus
Author:
Mark Seaman, OCR Technology
Date:
Mon Sep 24 09:34:21 1990 Thu Apr 18 14:56:19 1991 (Dan Johnson) danj
 * (c) Copyright 1990, Hewlett-Packard Company.
 ** Licensed under the Apache License, Version 2.0 (the "License");
 ** you may not use this file except in compliance with the License.
 ** You may obtain a copy of the License at
 ** http://www.apache.org/licenses/LICENSE-2.0
 ** Unless required by applicable law or agreed to in writing, software
 ** distributed under the License is distributed on an "AS IS" BASIS,
 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ** See the License for the specific language governing permissions and
 ** limitations under the License.

Definition at line 52 of file djmenus.cpp.

References EndAdaptiveClassifier().

Referenced by program_editdown().

00052                   { 
00053   EndAdaptiveClassifier(); 
00054 }

void dj_statistics ( FILE *  File  ) 

Call at end of program to print out statistics gathered.

Definition at line 60 of file djmenus.cpp.

References PrintAdaptiveStatistics(), and PrintBadWords().

Referenced by save_summary().

00060                                { 
00061   PrintAdaptiveStatistics(File); 
00062   PrintBadWords(File); 
00063 }

void init_dj_debug (  ) 

Initialize the traps for handling the splitter debug stuff.

Definition at line 69 of file djmenus.cpp.

References AddSignalMenuItem(), handle_menu_16(), handle_menu_17(), handle_menu_18(), handle_menu_19(), InitAdaptiveClassifierVars(), InitIntegerMatcherVars(), InitIntProtoVars(), InitMFOutlineVars(), InitNormProtoVars(), InitSpeckleVars(), and InitStopperVars().

Referenced by program_editup().

00069                      { 
00070   static int first_time = 1;
00071 
00072   if (first_time) {
00073     first_time = 0;
00074     /* Set up the interrupts */
00075     #ifndef GRAPHICS_DISABLED
00076     #ifndef SECURE_NAMES
00077     AddSignalMenuItem (SIGINT, 16, "Int Matcher Menu      ...",
00078       handle_menu_16);
00079     AddSignalMenuItem (SIGINT, 17, "Stopping Criterion    ...",
00080       handle_menu_17);
00081     AddSignalMenuItem (SIGINT, 18, "Adaptive Matcher      ...",
00082       handle_menu_18);
00083     AddSignalMenuItem (SIGINT, 19, "Word Spacing          ...",
00084       handle_menu_19);
00085     #endif
00086     #endif
00087     InitAdaptiveClassifierVars(); 
00088     InitMFOutlineVars(); 
00089     InitNormProtoVars(); 
00090     InitIntProtoVars(); 
00091     InitIntegerMatcherVars(); 
00092     InitSpeckleVars(); 
00093     InitStopperVars(); 
00094   }
00095 }


Generated on Wed Feb 28 19:49:28 2007 for Tesseract by  doxygen 1.5.1