home *** CD-ROM | disk | FTP | other *** search
- /* Text Edit Window */
-
- typedef struct editwin {
- /* Fields can be read by the caller but shouldn't be changed */
- WINDOW *win;
- TEXTEDIT *tp;
- char *filename;
- char /*tbool*/ saved;
- } EDITWIN;
-
- #if 0
- EDITWIN *ewcreate(); /* Given a file name, or NULL for untitled */
- EDITWIN *ewnew(); /* Creates a new, untitled window */
- EDITWIN *ewopen(); /* Starts with an 'Open' dialog */
- EDITWIN *ewfind(); /* Finds EDITWIN* given a WINDOW* */
- #endif
-
- #ifdef __STDC__
- # define P(s) s
- #else
- # define P(s) ()
- #endif
-
- EDITWIN *ewfind P((WINDOW *win ));
- int ewcount P((void ));
- EDITWIN *ewcreate P((char *filename ));
- EDITWIN *ewnew P((void ));
- EDITWIN *ewopen P((void ));
- bool ewclose P((EDITWIN *ew ));
- bool ewsave P((EDITWIN *ew ));
- bool ewsaveas P((EDITWIN *ew ));
- bool ewsavecopy P((EDITWIN *ew ));
- bool ewsaveprompt P((EDITWIN *ew , char *prompt , bool changefile ));
- bool ewrevert P((EDITWIN *ew ));
- bool ewreadfile P((EDITWIN *ew , char *filename ));
- void ewsetdimensions P((EDITWIN *ew ));
- bool ewwritefile P((EDITWIN *ew , char *filename ));
- bool ewevent P((EDITWIN *ew , EVENT *e , bool *closed_return ));
- bool ewsaveall P((void ));
- bool ewcloseall P((void ));
- void ewreplace P((EDITWIN *ew , char *str ));
- void ewundo P((EDITWIN *ew ));
- void ewcopy P((EDITWIN *ew ));
- void ewpaste P((EDITWIN *ew ));
-
- #undef P
-