/*****************************************************************************
*   Module to load/save EEDraw files.					     *
*									     *
* Written by:  Gershon Elber			IBM PC Ver 1.0,	Oct. 1989    *
*****************************************************************************/

#ifndef EELOAD_H
#define EELOAD_H

typedef enum {
    FILE_SAVE_AS,
    FILE_SAVE_OLD,
    FILE_SAVE_NEW
} FileSaveType;

BooleanType ClearDrawList(EEWindowStruct *Window);
void CloseEEDFile(EEWindowStruct *Window);
BooleanType LoadEEFile(EEWindowStruct *Window);
BooleanType SaveEEFile(FileSaveType FileSave, EEWindowStruct *Window);
void SaveNetList(EEWindowStruct *Window);
BooleanType LinesIntersect(int l1x1, int l1y1, int l1x2, int l1y2,
			   int l2x1, int l2y1, int l2x2, int l2y2,
			   BooleanType l1Bus, BooleanType l2Bus,
			   DrawGenericStruct *Phead);

#endif EELOAD_H
