Hi,
I created a File Browser addon for Lazarus (thanks MvC for IDE integration). See attached screenshot.
The last feature I need to add before I contribute the code, is drive letter support under Windows. I know how to find those, as I have done it before in fpGUI's File-Open Dialog.
My problem is, how am I supposed to implement platform specific code in a Lazarus addon? Am I allowed to use IFDEFs?
eg;
{$IFDEF MSWINDOWS}
.... get available drive letters...
{$ELSE}
.... return / ...
{$ENDIF}As a matter of interest, here is a quick list of future extensions or improvements which can be implemented for the File Browser. I'm sure you guys will can think of more...
* File filter support (*.pp, *.pas et...)
* Eye-candy - icons in the treeview and filelistbox
* Source Control integration (SubVersion etc..)
* Directory bookmark support
* Dialog position persistence via IDE (Environment Options | Windows tab)
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FileBrowser.png
Type: image/png
Size: 6814 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080917/7d7c52ab/attachment-0001.png
