Re: [Lazarus] How can I configure "unit scope names" in Lazarus?

2015-02-26 Thread silvioprog
On Thu, Feb 26, 2015 at 5:57 PM, Sven Barth 
wrote:

> On 26.02.2015 21:50, silvioprog wrote:
>
>> Is this feature - unit scope names - implemented in FPC? If so, the
>> Lazarus IDE has a window to configure that in my project?
>>
>
> FPC does not support that yet.
>
> Regards,
> Sven


Thank you! (y)

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How can I configure "unit scope names" in Lazarus?

2015-02-26 Thread aradeonas
This feature can be help arranging project.

Regards,
Ara

On Thu, Feb 26, 2015, at 12:57 PM, Sven Barth wrote:
> On 26.02.2015 21:50, silvioprog wrote:
> > Is this feature - unit scope names - implemented in FPC? If so, the
> > Lazarus IDE has a window to configure that in my project?
> 
> FPC does not support that yet.
> 
> Regards,
> Sven
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-- 
http://www.fastmail.com - Access all of your messages and folders
  wherever you are


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How can I configure "unit scope names" in Lazarus?

2015-02-26 Thread Sven Barth

On 26.02.2015 21:50, silvioprog wrote:

Is this feature - unit scope names - implemented in FPC? If so, the
Lazarus IDE has a window to configure that in my project?


FPC does not support that yet.

Regards,
Sven

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] How can I configure "unit scope names" in Lazarus?

2015-02-26 Thread silvioprog
Hello,

In Delphi, I can create a unit called "Foo.Bar.pas", after that, in "Delphi
Compiler | Unit scope names" project option, I can add "Foo" to the unit
scope names list, so I can declare my unit in two ways:

- uses Foo.Bar;

or:

- uses Bar;

It is very useful for retro-compatibility (eg.: FPC 3.0.0 accepts Foo.Bar,
but 2.6.4 only Bar), or useful if someone prefer to declare the units
without the scope name (SysUtils instead of System.SysUtils).

Is this feature - unit scope names - implemented in FPC? If so, the Lazarus
IDE has a window to configure that in my project?

Thank you!

--
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Post-Mortem Debugging

2015-02-26 Thread Mark Morgan Lloyd

Martin Frb wrote:

On 26/02/15 19:52, Mark Morgan Lloyd wrote:
I've just forced a core dump of a misbehaving multithreaded program 
and am looking at it using gdb to good effect.


Can Lazarus be used as a post-mortem debugger, reminiscent of products 
from Logitech et al?



probably not without changes.

I havent used gdb for this either, so I am not aware which commands you 
can send to gdb.


I guess that the code used for "attach" can be copied/modified to load a 
core dump.


then you might be able do use the stack, and watches. but I do not know


In this case all I did was (before running program)  ulimit -Hc 
unlimited  followed by (while looking at stuck program)  gcore  
and then  gdb  core.  after which I could use bt etc. In 
principle, something similar should work for a program which had failed 
with a bus error or segment violation.


I'm converting somebody else's code from single- to multithreaded. If 
run in the context of Lazarus's own debugging it's fine, but if running 
"unattended" it locks up with a race condition about 75% of the time. So 
being able to look at a snapshot is really extremely useful, even if I 
can't take full control.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Post-Mortem Debugging

2015-02-26 Thread Martin Frb

On 26/02/15 19:52, Mark Morgan Lloyd wrote:
I've just forced a core dump of a misbehaving multithreaded program 
and am looking at it using gdb to good effect.


Can Lazarus be used as a post-mortem debugger, reminiscent of products 
from Logitech et al?



probably not without changes.

I havent used gdb for this either, so I am not aware which commands you 
can send to gdb.


I guess that the code used for "attach" can be copied/modified to load a 
core dump.


then you might be able do use the stack, and watches. but I do not know

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Post-Mortem Debugging

2015-02-26 Thread Mark Morgan Lloyd
I've just forced a core dump of a misbehaving multithreaded program and 
am looking at it using gdb to good effect.


Can Lazarus be used as a post-mortem debugger, reminiscent of products 
from Logitech et al?


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] CodeToolManager: file was not reached by scanner

2015-02-26 Thread Valdas Jankūnas

Hello,

 today I bumped on to problem:

- in Lazarus IDE I opened unit file "irankiai.pas" which is listed in 
Project Inspector;

- placed cursor in body of one functions;
- tried to view declaration of that function -> Shift+Ctrl+Up

 after that cursor jumped in to main unit at "end." line, Message 
Window complains that "Codetools, Errors: 1" and "pagrindinis.pas(175,1) 
Error: cursor pos outside of code", console reports (IDE compiled with 
CTDEBUG):


### TCodeToolManager.HandleException: "file was not reached by scanner" 
at Line=983 Col=36 in 
"/home/senbuvis/Mano_popieriai/Programavimas/Lazarus/Programos/Pantografo_modeliavimas/Programa/Moduliai/irankiai.pas"
### TCodeToolManager.HandleException: "cursor pos outside of code" at 
Line=179 Col=4 in 
"/home/senbuvis/Mano_popieriai/Programavimas/Lazarus/Programos/Pantografo_modeliavimas/Programa/Moduliai/pagrindinis.pas"


 This happen only inside that "irankiai.pas" unit.

 I don't understand why this happens and how to fix this problem. Some 
advice?



Sorry for my bad english.

--
  Valdas Jankūnas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Controlling Lazarus from external application

2015-02-26 Thread Graeme Geldenhuys
On 2015-02-26 14:52, Mattias Gaertner wrote:
> No.
> But you can write a package for that with a few lines of code using
> simpleipc.

Thanks, just wanted to make sure first. The package solution should be
simple enough to do.

Regards,
  - Graeme -

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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] button need increase height

2015-02-26 Thread Kiên Nguyễn Tiến Trung
Could you show me the value of the property BorderSpacing?

I think that this issue depends on your system.

2015-02-26 19:28 GMT+07:00 FreeMan :

>  fpc r30015 lazarus r48016 osx x64 qt
> Painted square line's height need little bit increase I think
>
> this is TBitBtn, and focused in designtime in IDE, I mean out border and
> square lines is so defferent. and can see, glyph is out of lines.
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] patch for rx.inc define linux_darwin definition

2015-02-26 Thread FreeMan

I added patch for rx using in osx
this is just add "Linux_Darwin" compiler directive in rx.inc file.
If you want use this, You have to change "Linux_Darwin" with {$.. 
LINUX} I mean, change "LINUX" to "Linux_Darwin". original rx code just 
use compiler directive if linux  else ...else for windows
TRxDBLookupCombo when click button, grind create on behind form and can 
not access it.
Index: rx.inc
===
--- rx.inc  (revision 3968)
+++ rx.inc  (working copy)
@@ -58,3 +58,12 @@
 {$ENDIF}
 
 {.$DEFINE RxDBGridDepricatedProps}
+//freeman added
+{$IFDEF DARWIN}
+  {$DEFINE Linux_Darwin}
+{$ENDIF DARWIN}
+
+{$IFDEF LINUX}
+  {$DEFINE Linux_Darwin}
+{$ENDIF LINUX}
+
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Controlling Lazarus from external application

2015-02-26 Thread Mattias Gaertner
On Thu, 26 Feb 2015 12:12:39 +
Graeme Geldenhuys  wrote:

> Hi,
> 
> Does Lazarus IDE implement an IPC server or something similar so it can
> be controlled (or rather commanded) to do something from an external
> tool or application?

No.
But you can write a package for that with a few lines of code using
simpleipc.
 
> For example:
> I mostly run my unit tests via a GUI Test Runner (like FPTest) which
> reports the test failure or error, but also reports the unit and line
> number information. I would like to be able to double click on that
> information, then magically my running Lazarus IDE instance would open
> that unit and place the edit cursor on the correct line number.
> Programming is all about convenience and saving time. ;-)
> 
> As I'm currently working on a project that uses FPCUnit, I don't mind
> extending Lazarus's GUI Test Runner to have some of the functionality
> that FPTest's GUI Runner has too.
> 
> But first I need to know if the IDE could be commanded in this way - or
> if it at least has an IPC server implemented.


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Multi-Device Designer

2015-02-26 Thread Kostas Michalopoulos
I cannot run the demos since Java now blocks everything that hasn't
submitted to the certificate mafia - apparently that was easier than Oracle
sandboxing their VM, but i took a look on the PDF. And sadly this isn't a
real solution.

This only solves issues like positioning, but doesn't solve issues like
having the File -> Exit menu item being hidden in Mac builds, the "Apple"
menu (where the Quit menu item should be in Mac) being hidden in Windows
and Linux builds, using Cmd as a shortcut prefix instead of Ctrl, using
different images for Windows, Linux and OS X (since all these three OSes
have different design styles - ok Linux and Windows can share theirs, but
OS X icons tends to be larger and usually the toolbars have less buttons),
etc.

In fact personally i'd be against such "quick fix" solutions because
they'll provide less incentive to do the right thing later.


On Thu, Feb 26, 2015 at 11:49 AM, Graeme Geldenhuys <
mailingli...@geldenhuys.co.uk> wrote:

> On 2015-02-25 14:05, Kostas Michalopoulos wrote:
> > Even if Lazarus sticks to desktop only stuff, Windows,
> > Linux and OS X (...especially OS X) have different conventions when it
> > comes to layout, icons, spacing, etc and at the moment the only solution
> is
> > either ignore them (and have your program look awful under OS X)
>
> There is an alternative solution. In the fpGUI project we have ongoing
> efforts to port/implement a Object Pascal version of the java MIG Layout
> Manager. One of MIG's many features is support for OS specific
> conventions like spacing, button order etc.
>
>   http://www.miglayout.com/
>
> If you can, run the Swing Demo to see what everything MIG can do. Part
> of the demo is the OS specific conventions.
>
>
> Regards,
>   - Graeme -
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] button need increase height

2015-02-26 Thread FreeMan

fpc r30015 lazarus r48016 osx x64 qt
Painted square line's height need little bit increase I think

this is TBitBtn, and focused in designtime in IDE, I mean out border and 
square lines is so defferent. and can see, glyph is out of lines.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Controlling Lazarus from external application

2015-02-26 Thread Graeme Geldenhuys
Hi,

Does Lazarus IDE implement an IPC server or something similar so it can
be controlled (or rather commanded) to do something from an external
tool or application?

For example:
I mostly run my unit tests via a GUI Test Runner (like FPTest) which
reports the test failure or error, but also reports the unit and line
number information. I would like to be able to double click on that
information, then magically my running Lazarus IDE instance would open
that unit and place the edit cursor on the correct line number.
Programming is all about convenience and saving time. ;-)

As I'm currently working on a project that uses FPCUnit, I don't mind
extending Lazarus's GUI Test Runner to have some of the functionality
that FPTest's GUI Runner has too.

But first I need to know if the IDE could be commanded in this way - or
if it at least has an IPC server implemented.

Regards,
  - Graeme -

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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Multi-Device Designer

2015-02-26 Thread Graeme Geldenhuys
On 2015-02-25 14:05, Kostas Michalopoulos wrote:
> Even if Lazarus sticks to desktop only stuff, Windows,
> Linux and OS X (...especially OS X) have different conventions when it
> comes to layout, icons, spacing, etc and at the moment the only solution is
> either ignore them (and have your program look awful under OS X)

There is an alternative solution. In the fpGUI project we have ongoing
efforts to port/implement a Object Pascal version of the java MIG Layout
Manager. One of MIG's many features is support for OS specific
conventions like spacing, button order etc.

  http://www.miglayout.com/

If you can, run the Swing Demo to see what everything MIG can do. Part
of the demo is the OS specific conventions.


Regards,
  - Graeme -

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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Promoting Lazarus: A Case Study Video

2015-02-26 Thread Lukasz Sokol
On 26/02/15 10:35, Vincent Snijders wrote:
> 
> 
> 2015-02-26 11:02 GMT+01:00 Lukasz Sokol  >:
> 
> I've attempted to add some changes to getlazarus download page, hope
> the owner/moderator picks & implements them...
> 
> 
> I deleted the script section in
> http://www.getlazarus.org/setup/?download#windows, so that the
> download doesn't start unexpectedly. What changes did you make?
> 
> Vincent
> 

I commented the timeout() section in the script, so that it still scrolls down
to the appropriate section of download, but does not start download 
automatically...

Also I added some (in bold) wording about test versions, 

"The versions set up through here are custom picked from FPC and Lazarus test 
repositories
Test versions are likely to contain unstable code that has NOT been thoroughly 
tested yet.
Stable Lazarus releases are available at the Official Lazarus Project Site"
(and made the Official Lazarus Project Site an external link)

but, he has a statement up there, that changes are supposed to be reviewed
and implemented by moderator(s) before they hit the page - otherwise they stay 
local to your
own browser only... until you shut it down. 

Suppose he's too busy doing the videos to review them maybe ;J

Or maybe I miss something to click to 'notify moderator about the changes' ?

Lukasz


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Promoting Lazarus: A Case Study Video

2015-02-26 Thread Vincent Snijders
2015-02-26 11:02 GMT+01:00 Lukasz Sokol :

> I've attempted to add some changes to getlazarus download page,
> hope the owner/moderator picks & implements them...
>
>
I deleted the script section in
http://www.getlazarus.org/setup/?download#windows, so that the download
doesn't start unexpectedly. What changes did you make?

Vincent
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Promoting Lazarus: A Case Study Video

2015-02-26 Thread Lukasz Sokol
On 25/02/15 21:14, Brian Chalega da Silva wrote:
> On 25-02-2015 17:31, Marc Weustink wrote:
>> 
>> On February 25, 2015 8:51:11 PM CET, Travis Ayres
>>  wrote:
>>> I like the getlazarus version better so far than the official
>>> one (assuming it isn't an elaborate trick...). Free software is
>>> all about choice - I'm glad to have another  option.
>>> 
>>> I'm kinda surprised other people seem not to like it. More
>>> exposure for fpc/lazarus is good isn't  it?
>> That is not the problem. More exposure is ok. The problem with at
>> least the download section is that it is absolutely not clear that
>> you are downloading a alpha/beta version of Lazarus/fpc
>> 
>> Imo it should point to the official download with the getlazarus
>> version as alternative. That way visitors not knowing about Lazarus
>> have a choice. When you now visit getlazarus and click download, it
>> offers the option to download setup.exe When you don't know about
>> Lazarus you expect this to be an official version. In my case where
>> I professionally use Lazarus, I only want released versions of both
>> Lazarus an FPC.
>> 
>> Marc
> 
> I disagree, since it's their website, it is logical that they would
> deliver their version of the software, I only think that it would be
> good if in the website they made it clear that this isn't the
> official site and not an official Lazarus initiative, to don't
> confuse people who don't know Lazarus.
> 

I've attempted to add some changes to getlazarus download page, 
hope the owner/moderator picks & implements them...

> To summarize, IMO it basically needs to be more clear in the point
> that it's not endorsed by the Lazarus project, and that the version
> there is an unstable one (like Osvaldo, I personally prefer to use
> the unstable version too, but I'm only a hobbyist).

Balance is the word - I don't mind test versions as long as they don't
spoil my production setup ;)

> 
> And if it won't be too difficult maybe do a stable script / bundle
> too? But I guess I'm asking too much and doing too little hehe
> 
> Best regards, Brian Chalega da Silva.
> 

Lukasz


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus