Script for newLISP Function Reference Viewer.

Started by johu, May 14, 2010, 02:16:11 AM

Previous topic - Next topic

johu

I make newLISP Function Reference and GUI Fuction Reference Viewer.



ScreenShot is http://johu02.spaces.live.com/blog/cns!23A9A25E1AEC3626!2518.entry">here.(Japanese blog. 日本語の使い方もこちらで。)



Download URL is http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/newLISP-help.zip">//http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/newLISP-help.zip



 Usage: newlisp newLISP-help.lsp [directory | -URL | -URL=xxx.html] [yyy.ini] [zzz.hlp]

      directoy is the directory of newlisp_manual.html.

      xxx.html is the url or file for reading.

      yyy.ini is the initial file for Window's position and size with yyy.hlp.

      zzz.hlp is the function reference data file.



and examples:
newlips newLISP-help.lsp
newlips newLISP-help.lsp /usr/share/newlisp
newlips newLISP-help.lsp -URL=/usr/share/newlisp/newlisp_manual.html <- same as the usage above.
newlips newLISP-help.lsp -URL                                                       <- The latest reference is always shown.
newlips newLISP-help.lsp -URL=http://www.newlisp.org/downloads/newlisp_manual.html  <- same as the usage above.
newlips newLISP-help.lsp guiserver.hlp <- GUI Funcion Reference showing.
newlips newLISP-help.lsp newlisp.ini   <- Firstly, newlisp.ini and newlisp.hlp are created. At next time, Function Reference and Window's position and size are recoverd.


Thank you for reading to the last minute.



I welcome any advice, i.e. usage, code technique, mistake, etc.

cormullion

#1
Works great on my Mac so far. Thanks!

itistoday

#2
Very nice!



One request: there doesn't seem to be a way to get out of a search without changing the topic. Can you make it so that deleting the search string brings back the whole list (and maybe bind the escape key to that action)?
Get your Objective newLISP groove on.

johu

#3
Thank you, cormullion.

I bear Cormullion's Corollary in mind.



Thanks for request, itistoday.



I added Back button.

And deleting the search string brings back, but with return key.

An updated version is here:

http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/newLISP-help.zip">//http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/newLISP-help.zip



Is it suitable for your request ?



old-version is here:

http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/old/newLISP-help-20100514.zip">//http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/old/newLISP-help-20100514.zip



I use gs:text-field for InputBox, then I can't do an escape key work.

If using gs:text-pane, I can do. But it may request a focused InputBox.

And I have not learned the usage of gs:key-event, yet



If you do not like it, I will improve it.



P.S. additionally, Back Button has a simple history of search.

itistoday

#4
Cool, thanks johu! Seems to work nicely. :-)
Get your Objective newLISP groove on.

johu

#5
Sorry, Back-Button version has bug.



Search-button without search word enables Back Button.



Corrected version is here:

http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/newLISP-help.zip">//http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/newLISP-help.zip