mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Updated tinyfiledialogs lib to v2.7.2
This commit is contained in:
498
tools/rGuiStyler/external/tinyfiledialogs.c
vendored
498
tools/rGuiStyler/external/tinyfiledialogs.c
vendored
File diff suppressed because it is too large
Load Diff
50
tools/rGuiStyler/external/tinyfiledialogs.h
vendored
50
tools/rGuiStyler/external/tinyfiledialogs.h
vendored
@ -1,10 +1,14 @@
|
|||||||
/*
|
/*_________
|
||||||
_________
|
/ \ tinyfiledialogs.h v2.7.2 [November 23, 2016] zlib licence
|
||||||
/ \ tinyfiledialogs.h v2.5.8 [September 13, 2016] zlib licence
|
|tiny file| Unique header file created [November 9, 2014]
|
||||||
|tiny file| Unique header file of "tiny file dialogs" created [November 9, 2014]
|
| dialogs | Copyright (c) 2014 - 2016 Guillaume Vareille http://ysengrin.com
|
||||||
| dialogs | Copyright (c) 2014 - 2016 Guillaume Vareille http://ysengrin.com
|
\____ ___/ http://tinyfiledialogs.sourceforge.net
|
||||||
\____ ___/ 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
|
A big thank you to Don Heyse http://ldglite.sf.net for
|
||||||
his code contributions, bug corrections & thorough testing!
|
his code contributions, bug corrections & thorough testing!
|
||||||
@ -16,7 +20,7 @@ Please
|
|||||||
- if you are including tiny file dialogs,
|
- if you are including tiny file dialogs,
|
||||||
I'll be happy to add your link to the list of projects using it.
|
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.
|
- 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++)
|
tiny file dialogs (cross-platform C C++)
|
||||||
InputBox PasswordBox MessageBox ColorPicker
|
InputBox PasswordBox MessageBox ColorPicker
|
||||||
@ -39,13 +43,13 @@ NO MAIN LOOP
|
|||||||
|
|
||||||
The dialogs can be forced into console mode
|
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
|
- native code & some vbs create the graphic dialogs
|
||||||
- enhanced console mode can use dialog.exe from
|
- enhanced console mode can use dialog.exe from
|
||||||
http://andrear.altervista.org/home/cdialog.php
|
http://andrear.altervista.org/home/cdialog.php
|
||||||
- basic console input
|
- basic console input
|
||||||
|
|
||||||
Unix [UTF-8] (command line call attempts)
|
Unix (command line call attempts) [ASCII + UTF-8]
|
||||||
- applescript
|
- applescript
|
||||||
- zenity / matedialog
|
- zenity / matedialog
|
||||||
- kdialog
|
- kdialog
|
||||||
@ -56,10 +60,12 @@ Unix [UTF-8] (command line call attempts)
|
|||||||
The same executable can run across desktops & distributions
|
The same executable can run across desktops & distributions
|
||||||
|
|
||||||
tested with C & C++ compilers
|
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
|
using Gnome Kde Enlightenment Mate Cinnamon Unity
|
||||||
Lxde Lxqt Xfce WindowMaker IceWm Cde Jds OpenBox
|
Lxde Lxqt Xfce WindowMaker IceWm Cde Jds OpenBox
|
||||||
|
|
||||||
|
bindings for LUA and C# dll
|
||||||
|
|
||||||
- License -
|
- License -
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
@ -82,7 +88,7 @@ misrepresented as being the original software.
|
|||||||
#ifndef TINYFILEDIALOGS_H
|
#ifndef TINYFILEDIALOGS_H
|
||||||
#define TINYFILEDIALOGS_H
|
#define TINYFILEDIALOGS_H
|
||||||
|
|
||||||
/* #define TINYFD_NOLIB //*/
|
/* #define TINYFD_NOLIB */
|
||||||
/* On windows, define TINYFD_NOLIB here
|
/* On windows, define TINYFD_NOLIB here
|
||||||
if you don't want to include the code creating the graphic dialogs.
|
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 */
|
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
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif
|
||||||
|
|
||||||
extern char tinyfd_version[8]; /* contains tinyfd current version number */
|
extern char tinyfd_version[8]; /* contains tinyfd current version number */
|
||||||
|
|
||||||
#ifdef _WIN32
|
#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 */
|
extern int tinyfd_winUtf8; /* 0 (default) or 1 */
|
||||||
/* on windows string char can be 0:MBSC or 1:UTF-8 (work in progress)
|
/* on windows string char can be 0:MBSC or 1:UTF-8
|
||||||
unless your code is really prepared for it, leave this on MBSC.
|
unless your code is really prepared for UTF-8 on windows, leave this on MBSC. */
|
||||||
for UTF-16 choose the functions at the end of this files */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int tinyfd_forceConsole ; /* 0 (default) or 1 */
|
extern int tinyfd_forceConsole ; /* 0 (default) or 1 */
|
||||||
/* for unix & windows: 0 (graphic mode) or 1 (console mode).
|
/* 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.
|
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.
|
if the package dialog (and a console is present) or dialog.exe is installed.
|
||||||
on windows it only make sense for console applications */
|
on windows it only make sense for console applications */
|
||||||
|
|
||||||
@ -243,16 +248,18 @@ char const * tinyfd_arrayDialog(
|
|||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* __cplusplus */
|
#endif
|
||||||
|
|
||||||
#endif /* TINYFILEDIALOGS_H */
|
#endif /* TINYFILEDIALOGS_H */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
- This is not for android nor ios.
|
- This is not for android nor ios.
|
||||||
- The code is pure C, perfectly compatible with C++.
|
- 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
|
- 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.
|
- There's one file filter only, it may contain several patterns.
|
||||||
- If no filter description is provided,
|
- If no filter description is provided,
|
||||||
the list of patterns will become the description.
|
the list of patterns will become the description.
|
||||||
@ -284,6 +291,7 @@ char const * tinyfd_arrayDialog(
|
|||||||
http://andrear.altervista.org/home/cdialog.php
|
http://andrear.altervista.org/home/cdialog.php
|
||||||
- If dialog is missing, it will switch to basic console input.
|
- If dialog is missing, it will switch to basic console input.
|
||||||
- You can query the type of dialog that will be use.
|
- 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:
|
- The Hello World (and a bit more) is on the sourceforge site:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user