Re: [Lazarus] How to exec some gdb command on start in lazarus

2013-06-25 Thread Petr Kristan
On Mon, Jun 24, 2013 at 04:31:10PM +0100, martin wrote:
 On 24/06/13 16:11, Petr Kristan wrote:
 Hallo
 
 I want to send this command to gdb:
 
 handle SIGPIPE nostop noprint pass
 
 to ignore SIGPIPE.
 I set it in my ~/.gdbinit, but Lazarus ignores it.
 
 I tried write it to Debugger_Startup_Options, but without success.
 
 
 the  Debugger_Startup_Options, would be like
 
 --eval-command=handle SIGPIPE nostop noprint pass
 
 if you are on windows IIRC gdb does not take this option.
Thank you for the fast response. I try it, but I get this message:
Debugger: Initialization output: Undefined command: \\. Try \help\.\n

In processes i have
/usr/bin/gdb -silent -i mi -nx --eval-command=handle SIGPIPE nostop noprint 
pass

But gdb already stops on SIGPIPE.

If I try run
/usr/bin/gdb -silent -i mi -nx --eval-command=handle SIGPIPE nostop noprint 
pass
from bash, then it works ok.

Petr

-- 
Petr Kristan
.
EPOS PRO s.r.o., Smilova 333, 530 02 Pardubice
tel: +420 461101401Czech Republic (Eastern Europe)
fax: +420 461101481

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


Re: [Lazarus] Gtk3 widgetset started

2013-06-25 Thread zeljko

On 06/24/2013 09:38 PM, Reimar Grabowski wrote:

On Sun, 23 Jun 2013 12:36:05 +0200
zeljko zel...@holobit.net wrote:


Just commited gtk3 widgetset (alpha status) r41811 ...
You can use it by uncommenting USEGTK3ALPHA in
lcl/interfaces/gtk3/gtk3defines.inc.


Great. Looking forward to test this.

Btw. nice error bomb.


eh :) , I've commented it since in terminal it looks good, but in 
lazarus messages window not since it does not use monospace font 


zeljko


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


Re: [Lazarus] Library or Unit that can help to check network connectivity.

2013-06-25 Thread Antonio Fortuny


Le 25/06/2013 07:34, Eric Kom a écrit :

Good day Dear,

Please I am currently looking for library/unit that I can use to check 
network connectivity.

Indy + TIdIcmpClient then Ping.
Look at http://kumanov.com/docs/prog/indy/007395.html
Indy 10.5.9 compiles OK with Lazarus+FPC

Antonio.

Hoping I will find a help.






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


Re: [Lazarus] Unicode branch

2013-06-25 Thread Graeme Geldenhuys
On 2013-06-24 20:25, Michael Van Canneyt wrote:
 
 AFAIK This is only for the new nextgen compiler, for the Win32 target, 
 nothing changes.


When you say Win32 do you mean Windows (as in 32  64-bit) or only
32-bit Windows?

So what platforms with the nextgen compiler target? OS X, iOS, Android,
Windows Phone, Linux? All but Windows?


Regards,
  - Graeme -




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


Re: [Lazarus] Library or Unit that can help to check network connectivity.

2013-06-25 Thread Graeme Geldenhuys
On 2013-06-25 08:29, Antonio Fortuny wrote:
 Indy + TIdIcmpClient then Ping.


Not all systems on a network will reply to a ping test? I know my
systems don't, because I disabled it for security reasons.


Regards,
  - Graeme -


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


Re: [Lazarus] Unicode branch

2013-06-25 Thread Michael Schnell

On 06/24/2013 05:14 PM, Hans-Peter Diettrich wrote:


They also make TObject reference counted...

I did read about this. So .Free is going to be obsolete ?


When we can start implementing further changes, we should look whether 
Delphi exists at all, at that time. I wouldn't hold my breath ;-)


Regarding the changes they are tying to force to their customers (yet 
another string paradigm, Firemonkey), instead of trying to offer an as 
smooth migration path as possible, and not even trying to support Linux 
and Android (that now has a lot greater market share than IOS) obviously 
recommends a decent look at Lazarus.


-Michael

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


Re: [Lazarus] How to exec some gdb command on start in lazarus

2013-06-25 Thread martin

On 25/06/13 07:49, Petr Kristan wrote:

Thank you for the fast response. I try it, but I get this message:
Debugger: Initialization output: Undefined command: \\. Try \help\.\n

In processes i have
/usr/bin/gdb -silent -i mi -nx --eval-command=handle SIGPIPE nostop noprint 
pass

But gdb already stops on SIGPIPE.

If I try run
/usr/bin/gdb -silent -i mi -nx --eval-command=handle SIGPIPE nostop noprint 
pass
from bash, then it works ok.


Did you try single quotes ?
looks like the parts of the command line are not correctly broken into 
individual args.



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


Re: [Lazarus] Unicode branch

2013-06-25 Thread Michael Schnell

On 06/24/2013 09:25 PM, Michael Van Canneyt wrote:



AFAIK This is only for the new nextgen compiler, for the Win32 target, 
nothing changes.


To me it makes absolutely no sense to force the programmers to use 
different paradigms for different platforms. A decent programming system 
should hide this diorty stuff from the application programmer. Only who 
wants to dig deeper (for performance or to implement really platform 
specific stuff) should be forced (and able to) get there.


Win32 is dead anyway. (IMHO soon the main platforms to be supported will 
be LINUX in ARM 64 and Android. No notion of either with Embarcadero.)


-Michael

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


Re: [Lazarus] Library or Unit that can help to check network connectivity.

2013-06-25 Thread Antonio Fortuny

  
  

Le 25/06/2013 10:24, Graeme Geldenhuys
  a crit:


  On 2013-06-25 08:29, Antonio Fortuny wrote:

  
Indy + TIdIcmpClient then Ping.

  
  

Not all systems on a network will reply to a ping test? I know my
systems don't, because I disabled it for security reasons.

That's right. You only have to use a well known internal or external
machine which will answer ping requests, i.e. 8.8.8.8 always
responds to ICMP ping rquests.
You can even check wether the internal connection works by choosing
a well known internal machine. 
This way will make you sure that you either have an access to the
intra or extra network or none.

  


Regards,
  - Graeme -


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



-- 
  

  
  
  
  
 Antonio
Fortuny
  Senior Software engineer
  
  220, avenue de la Libert
  L-4602 Niederkorn
  Tel.: +352 58 00 93 - 93
  www.sitasoftware.lu

  
  
  
  

  

  

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


Re: [Lazarus] How to exec some gdb command on start in lazarus

2013-06-25 Thread Petr Kristan
On Tue, Jun 25, 2013 at 10:07:10AM +0100, martin wrote:
 On 25/06/13 07:49, Petr Kristan wrote:
 Thank you for the fast response. I try it, but I get this message:
 Debugger: Initialization output: Undefined command: \\. Try \help\.\n
 
 In processes i have
 /usr/bin/gdb -silent -i mi -nx --eval-command=handle SIGPIPE nostop noprint 
 pass
 
 But gdb already stops on SIGPIPE.
 
 If I try run
 /usr/bin/gdb -silent -i mi -nx --eval-command=handle SIGPIPE nostop noprint 
 pass
 from bash, then it works ok.
 
 Did you try single quotes ?
 looks like the parts of the command line are not correctly broken
 into individual args.
Yes. With the same result.

I try to debug Debugger_Startup_Options: --eval-command=handle SIGPIPE nostop 
noprint pass
with strace and here is execve line:

[pid 20053] execve(/usr/bin/gdb, [/usr/bin/gdb, -silent, -i,
mi, -nx, --eval-command=\handle SIGPIPE nostop noprint pass\],
[/* 52 vars */]) = 0

IMHO it looks ok.

Petr

-- 
Petr Kristan
.
EPOS PRO s.r.o., Smilova 333, 530 02 Pardubice
tel: +420 461101401Czech Republic (Eastern Europe)
fax: +420 461101481

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


Re: [Lazarus] Gtk3 widgetset started

2013-06-25 Thread Vojtěch Čihák

I saw the bomb (gtk3defines.inc) normally in the source editor when I tried to 
compile for the first time, so it was perfectly monospaced :-).
But it still throw me some error (RunError 216) so I didn't compile even an empty 
form. But it is on Chakra linux - it is KDE4 only distro and they moved all GTK2 
 GTK3 libraries to /extra/usr/lib and it is not very convenient for testing 
now (I have to add the mentioned path to every project).
Can you recommend me some good GTK3 distro ? I installed Ubuntu - Gnome Shell 
(GTK3.6) but the user experience with Gnome Shell is horrible. It is the most 
user-unfreindly desktop I ever worked with.
I tried to enable GTK3.8 repository where should be Gnome Classic mode but I 
didn't succeed yet. I also tried Cinnamon ~year ago, it was unstable and there 
was garbage instead of fonts.
 
Vojtěch 
__

Od: zeljko zel...@holobit.net
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 25.06.2013 09:14
Předmět: Re: [Lazarus] Gtk3 widgetset started


eh :) , I've commented it since in terminal it looks good, but in 
lazarus messages window not since it does not use monospace font 


zeljko


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

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


Re: [Lazarus] How to exec some gdb command on start in lazarus

2013-06-25 Thread martin

On 25/06/13 10:51, Petr Kristan wrote:
I try to debug Debugger_Startup_Options: --eval-command=handle 
SIGPIPE nostop noprint pass with strace and here is execve line: [pid 
20053] execve(/usr/bin/gdb, [/usr/bin/gdb, -silent, -i, mi, 
-nx, --eval-command=\handle SIGPIPE nostop noprint pass\], [/* 
52 vars */]) = 0 IMHO it looks ok. 


I don't think it should have the \, if the entire argument is quoted. 
but I am not sure


afaik/iirc the IDE passes this to TProcess (in fpc) and I do not know 
what happens there


however TProcess.Commandline is deprecated, afaik because arguments must 
be parsed... not sure.


In any case, I do not know how to solve, until the IDE stopped using the 
deprecated method / no time frame on that.


You can try my other suggestion and change the source


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


[Lazarus] IDE window Unit Dependencies

2013-06-25 Thread Mattias Gaertner
Hi all,

There is now an IDE window showing what units uses a unit.

See here for more details:
http://wiki.lazarus.freepascal.org/IDE_Window:_Unit_dependencies

Mattias

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


[Lazarus] class completion and properties with index constant

2013-06-25 Thread Mattias Gaertner
Hi all,

Codetools code completion now support properties with index constant. For 
example:

program Project1;
type
  TFoo = (one, two, three);

  { TBar }

  TBar = class
  public
property Something: Boolean index one read GetSomething;
property Otherthing: Boolean index two read GetSomething;
  end;

begin
end.

This now creates

  private
function GetSomething(AIndex: TFoo): Boolean;


Mattias

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


[Lazarus] Updating procedure signatures

2013-06-25 Thread Mattias Gaertner
Hi all,

Code completion can now update procedure signatures. For example:

procedure DoSomething;

implementation

procedure DoSomething;
begin
end;


Now add a parameter c:char to the interface procedure:

procedure DoSomething(c: char);

Place cursor on this declaration and invoke code completion
(Ctrl+Shift+C). This will replace the signature in the
implementation section.

procedure DoSomething(c: char);

implementation

procedure DoSomething(c: char);
begin
end;

Note: It does not work backward from implementation to interface.

How it works:
codetools tries to map all interface and implementation procedures.
First by name+param list then by name. If this is ambiguous (e.g. there
are two DoSomething and you changed both parameters) then codetools
will not update the signature and instead create a new implementation.
You can undo this.

Options:
By default code completion updates all signatures it can map. If you
only want single updates, disable the option Tools / Options /
Codetools / Code Creation / Update multiple procedure signatures.

There is now an option to disable the same for methods:
Tools / Options / Codetools / Class Completion / Update all method
signatures


Mattias

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


Re: [Lazarus] Gtk3 widgetset started

2013-06-25 Thread zeljko

On 06/25/2013 12:07 PM, Vojtěch Čihák wrote:

I saw the bomb (gtk3defines.inc) normally in the source editor when I
tried to compile for the first time, so it was perfectly monospaced :-).

But it still throw me some error (RunError 216) so I didn't compile even
an empty form. But it is on Chakra linux - it is KDE4 only distro and
they moved all GTK2  GTK3 libraries to /extra/usr/lib and it is not
very convenient for testing now (I have to add the mentioned path to
every project).

Can you recommend me some good GTK3 distro ? I installed Ubuntu - Gnome


Minimum requirement is gtk3 3.6.4 atm, and it will be probably changed 
to 3.8 in a year or so when beta status is planned.

Ubuntu 11.04, Fedora 18/19  that's what I'm using for testing.
I've builded my own gtk3 3.6.4 for my devel machine since it's on FC 14 
and that one have only gtk3 2.99 :)


zeljko


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


Re: [Lazarus] Updating procedure signatures

2013-06-25 Thread Vojtěch Čihák

Hello,
 
it isn't a new feature, or am I missing something?
I think this exist at least one year.
 
@ Note: It does not work backward from implementation to interface.
 
Furthermore, I tried to add parameter in implementation and it updates the 
interface here.
 
Lazarus 1.1 r41867M FPC 2.7.1 x86_64-linux-qt 
 
Vojtěch 
__

Od: Mattias Gaertner nc-gaert...@netcologne.de
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 25.06.2013 13:09
Předmět: [Lazarus] Updating procedure signatures


Hi all,

Code completion can now update procedure signatures. For example:

procedure DoSomething;

implementation

procedure DoSomething;
begin
end;


Now add a parameter c:char to the interface procedure:

procedure DoSomething(c: char);

Place cursor on this declaration and invoke code completion
(Ctrl+Shift+C). This will replace the signature in the
implementation section.

procedure DoSomething(c: char);

implementation

procedure DoSomething(c: char);
begin
end;

Note: It does not work backward from implementation to interface.

Mattias

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

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


Re: [Lazarus] Gtk3 widgetset started

2013-06-25 Thread Reimar Grabowski
On Tue, 25 Jun 2013 12:07:35 +0200
Vojtěch Čihák vojtech.ci...@atlas.cz wrote:

 Can you recommend me some good GTK3 distro ? I installed Ubuntu - Gnome Shell 
 (GTK3.6) but the user experience with Gnome Shell is horrible. It is the most 
 user-unfreindly desktop I ever worked with.

After tweaking Gnome Shell to my liking every other DE (except maybe 
Enlightenment) feels old and cumbersome to me. Fortunately user experience is a 
very personal thing.
Back to the question. Just keep your Ubuntu and do not use Gnome Shell. Use 
Enlightenment, KDE, Unity, XFCE or whatever DE you like. GTK3 does not depend 
on Gnome Shell it is the other way round.

R.

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


Re: [Lazarus] Unicode branch

2013-06-25 Thread Hans-Peter Diettrich

Felipe Monteiro de Carvalho schrieb:

On Mon, Jun 24, 2013 at 5:14 PM, Hans-Peter Diettrich
drdiettri...@aol.com wrote:

I just have been told that Embarcadero plans to do away with the stuff fpc
is just implementing in the Unicode branch and is on the verge to change
to a completely new String type that is
 - UTF-16-only,
 - Zero-Based, and
 - immutable.
And thus completely incompatible with any String Type ever known in
Pascal.

They also make TObject reference counted...


lol! That's ridiculous ... they will just keep changing and changing?
And expect people to rewrite their codebases every 4 years?


Yes, that's the only way to make people buy new Delphi versions.
In theory at least, in practice it may make people stop buying new 
versions at all.


DoDi


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


Re: [Lazarus] Unicode branch

2013-06-25 Thread Sven Barth

Am 25.06.2013 11:04, schrieb Michael Schnell:

On 06/24/2013 05:14 PM, Hans-Peter Diettrich wrote:


They also make TObject reference counted...

I did read about this. So .Free is going to be obsolete ?

Yes, it will merely be an empty method then.

Regards,
Sven

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


Re: [Lazarus] Unicode branch

2013-06-25 Thread Marco van de Voort
On Mon, Jun 24, 2013 at 04:59:13PM +0200, Michael Schnell wrote:
 I just have been told that Embarcadero plans to do away with the stuff 
 fpc is just implementing in the Unicode branch and is on the verge to 
 change to a completely new String type that is
   - UTF-16-only,
   - Zero-Based, and
   - immutable.
 And thus completely incompatible with any String Type ever known in 
 Pascal.

As far as I know that was all to be limited to their mobile offering.

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


Re: [Lazarus] Unicode branch

2013-06-25 Thread Marco van de Voort
On Tue, Jun 25, 2013 at 09:23:14AM +0100, Graeme Geldenhuys wrote:
 So what platforms with the nextgen compiler target? OS X, iOS, Android,
 Windows Phone, Linux? All but Windows?

There is a note in the XE4 related documentation, that desktop
Delphi/nextgen will be compatible with the current situation a long time.

I took that as the whole thing being a cheap shot at avoiding the
platform/architecture dependent parts of legacy implementation on the new
mobile targets, and a sign that the mobile targets are more a quick buck
than a fundamental new addition.

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


Re: [Lazarus] Unicode branch

2013-06-25 Thread Marco van de Voort
On Thu, Jun 20, 2013 at 01:48:00PM +0200, Vincent Snijders wrote:
  To build a 2-byte windows unit (and the new RTL),
 
  1) checkout fpc/branches/unicode
  2) do a make cycle to get a fresh 2.7.1
 
 I did a make all at the top level directory, which ignores my fpc.cfg
 (good) and calls make cycle in the compiler dir (good). It fails.

 http://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/unicode/rtl/inc/astrings.inc?r1=24715r2=24885diff_format=lseems
 an unnecesary change which I suspect breaks compilation

Fixed.

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


Re: [Lazarus] Library or Unit that can help to check network connectivity.

2013-06-25 Thread Paul Breneman

On 06/25/2013 12:34 AM, Eric Kom wrote:

Good day Dear,

Please I am currently looking for library/unit that I can use to check
network connectivity.

Hoping I will find a help.



The other replies about doing pings look good.  About 15 years ago I 
wrote up an answer to this question:

  http://www.brenemanlabs.com/iConnect.htm

My answer also has some clues for the old days when using a modem to 
call an ISP but pinging is discussed at the bottom.  :)



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


Re: [Lazarus] Updating procedure signatures

2013-06-25 Thread Mattias Gaertner
On Tue, 25 Jun 2013 13:34:59 +0200
Vojtěch Čihák vojtech.ci...@atlas.cz wrote:

 Hello,
  
 it isn't a new feature, or am I missing something?
 I think this exist at least one year.

Yes, for methods. Not for procedures.

  
 @ Note: It does not work backward from implementation to interface.
  
 Furthermore, I tried to add parameter in implementation and it updates the 
 interface here.

It works for one *method*.


Mattias

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


Re: [Lazarus] Updating procedure signatures

2013-06-25 Thread Vojtěch Čihák

Thanks. I understand now.
 
I tested it a little (Lazarus 1.1 r41895M FPC 2.7.1 x86_64-linux-qt) and I have 
two issues:
 
1) Inconsistent behaviour when both options are UNchecked (Update all method 
signatures and Update multiple procedure signatured are OFF)
 
this:
procedure A(a: string); | //hit CTRL+SHIFT+C here
procedure B(a: string);

implementation

procedure A;
begin

end;

procedure B;
begin

end;  
 
leads to this:
 
procedure A(a: string); |
procedure B(a: string);

implementation

procedure A(a: string);
begin

end;

procedure B;
begin

end;
 
BUT this:
 
public
{ public declarations }
procedure A(a: string); |  //hit CTRL+SHIFT+C here
procedure B(a: string);
end; 


var
Form1: TForm1;

implementation 


{ TForm1 }

procedure TForm1.A;
begin

end;

procedure TForm1.B;
begin

end;  
 
leads to this:
 
public
{ public declarations }
procedure A(a: string); |
procedure B(a: string);
end; 


var
Form1: TForm1;

implementation 


{ TForm1 }

procedure TForm1.A(a: string);
begin

end;

procedure TForm1.B(a: string);
begin

end;

procedure TForm1.B;
begin

end;
 
i.e. the third method is created
 
2) Attempt to update signature of procedure (not method) backwards from 
implememtation to interface leads to Acces Violation or Out of memory error, it 
sometimes kills IDE.
It works well for one method, as you mentioned in your mail.
 
Vojtěch
 
__

Od: Mattias Gaertner nc-gaert...@netcologne.de
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 25.06.2013 16:26
Předmět: Re: [Lazarus] Updating procedure signatures


On Tue, 25 Jun 2013 13:34:59 +0200
Vojtěch Čihák vojtech.ci...@atlas.cz wrote:

Yes, for methods. Not for procedures.

Mattias

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

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


Re: [Lazarus] Updating procedure signatures

2013-06-25 Thread Mattias Gaertner
On Tue, 25 Jun 2013 17:20:12 +0200
Vojtěch Čihák vojtech.ci...@atlas.cz wrote:

 Thanks. I understand now.
  
 I tested it a little (Lazarus 1.1 r41895M FPC 2.7.1 x86_64-linux-qt) and I 
 have two issues:
  
 1) Inconsistent behaviour when both options are UNchecked (Update all method 
 signatures and Update multiple procedure signatured are OFF)
  
 this:
 procedure A(a: string); | //hit CTRL+SHIFT+C here
 procedure B(a: string);
 
 implementation
 
 procedure A;
 begin
 
 end;
 
 procedure B;
 begin
 
 end;  
  
 leads to this:
  
 procedure A(a: string); |
 procedure B(a: string);
 
 implementation
 
 procedure A(a: string);
 begin
 
 end;
 
 procedure B;
 begin
 
 end;

Correct.

  
 BUT this:
  
 public
  { public declarations }
  procedure A(a: string); |  //hit CTRL+SHIFT+C here
  procedure B(a: string);
  end; 
 
 var
  Form1: TForm1;
 
 implementation 
 
 { TForm1 }
 
 procedure TForm1.A;
 begin
 
 end;
 
 procedure TForm1.B;
 begin
 
 end;  
  
 leads to this:
  
 public
  { public declarations }
  procedure A(a: string); |
  procedure B(a: string);
  end; 
 
 var
  Form1: TForm1;
 
 implementation 
 
 { TForm1 }
 
 procedure TForm1.A(a: string);
 begin
 
 end;
 
 procedure TForm1.B(a: string);
 begin
 
 end;
 
 procedure TForm1.B;
 begin
 
 end;
  
 i.e. the third method is created

Correct. Disabling the option gets the old behavior.

  
 2) Attempt to update signature of procedure (not method) backwards from 
 implememtation to interface leads to Acces Violation or Out of memory error, 
 it sometimes kills IDE.

Please create bug report with an example.

 It works well for one method, as you mentioned in your mail.


Mattias

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


[Lazarus] Lazarus 1.1 svn build 41900

2013-06-25 Thread Junior

does not compile

FPC 2.7.1 i386-linux-gtk 2

Error:
/home/lazarus/components/tachart/tadrawercanvas.pas(314,16) Error: 
identifier idents no member StrikeTrough






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


[Lazarus] System Font Dir for Font Manager Search Path

2013-06-25 Thread Edilson Vieira
Hi all,

Could someone, please, help me on thi issue:

My question is How do I get the system font directory on Windows and Linux?

I need the program running on both windows (win32) and linux (gtk).

So, how do I set the Font Manager search path property?


Code fragment example:



procedure TestFPImgFont;
var
  AFont: TFreeTypeFont;
begin
  AFont:=nil;
  try
// initialize free type font manager
ftfont.InitEngine;
FontMgr.SearchPath:='c:\windows\fonts'; // here I need it not to be
hard coded
AFont:=TFreeTypeFont.Create;
... etc.

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


Re: [Lazarus] Lazarus 1.1 svn build 41900

2013-06-25 Thread Junior

Bug:
  if AFont.StrikeTrough then
Include(st, fsStrikeOut);

Solution (lacked the letter h in the word StrikeThrough):
  if AFont.StrikeThrough then
Include(st, fsStrikeOut);



Em 25-06-2013 14:08, Junior escreveu:

does not compile

FPC 2.7.1 i386-linux-gtk 2

Error:
/home/lazarus/components/tachart/tadrawercanvas.pas(314,16) Error: 
identifier idents no member StrikeTrough








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


[Lazarus] passing make OPT via lazbuild

2013-06-25 Thread waldo kitty


in my script, i use this line...

  make OPT=-gl -gh -dHEAPTRC_WINDOW lazbuild lcl basecomponents starter 
bigidecomponents lhelp


when building the components before it builds lazarus... how do i specify the 
quoted OPT portion on the lazbuild line


  lazbuild.exe --build-ide= --build-mode=debug ide

??

thanks!

--
NOTE: No off-list assistance is given without prior approval.
  Please keep mailing list traffic on the list unless
  private contact is specifically requested and granted.

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


Re: [Lazarus] Lazarus 1.1 svn build 41900

2013-06-25 Thread Mattias Gaertner
On Tue, 25 Jun 2013 16:49:19 -0300
Junior lazarus.li...@gmail.com wrote:

 Bug:
if AFont.StrikeTrough then
  Include(st, fsStrikeOut);
 
 Solution (lacked the letter h in the word StrikeThrough):
if AFont.StrikeThrough then
  Include(st, fsStrikeOut);

It's a bit more complicated.

Fixed.

Mattias


 
 
 
 Em 25-06-2013 14:08, Junior escreveu:
  does not compile
 
  FPC 2.7.1 i386-linux-gtk 2
 
  Error:
  /home/lazarus/components/tachart/tadrawercanvas.pas(314,16) Error: 
  identifier idents no member StrikeTrough
 
 
 
 
 
 
 --
 ___
 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] Lazbuild and RunTime Packages

2013-06-25 Thread Leonardo M . Ramé
Hi, I'm trying to compile Xidel
(http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd
machine, but, as this app requires the run-time package utf8tools I've
tried compiling using lazbuild:

lazbuild --add-package utf8tools.lpk

But I got this:
ERROR: Package utf8tools.lpk is only for runtime.

Is there a way to build runtime packages using Lazbuild?.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

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


Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Leonardo M . Ramé
On 2013-06-25 18:57:39 -0300, Leonardo M. Ramé wrote:
 Hi, I'm trying to compile Xidel
 (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd
 machine, but, as this app requires the run-time package utf8tools I've
 tried compiling using lazbuild:
 
 lazbuild --add-package utf8tools.lpk
 
 But I got this:
 ERROR: Package utf8tools.lpk is only for runtime.
 
 Is there a way to build runtime packages using Lazbuild?.
 

BTW, I compiled xidel using only fpc following these steps:

1) Remove the {$R *.res} line in xidel.pas
2) Run this:

fpc -Fu../../../components/pascal/import/utf8tools \
-Fu../../../components/pascal/internet/ \
-Fu../../../components/pascal/data/ \
-Fu../../../components/pascal/import/regexpr/source/ \
-Fu../../../../synapse/ -Fu../../../components/pascal/system/ \
-Fu../../../../lazarus/lcl/ -Fi../../../../lazarus/lcl/include \
-Fu../../../../lazarus/components/lazutils/ \
-Fu../../../../lazarus/lcl/widgetset/ xidel.pas

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

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


Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread silvioprog
2013/6/25 Leonardo M. Ramé l.r...@griensu.com

 On 2013-06-25 18:57:39 -0300, Leonardo M. Ramé wrote:
  Hi, I'm trying to compile Xidel
  (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd
  machine, but, as this app requires the run-time package utf8tools I've
  tried compiling using lazbuild:
 
  lazbuild --add-package utf8tools.lpk
 
  But I got this:
  ERROR: Package utf8tools.lpk is only for runtime.
 
  Is there a way to build runtime packages using Lazbuild?.
 

 BTW, I compiled xidel using only fpc following these steps:

 1) Remove the {$R *.res} line in xidel.pas
 2) Run this:

 fpc -Fu../../../components/pascal/import/utf8tools \
 -Fu../../../components/pascal/internet/ \
 -Fu../../../components/pascal/data/ \
 -Fu../../../components/pascal/import/regexpr/source/ \
 -Fu../../../../synapse/ -Fu../../../components/pascal/system/ \
 -Fu../../../../lazarus/lcl/ -Fi../../../../lazarus/lcl/include \
 -Fu../../../../lazarus/components/lazutils/ \
 -Fu../../../../lazarus/lcl/widgetset/ xidel.pas

 --
 Leonardo M. Ramé
 http://leonardorame.blogspot.com


It would be nice if lazbuild also do:

lazbuild --remove-package utf8tools.lpk
lazbuild --add-rt-package utf8tools.lpk
lazbuild --remove-rt-package utf8tools.lpk

-- 
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] Lazbuild and RunTime Packages

2013-06-25 Thread Leonardo M . Ramé
On 2013-06-25 17:48:10 -0500, Paul Breneman wrote:
 On 06/25/2013 04:57 PM, Leonardo M. Ramé wrote:
 Hi, I'm trying to compile Xidel
 (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd
 machine, but, as this app requires the run-time package utf8tools I've
 tried compiling using lazbuild:
 
 lazbuild --add-package utf8tools.lpk
 
 But I got this:
 ERROR: Package utf8tools.lpk is only for runtime.
 
 Is there a way to build runtime packages using Lazbuild?.
 
 
 Sorry that I can't help with your problem but you've sparked my
 interest!  Xidel looks like a *very* interesting console project.
 
 I've already got a number of Free Pascal mini distributions which
 use Synapse (which Xidel uses):
   http://www.ctrlterm.com/
 
 Maybe I should add FreeBsd releases to the educational project:
   http://www.turbocontrol.com/helloworld.htm
 
 And then maybe I could add a new page with releases for Xidel?  But
 I see that Xidel needs a little more than just Free Pascal and
 Synapse. It would seem interesting to see how I can add Lazarus
 things but still have a small release to compile a console app.  Any
 suggestions?
 
 

Yes, it's a great tool. I stumbled upon it after days of trying to parse
a very complex HTML page using sed/grep/awk without success.

I really don't know why the developer (Benito van der Zander) added
those Lazarus dependencies when Xidel easily could be compiled using
only FPC. Maybe some of us can bring some help by polishing it.

P.S.: If you want the FreeBsd 9.1 64bits executable, I can send it to
you, it's 3.7Mb.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

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


Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Mattias Gaertner
On Tue, 25 Jun 2013 18:57:39 -0300
Leonardo M. Ramé l.r...@griensu.com wrote:

 Hi, I'm trying to compile Xidel
 (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd
 machine, but, as this app requires the run-time package utf8tools I've
 tried compiling using lazbuild:
 
 lazbuild --add-package utf8tools.lpk

The --add-package options installs a package into the IDE.

 
 But I got this:
 ERROR: Package utf8tools.lpk is only for runtime.
 
 Is there a way to build runtime packages using Lazbuild?.

lazbuild utf8tools.lpk

Mattias


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


Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Mattias Gaertner
On Tue, 25 Jun 2013 19:43:33 -0300
silvioprog silviop...@gmail.com wrote:

[...]
 It would be nice if lazbuild also do:
 
 lazbuild --remove-package utf8tools.lpk
 lazbuild --add-rt-package utf8tools.lpk
 lazbuild --remove-rt-package utf8tools.lpk

Do what?

Mattias


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


Re: [Lazarus] passing make OPT via lazbuild

2013-06-25 Thread waldo kitty

On 6/25/2013 16:53, Mattias Gaertner wrote:

On Tue, 25 Jun 2013 16:10:56 -0400
waldo kittywkitt...@windstream.net  wrote:


in my script, i use this line...

make OPT=-gl -gh -dHEAPTRC_WINDOW lazbuild lcl basecomponents starter
bigidecomponents lhelp

when building the components before it builds lazarus... how do i specify the
quoted OPT portion on the lazbuild line

lazbuild.exe --build-ide= --build-mode=debug ide

??


lazbuild.exe --build-ide=-gl -gh -dHEAPTRC_WINDOW --build-mode=debug
ide


thank you, sir! i thought i might be something that easy but i wasn't really 
sure ;)

--
NOTE: No off-list assistance is given without prior approval.
  Please keep mailing list traffic on the list unless
  private contact is specifically requested and granted.

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