From 09795a01ef859f072920de9df974d1b03b9ab9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 28 Dec 2016 20:24:50 +0100 Subject: New upstream version 4.2.4a --- app/wlib/include/wlib.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'app/wlib/include/wlib.h') 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 +#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 * ); /*------------------------------------------------------------------------------ -- cgit v1.2.3