Introducing FiveTech's fivedit

Introducing FiveTech's fivedit

Postby Antonio Linares » Fri Jan 16, 2015 7:48 am

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-contributions/downloads/fivedit.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: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Introducing FiveTech's fivedit

Postby Antonio Linares » Fri Jan 16, 2015 8:07 am

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: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Introducing FiveTech's fivedit

Postby Antonio Linares » Fri Jan 16, 2015 8:10 am

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
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Introducing FiveTech's fivedit

Postby Rick Lipkin » Fri Jan 16, 2015 2:23 pm

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
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Introducing FiveTech's fivedit

Postby Antonio Linares » Fri Jan 16, 2015 5:50 pm

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
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Introducing FiveTech's fivedit

Postby James Bott » Fri Jan 16, 2015 6:10 pm

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
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Introducing FiveTech's fivedit

Postby Antonio Linares » Fri Jan 16, 2015 6:51 pm

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
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Introducing FiveTech's fivedit

Postby Rick Lipkin » Fri Jan 16, 2015 6:58 pm

Antonio

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

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Introducing FiveTech's fivedit

Postby Antonio Linares » Fri Jan 16, 2015 7:19 pm

Rick,

Please download again fivedit.zip from:

https://bitbucket.org/fivetech/fivewin-contributions/downloads/fivedit.zip

There was a bug. Already fixed. This was missing :-)
Code: Select all  Expand view  RUN
  ::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: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Introducing FiveTech's fivedit

Postby Antonio Linares » Fri Jan 16, 2015 7:28 pm

Image
regards, saludos

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

Re: Introducing FiveTech's fivedit

Postby James Bott » Fri Jan 16, 2015 7:30 pm

Antonio,

Even with the new version, I do not see methods in the jumplist, only functions.
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Introducing FiveTech's fivedit

Postby Antonio Linares » Fri Jan 16, 2015 7:31 pm

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
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Introducing FiveTech's fivedit

Postby James Bott » Fri Jan 16, 2015 7:33 pm

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
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Introducing FiveTech's fivedit

Postby Antonio Linares » Fri Jan 16, 2015 7:36 pm

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
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Introducing FiveTech's fivedit

Postby James Bott » Fri Jan 16, 2015 7:37 pm

It appears that you are sorting the jumplist, and if so, shouldn't "function" come before "method?"
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 25 guests