mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-11-15 00:05:20 +00:00
1 line
12 KiB
C
1 line
12 KiB
C
|
/*
* Copyright (c) Kopriha Software, 1990-1991
* All Rights Reserved
*
* KS.CDev.h
*
* Description: This include file contains all the external
* variable and routine definitions (prototypes)
* for the SpoolMaster CDEV.
*
*
* Table of contents:
*
* Defined variables:
*
* All CDEV flags passed the CDEV entry point
* All control IDs of the defined controls
* The port driver file/aux type
*
*
* External variables:
*
* static_text_substitution
* text0_string
* text_control_handle
*
*
* External routines:
*
* do_about()
* do_create()
* do_hit()
*
* scroll_action()
*
*
*
* History:May 18, 1991 Dave Created this file
*
*/
#ifndef _KS_CDEV_
#define _KS_CDEV_
/* define HEY_DAVE_WE_MUST_DEBUG_MORE */
#ifndef _KS_FILEIO_
#include "KS.FileIO.E"
#endif
#ifndef _KS_DEFINES_
#include "KS.Defines.h"
#endif
#ifndef _KS_ROUTINES_
#include "KS.Routines.h"
#endif
#ifndef _KS_MEMORY_
#include "ks.memory.h"
#endif
#ifndef _KS_SHARED_DATA_
#include "SharedData.h"
#endif
#ifndef __CONTROL__
#include <control.h>
#endif
#ifndef __LIST__
#include <list.h>
#endif
#ifndef __STDFILE__
#include <StdFile.h>
#endif
#ifndef __RESOURCES__
#include <Resources.h>
#endif
#ifndef __LOADER__
#include <Loader.h>
#endif
/* ****************************************************************** *
* Macro definitions: *
* ****************************************************************** */
/* ****************************************************************** *
* The following macro simplifies by global variable definitions... *
* *
* The reasoning goes like this: *
* EXTERNAL is defined as extern by all modules that include this *
* file but have not defined EXTERNAL (IE: All but Data.CC). *
* Data.CC defines EXTERNAL to be nothing - thus we create the *
* data in Data.CC but do not have to duplicate the global *
* variable definitions... *
* *
* This seems to simplify my maintenance - once copy of variable *
* definitions to support... *
* ****************************************************************** */
#ifndef EXTERNAL
#define EXTERNAL extern
#endif
/* ****************************************************************** *
* The following are all of the currently defined 'events' that are *
* passed to the CDEV entry point. *
* ****************************************************************** */
#define MachineCDEV 1
#define BootCDEV 2
#define Reserved 3
#define InitCDEV 4
#define CloseCDEV 5
#define EventsCDEV 6
#define CreateCDEV 7
#define AboutCDEV 8
#define RectCDEV 9
#define HitCDEV 10
#define RunCDEV 11
/* ****************************************************************** *
* The following is a list of all the controls we have defined for *
* the spoolmaster CDEV *
* *
* Note: Static text controls are not included in this list. *
* ****************************************************************** */
#define MainControlList (1L)
#define PortListControl (3L)
#define SpoolDirButtonControl (4L)
#define ScrollBarControl (6L)
#define BufferSizeTextControl (7L)
#define PrintFileCheckBoxCtl (8L)
#define DeleteFileCheckBoxCtl (9L)
#define HelpControl (0x0100L)
#define CantWriteAlert (1L)
#define CantWriteOkButton (0)
#define CantWriteTryAgain (1)
#define SpoolDirPrompt (1L)
#ifdef HEY_DAVE_WE_MUST_DEBUG_MORE
#define DebugCloseAlert (2L)
#define DebugRoutineE
|