Updated tinyfiledialogs lib to v2.7.2

This commit is contained in:
Ray
2017-01-15 23:53:02 +01:00
parent 4231c4bddd
commit a006ae23dc
2 changed files with 297 additions and 251 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,14 @@
/*
_________
/ \ tinyfiledialogs.h v2.5.8 [September 13, 2016] zlib licence
|tiny file| Unique header file of "tiny file dialogs" created [November 9, 2014]
/*_________
/ \ tinyfiledialogs.h v2.7.2 [November 23, 2016] zlib licence
|tiny file| Unique header file created [November 9, 2014]
| dialogs | Copyright (c) 2014 - 2016 Guillaume Vareille http://ysengrin.com
\____ ___/ http://tinyfiledialogs.sourceforge.net
\| mailto:tinyfiledialogs@ysengrin.com
\|
git://git.code.sf.net/p/tinyfiledialogs/code
______________________________________________________
| |
| direct CONTACT: mailto:tinyfiledialogs@ysengrin.com |
|______________________________________________________|
A big thank you to Don Heyse http://ldglite.sf.net for
his code contributions, bug corrections & thorough testing!
@ -16,7 +20,7 @@ Please
- if you are including tiny file dialogs,
I'll be happy to add your link to the list of projects using it.
- If you are using it on different hardware / OS / compiler.
2) Be the first to leave a review on Sourceforge. Thanks.
2) leave a review on Sourceforge. Thanks.
tiny file dialogs (cross-platform C C++)
InputBox PasswordBox MessageBox ColorPicker
@ -39,13 +43,13 @@ NO MAIN LOOP
The dialogs can be forced into console mode
Windows [MBCS + UTF-8 + UTF-16]
Windows (XP to 10) [ASCII + MBCS + UTF-8 + UTF-16]
- native code & some vbs create the graphic dialogs
- enhanced console mode can use dialog.exe from
http://andrear.altervista.org/home/cdialog.php
- basic console input
Unix [UTF-8] (command line call attempts)
Unix (command line call attempts) [ASCII + UTF-8]
- applescript
- zenity / matedialog
- kdialog
@ -56,10 +60,12 @@ Unix [UTF-8] (command line call attempts)
The same executable can run across desktops & distributions
tested with C & C++ compilers
on VisualStudio MinGW Mac Linux Bsd Solaris Minix Raspbian C# fortran (iso_c)
on VisualStudio MinGW Mac Linux Bsd Solaris Minix Raspbian
using Gnome Kde Enlightenment Mate Cinnamon Unity
Lxde Lxqt Xfce WindowMaker IceWm Cde Jds OpenBox
bindings for LUA and C# dll
- License -
This software is provided 'as-is', without any express or implied
@ -82,7 +88,7 @@ misrepresented as being the original software.
#ifndef TINYFILEDIALOGS_H
#define TINYFILEDIALOGS_H
/* #define TINYFD_NOLIB //*/
/* #define TINYFD_NOLIB */
/* On windows, define TINYFD_NOLIB here
if you don't want to include the code creating the graphic dialogs.
Then you won't need to link against Comdlg32.lib and Ole32.lib */
@ -95,22 +101,21 @@ and the corresponding closing bracket near the end of this file:
*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif
extern char tinyfd_version[8]; /* contains tinyfd current version number */
#ifdef _WIN32
/* tinyfd_winUtf8 is not ready yet, do not modify */
/* for UTF-16 use the functions at the end of this files */
extern int tinyfd_winUtf8; /* 0 (default) or 1 */
/* on windows string char can be 0:MBSC or 1:UTF-8 (work in progress)
unless your code is really prepared for it, leave this on MBSC.
for UTF-16 choose the functions at the end of this files */
/* on windows string char can be 0:MBSC or 1:UTF-8
unless your code is really prepared for UTF-8 on windows, leave this on MBSC. */
#endif
extern int tinyfd_forceConsole ; /* 0 (default) or 1 */
/* for unix & windows: 0 (graphic mode) or 1 (console mode).
0: try to use a graphic solution, if it fails then it uses console mode.
1: forces all dialogs into console mode even when the X server is present,
1: forces all dialogs into console mode even when an X server is present,
if the package dialog (and a console is present) or dialog.exe is installed.
on windows it only make sense for console applications */
@ -243,16 +248,18 @@ char const * tinyfd_arrayDialog(
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
#endif /* TINYFILEDIALOGS_H */
/*
- This is not for android nor ios.
- The code is pure C, perfectly compatible with C++.
- The API is Fortran ISO_C_BINDING compliant
- the windows utf-16 prototypes are in the header file
- windows is fully supported from XP to 10 (maybe even older versions)
- C# via dll, see example file
- AVOID USING " AND ' IN TITLES AND MESSAGES.
- OSX supported from 10.4 to 10.11 (maybe even older versions)
- Avoid using " and ' in titles and messages.
- There's one file filter only, it may contain several patterns.
- If no filter description is provided,
the list of patterns will become the description.
@ -284,6 +291,7 @@ char const * tinyfd_arrayDialog(
http://andrear.altervista.org/home/cdialog.php
- If dialog is missing, it will switch to basic console input.
- You can query the type of dialog that will be use.
- MinGW needs gcc >= v4.9 otherwise some headers are incomplete.
- The Hello World (and a bit more) is on the sourceforge site:
*/