FGLOBAL.CPP
上传用户:xr_qian
上传日期:2007-01-05
资源大小:443k
文件大小:4k
源码类别:

通讯/手机编程

开发平台:

DOS

  1. // ******************************************************************** //
  2. //                                                                      //
  3. //      FGLOBAL.CPP                                                     //
  4. //      Copyright (c) 1993, Michael Holmes and Bob Flanders             //
  5. //      C++ Communication Utilities                                     //
  6. //                                                                      //
  7. //      This file contains the global definitions for the fax           //
  8. //      utility program.                                                //
  9. //                                                                      //
  10. // ******************************************************************** //
  11. /* ******************************************************************** *
  12.  *
  13.  *  Messages and strings
  14.  *
  15.  * ******************************************************************** */
  16. char    copyright[]    = "FAXUTIL 1.00 xfe Copyright (c) 1993, "
  17.                          "Michael Holmes and Bob Flandersnr"
  18.                          "C++ Communication Utilitiesnnr",
  19.         bad_width[]    = "Screen must be at least 80 columns widen",
  20.         no_memory[]    = "Insufficient memory to continue processingn",
  21.         read_error[]   = "Error reading G3 filen",
  22.         stop_here[]    = "nStopping at user's requestn",
  23.         status[]       = "   FAXUTIL 1.00    xb3"
  24.                          "   %-34.34s  xb3"
  25.                          "                    ",
  26.         status_file[]  = "%-25.25s %d Page",
  27.         status_conv[]  = "Converting: %s",
  28.         create_msg[]   = "nr Creating: %snr",
  29.         answer_yes[]   = "Yesr",
  30.         answer_no[]    = "Nor",
  31.         fmt_msg[]      = " Formatting page %d ",
  32.         done[]         = "FAXUTIL completed normallyn",
  33.         open_msg[]     = " Filename: ",
  34.         write_msg[]    = "   Page %d, %ld%% complete   r",
  35.         print_msg[]    = " Printing FAX -- press any key to quitnr",
  36.         page_msg[]     = " Page %d of %dr",
  37.         beep[]         = "a",
  38.         help[]         =
  39.             "  Usage:  FAXUTILnn  This program takes no operands";
  40. /* ******************************************************************** *
  41.  *
  42.  *  Globals
  43.  *
  44.  * ******************************************************************** */
  45. int     rc = 1,                             // errorlevel return code
  46.         quit_flag,                          // termination flag
  47.         full_screen,                        // full screen mode active
  48.         term_cn = MIX(WHITE, BLUE),         // terminal screen normal
  49.         term_cr = MIX(GREEN, BLUE),         // ..and reverse colors
  50.         stat_cn = MIX(BLUE, CYAN),          // status line
  51.         mono_1 = MIX(WHITE, BLACK),         // mono color schemes
  52.         mono_2 = MIX(BLACK, LIGHTGRAY);     // ..for all windows
  53. char    huge *page;                         // page bitmap (1728 x 1143)
  54. void    (interrupt far *old_break)(void);   // old ^break handler address
  55. Window  *term;                              // terminal emulator window
  56. /* ******************************************************************** *
  57.  *
  58.  *  Menu tree
  59.  *
  60.  * ******************************************************************** */
  61. Menu main_menu(          "File");           // File menu
  62. Menu menu_10(&main_menu,   "Open", f_open, 1);  // Open G3 file
  63. Menu menu_11(&menu_10,     "Format", f_format); // Format ASCII into G3
  64. Menu menu_20(&main_menu, "Print");          // Print menu
  65. Menu menu_21(&menu_20,     "LPT1", f_lpt1, 1);
  66. Menu menu_22(&menu_21,     "LPT2", f_lpt2);
  67. Menu menu_23(&menu_21,     "LPT3", f_lpt3);
  68. Menu menu_30(&main_menu, "View", f_view);   // View fax
  69. Menu menu_40(&main_menu, "Exit", f_exit);   // Exit