Page 1 of 1

PBTool Include procedure() finder etc

Posted: Wed Apr 25, 2012 1:50 am
by Zebuddi123
Hi to All

Another little tool working but not finished, lists all includes in the pb\include dir and all the procedures etc in a treeview.

suggestions constructive criticism welcome

Zebuddi. :)

MD5 079547f2b586fa29a5a5befb007fafa7
http://goo.gl/mXKkL

Re: PBTool Include procedure() finder etc

Posted: Wed Apr 25, 2012 1:57 am
by STARGÅTE
Any Help to this tool?
How to add a file?
What are the parameters?
Nothing happens at all the buttons.

Re: PBTool Include procedure() finder etc

Posted: Wed Apr 25, 2012 2:21 am
by Zebuddi123
Sorry Startgate :oops:

It should autoread the purebasicpath()\include\ folder add all the includes and scan for procedures() required includefiles and imported functions. identify returns ie .s .l .w etc with a "returns a string" etc at end of proc name in the list.

buttons:
expand all, close all, as name implies.

reload - reloads if new includes added to dir

empty space for search -(not implemented yet tommorrow)

add include to editor - inserts selected include in to top of the current source in editor (not implemented yet tommorrow)

write to file - will allow to add procedures from clipboard as a new procedure() to that file etc (not implemented yet tommorrow)

Im no programming Guru like some of the community here, just having some fun and ideas and if whats useful for me is useful for other members of the pb community then thats a bonus

Zebuddi. :)

Must be half asleep :? no param required run as a tool from ide or stand alone !!!

Re: PBTool Include procedure() finder etc

Posted: Wed Apr 25, 2012 2:47 am
by STARGÅTE
ok, i have add this folder, but i get only status bar text: "59 Inlcude Files" but no list with this includes and no list with procedures.

Re: PBTool Include procedure() finder etc

Posted: Wed Apr 25, 2012 3:06 am
by Zebuddi123
This is what you should be getting

http://s19.postimage.org/vwki9nv83/ipf2.jpg

http://s19.postimage.org/fzlqcy2tv/ipf1.jpg

not tested it on anything except w7 x64

all though i have all OS`s i`ll install them in vbox tommorrow and test it in linux and OSX too

path to include dir is path$=PureBasicPath()+"include\"

which should pull up the correct path for the include folder :!:

zebuddi. :)

Re: PBTool Include procedure() finder etc

Posted: Wed Apr 25, 2012 3:18 am
by STARGÅTE
Zebuddi123 wrote:path to include dir is path$=PureBasicPath()+"include\"
you mean #PB_Compiler_Home+"include\"

your program find the inlcude files, but i get not tree items.
Use WIN-API for the gadget, which is only for Win7?

(i use Windows XP 32Bit)

Re: PBTool Include procedure() finder etc

Posted: Wed Apr 25, 2012 3:29 am
by Zebuddi123
@ startgate no win api`s all native pb procedures

tested on xp 32 sp3 works fine

Zebuddi.