reference/ocr-simple/tcl_interface.h
changeset 0 6b8091ca909a
equal deleted inserted replaced
-1:000000000000 0:6b8091ca909a
       
     1 #ifndef TCL_INTERFACE
       
     2 #define TCL_INTERFACE 1
       
     3 #include <stdarg.h>
       
     4 #include <stdio.h>
       
     5 extern double SCALE_FACTOR;
       
     6 int mispelled(char* s);
       
     7 int error(char* s);
       
     8 int docommand(char* fmt, ...);
       
     9 int set_status(char* fmt, ...);
       
    10 int initialize_interpreter();
       
    11 int load_user_interface();
       
    12 int initialize_command_procs();
       
    13 int initialize_link_vars();
       
    14 void update();
       
    15 void scale(int& coordinate);
       
    16 #endif
       
    17 /*
       
    18 These commands can be called from Tcl
       
    19 (things in quotes are the tcl names, others are c++ functions)
       
    20 
       
    21    "page_open", page_open_cmd,  
       
    22    "get_page_height", get_page_height_cmd,  
       
    23    "get_page_width", get_page_width_cmd,  
       
    24 
       
    25    "FIND_LINES_AND_RECOGNIZE", recognize_cmd,  
       
    26    "GET_SKEW", get_skew_cmd,  
       
    27    "DESKEW", deskew_cmd,  
       
    28    "DISPLAY_INTERVALS", display_intervals_cmd,  
       
    29    "QUIT", quit_cmd,  
       
    30    "ZOOM_IN", zoom_in_cmd,  
       
    31    "ZOOM_OUT", zoom_out_cmd,  
       
    32    "DEALLOCATE_PAGE", deallocate_page_cmd,  
       
    33 
       
    34 
       
    35 */