summaryrefslogtreecommitdiff
path: root/app/wlib/include/wlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/wlib/include/wlib.h')
-rw-r--r--app/wlib/include/wlib.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/app/wlib/include/wlib.h b/app/wlib/include/wlib.h
index 4582231..cf8f337 100644
--- a/app/wlib/include/wlib.h
+++ b/app/wlib/include/wlib.h
@@ -1,20 +1,21 @@
/** \file wlib.h
- * Commaon definitions and declarations for the wlib library
- *
- * $Header: /home/dmarkle/xtrkcad-fork-cvs/xtrkcad/app/wlib/include/wlib.h,v 1.18 2010-04-28 04:04:39 dspagnol Exp $
+ * Common definitions and declarations for the wlib library
*/
#ifndef WIN_H
#define WIN_H
#ifdef WINDOWS
#include <stdio.h>
+#define FILE_SEP_CHAR "\\"
+#else
+#define FILE_SEP_CHAR "/"
#endif
#ifdef USE_SIMPLE_GETTEXT
char *bindtextdomain( char *domainname, char *dirname );
char *bind_textdomain_codeset(char *domainname, char *codeset );
char *textdomain( char *domainname );
-char *gettext( char *msgid );
+char *gettext( const char *msgid );
char *g_win32_getlocale (void);
#endif
@@ -331,6 +332,7 @@ void wListSetEditable( wList_p, wBool_t );
wIndex_t wListAddValue( wList_p, const char *, wIcon_p, void * );
void wListDelete( wList_p, wIndex_t );
wIndex_t wListGetValues( wList_p, char *, int, void * *, void * * );
+void wListSelectAll( wList_p bl );
wIndex_t wListGetCount( wList_p );
void * wListGetItemContext( wList_p, wIndex_t );
wBool_t wListGetItemSelected( wList_p, wIndex_t );
@@ -638,16 +640,18 @@ void wAttachAccelKey( wAccelKey_e, int, wAccelKeyCallBack_p, void * );
* File Selection
*/
+#define FS_MULTIPLEFILES 1
+
struct wFilSel_t;
typedef enum {
FS_SAVE,
FS_LOAD,
FS_UPDATE }
wFilSelMode_e;
-typedef int (*wFilSelCallBack_p)( const char * pathName, const char * fileName, void * );
+typedef int (*wFilSelCallBack_p)( int files, char ** fileName, void * );
struct wFilSel_t * wFilSelCreate(wWin_p, wFilSelMode_e, int, const char *, const char *,
wFilSelCallBack_p, void * );
-int wFilSelect( struct wFilSel_t *, const char * );
+int wFilSelect( struct wFilSel_t *, const char * );
/*------------------------------------------------------------------------------