[psoc-2008] Week[2] Report: Preferences Finished; Added Log Facility

Skaman Sam Tyler skamansam at gmail.com
Sun Jun 15 01:47:16 UTC 2008


This past week I have been working on finishing up the last few subclasses
for the Preferences dialog, which is an interface to CPANPLUS::Configure.
Everything seems to be in working order! The $config->get_conf('hosts')
interface was the biggest pain, as I had to parse the contents of the
MIRRORS.txt file (see blog). I put in quite a bit of time optimizing this
function.

During all of this writing<-->testing recursion, I noticed quite a bit of
print() statements were being used. This meant I had to run the program,
test it, then switch back to the console to see output. Since I have been
using the wxPerl demo to see available options, I noticed Wx's LogXXX
functions. So I wondered how difficult it would be to implement a logging
facility for wxCPAN. It took very little time to implemet, but quite a bit
to find a facility that actually worked (I tried several)!  I settled on
adding a tab in the main window to display log messages. Right now, the tab
is visible, but when I implement the toolbar this coming week, the tabs will
not be visible.

Next week: Displaying installed modules and full GUI creation!

--Skaman Sam Tyler <skamansam at gmail.com>
--http://rbe.homeip.net
--AIM:SkamanSam3
--MSN:SamuelCTyler at hotmail.com <MSN%3ASamuelCTyler at hotmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://hexten.net/pipermail/psoc-2008/attachments/20080614/520981bd/attachment.htm 


More information about the psoc-2008 mailing list