Amos Feature import it to PB?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by shdancer.


In Old Amos IDE there was a feature that i think it was nice to
implement in PB, it was Fold/UnFold Procedures, so if for example
you had a source code with +/- 50000 Lines of code you could Fold
just the procedures to one line, this would help alot the code visualisation.

So when i do a mouse right click on the procedure it would
show an option Fold/Unfold menu depending on the state.

I think this would be very helpfull for long sources, what do you think about this??

Example :

(Unfold)
Procedure test()
For Counter= 1 to 100
Debug "Hello World!!!"
Next Counter
EndProcedure

(Fold - In a Diferent Color or Font Type)
Procedure test()



ShDancer
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Num3.

This has been a very requested feature for PB...
There's much work going on with PB, and that feature is low priority :)

--
Kind Regards
Rui Carvalho

Old programmers never die... They branch into a subroutine...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

The editor is opensource, if some of you are interessted :).

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by shdancer.
Originally posted by fred

The editor is opensource, if some of you are interessted :).

Fred - AlphaSND
Hum thanks fred, just what i wanna to hear.

By the way where is the latest version ?
In the cvs???
http://cvs.purebasic.com

Num3 : What do you think about this?????

Just saw this in the Announcements.
viewtopic.php?t=5513

I'll check it out later at home.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by shdancer.

Almost Done maybe after Lunch i'll finish it. but its almost.


Just made "cat /zImage > /dev/audio" and i think i've heard God.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by shdancer.

Well i was just to optimistic in my last post. :)

Just added the option Fold Unfold in the Pop up menu, and change the text.
So if i select from Procedure...EndProcedure then Right click and
select Fold it whould be like the example and UnFold changes back
to normal.
By the way thanks to Danilo for is code "SelectionComments.pb"
it was very helpfull.

But now i can't Hide or not show these lines in the IDE because
i don't know how to work with RichEdit :cry:.

Chr(06)Procedure test()
Chr(07) For Counter= 1 to 100
Chr(07) Debug "Hello World!!!"
Chr(07) Next Counter
Chr(07)EndProcedure

These are the missing points that i remember:
- Need to know if the selection has a full procedure inside.
- Change "Procedure test()" Font or Color or Style after Fold
- Change "Procedure test()" Font or Color or Style to normal after UnFold
- Change text to Run/Compile (This should write a temp file and use it)

Can some one help me with this.

Thanks.


Just made "cat /zImage > /dev/audio" and i think i've heard God.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Berikco.
Well i was just to optimistic in my last post.
:)

Dont forget:
- Change the line numbers in statusbar, so they still are correct in folded state.
- Change procedure browser, so it knows a folded procedure.
- unfold procedure if user do a copy ( or he wil not copy that procedure).
- unfold all procedures if user use an external tool. Of course fold again when tool is finished and source reloaded.

And the list is much...much longer i guess

If it could be done in couple of hours.......

:)







Regards,

Berikco

http://www.benny.zeb.be/purebasic.htm
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by shdancer.

Welll i saw in this forum a thread that has the same topic/Idea so from now on guys i'll be posting there.

viewtopic.php?t=2525

Thanks for all the help.

Just made "cat /zImage > /dev/audio" and i think i've heard God.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GPI.
Originally posted by fred

The editor is opensource, if some of you are interessted :).
I have made a mod of the old version of the editor and no of my features are in 6.31!

For example the insert and the remove of spaces at the beginn of a marked text.
This is usefull, when you add a if and want a formated code...

Also CTRL+SHIFT+B for removing Comment Blocks doesn't work right. This will add a empty line after the comment-blocks. This happend, because in the sourecode the line will be deleted with sending the "del"-key to richedit, but richedit checks the shift-key-status and shift+del does nothing...

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
Post Reply