home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 March / Chip_1998-03_cd.bin / zkuste / SVET_GEO / TEXTDESK / TEXTDESK.ZIP / APP.GOH next >
Text File  |  1996-05-19  |  3KB  |  96 lines

  1. /********************************************************************
  2.  *
  3.  * Copyright (C) 1996 Blue Marsh Softworks -- All Rights Reserved.
  4.  *
  5.  * PROJECT:      Text Editor
  6.  * MODULE:       Application Header
  7.  * FILE:         app.goh
  8.  *
  9.  * AUTHOR:       Nathan Fiedler
  10.  *
  11.  * REVISION HISTORY:
  12.  *      Name     Date      Description
  13.  *      ----     ----      -----------
  14.  *       NF      04/01/95  Initial version
  15.  *       NF      06/06/95  Started desktop version
  16.  *
  17.  * DESCRIPTION:
  18.  *      This contains the constants, structures, and classes for
  19.  *      the Texted program.
  20.  *
  21.  *******************************************************************/
  22.  
  23. #ifndef __APP_GOH
  24. #define __APP_GOH
  25.  
  26.    /* Enable the debugging code in TFE. */
  27. /*
  28. @define DEBUG
  29. #define DEBUG
  30. */
  31.  
  32.    /* Enable the particular platform-dependent code.
  33.     * Change the .GP file, and search for XXX for other
  34.     * changes. */
  35. @define DESKTOP
  36. #define DESKTOP
  37. /*
  38. @define ZOOMER
  39. #define ZOOMER
  40. @define OMNIGO
  41. #define OMNIGO
  42. */
  43.  
  44. /********************************************************************
  45.  *                 Class Definitions
  46.  *******************************************************************/
  47.     @class TFEProcessClass, GenProcessClass;
  48.     @endc;
  49.  
  50.        /* We want to intercept the MSG_GEN_DISPLAY_CLOSE
  51.         * so we can make sure the document is closed. */
  52.     @class TFEPrimaryClass, GenPrimaryClass;
  53.     @endc;
  54.  
  55.     @class TFEDocumentClass, GenDocumentClass;
  56.          /* Handle of the duplicated text object. */
  57.       @instance MemHandle TFEDI_textHandle;
  58.     @endc;
  59.  
  60.     @class TFETextClass, VisLargeTextClass;
  61.          /* TRUE if text changes mean document changes. */
  62.       @instance Boolean TFETI_allowChanges;
  63.     @endc;
  64.  
  65. /********************************************************************
  66.  *                 Constants and Functions
  67.  *******************************************************************/
  68.        /* This is the data block size when copying document
  69.         * in and out of the text object. */
  70.     #define DOC_BLOCK_SIZE 1024
  71.        /* Value for no error. */
  72.     #define NO_ERROR 0
  73.  
  74.        /* Character codes. */
  75.     #define TAB         9
  76.     #define LINE_FEED  10
  77.     #define VERT_TAB   11
  78.     #define FORM_FEED  12
  79.     #define CR         13
  80.     #define SPACE      32
  81.     #define MAX_PRINT 126 /* Maximum printable character. */
  82.     #define DELETE    127
  83.  
  84.        /* GEOS.INI category and keys. */
  85.     #define INI_CATEGORY     "TextEdit"
  86.     #define INI_PTSZ_KEYWORD "TFEPointSize"
  87.     #define INI_FONT_KEYWORD "TFEFontID"
  88.  
  89.        /* Default characteristics of text. */
  90.     #define TFE_DEFAULT_PS 12
  91.     #define TFE_PRINT_PS   12
  92.     #define TFE_PRINT_FONT FID_DTC_URW_MONO
  93.  
  94. #endif
  95.  
  96.