Possible addition to SDL

Would it be possible to add open/save file dialogue boxes to SDL, wrapping
the native calls? While I know how to do this in carbon and could probably
learn in Cocoa, GTK, QT, Windows, or whatever, the main question seems to
be whether this belongs in SDL. It would also require code for every OS
SDL supports (and, in the case of GTK/QT, more than one piece of code per
OS), which seems somewhat unpleasant to me. Would writing a custom one
using SDL graphics be a better solution?

Input welcome.

–oberon

Hi

I think that it’s better to write your own. How you want to save things is
different from time to time and person to person. Also, SDL should not, in
my oppinion, contain any such things as standard. In that case they could
just add all kinds of widgets and call it Visual SDL instead :wink:

Best regards
Daniel> ----- Original Message -----

From: oberon@brandeis.edu (oberon)
To:
Sent: Thursday, September 04, 2003 9:46 PM
Subject: [SDL] Possible addition to SDL

Would it be possible to add open/save file dialogue boxes to SDL, wrapping
the native calls? While I know how to do this in carbon and could probably
learn in Cocoa, GTK, QT, Windows, or whatever, the main question seems to
be whether this belongs in SDL. It would also require code for every OS
SDL supports (and, in the case of GTK/QT, more than one piece of code per
OS), which seems somewhat unpleasant to me. Would writing a custom one
using SDL graphics be a better solution?

Input welcome.

–oberon


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

oberon wrote:

Would it be possible to add open/save file dialogue boxes to SDL, wrapping
the native calls? While I know how to do this in carbon and could probably
learn in Cocoa, GTK, QT, Windows, or whatever, the main question seems to
be whether this belongs in SDL. It would also require code for every OS
SDL supports (and, in the case of GTK/QT, more than one piece of code per
OS), which seems somewhat unpleasant to me. Would writing a custom one
using SDL graphics be a better solution?

Input welcome.

Using an appropriate GUI built via 2D or OpenGL drawing would be a
better idea… popping in and out of full-screen mode to display a GUI
widget would be bug-prone, and also ugly for the user.

Another issue would be that not all SDL platforms have standard file
selector widgets… or even GUIs for that matter.

There are several projects listed on www.libsdl.org that implement GUIs
using 2D drawing or OpenGL…–
Chris Herborth
Otaku no sensei

Would it be possible to add open/save file dialogue boxes to SDL,

I have a simple widget set in C in beta test. It includes a file selector
widget for open, and I’ve just added a save dialog box. Currently we are
having problems with Mac OS X, and some build tools on Linux produce
incorrect code which causes segfaults. It has no known problems on Windows.

When these problems are solved, and I’ve finished a few new additions to the
widget set, the GPL’d code will be made available. In the meantime, if you’d
like to be one of the beta testers (nine others so far), email me privately
and I’ll send you a zip or tar.gz file (your choice) and you can try out the
code.

Jeff> ----- Original Message -----

From: “oberon”
To:
Sent: Thursday, September 04, 2003 9:46 PM
Subject: [SDL] Possible addition to SDL

Would it be possible to add open/save file dialogue boxes to SDL, wrapping
the native calls? While I know how to do this in carbon and could probably
learn in Cocoa, GTK, QT, Windows, or whatever, the main question seems to
be whether this belongs in SDL. It would also require code for every OS
SDL supports (and, in the case of GTK/QT, more than one piece of code per
OS), which seems somewhat unpleasant to me. Would writing a custom one
using SDL graphics be a better solution?

It’s probably safe to say this won’t be added to SDL itself. However,
there are lots of GUI toolkits that render to an SDL surface.

Google for “paragui” for one, or check the list of libraries on
libsdl.org.

–ryan.

It’s probably safe to say this won’t be added to SDL itself. However,
there are lots of GUI toolkits that render to an SDL surface.

Google for “paragui” for one, or check the list of libraries on
libsdl.org.

–ryan.

I’m thinking that maybe this sort of question should be added to the FAQ (if
it’s not already there). Seems there are a lot of requests for GUI stuff.