FGLOBAL.CPP
资源名称:commutil.zip [点击查看]
上传用户:xr_qian
上传日期:2007-01-05
资源大小:443k
文件大小:4k
源码类别:
通讯/手机编程
开发平台:
DOS
- // ******************************************************************** //
- // //
- // FGLOBAL.CPP //
- // Copyright (c) 1993, Michael Holmes and Bob Flanders //
- // C++ Communication Utilities //
- // //
- // This file contains the global definitions for the fax //
- // utility program. //
- // //
- // ******************************************************************** //
- /* ******************************************************************** *
- *
- * Messages and strings
- *
- * ******************************************************************** */
- char copyright[] = "FAXUTIL 1.00 xfe Copyright (c) 1993, "
- "Michael Holmes and Bob Flandersnr"
- "C++ Communication Utilitiesnnr",
- bad_width[] = "Screen must be at least 80 columns widen",
- no_memory[] = "Insufficient memory to continue processingn",
- read_error[] = "Error reading G3 filen",
- stop_here[] = "nStopping at user's requestn",
- status[] = " FAXUTIL 1.00 xb3"
- " %-34.34s xb3"
- " ",
- status_file[] = "%-25.25s %d Page",
- status_conv[] = "Converting: %s",
- create_msg[] = "nr Creating: %snr",
- answer_yes[] = "Yesr",
- answer_no[] = "Nor",
- fmt_msg[] = " Formatting page %d ",
- done[] = "FAXUTIL completed normallyn",
- open_msg[] = " Filename: ",
- write_msg[] = " Page %d, %ld%% complete r",
- print_msg[] = " Printing FAX -- press any key to quitnr",
- page_msg[] = " Page %d of %dr",
- beep[] = "a",
- help[] =
- " Usage: FAXUTILnn This program takes no operands";
- /* ******************************************************************** *
- *
- * Globals
- *
- * ******************************************************************** */
- int rc = 1, // errorlevel return code
- quit_flag, // termination flag
- full_screen, // full screen mode active
- term_cn = MIX(WHITE, BLUE), // terminal screen normal
- term_cr = MIX(GREEN, BLUE), // ..and reverse colors
- stat_cn = MIX(BLUE, CYAN), // status line
- mono_1 = MIX(WHITE, BLACK), // mono color schemes
- mono_2 = MIX(BLACK, LIGHTGRAY); // ..for all windows
- char huge *page; // page bitmap (1728 x 1143)
- void interrupt far (*old_break)(...); // old ^break handler address
- Window *term; // terminal emulator window
- /* ******************************************************************** *
- *
- * Menu tree
- *
- * ******************************************************************** */
- Menu main_menu( "File"); // File menu
- Menu menu_10(&main_menu, "Open", f_open, 1); // Open G3 file
- Menu menu_11(&menu_10, "Format", f_format); // Format ASCII into G3
- Menu menu_20(&main_menu, "Print"); // Print menu
- Menu menu_21(&menu_20, "LPT1", f_lpt1, 1);
- Menu menu_22(&menu_21, "LPT2", f_lpt2);
- Menu menu_23(&menu_21, "LPT3", f_lpt3);
- Menu menu_30(&main_menu, "View", f_view); // View fax
- Menu menu_40(&main_menu, "Exit", f_exit); // Exit