FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Introducing FiveTech's fivedit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 07:38 PM
Done :-)

Code (fw): Select all Collapse
   ::oEditor:bKeyDown = { | nKey | If( nKey == VK_RETURN, ::FillFuncList(),) }


I am going to upload it to bitbucket again...
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 07:41 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 08:51 PM

Looking good! You're a magician.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Introducing FiveTech's fivedit

Posted: Fri Jan 16, 2015 09:20 PM

Surely still has many bugs but we may improve it if some of us start playing with it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Introducing FiveTech's fivedit

Posted: Sat Jan 17, 2015 06:10 AM
Enhanced version that shows the source code lines numbers:

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

It includes full source code so you can include it in your own apps, modify it, etc :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 153
Joined: Tue Aug 05, 2014 09:48 AM

Re: Introducing FiveTech's fivedit

Posted: Sat Jan 17, 2015 08:40 AM

Excellent
Thank you, Sir

Regards, Greetings



Try FWH. You will enjoy it's simplicity and power.!
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Introducing FiveTech's fivedit

Posted: Sat Jan 17, 2015 05:06 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Introducing FiveTech's fivedit

Posted: Sat Jan 17, 2015 06:20 PM
Antonio,

I did a little more working with the editor, and I have a few suggestions.

1) When you change an existing function or method line, it is not updated in the jumplist if you don't press Enter. In other words, updating should also be triggered by clicking on a different line, or using the cursor to move to a different line.

2) When resizing the app window, the panels do not get resized, thus some of the screen is no longer visible. It would be nice if the panels also resized.

3) Jumplist: In some other editors the jumplist is shown as a tree. So you would have "functions" and "methods" as top level then all the rest as sublevels.

Code (fw): Select all Collapse
Functions
   Main()
   Whatever( nCount, nSize)
Methods
   New( cFile )
   End()

This would a nice addition.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Introducing FiveTech's fivedit

Posted: Sun Jan 18, 2015 06:03 AM

James,

  1. We could add support for up and down arrow

  2. How to resize it ? Should we respect the width of the panels and shrink the editor ? Do we apply a percentadge to all of them ?

  3. The list of functions and methods is alphabetically ordered. So methods are always at the top.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Introducing FiveTech's fivedit

Posted: Tue Jan 20, 2015 12:20 AM
Antonio,

1. We could add support for up and down arrow

2. How to resize it ? Should we respect the width of the panels and shrink the editor ? Do we apply a percentadge to all of them ?

3. The list of functions and methods is alphabetically ordered. So methods are always at the top.


Up and down arrows would be good.

The editor I am using just resizes the edit panel. I just noticed this when I was looking at the two editors side-by-side. I would say this is just a nice to have option, but not all that important.

Sorting--I was just wondering since "f" comes before "m" shouldn't "Function" be at the top, followed by Method, then Static?
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Introducing FiveTech's fivedit

Posted: Tue Jan 20, 2015 06:54 AM
James,

> Up and down arrows would be good.

Done:

Code (fw): Select all Collapse
   ::oEditor:bKeyDown = { | nKey | If( nKey == VK_RETURN .or. ;
                                       nKey == VK_UP .or. nKey == VK_DOWN,;
                                       ::FillFuncList(),) }


>
The editor I am using just resizes the edit panel. I just noticed this when I was looking at the two editors side-by-side. I would say this is just a nice to have option, but not all that important.
>

We can respect the widths of the project panel and the functions list panel and shrink the editor. Its easy.

> Sorting--I was just wondering since "f" comes before "m" shouldn't "Function" be at the top, followed by Method, then Static?

Yes, right. We use a standard ASort() for it
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Introducing FiveTech's fivedit

Posted: Tue Jan 20, 2015 07:00 AM
James,

Updated version with up and down functions list refresh support:

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

Antonio Linares
www.fivetechsoft.com
Posts: 38
Joined: Tue Mar 04, 2008 03:44 PM

Re: Introducing FiveTech's fivedit

Posted: Tue Jan 20, 2015 12:27 PM

Antono,

  1. Added adsrdd.lib ace32.lib to Refrence's harbour Extra Libraries, but is not stored to fivedit.bat.

  2. when add much lib that harbour, should you put path certainly?

This time, should like to do and add token at program.

  1. if begin fivedit again, project that executed last exclusively should likes to appear.

Regards,
Moon

Regards,

Moon

FWH 16.11 | xHarbour | Harbour | BCC72 | DBF | ADS | MySQL | DrLib
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Introducing FiveTech's fivedit

Posted: Tue Jan 20, 2015 04:30 PM
Moon,

Fixed. Now FWH extra libs, Harbour extra libs, and C Compiler extra libs are included in fivedit.bat
in both single PRG execution or from a Project execution:

Code (fw): Select all Collapse
   if ! Empty( ::cFWHExtraLibs )
      AEval( hb_aTokens( StrTran( AllTrim( ::cFWHExtraLibs ), ",", "" ) ),;
             { | cLib | cFWHExtraLibs += AllTrim( ::cFWHPath ) + "\lib\" + ;
                        cLib + " " } )
   endif                     

   if ! Empty( ::cHarbExtraLibs )
      AEval( hb_aTokens( StrTran( AllTrim( ::cHarbExtraLibs ), ",", "" ) ),;
             { | cLib | cHarbExtraLibs += AllTrim( ::cHarbPath ) + "\lib\" + ;
                        cLib + " " } )
   endif                     

   if ! Empty( ::cCCompilerExtraLibs )
      AEval( hb_aTokens( StrTran( AllTrim( ::cCCompilerExtraLibs ), ",", "" ) ),;
             { | cLib | cCCompilerExtraLibs += AllTrim( ::cCCompilerPath ) + "\lib\" + ;
                        cLib + " " } )
   endif


(FWH, Harbour, C Compiler) path + "\lib\" is placed before the extra libs names.

Used projects appear on the Main menu "Project" MRU (most recently used) bottom options.

Here you have a Fivedit updated version. Many thanks for your feedback:
https://bitbucket.org/fivetech/fivewin-contributions/downloads/fivedit.zip
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Introducing FiveTech's fivedit

Posted: Tue Jan 20, 2015 04:34 PM

Antonio,

Jumplist sorting: This seems to be a case issue. All items need to be converted to uppercase before sorting.

This line does the sorting:

::oFunList:SetItems( ASort( aFuncs ) )

I'm not sure how to solve this because if we do this:

::oFunList:SetItems( ASort( Upper( aFuncs ) ) )

Then all the items will be displayed in uppercase. I don't think we want this, we just want them sorted as if they were uppercase. Maybe using a 2-dimensional array--one element with the original format and one with uppercase format?

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10