Updated tinyfiledialogs lib
This commit is contained in:
parent
b2cb2d82a8
commit
4231c4bddd
498
tools/rFXGen/external/tinyfiledialogs.c
vendored
498
tools/rFXGen/external/tinyfiledialogs.c
vendored
File diff suppressed because it is too large
Load Diff
50
tools/rFXGen/external/tinyfiledialogs.h
vendored
50
tools/rFXGen/external/tinyfiledialogs.h
vendored
@ -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]
|
||||
| dialogs | Copyright (c) 2014 - 2016 Guillaume Vareille http://ysengrin.com
|
||||
\____ ___/ http://tinyfiledialogs.sourceforge.net
|
||||
\| mailto:tinyfiledialogs@ysengrin.com
|
||||
/*_________
|
||||
/ \ 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
|
||||
\|
|
||||
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:
|
||||
*/
|
||||
|
||||
|
@ -4,9 +4,9 @@
|
||||
*
|
||||
* DEPENDENCIES:
|
||||
*
|
||||
* raylib 1.6 - This program uses latest raylib audio module functionality.
|
||||
* raylib 1.7 - This program uses latest raylib audio module functionality.
|
||||
* raygui 1.0 - Simple IMGUI library (based on raylib)
|
||||
* tinyfiledialogs 2.5.8 - Open/save file dialogs, it requires linkage with comdlg32 and ole32 libs.
|
||||
* tinyfiledialogs 2.7.2 - Open/save file dialogs, it requires linkage with comdlg32 and ole32 libs.
|
||||
*
|
||||
* VERSIONS HISTORY:
|
||||
*
|
||||
@ -18,6 +18,12 @@
|
||||
* 0.6 (30-Aug-2016) Interface redesigned (reduced size) and new features added (wave drawing)
|
||||
* 0.5 (27-Aug-2016) Completed port and adaptation from sfxr (only sound generation and playing)
|
||||
*
|
||||
* COMPILATION (MinGW 5.3):
|
||||
*
|
||||
* gcc -o rfxgen.exe rfxen.c external/tinyfiledialogs.c -s -lraylib -lglfw3 -lopengl32 -lgdi32 /
|
||||
* -lopenal32 -lwinmm -lcomdlg32 -lole32 -std=c99 -Wl,--subsystem,windows -Wl,-allow-multiple-definition
|
||||
*
|
||||
*
|
||||
* LICENSE: zlib/libpng
|
||||
*
|
||||
* Copyright (c) 2014-2016 Ramon Santamaria (@raysan5)
|
||||
@ -44,7 +50,7 @@
|
||||
//#define RAYGUI_STYLE_DEFAULT_DARK
|
||||
#define RAYGUI_NO_STYLE_SAVE_LOAD // Avoid compiling style load/save code
|
||||
#define RAYGUI_IMPLEMENTATION
|
||||
#include "raygui.h"
|
||||
#include "../../raygui.h"
|
||||
|
||||
#include "external/tinyfiledialogs.h" // Required for native open/save file dialogs
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user