Re: [MSEide-MSEgui-talk] Procedure List add-on for MSEide

2020-02-13 Thread fredvs
Re-hello Graeme.

It works **very** well.
I could not resist too to commit it to ideU.

Many wow and many thanks.

 

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] The evil that is mfm

2020-02-13 Thread fredvs
> Afaik, the *_mfm.pas are not necessary.
> You may delete them, there are given only for convenience (?) when you do
> a
> "touch form". 

Fake news!

*_mfm.pas ARE necessary.

So, sorry, I dont know the purpose of the objdata: record size: integer;
data: array
that is in *_mfm.pas.

(But I would be happy to know).

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] The evil that is mfm

2020-02-13 Thread fredvs
Hello Graeme.

Afaik, the *_mfm.pas are not necessary.

You may delete them, there are given only for convenience (?) when you do a
"touch form".

Now what is their utility, Martin did explain it but I did not understand
very well the purpose.

Maybe somebody else may explain that.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Procedure List add-on for MSEide

2020-02-13 Thread fredvs
Hello Graeme.

Sorry I cannot resist...

So, add msegridsglob in uses section of procedurelistform unit.

Then assign that procedure to grdProcedures.oncellevent():

procedure tprocedurelistfo.oncellev(const sender: TObject;
   var info: celleventinfoty);
begin
 if info.eventkind = cek_buttonrelease then
 if info.mouseeventinfopo^.shiftstate = [ss_double] then 
begin
  { Jump to the line of code for the procedure we selected. }
  JumpToSelectedLine;
  Close;
end;
 end;

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Procedure List add-on for MSEide

2020-02-13 Thread fredvs
Excellent Graeme.

And so out-of-the-box, load the prj compile and run without any problems.

Very useful indeed, Geany has that feature, nice to see it back.

Maybe you may add a oncellevent() method that jump into the source editor to
the line of the method that you 2xcliked.

As usual, "if you want I may do it for you".

;)

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] What version(s) of FPC is supported

2020-02-13 Thread fredvs
>> All that to say that maybe we can keep backward compatibility untill fpc
>> 2.4.0.

> Is there really a purpose to still keep such backwards compatibility? 

For me no.

Lets keep our strength to keep forwards compatibility!

;)

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] What version(s) of FPC is supported

2020-02-13 Thread Graeme Geldenhuys
On 13/02/2020 11:05 pm, fredvs wrote:
> Maybe we could see what is the oldest fpc version still distributed.

Free Pascal's own server (ftp) contains all prior versions of FPC. So
any of them can be installed in theory. I still have FPC 2.6.2 and FPC
2.6.4 installed on my current system. No idea why though! :-)


> All that to say that maybe we can keep backward compatibility untill fpc
> 2.4.0.

Is there really a purpose to still keep such backwards compatibility?


Regards,
  Graeme


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Procedure List add-on for MSEide

2020-02-13 Thread fredvs
Hello Graeme.

I will study you mail deeper but all seems excellent!

Write you later.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] The evil that is mfm

2020-02-13 Thread Graeme Geldenhuys
Hi,

After spending nearly and hour rebasing only two small branches from
2016 and bringing them up to date with the latest MSEide, I discovered
that I really dislike this "mfm" idea of forms.

I understand the *.mfm is the "object version" of the *.pas file that
represents a window/dialog. Just like Delphi's *.frm or Lazarus's *.lfm
files.

But what the hell is the point of the *_mfm.pas file It's like a
semi binary array version of the window/dialog. Not human readable at
all, so impossible to resolve merge conflicts in. MSEide also seems to
prefer reading the contents of that file, instead of the *.mfm file,
which makes matters even worse. I had to recreate many settings by
killing off all my branch changes and manually redoing them so MSEide
can regenerate the latest stupid *_mfm.pas file with my changes.

Martin had many brilliant ideas, but the *_mfm.pas was absolute rubbish.
 Why 3 files per form. Why a binary version (even Delphi learned what a
bad idea that was back in the day)   :-(


Regards,
  Graeme


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] What version(s) of FPC is supported

2020-02-13 Thread fredvs
Re-hello.

Maybe we could see what is the oldest fpc version still distributed.

For example, yesterday I did try to install Lazarus via deb package (because
it is the only way).
I know, the right not of the box way is to download the deb files from
Lazarus repository and install those deb files.

But I did the wrong way via internet, using sudo apt-get install fpc then
sudo apt-get install lazarus.

Huh, the fpc version installed is 2.4.2 and not compatible with  sudo
apt-get install lazarus.
So, as usual, I removed all fpc and lazarus from my pc.

All that to say that maybe we can keep backward compatibility untill fpc
2.4.0.

Fre;D 








--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] What version(s) of FPC is supported

2020-02-13 Thread fredvs
Hello Graeme.

I would not be surprised that msegui is still compatible with fpc of his
first release in 1999.
I dont remember what fpc version was used in that time and dont have old fpc
version to test.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] New release of ideU with Code Beautifier ptop and Jedi.

2020-02-13 Thread fredvs
Hello everybody.

> By the way I did a new repository of forked fpc ptop.
> https://github.com/fredvs/ptop

The github repository was renamed into:
https://github.com/fredvs/xtop

This because now there is a new member in the family: jtop.

jtop has the same spirit and feature as ptop but this one is for Java code.

So it is also a light stand-alone command line program, compiled with fpc.
That does not exist open-source for Java, on applets or pluggin exist.
It is under test but it works already very well.

I was in plan to do it also for C source but it exists lot of open-source
projects that does it already.

Have fun and beautify all around you too.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] What version(s) of FPC is supported

2020-02-13 Thread Graeme Geldenhuys
Hi,

Anybody know what is the oldest version of FPC that is supported by
MSEide+MSEgui.  I guess that would be both the msegui framework, as well
as the mseide itself.

Did Martin was any specific rules regarding this? ie: Only latest FPC
release version and greater. Or latest FPC release and the prior stable
release?

The reason I ask. I see loads of very old IFDEF FPC versions in the
msegui code and wondered if one can start cleaning those up at some point.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] New release of ideU with Code Beautifier ptop and Jedi.

2020-02-13 Thread Graeme Geldenhuys
On 13/02/2020 5:34 pm, Graeme Geldenhuys wrote:
> Please try and share such changes back to FPC. It really helps them and
> the community in a whole.

Ignore my message - I see you already shared your changes. Well done! :-)

Regards,
  Graeme


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] New release of ideU with Code Beautifier ptop and Jedi.

2020-02-13 Thread Graeme Geldenhuys
On 13/02/2020 11:45 am, fredvs wrote:
> By the way I did a new repository of forked fpc ptop.
> https://github.com/fredvs/ptop
> 
> That version has "comma" keysymbol and can deal commas layout like
> myunit1,myunit2,myunit3 > myunit1, myunit2, myunit3.


Please try and share such changes back to FPC. It really helps them and
the community in a whole.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] New release of ideU with Code Beautifier ptop and Jedi.

2020-02-13 Thread Graeme Geldenhuys
On 13/02/2020 1:20 pm, fredvs wrote
> I have to confess that I am the worst in that field. When I code new
> idea, I do it without to care about formatting and at the end there
> is a mess.

I am (was) the total opposite. I hate messy code and spend way too much
time formatting my Pascal code. But that is what I really love about
Eclipse and IntelliJ - I don't bother code formatting any more, because
as soon as I save, the IDE takes care of that tedious task for me -
automatically. I love it! :-D

> Do you agree if I use your JCFSettings.cfg as default config file
> for Jedi+ideU?

You are welcome to use anything you find useful in fpGUI's code
repository. That's what open-source is all about... Collaboration and
Sharing.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] New release of ideU with Code Beautifier ptop and Jedi.

2020-02-13 Thread fredvs
Hello Graeme.

> One such feature I enabled immediately was
> to automatically format the code when you save a file.

I have to confess that I am the worst in that field.
When I code new idea, I do it without to care about formatting and at the
end there is a mess.

After that, when I am courageous, I do manually reformat the code (but it is
boring).

I know it is not the good way to do, I have to format directly while coding.

But the years go by and I don't correct myself so maybe the best solution is
to do like you propose:
a auto-formatter for incorrigible and lazy people like me.

In fpGUI project there is
/fpGUI-maint/extras/jedi_code_format/JCFSettings.cfg.

I did copy it into /ideU/plugin/jcf and renamed it into jcf.xml to make ideU
happy.
It works out-of-the-box and your parameters are interpreted.

Do you agree if I use your JCFSettings.cfg as default config file for
Jedi+ideU?

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] New release of ideU with Code Beautifier ptop and Jedi.

2020-02-13 Thread fredvs
Re-hello Roland!

> If you want to play with code formatters, there is another one here:
> https://corpsman.de/index.php?doc=projekte/delforlaz

Ok; I did test it but...
It is a Lazarus pkg that needs LCL interface, so I dont know how to use it
as stand-alone application or in a "pure Xorg" system, with GTK or Qt not
installed (that fpGUI and MSEgui can deal).
But maybe I miss something.

Anyway thanks for the link, it would be great to propose lot of beautifier
engines and give the choice to people to use the one he like.

Have a perfect day.

Fre;D






--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] New release of ideU with Code Beautifier ptop and Jedi.

2020-02-13 Thread fredvs
Hello Roland!

> If you want to play with code formatters, there is another one here:
> https://corpsman.de/index.php?doc=projekte/delforlaz

For sure I will test it, thanks for the link.

By the way I did a new repository of forked fpc ptop.
https://github.com/fredvs/ptop

That version has "comma" keysymbol and can deal commas layout like
myunit1,myunit2,myunit3 > myunit1, myunit2, myunit3.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk