home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 March
/
Chip_1998-03_cd.bin
/
zkuste
/
SVET_GEO
/
TEXTDESK
/
TEXTDESK.ZIP
/
APP.GOH
next >
Wrap
Text File
|
1996-05-19
|
3KB
|
96 lines
/********************************************************************
*
* Copyright (C) 1996 Blue Marsh Softworks -- All Rights Reserved.
*
* PROJECT: Text Editor
* MODULE: Application Header
* FILE: app.goh
*
* AUTHOR: Nathan Fiedler
*
* REVISION HISTORY:
* Name Date Description
* ---- ---- -----------
* NF 04/01/95 Initial version
* NF 06/06/95 Started desktop version
*
* DESCRIPTION:
* This contains the constants, structures, and classes for
* the Texted program.
*
*******************************************************************/
#ifndef __APP_GOH
#define __APP_GOH
/* Enable the debugging code in TFE. */
/*
@define DEBUG
#define DEBUG
*/
/* Enable the particular platform-dependent code.
* Change the .GP file, and search for XXX for other
* changes. */
@define DESKTOP
#define DESKTOP
/*
@define ZOOMER
#define ZOOMER
@define OMNIGO
#define OMNIGO
*/
/********************************************************************
* Class Definitions
*******************************************************************/
@class TFEProcessClass, GenProcessClass;
@endc;
/* We want to intercept the MSG_GEN_DISPLAY_CLOSE
* so we can make sure the document is closed. */
@class TFEPrimaryClass, GenPrimaryClass;
@endc;
@class TFEDocumentClass, GenDocumentClass;
/* Handle of the duplicated text object. */
@instance MemHandle TFEDI_textHandle;
@endc;
@class TFETextClass, VisLargeTextClass;
/* TRUE if text changes mean document changes. */
@instance Boolean TFETI_allowChanges;
@endc;
/********************************************************************
* Constants and Functions
*******************************************************************/
/* This is the data block size when copying document
* in and out of the text object. */
#define DOC_BLOCK_SIZE 1024
/* Value for no error. */
#define NO_ERROR 0
/* Character codes. */
#define TAB 9
#define LINE_FEED 10
#define VERT_TAB 11
#define FORM_FEED 12
#define CR 13
#define SPACE 32
#define MAX_PRINT 126 /* Maximum printable character. */
#define DELETE 127
/* GEOS.INI category and keys. */
#define INI_CATEGORY "TextEdit"
#define INI_PTSZ_KEYWORD "TFEPointSize"
#define INI_FONT_KEYWORD "TFEFontID"
/* Default characteristics of text. */
#define TFE_DEFAULT_PS 12
#define TFE_PRINT_PS 12
#define TFE_PRINT_FONT FID_DTC_URW_MONO
#endif