Re: [Lazarus] PoChecker possible cosmetical patch

2014-06-26 Thread Václav Valíček
I have opened bug no. #26395 Link: http://bugs.freepascal.org/view.php?id=26395 Václav Valíček vac...@valicek.name Dne 19.6.2014 23:39, Bart napsal(a): On 6/19/14, Václav Valíček vac...@valicek.name wrote: Hi, I have made improvement for PoChecker package/app for lazarus. I'm sending

Re: [Lazarus] IDE bug handling translations?

2014-06-26 Thread Václav Valíček
Added some patches for Czech translation and IDE resourcestrings. Caused some more bugs in other's translations... Report ID: #26394 Link: http://bugs.freepascal.org/view.php?id=26394 There are two main problems: 1, in Licences, I have replaced all %s with sLine break (in .po file \n) 2,

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Michael Schnell
On 06/25/2014 09:57 PM, Sven Barth wrote: If you rely on the new TThread functionality you'd need to at least put in guards against compiling with a pre-2.7.1 compiler. Can I do this by a {$ifdef ... } ? Better would be to write the code in a way that it works with 2.6.x as well. I can

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 09:30:58 +0200 Michael Schnell mschn...@lumino.de wrote: On 06/25/2014 05:22 PM, Mattias Gaertner wrote: ok, then it needs ifdefs in nogui. Yep. How does such an ifdef exactly look like ? {$IF FPC_FULLVERSION = 20701} Mattias --

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Michael Schnell
On 06/25/2014 05:22 PM, Mattias Gaertner wrote: ok, then it needs ifdefs in nogui. Yep. How does such an ifdef exactly look like ? (see my answer to Sven..) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Lazreport of master-detail

2014-06-26 Thread Koenraad Lelong
op 24-06-14 12:20, Reinier Olislagers schreef: On 24/06/2014 10:29, Koenraad Lelong wrote: backtrace. Can I have a backtrace in Windows ? Yes. Use e.g. -gw2 -gl -O-1 (Lazarus: dwarf 2 format, line number, no optimization, add -O-1 in extra options or whatever it's called) when compiling. Run

Re: [Lazarus] Lazreport of master-detail

2014-06-26 Thread Reinier Olislagers
On 26/06/2014 09:27, Koenraad Lelong wrote: Since it's not my application that's behaving bad (AFAICT) I'm going to try to reproduce this with a public database. Then I'll write a bug-report. Ok, thanks. -- ___ Lazarus mailing list

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 09:28:28 +0200 Michael Schnell mschn...@lumino.de wrote: [...] - TThread.Queue,: I use this to implement Application.QueuAsyncCall. I can try to do the (supposedly minimal) code that in TThread.Queue forwards the procedure of object to the Event queue, native in the

[Lazarus] fpspreadsheet 1.2 has been released

2014-06-26 Thread Reinier Olislagers
(Cross-posted to FPC Lazarus lists) We're pleased to announce that fpspreadsheet 1.2 has been released. Changes since previous 1.1: fpSpreadsheetGrid: fpSpreadsheetGrid has been extended to display formatting of the cells and to evolve towards a spreadsheet viewer. The demo is modified to show

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Michael Schnell
On 06/26/2014 10:52 AM, Mattias Gaertner wrote: Application.QueueAsyncCall works in nogui if you call Application.ProcessMessages. I am just doing the implementation of TApplication. And the point with _active_ Applications is that the events are called without the user needing to do a main

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Michael Schnell
On 06/26/2014 09:28 AM, Michael Schnell wrote: - TThread.GetTickCount64: I can try to do the (supposedly minimal) code that in TThread.GetTickCount64 does a system call and some calculations, native in the implementation of my TApplication class. This version of the compiler even does

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 12:13:39 +0200 Michael Schnell mschn...@lumino.de wrote: On 06/26/2014 10:52 AM, Mattias Gaertner wrote: Application.QueueAsyncCall works in nogui if you call Application.ProcessMessages. I am just doing the implementation of TApplication. And the point with _active_

Re: [Lazarus] [fpc-pascal] fpspreadsheet 1.2 has been released

2014-06-26 Thread Michael Van Canneyt
On Thu, 26 Jun 2014, Reinier Olislagers wrote: (Cross-posted to FPC Lazarus lists) We're pleased to announce that fpspreadsheet 1.2 has been released. [snip] Bug fixes ... and bug fixes. Link to download and more information via http://wiki.lazarus.freepascal.org/FPSpreadsheet

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 13:12:14 +0200 Michael Schnell mschn...@lumino.de wrote: On 06/26/2014 12:25 PM, Mattias Gaertner wrote: Ok. That's incompatible to the LCL QueueAsyncCalls, which executes the calls in the main thread. Not true at all. Huh? I can rephrase it: The LCL

Re: [Lazarus] Source Editor enhancement mini-patch

2014-06-26 Thread Hans-Peter Diettrich
Giuliano Colla schrieb: However there's a Delphi IDE small feature which I miss when using Lazarus: a quick mouse access to the Jump Back/Jump Forward function, to navigate history. I find keyboard shortcuts (CTRL-H and Shift-CTRL-H) more cumbersome. Just a note: Delphi shorcuts for these

Re: [Lazarus] Source Editor enhancement mini-patch

2014-06-26 Thread Martin Frb
On 26/06/2014 11:12, Hans-Peter Diettrich wrote: Just a note: Delphi shorcuts for these are Alt-Left and Alt-Right. Keys can be re assigned. I too use the alt variant I also would like to have clickable forward/back items. They also might become part of the editor gutter? I'd rather see a

Re: [Lazarus] Source Editor enhancement mini-patch

2014-06-26 Thread Michael Van Canneyt
On Thu, 26 Jun 2014, Martin Frb wrote: On 26/06/2014 11:12, Hans-Peter Diettrich wrote: Just a note: Delphi shorcuts for these are Alt-Left and Alt-Right. Keys can be re assigned. I too use the alt variant I also would like to have clickable forward/back items. They also might become

Re: [Lazarus] Source Editor enhancement mini-patch

2014-06-26 Thread Martin Frb
On 26/06/2014 13:18, Michael Van Canneyt wrote: On Thu, 26 Jun 2014, Martin Frb wrote: On 26/06/2014 11:12, Hans-Peter Diettrich wrote: I also would like to have clickable forward/back items. They also might become part of the editor gutter? I'd rather see a custom drawn pagecontrol, that

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Sven Barth
Am 26.06.2014 12:36 schrieb Michael Schnell mschn...@lumino.de: On 06/25/2014 09:57 PM, Sven Barth wrote: If you rely on the new TThread functionality you'd need to at least put in guards against compiling with a pre-2.7.1 compiler. Can I do this by a {$ifdef ... } ? {$IF FPC_FULLVERSION

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Michael Schnell
On 06/26/2014 01:47 PM, Mattias Gaertner wrote: I can rephrase it: The LCL Application.QueueAsyncCalls can be called by any thread, and executes the calls, when the main thread calls Application.ProcessMessages. Therefore the calls are executed by the main thread. Of course I do know this. But

[Lazarus] Probbably unused resourcestring. Can I delete it?

2014-06-26 Thread Václav Valíček
Hi, I'm trying to do small revolution in resourcestrings. In package codetools, I have found resourcestring, which does not occur in whole lazarus repo. Can I delete it? It's ctsSourceOfUnitNotFound - it exists just in .rst file, .po files of package and in executables with compiled

Re: [Lazarus] Source Editor enhancement mini-patch

2014-06-26 Thread Michael Van Canneyt
On Thu, 26 Jun 2014, Martin Frb wrote: On 26/06/2014 13:18, Michael Van Canneyt wrote: On Thu, 26 Jun 2014, Martin Frb wrote: On 26/06/2014 11:12, Hans-Peter Diettrich wrote: I also would like to have clickable forward/back items. They also might become part of the editor gutter? I'd

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 14:06:15 +0200 Michael Schnell mschn...@lumino.de wrote: [...] Of course I do know this. Make up your mind. Either I'm Not true at all or I wrote something right. But my goal is that these Events are executed without the user needing to call

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Michael Schnell
On 06/26/2014 02:41 PM, Sven Barth wrote: Did you even look at the interface of TThread? There's a protected instance function that calls a public class function with Self as first parameter. If you use the second one and pass Nil as first parameter it automatically uses the current thread.

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 14:41:21 +0200 Sven Barth pascaldra...@googlemail.com wrote: [...] {$IF FPC_FULLVERSION 20701} {$MESSAGE fatal 'You need at least FPC 2.7.1'} {$ERROR 'You need at least FPC 2.7.1'} But the Lazarus code must work with 2.6.4, so there must not be an error. {$ENDIF} [...]

[Lazarus] Lazarus project and git workflow

2014-06-26 Thread Petr Hlozek
Hi, if two or more developers work on a project, they sometimes edit the same form. Git can't solve the changes and you have to do it by hand. Even it's better to use the form the other developer and add the changes again by hand. It's impossible to solve the conflict. What do you do when you

Re: [Lazarus] Source Editor enhancement mini-patch

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 12:12:04 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: Giuliano Colla schrieb: However there's a Delphi IDE small feature which I miss when using Lazarus: a quick mouse access to the Jump Back/Jump Forward function, to navigate history. I find keyboard

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Michael Schnell
On 06/26/2014 02:52 PM, Mattias Gaertner wrote: On Thu, 26 Jun 2014 14:06:15 +0200 Michael Schnell mschn...@lumino.de wrote: [...] Of course I do know this. Make up your mind. Either I'm Not true at all or I wrote something right. Not true was, that my implementation of

Re: [Lazarus] Probbably unused resourcestring. Can I delete it?

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 14:48:44 +0200 Václav Valíček vac...@valicek.name wrote: Hi, I'm trying to do small revolution in resourcestrings. In package codetools, I have found resourcestring, which does not occur in whole lazarus repo. Can I delete it? It's ctsSourceOfUnitNotFound - it

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 15:07:22 +0200 Michael Schnell mschn...@lumino.de wrote: [...] But maybe it really is not perfectly compatible, as, _when_called_in_the_main_thread_, TThread.Queue perhaps does a direct call instead of a queued schedule, which might not be true with

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Giuliano Colla
Il 25/06/2014 15:16, Michael Schnell ha scritto: On 06/24/2014 09:30 AM, Giuliano Colla wrote: Widget Types are LCL related. It's the part which actually implements virtual abstract methods in the Interfaces unit. Yep. So it seems perfectly suitable to individually define the functionality

Re: [Lazarus] Source Editor enhancement mini-patch

2014-06-26 Thread Martin Frb
On 26/06/2014 13:41, Michael Van Canneyt wrote: 'By default' also means it can be disabled for example by deinstalling it :) It would be just one more option in the bazillion other options already at one's disposal. By including it by default, it also gets more exposure and can be

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Michael Schnell
On 06/26/2014 03:54 PM, Mattias Gaertner wrote: Application.ProcessMessages calls CheckSynchronize and calls the queued async calls. Under nogui that's all. Here the waiting and sleeping mechanism is lacking. Application.ProcessMessages supposedly calls CheckSynchronize with the Timeout set

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Sven Barth
Am 26.06.2014 15:02 schrieb Mattias Gaertner nc-gaert...@netcologne.de: On Thu, 26 Jun 2014 14:41:21 +0200 Sven Barth pascaldra...@googlemail.com wrote: [...] {$IF FPC_FULLVERSION 20701} {$MESSAGE fatal 'You need at least FPC 2.7.1'} {$ERROR 'You need at least FPC 2.7.1'} But the

Re: [Lazarus] IDE bug handling translations?

2014-06-26 Thread Giuliano Colla
Il 25/06/2014 21:29, Maxim Ganetsky ha scritto: 25.06.2014 13:48, Giuliano Colla пишет: I'd hate to steal the job to an official maintainer, mainly in those days of unemployment :-) , but the Italian translation appeared to pochecker like a battlefield, already before running localize.sh. Aside

Re: [Lazarus] IDE bug handling translations?

2014-06-26 Thread Giuliano Colla
Il 25/06/2014 14:33, Václav Valíček ha scritto: If you have any knowledge of russian language, one of core maintainers maintains russian translations, so you can use ideas from it... For a Czech language, there is huge difference from Russian, becose of location - Czech (and Slovakian) people

[Lazarus] Split Source Editor window

2014-06-26 Thread Vojtěch Čihák
Hello,   today I read IT news and there is announcement of the new release of Eclipse (version 4.4 Luna). One of the mentioned news is ability to split editor window vertically or horizontally.   I would like to remind here that Lazarus has this ability too. The code comes from Ido Kanner who

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 16:52:59 +0200 Michael Schnell mschn...@lumino.de wrote: On 06/26/2014 03:54 PM, Mattias Gaertner wrote: Application.ProcessMessages calls CheckSynchronize and calls the queued async calls. Under nogui that's all. Here the waiting and sleeping mechanism is lacking. If

Re: [Lazarus] PoChecker possible cosmetical patch

2014-06-26 Thread Bart
On 6/26/14, Václav Valíček vac...@valicek.name wrote: I have opened bug no. #26395 Link: http://bugs.freepascal.org/view.php?id=26395 Václav Valíček Thanks. If I have questions I'll ask in the bugreport. Might take some time before I get to work on it though... Bart --

Re: [Lazarus] Split Source Editor window

2014-06-26 Thread Michael Van Canneyt
On Thu, 26 Jun 2014, Vojtěch Čihák wrote: Hello,   today I read IT news and there is announcement of the new release of Eclipse (version 4.4 Luna). One of the mentioned news is ability to split editor window vertically or horizontally.   I would like to remind here that Lazarus has this

Re: [Lazarus] Split Source Editor window

2014-06-26 Thread Mattias Gaertner
On Thu, 26 Jun 2014 20:37:19 +0200 (CEST) Michael Van Canneyt mich...@freepascal.org wrote: [...] If Ido Kanner left the community, then maybe the package should be added to the Lazarus source tree, so it does not get lost. The packages in the Lazarus sources need a maintainer. Without a

Re: [Lazarus] Lazarus project and git workflow

2014-06-26 Thread Václav Valíček
Hi, it's normal to solve merge/rebase conflicts by hand... Sometimes, git is able to solve changes, if each of you edits another part of form (another part of lfm diffs). In other cases, you are forced to use 3 way merging, best with some GUI tool. For me, it was best to set mergetool in

Re: [Lazarus] Lazarus project and git workflow

2014-06-26 Thread Graeme Geldenhuys
On 2014-06-26 20:36, Václav Valíček wrote: mergetool command). If you use meld, I can suggest --auto-merge (or --auto-compare - not sure). It is perfect timesaver. Beyond Compare is another brilliant tool for 3-way merges and anything else you need to diff (files, images, registry,

Re: [Lazarus] nonlcl basic issue: is codetools LCL dependent?

2014-06-26 Thread Hans-Peter Diettrich
Michael Schnell schrieb: TThread.Queue in the end calls WakeMainThread() to wake the main thread (i.e. terminate the CheckSynchronize call waiting for a timeout). In Simula a single time base is used to trigger events at a known time. Each event, to occur after a given delay, is enterd into