summaryrefslogtreecommitdiff
path: root/app/bin/fileio.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2022-02-06 16:04:24 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2022-02-06 16:04:24 +0100
commit5d2c2b27a6323e2666378b986129b2a7c2c39e5c (patch)
treece8982b6c0111f79791068de2c2d4c6ce3138a49 /app/bin/fileio.h
parentb623f5953691b2a0614e6f1f4def86bdbb9a4113 (diff)
New upstream version 5.2.2GAupstream/5.2.2GA
Diffstat (limited to 'app/bin/fileio.h')
-rw-r--r--app/bin/fileio.h41
1 files changed, 19 insertions, 22 deletions
diff --git a/app/bin/fileio.h b/app/bin/fileio.h
index 13761bf..a037063 100644
--- a/app/bin/fileio.h
+++ b/app/bin/fileio.h
@@ -22,10 +22,7 @@
#ifndef FILEIO_H
#define FILEIO_H
-#include <stdio.h>
-
#include "common.h"
-#include "misc.h"
extern FILE * paramFile;
extern char *paramFileName;
@@ -69,6 +66,7 @@ extern wMenuList_p fileList_ml;
#define BITMAPPATHKEY "bitmap"
#define BACKGROUNDPATHKEY "images"
#define DXFPATHKEY "dxf"
+#define SVGPATHKEY "svg"
#define PARTLISTPATHKEY "parts"
#define CARSPATHKEY "cars"
#define PARAMETERPATHKEY "params"
@@ -81,7 +79,7 @@ typedef struct {
char * name;
readParam_t proc;
} paramProc_t;
-dynArr_t paramProc_da;
+extern dynArr_t paramProc_da;
#define paramProc(N) DYNARR_N( paramProc_t, paramProc_da, N )
void Stripcr( char * );
@@ -104,21 +102,18 @@ void AddParam( char *name, readParam_t proc );
FILE * OpenCustom( char * );
-#ifdef WINDOWS
-#define fopen( FN, MODE ) wFileOpen( FN, MODE )
-#endif
-
void SetWindowTitle( void );
char * PutTitle( char * cp );
void ParamFileListLoad(int paramFileCnt, dynArr_t *paramFiles);
-void DoParamFiles(void * junk);
+void DoParamFiles(void * unused);
int LoadTracks( int cnt, char **fileName, void *data );
typedef void (*doSaveCallBack_p)( void );
-void DoSave( doSaveCallBack_p );
-void DoSaveAs( doSaveCallBack_p );
+void SetAutoSave(void);
+void DoSave( void * doAfterSaveVP );
+void DoSaveAs( void * doAfterSaveVP );
void DoLoad( void );
void DoExamples( void );
void DoFileList( int, char *, void * );
@@ -126,18 +121,20 @@ void DoCheckPoint( void );
void CleanupFiles( void );
int ExistsCheckpoint( void );
int LoadCheckpoint( BOOL_T );
-void DoImport( void * );
-void DoExport( void );
-void DoExportDXF( void );
-BOOL_T EditCopy( void );
-BOOL_T EditCut( void );
-BOOL_T EditPaste( void );
-BOOL_T EditClone( void );
+void DoImport( void * typeVP );
+void DoExport( void * unused );
+void DoExportDXF( void * unused );
+void DoExportSVG(void);
+extern wBool_t editStatus; // Status of last Edit* command
+void EditCopy( void * unused );
+void EditCut( void * unused );
+void EditPaste( void * unused );
+void EditClone( void * unused );
void DoRecord( void * );
void AddPlaybackProc( char *, playbackProc_p, void * );
-EXPORT void TakeSnapshot( drawCmd_t * );
+EXPORT void TakeSnapshot( drawCmd_p );
void PlaybackMessage( char * );
void DoPlayBack( void * );
int MyGetKeyState( void );
@@ -150,10 +147,10 @@ void FileInit( void );
BOOL_T MacroInit( void );
-char *SaveLocale( char *newLocale );
-void RestoreLocale( char * locale );
+void SetCLocale();
+void SetUserLocale();
// Parameter file search
-void DoSearchParams(void * junk);
+void DoSearchParams(void * unused);
#endif