summaryrefslogtreecommitdiff
path: root/app/wlib/include
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 20:24:50 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 20:24:50 +0100
commit09795a01ef859f072920de9df974d1b03b9ab9a4 (patch)
tree4d05907fc37f1bd781e506f5e196f7435aeec0ab /app/wlib/include
parent5b4163d8c76b03f0d31b09866aa4bd06b4d8d804 (diff)
New upstream version 4.2.4aupstream/4.2.4a
Diffstat (limited to 'app/wlib/include')
-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 * );
/*------------------------------------------------------------------------------