Discussion:
tiny file dialogs - Cross platform file dialogs in C / C++ for WINDOWS OSX UNIX - perfect for GLUT
(too old to reply)
tiny file dialogs
2014-11-30 10:03:26 UTC
Permalink
Raw Message
tiny file dialogs - tinyfd
Cross platform file dialogs in C / C++ for WINDOWS OSX UNIX
version 1.1.2 [November 19, 2014]

A single C file with 3 function calls.
They pop up the open file(s) dialog,
the save file dialog or the select folder dialog.
It also compiles on c++ compilers.
Originally conceived as a complement to glut,
THERE IS NO MAIN LOOP.
On windows, native code is used to create the dialogs.
On unix, it uses zenity, present on linux, freebsd and illumos.
Otherwise it uses python 2 with tkinter, present on osx.

http://sourceforge.net/projects/tinyfiledialogs/


--- news://freenews.netfront.net/ - complaints: ***@netfront.net ---
bu
2014-12-01 14:23:56 UTC
Permalink
Raw Message
http://tinyfiledialogs.sourceforge.net
Post by tiny file dialogs
tiny file dialogs - tinyfd
Cross platform file dialogs in C / C++ for WINDOWS OSX UNIX
version 1.1.2 [November 19, 2014]
A single C file with 3 function calls.
They pop up the open file(s) dialog,
the save file dialog or the select folder dialog.
It also compiles on c++ compilers.
Originally conceived as a complement to glut,
THERE IS NO MAIN LOOP.
On windows, native code is used to create the dialogs.
On unix, it uses zenity, present on linux, freebsd and illumos.
Otherwise it uses python 2 with tkinter, present on osx.
http://sourceforge.net/projects/tinyfiledialogs/
--- news://freenews.netfront.net/ - complaints: ***@netfront.net ---
tinyfiledialogs.sourceforge.net
2015-02-07 05:30:43 UTC
Permalink
Raw Message
tiny file dialogs - tinyfd
http://tinyfiledialogs.sourceforge.net
Cross-platform dialogs in C C++ WINDOWS OSX GNOME KDE SOLARIS CONSOLE
A single C file (add it to your project) with 6 modal function calls
for all platforms:
- open file dialog (& multiple files)
- save file dialog
- select folder dialog
- message box (& question box)
- input box (& password box)
- color picker.

Conceived as a fully independent complement to GLUT, GLUI, SDL, UNITY3D
or any GUI-less program, there is NO MAIN LOOP nor init.
On unix, you can force all the dialogs into CONSOLE mode.

On Windows native code creates the dialogs (mostly).
On UNIX it tries successive command line calls:
- zenity
- kdialog
- applescript
- python 2 / tkinter
- dialog.
The same executable can run across desktops and distributions.

Tested with C & C++ compilers on Visual Studio 2013 OSX Linux Freebsd
Illumos Solaris
using Gnome Kde Enlightenment Mate Cinnamon Unity
Lxde Lxqt Xfce WindowMaker IceWm Cde Jds.
Version 1.7.2 [Febuary 6, 2015] zlib license.


--- news://freenews.netfront.net/ - complaints: ***@netfront.net ---
a***@gmail.com
2015-10-08 15:23:49 UTC
Permalink
Raw Message
Any example how to use the open file dialog?
y***@gmail.com
2015-11-09 11:06:03 UTC
Permalink
Raw Message
here it is:

#include "tinyfiledialogs.h"

char const * theReturnedFileName;

theReturnedFileName = tinyfd_openFileDialog (
"my nice title" , "./myDefaultFilename.txt" ,
0 , NULL , NULL , 0);

Loading...