SHBrowseForFolder equivalent
by Ron Yacketta · in Torque Game Engine · 03/12/2006 (11:04 am) · 2 replies
Hey all you Penguin lovers out there in GG Forum land!
Does anyone know of an equivalent API call to SHBrowseForFolder (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shbrowseforfolder.asp ) for xlib? I went searching but found nothing, wondering if anyone knows of an api/tool or something that can be used within TGE.
Why do I ask? well TSTPro (for windows) uses SHBrowseForFolder and mac uses NavCreateChooseFolderDialog, so I need something simalar for the x86UNIX Platform. If all else fails I'll have to bring some 1.4 code over and make a new gui, but one limitation I see is the DirectoryList code only works within the game (mod path). This will be a major limitation seeing that current TSTPro users can load/save to any directory on the users PC
-Ron
Does anyone know of an equivalent API call to SHBrowseForFolder (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shbrowseforfolder.asp ) for xlib? I went searching but found nothing, wondering if anyone knows of an api/tool or something that can be used within TGE.
Why do I ask? well TSTPro (for windows) uses SHBrowseForFolder and mac uses NavCreateChooseFolderDialog, so I need something simalar for the x86UNIX Platform. If all else fails I'll have to bring some 1.4 code over and make a new gui, but one limitation I see is the DirectoryList code only works within the game (mod path). This will be a major limitation seeing that current TSTPro users can load/save to any directory on the users PC
-Ron
#2
-Logan
03/12/2006 (10:03 pm)
For filesystem calls, everything is OS specific, there is no standard way of doing them in c/c++. If you want a library that is available to be cross-platform, you can look into the Boost library, specifically the filesystem library. The link to the filesystem docs is http://www.boost.org/libs/filesystem/doc/index.htm . Let me know if this is helpful.-Logan
Torque Owner Charles B
sorry man, I'd help you if i could.
Ron, maybe you could look at how they do it in fltk or wxwindows?
fltk is available on Linux, mAc os, windos3 - specifically classes:
Fl_File_Chooser
Fl_File_Browser
http://www.fltk.org/index.php
maybe opengui / fastgl - or whatever they are calling it...
http://www.tutok.sk/fastgl/