New IDE-Plugin: Structure-Code-Completing

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

New IDE-Plugin: Structure-Code-Completing

Post by Didelphodon »

Hi!

I've done a fancy plugin. It provides code-completing when want to type fieldnames of userdefined structures used for variables or linked lists.
More information is included in the zip.

Have fun!

Link: http://members.chello.at/pure-basic-ess ... leting.zip

Greez, Didelphodon.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Post by Didelphodon »

Hi!

Tonight I'm goin to put a newer Version online. Now also predefined Structures are supported!

Some feedback would be nice!! :x

Greez, Didel.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Some feedback would be nice!! :x

Take it easy! Why is there an expectation of instant response? I, for one,
have no use for your app, which is why no feedback came from me. Others
will have their reasons too. No need to use the "mad" icon about it.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Hi Christian if your new here so welcome.. :)
I will try your Plugin tomorrow evening when i have time, to give you some feedback

best Henrik
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Some feedback would be nice!! :x
I still use jaPBe ... sorry ...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Post by Didelphodon »

The newest version of the Structure-Code-Completer is online - now also supporting predefined structures for code-completing.

Greez Didel.
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Hi Christian
Well Cool Tool 8)


<FeedBack>


This works (Great)
WinApi

Code: Select all

RE.RECT
Re\
Using Shift+Space or By the Menuitem [SomeThingCool]

This too
Homemade Structure (From the Help he.he )

Code: Select all

Structure Person
    Name.s
    ForName.s 
    Age.w 
EndStructure
NewList MyFriends.Person()
   
MyFriends()\
But This Does'nt but it would be nice if it did

Code: Select all


Structure Person
    Name.s
    ForName.s 
    Age.w 
EndStructure
 
Dim MyFriends.Person(100)
   
MyFriends(0)\

</FeedBack>

Otherwise great tool thanks

Best Henrik
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Post by Didelphodon »

Thanks for the feedback!

Yeah, I didn't think about that possibility - I correct it tomorrow.

Greez Didel.
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Thats Cool 8)
Peeking back tomorrow then..

Best Henrik
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Post by Didelphodon »

The newest version of my plugin is online and shows a brand new look and feel and has a few features more. Especially the capability of generating full code-rows relating to the original-row (when doin multi-selections) is very mighty - just check it out!

Greez, Didel!
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Hi Artist Formerly Known As Christian
Sorry Dedelphphphsomething :)
Right: half a sleep, i was quite baffled when the yellow hepl appeared, but i came over it.

it's quite cool you know :) , i really like the multiselect in the listicon, which brings up two things.
1. I'm maybe too tired but i can't figure out what i'm supposed to do with "\/" thing ?

2. I know this is a bit overkill, but if i doen't ask you may never realize taht you allwayes wanted to implement this.
It's of course not a must, just an idea :wink:

if you know TotalCommander you can select some files out of many by rightmouse Click on the item/file
So like this in the listicon, could you insert "like" Checkboxes ?? Example:

Code: Select all

Structure Person
    Name.s
    ForName.s
    DogName.s
    Age.w
    ShoeSize.l
    HairDirection.S.W
    ToothPaste.b
EndStructure
IF want to multiselect items from the structure but only some of them

Code: Select all

MyFriends()\Name
MyFriends()\ForName
MyFriends()\Age
and
MyFriends()\ToothPaste
Then if this could be done with checkboxe or like RightmoseClick..
Again, This is of course not a must, just an idea.. :wink:
well i shut up now, as is now, it's a very cool and handy tool, thanks :D

Regards to Pascal and a Merry Christmas to you & Pascal "Fred" and the rest off the PB-Folks here, there and everywhere. 8)

Henrik..
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Post by Didelphodon »

Hi Henrik!

Thx for this enhanced feedback!

Explanation what the \/-thing does: As you see a multiselection (you can even select just a few by doin a click in combination with the ctrl-key on every desired item) will result in a generated source-row for each item you selected. So far so good. In the original row where you would do the <Shift> + <Space> thing (or as you declared it) stop for a moment and before you call the tool insert everywhere in this row (except the main-insertion-point where you would/will do the tool-call) the "\/"-string, which means that in that locations the field-name will ALSO be inserted. Now you can do the <Shift> + <Space> code in the location you wanted to do it first and do a multi-selection and look what the tool does.

Example:

var1\ = var2\\/

Toolcall is located behind "var1\" and you'll have a fast generated transfer of data.

OR

var1\ = ReadPreferenceString("\/", "")

Toolcall is located behind "var1\" (again) and you'll have a fast generated loading of data out of a ini-file.

Get it?

The second question of yours - ahm, i didn't get that, can you give that another try? :roll:

Greez, Didel.
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Hi Christian
First: this "maybe" would have saved me some trouble when i tried to do some ping stuff
the "HOSTENT structure variables names" -correcting the tongue- has change in pb 3.94
"it's a Maybe", cuz i found out that i cant ping at all, except for localhost, but thats another storry.. :evil:
But the fact that you have the correct itemnames and their typeid. is very great beside the fact, that it save you from lookking up and type alle the stuff by hand. :D

Right: about the "\/" maan did i felt really dumb, cuz i got it nearly right, in the first place, but it didn't do ****,
what i did wrong was like:

Var1\=var2\/ -- (check out var2... "var2\/ <> var2\\/")
and then i placed the curser behind var2\/ <-, an example would maybe a good idea for the next ver.

As for my second question:
HA ha. it's exactly what Ctrl+mouse does :lol: , lol, except that i thought about using Rightmouseclick for this.
But ctrl+mouse is fine, now that i know that i can do that. :)

This is just so handy this tool, i don't recall/know what jaPBe do, but then again it discontinued, sooo ...

Right: i'm off for the family.
Merry X-Mas to you and your family Christian. 8)

hmm. wonder how you did this ? get the itemnames that is. :?:

Best Regards Henrik
Merry X-Mas to All And Fred Too :D
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Post by Didelphodon »

Thx for ya nice reply and thx for the wishes - same to you my friend.
Btw. in the near future I'm goin to post newer versions with better help, info, usability and features.

Till then,

cu, Didel.
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

:D
Sounds Great Didel :D

Best Regrads Henrik.
Post Reply