|
Load a file with DIALOGs |
James Stanley
Member #7,275
May 2006
|
Is there an easy way to get a filename using a DIALOG? For example, is there an allegro DIALOG, so that I could type: |
miran
Member #2,407
June 2002
|
You mean file_select_ex? If so, why didn't you read the manual? -- |
James Stanley
Member #7,275
May 2006
|
Ah, thanks. |
ImLeftFooted
Member #3,935
October 2003
|
Allegro's file selector is ugly, should be redone. Maybe allegro could use a wrapper to get the OS / WM's native file selector |
Kitty Cat
Member #2,815
October 2002
|
That'd only work in windowed modes. In fullscreen modes you're not gauranteed to be drawing to the same screen area the OS would. And there's no gaurantee the OS's file selector would show on top of the app. -- |
ImLeftFooted
Member #3,935
October 2003
|
Still could be usefull. A lot of games come with editors that might only be in windowed mode. |
Kitty Cat
Member #2,815
October 2002
|
It'd also really only be useful for Windows and KDE-based (maybe a few others) systems, too. Linux has no general concept of a file selector. There's none in Linux console mode. Some DMs don't have a built-in file selector. With KDE you can make a call to kdialog and read its stdout, but I don't believe Gnome/GTK has a similar external method. And of course, just the presense of kdialog doesn't mean you're on a KDE-based system, nor that it's the kdialog program you think it is. You can always try to run dcop to see if the dcop server is running (which would be a good indication that you're using KDE), but that won't be reliable for very long since dcop isn't being used in KDE 4. -- |
ImLeftFooted
Member #3,935
October 2003
|
You'd do it where possible, like all the other allegro drivers do. |
|