Introducing FiveTech's fivedit

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Introducing FiveTech's fivedit

Post by Antonio Linares »

This is the first release (pending to be intensively tested) of FiveTech fivedit, a source code editor and projects manager.
You can already easily create and build projects from it:

https://bitbucket.org/fivetech/fivewin- ... ivedit.zip

fivedit.exe has been build using FWH 15.01. Full source code included.

Please be aware that this is a work in progress so it has the risk to loose your changes, or modify your files.
So please make backup of your files before using it, thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Introducing FiveTech's fivedit

Post by Antonio Linares »

Fivedit projects are ascii files with this structure:

YourProject.prj

[files]
1=test.prg
2=one.prg
3=two.prg
4=three.prg
5=test.rc

You can create them from fivedit itself (just open a file and select "Add item" from from Projects menu, then save the project from the projects menu).

In case that you have many files to add, you can edit them and add your files manually.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Introducing FiveTech's fivedit

Post by Antonio Linares »

When you save a project, current fivedit settings are saved in the project file too.

A project settings has preference over the general fivedit preferences.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Introducing FiveTech's fivedit

Post by Rick Lipkin »

Antonio

It would be very beneficial if you could use the right side pane to show a jump list of User defined functions ( or methods ) contained within the .prg.

I am not too interested in collapsible (+) code within the .prg .. I would just rather see the entire code, but the jump list for me is the 'gold standard' for text editors.

Rick Lipkin

ps .. right click on the .prg <open tab> and offer to close as a short-cut 8)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Introducing FiveTech's fivedit

Post by Antonio Linares »

Rick,

Thats already implemented :-)

Just open a large PRG and you will see all your functions at the right side

Good idea the right click for close, but that we force use to use TFolderEx instead of TFolder. No problem but it will not be a quick change :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Introducing FiveTech's fivedit

Post by James Bott »

Antonio,

Wow, you have put a lot of work into this. I'm impressed.
Just open a large PRG and you will see all your functions at the right side
Yes it is working great for functions, but it would really helpful if it worked for methods as well. And classes too. For as you know, I am OOP obsessed now. Or, maybe I'm possessed...
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Introducing FiveTech's fivedit

Post by Antonio Linares »

James,

Methods are supported too. Please see this line in function FillFuncList():

if cToken $ "static func,func,proc,clas,meth,hb_f"

if a line starts with that, then it is shown :-)

Tomorrow we will publish FWH 15.01 so you will be able to build Fivedit.prg for yourself and now, we have lots of possibilities to add :-)

yes, I am possessed too with classes and objects ;-)

Yesterday I was chatting with Pritpal, telling him about "Actor". Not sure if you ever used it. Actor and Smalltalk somehow were the "fathers" of Clipper object oriented implementation :-) FWH\samples\classtre.prg reminds the "Actor" interface.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Introducing FiveTech's fivedit

Post by Rick Lipkin »

Antonio

Opened my version and I did not see the Function Jumplist :(

Rick Lipkin
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Introducing FiveTech's fivedit

Post by Antonio Linares »

Rick,

Please download again fivedit.zip from:

https://bitbucket.org/fivetech/fivewin- ... ivedit.zip

There was a bug. Already fixed. This was missing :-)

Code: Select all

   ::oEditor:bGotFocus = { | o | ::oEditor := o, ::FillFuncList() } 
 
See how Fivedit.exe shows itself:
Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Introducing FiveTech's fivedit

Post by Antonio Linares »

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Introducing FiveTech's fivedit

Post by James Bott »

Antonio,

Even with the new version, I do not see methods in the jumplist, only functions.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Introducing FiveTech's fivedit

Post by Antonio Linares »

James,

Please open a PRG from FWH\source\classes and let me see how you see it, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Introducing FiveTech's fivedit

Post by James Bott »

Ok, I see that methods will show when they already exist in the file when you load it, but new methods typed in do not show (until the file is saved and reloaded).
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Introducing FiveTech's fivedit

Post by Antonio Linares »

James,

Class TFivedit Method FillFuncList() updates the jump list, so we need to call it when the user press VK_ENTER in the editor.

Lets see how to implement it... :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Introducing FiveTech's fivedit

Post by James Bott »

It appears that you are sorting the jumplist, and if so, shouldn't "function" come before "method?"
Post Reply