Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2011-01-05 Thread Graeme Geldenhuys
While there is no 0.9.30 version to choose from in Mantis, I added a
'0.9.30' tag to my bug report.


Mouse cursor disappears while modal dialog is visible
  http://bugs.freepascal.org/view.php?id=18394



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] Lazarus IDE creates lots of empty config dirs

2011-01-05 Thread Vincent Snijders
2011/1/5 Graeme Geldenhuys graemeg.li...@gmail.com:
 Hi,

 Wanting to test the 0.9.30 branch, I wanted to make a copy of my current
 ~/.config/lazarus/ directory. That's when I noticed lots and lots of
 directories similar to what is shown below. All these directories are empty.

  $ ls -l ~/.config/

 ---8---8---8---8---8---
 drwxr-xr-x 2 2010-11-08 14:55 Lazarus IDE v0.9.29
 drwxr-xr-x 2 2010-11-24 09:23 Lazarus IDE v0.9.29 - dunit2_fpc_textrunner.lpi
 drwxr-xr-x 2 2011-01-03 12:11 Lazarus IDE v0.9.29 - project1.lpi
 drwxr-xr-x 2 2010-11-11 11:51 Lazarus IDE v0.9.29 - tutoradmin.lpi
 drwxr-xr-x 2 2010-11-09 15:31 project1.lpi - Lazarus IDE v0.9.29
 drwxr-xr-x 2 2010-11-11 10:03 tutoradmin.lpi - Lazarus IDE v0.9.29
 ...
 ---8---8---8---8---8---


 * Why are they there?
No idea, I don't have such files in C:\Documents and
Settings\vincent\Local Settings\Application Data\lazarus

 * Why the ugly directory names?

Ugliness is in the eye of the beholder.

Vincent

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


Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2011-01-05 Thread Vincent Snijders
2011/1/5 Graeme Geldenhuys graemeg.li...@gmail.com:
 Hi,

 Found two problems in the first minute of testing.


 * Just checked out the 'fixes_0.9.30' and did a 'make lcl bigide'. Lazarus
 reports it's version still as 0.9.29 instead of 0.9.30

The fixes branch contains 0.9.29. After the release, there will be a
tag with 0.9.30.


 * Mantis doesn't have a Product Version of 0.9.30 to choose from. So how
 are we supposed to report 0.9.30 bugs?

That will be possible after the release. Until 0.9.30 has been
released, it won't be possible to report bugs against it.

Vincent

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


Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2011-01-05 Thread Vincent Snijders
2011/1/5 Graeme Geldenhuys graemeg.li...@gmail.com:
 Op 2011-01-05 09:38, Vincent Snijders het geskryf:
 ... and newly found issues (even regressions)
 are unlikely to block a release.

 That's not good practice.  Unless the first release of 0.9.30 branch will
 be a rc1 release, instead of stable release.


Every snapshot / build from now on till the release of 0.9.30 from the
fixes_0_9_30 branch can be considered a release candidate.

Vincent

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


Re: [Lazarus] Lazarus IDE creates lots of empty config dirs

2011-01-05 Thread Graeme Geldenhuys
Op 2011-01-05 10:09, Vincent Snijders het geskryf:

 * Why are they there?
 No idea, I don't have such files in C:\Documents and
 Settings\vincent\Local Settings\Application Data\lazarus


Note the 'd' in first column of the listing I provided. They are _not_
files but directories - with names from project files I used over time.

As you can see from the dates of those directories, they are fairly recent
as well. So it's not like an old Lazarus IDE version leftovers.


 * Why the ugly directory names?
 
 Ugliness is in the eye of the beholder.

:) I consider them ugly because they use a *.lpi filename, but aren't files
- in fact they are directories. I never name a directory 'myfile.txt'



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] Lazarus IDE creates lots of empty config dirs

2011-01-05 Thread zeljko
On Wednesday 05 of January 2011 09:09:51 Vincent Snijders wrote:

 
 No idea, I don't have such files in C:\Documents and
 Settings\vincent\Local Settings\Application Data\lazarus

I have same problem as Graeme under linux.

zeljko

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


Re: [Lazarus] Lazarus IDE creates lots of empty config dirs

2011-01-05 Thread Graeme Geldenhuys
Op 2011-01-05 10:29, zeljko het geskryf:
 
 I have same problem as Graeme under linux.

Thanks for confirming. I reported it as a bug, seeing that Windows doesn't
seem to have the same behaviour.


  http://bugs.freepascal.org/view.php?id=18396



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] What are widgets in lazarus?

2011-01-05 Thread Graeme Geldenhuys
Op 2011-01-05 10:23, Bo Berglund het geskryf:
 
 What is a widget and how does it relate to my aim of making a
 cross-platform program?

widget = component


Widget is a term often used in Linux (and maybe other OSes too) as a gui
component.  Delphi calls them components, but then in Delphi how to you
differentiate between a GUI component and a non-GUI component? Widgets are
used as GUI components only.


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] No FPC sources on lazarus start....

2011-01-05 Thread Sven Barth

Am 04.01.2011 20:24, schrieb Bo Berglund:

On Tue, 04 Jan 2011 09:10:26 +, Mark Morgan Lloyd
markmll.laza...@telemetry.co.uk  wrote:


David Emerson wrote:

Sounds like you installed the compiler part, but not the fpc sources.

Try here: http://www.freepascal.org/down/source/sources.var

On Mon 3 Jan 2011, Bo Berglund wrote:

I installed FPC on Win XP-Pro from the 2.4.2 installer.
Then I retrieved the lazarus sources from SVN.
Then I did make clean all for lazarus.
All this worked OK.

But now when I start lazarus it complains about missing fpc sources
and it looks like the fpc 2.4.2 does indeed *not* deposit any source
files...
At least I cannot find any in the dir I installed FPC into. All
subfolders there are:
bin
demo
doc
examples
msg
units (which does not contain the sources)

So no source folder. :-(

What can I do now?


I don't know whether this is any help and it is oriented towards Linux,
but I'd add that I normally build FPC from source, in part because doing
so is a good test that the compiler is working on the machine in
question. Having done so I do a  make install  and check that the
symlink in /usr/local/bin is OK, then  make clean and copy the fpcsrc
directory into the appropriate place in /usr/local/lib (I'm being
intentionally vague here since this will vary depending on version number).

Having done that, one is left with a consistent tree of binaries and
source. Start Lazarus with the --pcp= option so that the IDE you're
running uses a private configuration file that specifies how it can find
the matching compiler.



I have just downloaded the 2.4.2 source zipfile and now I have the
problem of extracting it to the right location...
My FPC install dir is C:\Programs\fpc\2.4.2\
Where should I put the sources?
In a subdir to this named source?

The zipfile expands to a top folder named fpc-2.4.2, which obviously
is not my install folder name
And inside there are no subdirs named source or anything like that.

Advice please?




The top folder (fpc-2.4.2) should contain directories like compiler, 
rtl, packages, etc. The best place would be to put those into your 
C:\Programs\fpc\2.4.2 directory and point Lazarus' FPC dir setting to 
that directory (then everything is where it belongs ^^).


Another possibility (your choice) is to put all those directories into a 
source directory in C:\Programs\fpc\2.4.2 and point Lazarus to that.


You are pretty free here, but Lazarus checks that rtl and packages 
directories exist in the set source directory.


Regards,
Sven

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Mark Morgan Lloyd

Bo Berglund wrote:

I am switching from Delphi7-BDS2006 on Windows to FPC-Lazarus on
Windows with the aim of making cross-platform programs.
I also want to make one program run on an embedded ARM board running
linux for ARM.

So I have read a lot of the discussions here and asked questions about
setting up the environment etc.

One thing that bothers me is that I don't understand the term
widget, which gets mentioned very often when discussion is about
screen output and the like

What is a widget and how does it relate to my aim of making a
cross-platform program?


It's not so much widgets as widget set, and it refers to whether the 
intermediate layer between your program is based on Windows, Qt, GTK (1 
or 2) etc.


--
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] Mantis attached tags are broken

2011-01-05 Thread Graeme Geldenhuys
Hi,

I created one report with a new tag '0.9.30', so I can easily find bug
report related to the fixes_0_9_30 branch.

I did a view issues and selected '0.9.30' tag as filter. It only showed
one bug report. I went back to my previous bug reports and the '0.9.30' tag
was removed for all but the last bug report.

So it seems Mantis only allows one bug report to have one tag. That is
stupid! What's the point of tags then, if you can't reused them?

Usage:
In each case, I selected the '0.9.30' tag from the dropdown list, and
selected Attach. The tag then appeared in the 'Tags' column. But that
also removed the tag from all other bug reports. :-(


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] Mantis attached tags are broken

2011-01-05 Thread Graeme Geldenhuys
OK, I just got a Mantis report email which listed that Vincent removed all
the tags - believing they are unnecessary.

Personally, I don't think so, because now all 0.9.30 related reports fall
under the 0.9.29 version - which was also the Trunk a little while ago. So
now there is no way to distinguish between older 0.9.29 (Trunk) reports and
newer reports relating to 0.9.30 branch.



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] Mantis attached tags are broken

2011-01-05 Thread Vincent Snijders
2011/1/5 Graeme Geldenhuys graemeg.li...@gmail.com:
 OK, I just got a Mantis report email which listed that Vincent removed all
 the tags - believing they are unnecessary.

 Personally, I don't think so, because now all 0.9.30 related reports fall
 under the 0.9.29 version - which was also the Trunk a little while ago. So
 now there is no way to distinguish between older 0.9.29 (Trunk) reports and
 newer reports relating to 0.9.30 branch.

Why do you need to distinguish?

If it was an issue in the 0.9.29 version while it is was in trunk or
in the 0.9.29 while it was in the fixes_0_9_30 branch, both issues end
up in 0.9.30, if they are not fixed.

Vincent

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


Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2011-01-05 Thread Graeme Geldenhuys
Please guys and girls, help test the 0.9.30 branch. Vincent asked for this
request over a week ago, and he seems to have gotten little response. I've
been using 0.9.30 for an hour and already reported 6 bugs.

Lets make 0.9.30 release a REAL STABLE release please. What you don't
report, the developers will NOT know about and thus will not be fixed either.

Here is what I got so far:

0018399  Editor 'tabs on right' is not remembered after restart
0018398  IDE Help Options - text gets clipped
0018397  IDE Options | Event Log | has a empty groupbox
0018396  Lazarus IDE creates lots of empty config dirs
0018395  JCF config file displayed with double forward-slash
0018394  Mouse cursor disappears while modal dialog is visible


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] Test the Lazarus fixes_0_9_30 branch

2011-01-05 Thread Graeme Geldenhuys
 Here is what I got so far:
 
 0018399  Editor 'tabs on right' is not remembered after restart
 0018398  IDE Help Options - text gets clipped
 0018397  IDE Options | Event Log | has a empty groupbox
 0018396  Lazarus IDE creates lots of empty config dirs
 0018395  JCF config file displayed with double forward-slash
 0018394  Mouse cursor disappears while modal dialog is visible

0018400: Spelling mistake in 'Build Lazarus' dialog.


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] Can't find unit contnrs used by Masks

2011-01-05 Thread Michael Schnell

On 01/04/2011 06:13 PM, Hans-Peter Diettrich wrote:
Best you build clean *everything* except the examples (some examples 
may not compile from time to time).


I don't see how to do this (and of course they already are cleaned as I 
already did clean and build all).


So I'll just wait until the problem is fixed.

-Michael

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Michael Schnell

On 01/05/2011 09:44 AM, Mark Morgan Lloyd wrote:


It's not so much widgets as widget set, and it refers to whether 
the intermediate layer between your program is based on Windows, Qt, 
GTK (1 or 2) etc.


Widget Set is the more common term, but in Lazarus it's (mostly, e.g. 
Project - Options - Compiler Options) Widget Type.


While a Widget Set usually is a collection of layout (and 
functionality) instructions for commonly used GUI control elements, in 
Lazarus it is more than this, definig a large part of the OS API a 
project is supposed to use, and even is important for projects that 
don't use a GUI at all. E.g. the function of TTimer and inter Thread 
Messaging is defined in the code for the Widget Set used with the 
project. Unfortunately this results in some widgets sets that don't 
allow for using TTimer and inter Thread Messaging.


-Michael


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


Re: [Lazarus] Can't find unit contnrs used by Masks

2011-01-05 Thread Kjow
2011/1/5 Michael Schnell mschn...@lumino.de:
 I don't see how to do this (and of course they already are cleaned as I
 already did clean and build all).

 So I'll just wait until the problem is fixed.

If I understood what you need, in Build profiles, you can choose what
build or not. In the last row there is examples, just select Clean
Up + Build all and set first left-bottom option and the examples will
not be built.

Regards,
Kjow

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


Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2011-01-05 Thread Paul Ishenin

05.01.2011 16:27, Graeme Geldenhuys wrote:

0018397  IDE Options | Event Log | has a empty groupbox
This groupbox is reserved for future. Event log is not implemented now 
but I hope it will be before the 1.0 release.


Best regards,
Paul Ishenin

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


Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2011-01-05 Thread Graeme Geldenhuys
Op 2011-01-05 12:38, Paul Ishenin het geskryf:
 0018397  IDE Options | Event Log | has a empty groupbox
 This groupbox is reserved for future. Event log is not implemented now 
 but I hope it will be before the 1.0 release.

OK thanks. May I then suggest that the groupbox, or even better, the whole
Event Log dialog be removed or made hidden for the 0.9.30 release. No
point in advertising something that is not working or not even implemented
in was is not be a stable release.



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] What are widgets in lazarus?

2011-01-05 Thread Mark Morgan Lloyd

Michael Schnell wrote:

On 01/05/2011 09:44 AM, Mark Morgan Lloyd wrote:


It's not so much widgets as widget set, and it refers to whether 
the intermediate layer between your program is based on Windows, Qt, 
GTK (1 or 2) etc.


Widget Set is the more common term, but in Lazarus it's (mostly, e.g. 
Project - Options - Compiler Options) Widget Type.


While a Widget Set usually is a collection of layout (and 
functionality) instructions for commonly used GUI control elements, in 
Lazarus it is more than this, definig a large part of the OS API a 
project is supposed to use, and even is important for projects that 
don't use a GUI at all. E.g. the function of TTimer and inter Thread 
Messaging is defined in the code for the Widget Set used with the 
project. Unfortunately this results in some widgets sets that don't 
allow for using TTimer and inter Thread Messaging.


Thanks for the extra detail re. timers etc. So the bottom line is that 
Bo's Delphi code is currently using the only widget set that the VCL 
supports, i.e. Windows, and he's probably going to have to move onto 
something like gtk v2; clearly this means that gtk etc. does have to 
work on whatever ARM-based board he's chosen.


--
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] What are widgets in lazarus?

2011-01-05 Thread Graeme Geldenhuys
Op 2011-01-05 13:38, Mark Morgan Lloyd het geskryf:
 supports, i.e. Windows, and he's probably going to have to move onto 
 something like gtk v2; clearly this means that gtk etc. does have to 
 work on whatever ARM-based board he's chosen.

[promo hat on]
Obviously he can also move to something lighter, with less dependencies
that LCL, resulting in much smaller executables, and easier deployment. One
such alternative, for ARM-based boards, is fpGUI Toolkit.  ;-)
[promo hat off]


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] What are widgets in lazarus?

2011-01-05 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

Op 2011-01-05 13:38, Mark Morgan Lloyd het geskryf:
supports, i.e. Windows, and he's probably going to have to move onto 
something like gtk v2; clearly this means that gtk etc. does have to 
work on whatever ARM-based board he's chosen.


[promo hat on]
Obviously he can also move to something lighter, with less dependencies
that LCL, resulting in much smaller executables, and easier deployment. One
such alternative, for ARM-based boards, is fpGUI Toolkit.  ;-)
[promo hat off]


Yes, I was going to mention that but at present it's unclear whether 
it's immediately usable from the Lazarus IDE. If it is not, since Bo is 
talking about converting an existing Delphi project I don't think that 
fpgui would be a visible option.


--
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] What are widgets in lazarus?

2011-01-05 Thread Graeme Geldenhuys
Op 2011-01-05 14:24, Mark Morgan Lloyd het geskryf:
 Yes, I was going to mention that but at present it's unclear whether 
 it's immediately usable from the Lazarus IDE.

fpGUI works with any IDE or editor - their are no dependencies to a
specific IDE.


 If it is not, since Bo is 
 talking about converting an existing Delphi project I don't think that 
 fpgui would be a visible option.

Going from VCL to GTK or GTK2 is bound cause problems too (I know), so it
is not as if it is simply going to be a re-compile and be done with it.
fpGUI is also quite easy to learn and has other benefits too. I just
thought it might be beneficial for the original poster to know all his
options available to him (unlike when I moved away from Delphi). Obviously
MSEide and MSEgui is another option, but that is very different to VCL
(steep learning curve). Though different is not always bad.


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] What are widgets in lazarus?

2011-01-05 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

Op 2011-01-05 14:24, Mark Morgan Lloyd het geskryf:
Yes, I was going to mention that but at present it's unclear whether 
it's immediately usable from the Lazarus IDE.


fpGUI works with any IDE or editor - their are no dependencies to a
specific IDE.


Right, so you're saying that it's not integrated with Lazarus to the 
same extent that the LCL is. If that is the case I'm not sure that it's 
going to be a painless option for Bo.


Bo, I suggest that you check that your board supports GTK etc. If it 
doesn't support GTK but it does have basic X graphics then fpGUI might 
be the least painful option.


--
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] What are widgets in lazarus?

2011-01-05 Thread Bo Berglund
On Wed, 05 Jan 2011 13:05:26 +, Mark Morgan Lloyd
markmll.laza...@telemetry.co.uk wrote:

Graeme Geldenhuys wrote:
 Op 2011-01-05 14:24, Mark Morgan Lloyd het geskryf:
 Yes, I was going to mention that but at present it's unclear whether 
 it's immediately usable from the Lazarus IDE.
 
 fpGUI works with any IDE or editor - their are no dependencies to a
 specific IDE.

Right, so you're saying that it's not integrated with Lazarus to the 
same extent that the LCL is. If that is the case I'm not sure that it's 
going to be a painless option for Bo.

Bo, I suggest that you check that your board supports GTK etc. If it 
doesn't support GTK but it does have basic X graphics then fpGUI might 
be the least painful option.

-- 
Mark Morgan Lloyd

Back again so I could read up on this thread...

So basically a widget set is a definition on what kind of graphics
environment is used on the target system then?
What about making a program for Linux? Do we have to compile the same
program in different versions for different desktop managers on Linux?
Like one for Gnome, another for KDE and yet another for X???
Sounds mighty tedious and error prone...

My first project is to make an embedded application but develop it on
a Windows host where I also want it to be running for checks etc.
This application needs some basic graphics, like using Canvas methods
to draw simple geometric forms on an image.
It is similar to a graphing software visualizing acquired data as
points (colored circles) connected by lines on a Cartesian coordinate
system graph. Nothing fancier than that.

In Delphi I created a very small graphic object TGraphImage, which has
methods for scaling the canvas to real values as opposed to pixels,
drawing lines, rectangles, circles etc with various simple colors. It
can also print text labels on the image.
I would like to use this also in Lazarus and in the embedded
environment.

The embedded card is a touch panel from Technologic Systems
(http://www.embeddedarm.com/products/board-detail.php?product=TS-TPC-7390#),
which runs an embedded version of Debian Linux, I believe.
If it supports GTK (what is that?) or not I don't know but I will ask
them.

The other thing I want to do is convert an existing application for
data analysis to run in Lazarus and crosscompiled for Linux x86 so we
have more options for the customers.
The aim here is to get Windows/Linux versions and also to get it
compiled for 64 bit so we can use larger data sets.
But here is the caveat that the number crunching is done in Fortran
generated DLL:s (se other threads)


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Henry Vermaak

On 05/01/11 13:23, Bo Berglund wrote:


The embedded card is a touch panel from Technologic Systems
(http://www.embeddedarm.com/products/board-detail.php?product=TS-TPC-7390#),
which runs an embedded version of Debian Linux, I believe.
If it supports GTK (what is that?) or not I don't know but I will ask
them.


I quote from the link you gave (Software tab):

Custom Linux GUI applications can be developed using X Windows 
(Xorg-Xserver included) or QtEmbedded libraries (available for download).


So you can use lazarus with the Qt widgetset.  You can also use fpgui 
and MSEide+MSEgui.


Henry

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Graeme Geldenhuys
Op 2011-01-05 15:05, Mark Morgan Lloyd het geskryf:
 
 Right, so you're saying that it's not integrated with Lazarus to the 
 same extent that the LCL is. If that is the case I'm not sure that it's 
 going to be a painless option for Bo.

Define integrated?  Here I have registered fpGUI project types (via the
File  New Project dialog), fpGUI includes a runtime package (*.lpk) so
Lazarus IDE can find the sources (no need to recompile the IDE for that or
fiddle with path settings), Ctrl+F12 launches the fpGUI UI Designer loading
the current file I am editing, closing the UI Designer after designing a
form causes Lazarus to auto-reload that changed file in the source editor
again, Ctrl+F1 does context sensitive search (via fpGUI's DocView) on
Object Pascal syntax and fpGUI framework classes, etc...  I'd say it's well
integrated. btw: everything I just mentioned works with MSEide too.

At least now Bo should know some of the options available to him, so he can
make an educated decision.

@Bo
I would also suggest you look at Paul Breneman's website. He has created
various pre-compiled FPC+fpGUI archives (1–3 MB in size) that you simply
need to unzip, to have a working development environment for embedded
devices (ARM and i386).

  http://www.turbocontrol.com/embeddedfreepascal.htm
  http://www.turbocontrol.com/helloworld.htm
  http://www.turbocontrol.com/easyfpgui.htm


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] What are widgets in lazarus?

2011-01-05 Thread zeljko
On Wednesday 05 of January 2011 09:39:52 Graeme Geldenhuys wrote:
 Op 2011-01-05 10:23, Bo Berglund het geskryf:
  What is a widget and how does it relate to my aim of making a
  cross-platform program?
 
 widget = component

I'd say that widget = TWinControl (and others derived from TWinControl of 
course).

zeljko

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Sven Barth

Am 05.01.2011 14:23, schrieb Bo Berglund:

So basically a widget set is a definition on what kind of graphics
environment is used on the target system then?
What about making a program for Linux? Do we have to compile the same
program in different versions for different desktop managers on Linux?
Like one for Gnome, another for KDE and yet another for X???
Sounds mighty tedious and error prone...


No, normally KDE, which is based on Qt, supports running GTK and GTK2 
applications as well. Also Gnome (on Ubuntu) might run Qt applications, 
too (at least if the Qt libraries are installed).


I myself use a Linux laptop without Gnome or KDE, but I can run GTK, 
GTK2 and Qt applications on it.


There is no pure X widget set in Lazarus, you always need to decide 
whether you want to run Qt or GTK2 (GTK is deprecated today). You might 
want to read about the two on Wikipedia:

http://en.wikipedia.org/wiki/Qt_%28framework%29
http://en.wikipedia.org/wiki/GTK+

If you want a Object Pascal GUI framework with as less dependencies as 
possible (only X), then I'd suggest you - as Graeme did - fpGUI, but you 
need to keep in mind that this isn't VCL compatible like the LCL is.


Regards,
Sven

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Henry Vermaak

On 05/01/11 13:38, Henry Vermaak wrote:

On 05/01/11 13:23, Bo Berglund wrote:


The embedded card is a touch panel from Technologic Systems
(http://www.embeddedarm.com/products/board-detail.php?product=TS-TPC-7390#),

which runs an embedded version of Debian Linux, I believe.
If it supports GTK (what is that?) or not I don't know but I will ask
them.


I quote from the link you gave (Software tab):

Custom Linux GUI applications can be developed using X Windows
(Xorg-Xserver included) or QtEmbedded libraries (available for download).

So you can use lazarus with the Qt widgetset. You can also use fpgui and
MSEide+MSEgui.


On further investigation, it looks like they have images which contain gtk:

ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7390-linux/distributions/

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Mark Morgan Lloyd

Bo Berglund wrote:

Bo, I suggest that you check that your board supports GTK etc. If it 
doesn't support GTK but it does have basic X graphics then fpGUI might 
be the least painful option.



Back again so I could read up on this thread...

So basically a widget set is a definition on what kind of graphics
environment is used on the target system then?


No, it's one or more libraries installed on the system which contain all 
the code to draw standard controls- buttons and so on- on the underlying 
graphics provided by the operating system. There is a handful of widget 
sets- Windows, Qt and GTK for example- and a smaller number of 
underlying graphics subsystems- Windows and X as examples.


Note that in that case there is a part of Windows that implements a 
widget set, and a part that implements low-level graphics. It's possible 
to have the Qt widget set (and possibly others) on top of Windows's 
low-level graphics.



What about making a program for Linux? Do we have to compile the same
program in different versions for different desktop managers on Linux?
Like one for Gnome, another for KDE and yet another for X???
Sounds mighty tedious and error prone...


The LCL provides an interface between your program and the available 
widget set, all you have to do is set the project options to tell it 
which to use at which point Lazarus or lazbuild does the work for you. X 
is a red herring since it's at a lower level than a widget set.


I can't speak for anybody else, but I generally compile for GTK v1, v2, 
Qt and Windows, depending on the underlying OS. If you set your target 
file name to something like 
myproject-$(TargetCPU)-$(TargetOS)-$(LCLWidgetType) Lazarus/lazbuild 
will create distinct binaries for all combinations, the only gotcha is 
that you need to make sure that the libraries implementing the widget 
set are present on the target system.



My first project is to make an embedded application but develop it on
a Windows host where I also want it to be running for checks etc.
This application needs some basic graphics, like using Canvas methods
to draw simple geometric forms on an image.


No. Your first project is a simple form with one button on it that 
displays Hello, World! in a panel. Trust me.



The embedded card is a touch panel from Technologic Systems
(http://www.embeddedarm.com/products/board-detail.php?product=TS-TPC-7390#),
which runs an embedded version of Debian Linux, I believe.
If it supports GTK (what is that?)


I've told you: it's a widget set. And I've told you what a widget set is 
as well :-)


 or not I don't know but I will ask them.

You don't have to ask them. Run

dpkg --get-selections |grep gtk

and expect to see output something like

libgpod3-nogtk  install
libgtk1.2   install
libgtk1.2-commoninstall
libgtk1.2-dev   install
libgtk2.0-0 install
libgtk2.0-commoninstall
libgtk2.0-dev   install
libgtkglext1install
libgtkhtml2-0   install
libwxgtk2.6-0   install
libwxgtk2.8-0   install
pinentry-gtk2   install
python-gtk2 install

Note the -dev packages, which contain all the development (header etc.) 
files. If it's a comparatively recent Debian then it will almost 
certainly have the GTK v2 libraries, if it's an older one it might only 
have v1. Lazarus currently defaults to v2 of GTK rather than v1, v1 is 
deprecated with limited support.


If you don't have the libraries or the development packages then 
installing them is fairly simple. However as recently discussed that's 
not strictly the role of this mailing list: I'm sure that everybody in 
here is happy to help, but what a particular reseller is doing with an 
unspecified version of a standard distro is ultimately not our 
responsibility.


--
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] What are widgets in lazarus?

2011-01-05 Thread Graeme Geldenhuys
Op 2011-01-05 15:23, Bo Berglund het geskryf:
 So basically a widget set is a definition on what kind of graphics
 environment is used on the target system then?

Correct. As standard, Windows only has the WinAPI (GDI etc), and Delphi's
VCL is a wrapper for that API. Under Linux you have more choices of GUI
toolkits. Linux's GUI is provided via X11 (Xorg-XServer) and the most
common library used to talk to X11 server is XLib. This all comes standard
with Linux (desktop and most embedded systems). Qt, GTK, fpGUI etc are gui
toolkits built on top of that, talking to Xlib (Qt and GTK also talk to
Cairo, yet another graphics layer on top of Xlib).  Gnome and KDE are
desktop environments (the desktop you see when you boot Debian or Ubuntu
into a gui mode - and their application are based on GTK2 or Qt GUI
libraries respectively. LCL is another layer on top of that - a wrapper for
GTK2, Qt, Win API etc...  This is where LCL's bigger dependency comes from.
fpGUI and MSEide talks directly to Xlib (under linux, unix etc) or Windows
GDI (under Windows and WinCE).


 What about making a program for Linux? Do we have to compile the same
 program in different versions for different desktop managers on Linux?
 Like one for Gnome, another for KDE and yet another for X???
 Sounds mighty tedious and error prone...

Most linux distos for desktops (not embedded systems) come standard with
the various runtime libaries. So even though you use Ubuntu and Gnome as
you desktop, you can still run KDE applications under Gnome or Gnome/GTK
apps under KDE. If you want improved desktop integration with the desktop
environment, then it might be better to compile your apps for that specific
gui library (Gnome/KDE).


 The embedded card is a touch panel from Technologic Systems
 (http://www.embeddedarm.com/products/board-detail.php?product=TS-TPC-7390#),
 which runs an embedded version of Debian Linux, I believe.

As Henry mentioned, that website lists the core X11 server as included, and
also mentions that Qt-Embedded runtime library is included. So that leaves
you with an Qt-Embedded or Xlib based gui toolkits (GTK1/GTK2 was not
listed, but you might be able to install that yourself).

Note though that if you are creating commercial apps with Qt, you need to
purchase a license (+-3500 US dollars per developer - last time I checked).
fpGUI and MSEide are free, even for commercial apps.

As for doing drawings, graphs etc as you mentioned - that is all possible
with Qt-Embedded, fpGUI and MSEide. Just to be clear, the latter two can
also be used for desktop apps, they are not limited to embedded devices.

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] What are widgets in lazarus?

2011-01-05 Thread Mark Morgan Lloyd

Henry Vermaak wrote:

On 05/01/11 13:38, Henry Vermaak wrote:

On 05/01/11 13:23, Bo Berglund wrote:


The embedded card is a touch panel from Technologic Systems
(http://www.embeddedarm.com/products/board-detail.php?product=TS-TPC-7390#), 



which runs an embedded version of Debian Linux, I believe.
If it supports GTK (what is that?) or not I don't know but I will ask
them.


I quote from the link you gave (Software tab):

Custom Linux GUI applications can be developed using X Windows
(Xorg-Xserver included) or QtEmbedded libraries (available for 
download).


So you can use lazarus with the Qt widgetset. You can also use fpgui and
MSEide+MSEgui.


On further investigation, it looks like they have images which contain gtk:

ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7390-linux/distributions/


It should not be necessary to use a tailored image, all you need to do 
is get the development package from the Debian repository which should 
pull in the libraries as well.


I've got slight reservations about KDE/Qt because my experience is that 
the libraries required aren't compatible with the current (Stable, 
Lenny) Debian, but only with the unreleased next version (SID, 
Squeeze). And SID/Squeeze uses KDE v4, which is pretty alien to 
anybody used to older versions.


--
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] What are widgets in lazarus?

2011-01-05 Thread Andreas Schneider

On Wed, 05 Jan 2011 16:12:46 +0200, Graeme Geldenhuys wrote:


Note though that if you are creating commercial apps with Qt, you 
need to
purchase a license (+-3500 US dollars per developer - last time I 
checked).

fpGUI and MSEide are free, even for commercial apps.


That must have been over a year ago then I guess. Qt is licensed under 
LGPL, so you can freely use it even for commercial applications. That 
was also possible before then, but it was GPL so you had to offer all 
your source code too (depending on how you interpret the GPL terms, but 
that's even more offtopic now).




As for doing drawings, graphs etc as you mentioned - that is all 
possible
with Qt-Embedded, fpGUI and MSEide. Just to be clear, the latter two 
can
also be used for desktop apps, they are not limited to embedded 
devices.


I'm pretty sure that Qt-Embedded is a superset of Qt, so it should be 
possible to reuse the same code. The strong point of Qt-embedded is, 
that it *doesn't* use the X server but uses the framebuffer and 
implements an own windowing system. So you are pretty much independent 
from many other components. Also Qt-embedded (as does Qt) comes with 
lots of helper libraries (Networking etc.) that really give you a 
coherent framework for app development.


Best Regards,
Andreas

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


Re: [Lazarus] Rxnew component install error on amd64

2011-01-05 Thread Diwakoe
Is the svn version same with snapshot version?

Thanks,
Diwa
On 5 Jan 2011 12:53, alexs alex...@yandex.ru wrote:
 05.01.2011 05:20, Diwakoe пишет:
 On Tue, Jan 4, 2011 at 2:54 PM, Vincent Snijders
 vincent.snijd...@gmail.com wrote:
 The svn version seems to be 64 bits safe:
 http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/rx/

 Vincent

 Hi Vincent,

 Component already downloaded and error again on compile process, now
 another module:

 /home/lazp/proj/pack/rxfpc/rxdbgrid.pas(1323,19) Error: Identifier
 not found DrawThemedCell

 error line: DrawThemedCell(aCol, aRow, aRect, aState), the rest like
this:

 if (TitleStyle=tsNative) then
 DrawThemedCell(aCol, aRow, aRect, aState)== error
 else
 begin
 // Canvas.FillRect(aRect);
 DrawCellGrid(aCol, aRow, aRect, aState);
 end;

 Any hints?

 Thanks,
 Diwa

 rxnew from svn work*only with svn version of Lazarus and fpc.*
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] [FR] Add an image file to package for components icons

2011-01-05 Thread Zaher Dirkey
Hi, i like to add an image for components icons, but i like to be more easy,
is it possible to have this feature request.
Just adding the image file like mycontrol.png to the package, mark File
Typeas Image not binnary, when save it the file automatically included
in the resource file .lrs.

Thanks in advance

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Paul Breneman

Hi Mark,

I've got slight reservations about KDE/Qt because my experience is that 
the libraries required aren't compatible with the current (Stable, 
Lenny) Debian, but only with the unreleased next version (SID, 
Squeeze). And SID/Squeeze uses KDE v4, which is pretty alien to 
anybody used to older versions.


You and Bo might be interested in this project:
  http://automon.donaloconnor.net/

It is the same embedded device that Bo and I have.  He is using QT.  It 
would be interesting to see how well that could be done using Lazarus 
and QT.  The device is a bit underpowered but using framebuffer rather 
than X probably helps.


Paul

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


Re: [Lazarus] Rxnew component install error on amd64

2011-01-05 Thread alexs

Yes.

05.01.2011 18:31, Diwakoe пишет:

Is the svn version same with snapshot version?

Thanks,
Diwa
On 5 Jan 2011 12:53, alexsalex...@yandex.ru  wrote:

05.01.2011 05:20, Diwakoe пишет:

On Tue, Jan 4, 2011 at 2:54 PM, Vincent Snijders
vincent.snijd...@gmail.com  wrote:

The svn version seems to be 64 bits safe:
http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/rx/

Vincent


Hi Vincent,

Component already downloaded and error again on compile process, now
another module:

/home/lazp/proj/pack/rxfpc/rxdbgrid.pas(1323,19) Error: Identifier
not found DrawThemedCell

error line: DrawThemedCell(aCol, aRow, aRect, aState), the rest like

this:

if (TitleStyle=tsNative) then
DrawThemedCell(aCol, aRow, aRect, aState)== error
else
begin
// Canvas.FillRect(aRect);
DrawCellGrid(aCol, aRow, aRect, aState);
end;

Any hints?

Thanks,
Diwa


rxnew from svn work*only with svn version of Lazarus and fpc.*



--
___
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] complex ini like syntax parser

2011-01-05 Thread ik
Hello,

I'm looking for a setting parser for something like this:
--- snips -
[foo](!)
bar = 1
baz = fff ; comment

; comment
#include file
#include = section

--- snips 

Before I'll do this the hard way and write something for myself, is there
something like that existed already, or even something that implement part
of it, so I could based my code on it instead of writing one for myself ?

Thanks,

Ido

LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fpGUI

2011-01-05 Thread Mark Morgan Lloyd

Kjow wrote:

2011/1/5 Mark Morgan Lloyd markmll.laza...@telemetry.co.uk:

OK, but is the implementation status at
http://wiki.lazarus.freepascal.org/Roadmap#Status_of_components_on_each_widgetset
up to date? I did earlier say that the situation was unclear, and that table
hardly helps matters.


I think that this link is not updated... I made a stupid app with some
buttons, MainMenu, PaintBox, etc and it worked... so I think that the
link is not updated. Maybe Graeme could update the wiki. :)

Now, I don't know if and what is missing... but it seems to be a real
good GUI.


I think that Graeme could usefully devote some of his sound and fury to 
maintaining that, rather than gitting upset when he thinks his 
endeavours are under-appreciated :-)


I for one have been keeping an eye on that table, because I think that 
fpGUI would potentially be useful in conjunction with FluxBox which I 
already use on low-resource systems. But it appeared so under-featured 
that it was unclear it deserved more detailed investigation.


--
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] complex ini like syntax parser

2011-01-05 Thread Zaher Dirkey
2011/1/5 ik ido...@gmail.com

 Before I'll do this the hard way and write something for myself, is there
 something like that existed already, or even something that implement part
 of it, so I could based my code on it instead of writing one for myself ?


In project

http://sourceforge.net/projects/minilib/
You can port Apache syn Highlighter and modify it to highlight your config
file
Lazarus\lib\SynHighlighterApache.pas

It is old for me i committed it today, if there is any bug, confirm me
please.

Best regards

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


Re: [Lazarus] Project conversion Delphi - FreePascal: success!

2011-01-05 Thread Micha Nelissen

Bo Berglund wrote:

2) The fortran code failed to translate when it turned out that
Fortran could change the type of a matrix multiplication depending on
the dimensions of the two input matrices.


You couldn't translate the code or the function declarations? Calling 
the fortran code from freepascal might be possible, then you don't have 
to translate the code itself, just call it.


Micha

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


Re: [Lazarus] complex ini like syntax parser

2011-01-05 Thread ik
2011/1/5 Zaher Dirkey parm...@gmail.com

 2011/1/5 ik ido...@gmail.com

 Before I'll do this the hard way and write something for myself, is there
 something like that existed already, or even something that implement part
 of it, so I could based my code on it instead of writing one for myself ?


 In project

 http://sourceforge.net/projects/minilib/
 You can port Apache syn Highlighter and modify it to highlight your config
 file
 Lazarus\lib\SynHighlighterApache.pas



Thanks Zaher, but I'm looking for a parser to read the keys and values, and
not syntax highlighter.




 It is old for me i committed it today, if there is any bug, confirm me
 please.

 Best regards

 --
 Zaher Dirkey

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

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Sven Barth

On 05.01.2011 16:42, Paul Breneman wrote:

Yesterday I loaded the Win32 fpGUI zip into ReactOS in VMware and it
*mostly* worked. ReactOS has some good potential as a free embedded OS
but I doubt it will ever be good enough for general desktop use.


I know this is getting off topic, but how much did it work? What failed? 
Might you be able to post a bug report for ReactOS?


Regards,
Sven

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


Re: [Lazarus] Project conversion Delphi - FreePascal: success!

2011-01-05 Thread Sven Barth

On 05.01.2011 18:33, Micha Nelissen wrote:

Bo Berglund wrote:

2) The fortran code failed to translate when it turned out that
Fortran could change the type of a matrix multiplication depending on
the dimensions of the two input matrices.


You couldn't translate the code or the function declarations? Calling
the fortran code from freepascal might be possible, then you don't have
to translate the code itself, just call it.


This might not help him in the long run if he wants to port his project 
to x86_64 or even ARM.


Regards,
Sven

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


Re: [Lazarus] complex ini like syntax parser

2011-01-05 Thread Zaher Dirkey
2011/1/5 ik ido...@gmail.com


 Thanks Zaher, but I'm looking for a parser to read the keys and values, and
 not syntax highlighter.


Sorry stupid me :P syntax word is confused me.

But that file is not just an INI file.
You can try lcl\translations.pas UpdateStrings but it is not fit to what
your need.

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


Re: [Lazarus] fpGUI

2011-01-05 Thread José Mejuto
Hello Lazarus-List,

Wednesday, January 5, 2011, 5:23:01 PM, you wrote:

MML OK, but is the implementation status at
MML 
http://wiki.lazarus.freepascal.org/Roadmap#Status_of_components_on_each_widgetset
MML up to date? I did earlier say that the situation was unclear, and that
MML table hardly helps matters.

I think I was the last one that commit something to LCLfpGUI 6 months
ago. Controls in standard tab should work (with some problems maybe)
but the components in other tabs could or could not work because I
started working from the standard ones. There are still some bugs in
the standard ones but stopped updates mainly because fpGUI does not
have a graphics support defined (I think it is ready now) and many
controls needs some kind of graphics, so pause the update.

I'm pretty sure that I did some bad decisions in the update, so please
if somebody see an implementation design bug post a bug in the
tracker, or even bugs in the standard tab components.

-- 
Best regards,
 José


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


Re: [Lazarus] complex ini like syntax parser

2011-01-05 Thread Marco van de Voort
On Wed,Jan 05, 2011 at 06:23:36PM +0200, ik wrote:
 I'm looking for a setting parser for something like this:
 --- snips -
 [foo](!)
 bar = 1
 baz = fff ; comment
 
 ; comment
 #include file
 #include = section
 
 --- snips 
 
 Before I'll do this the hard way and write something for myself, is there
 something like that existed already, or even something that implement part
 of it, so I could based my code on it instead of writing one for myself ?

Really brave people try http://www.stack.nl/~marcov/files/conffile.zip 

It is a really old experiment of mine making one parser read many kinds of
files. (unix password files, ini files (with additions and modifications),
apache/golded keyword based files etc)

It's pretty much my first OOP, so be careful, but I'm still surprised how
far I got.


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


Re: [Lazarus] fpGUI

2011-01-05 Thread Graeme Geldenhuys
On 5 January 2011 17:41, Kjow wrote:

 I'm testing fpGUI on Lazarus and following the link:
 http://wiki.lazarus.freepascal.org/fpGUI_Interface#Creating_your_first_LCL_application_with_fpGUI
 (step 3.1)

That would be for using LCL-fpGUI (LCL with fpGUI as the backend
widget set). I don't maintain that simply due to time constraints, but
some other developers do. As far as I know all the components on the
Standard palette in Lazarus IDE work.

My suggestion now would be to or help implement the remainder of
LCL-fpGUI, or use fpGUI directly (no LCL involvement). I do the
latter, and simply use Lazarus IDE as my editor.


 Projects start with Win9x-like theme, but I read that I can make
 working current OS theme (XP - 7, Ubuntu, etc)... how can I do
 this?

I have started work on theming again, but haven't implemented all the
standard OS themes yet. For an example of how to implement your own
theme, see the fpgui/examples/gui/customstyles/ demo.


 Is there a tutorial to learn how to use more deeply fpGUI with Lazarus
 (but starting from the basics)?

Yes there are, by using fpGUI directly (not via LCL). All the demos in
the fpgui/examples/ directory are kept simple and only explains one
feature per demo, to help with learning fpGUI. Michael van Canneyt
also wrote an introductory article on fpGUI (available from
http://opensoft.homeip.net:8080/articles/ for download). Keep in mind
Michael wrote that two years ago, so things might have changed a bit
since then. Then there is also the usual FAQ, README, INSTALL, Class
Design etc text files in the fpgui/docs/ directory.


-- 
Regards,
  - Graeme -


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

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


Re: [Lazarus] fpGUI

2011-01-05 Thread Graeme Geldenhuys
On 5 January 2011 18:23, Mark Morgan Lloyd wrote:
 OK, but is the implementation status at
 http://wiki.lazarus.freepascal.org/Roadmap#Status_of_components_on_each_widgetset
 up to date? I did earlier say that the situation was unclear, and that table
 hardly helps matters.

Those tables only relate to what has been implemented in LCL (in this
example, using fpGUI as a backend). In our earlier discussion (about
ARM development) I was talking about using fpGUI directly (no LCL
involvement), in which case most used features are all implemented.

On the wiki page you mentioned, above each table it also clearly
states that it only lists the LCL implemented features, and not the
features of each individual gui toolkit itself. So it should be clear
what the tables are referring too.

As for the question about if those tables are up to date, I have no
idea. I'm not involved with LCL development. The job of updating those
tables will fall onto the persons developing LCL.

-- 
Regards,
  - Graeme -


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

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


Re: [Lazarus] fpGUI

2011-01-05 Thread Graeme Geldenhuys
On 5 January 2011 19:14, Mark Morgan Lloyd wrote:

 I for one have been keeping an eye on that table, because I think that fpGUI
 would potentially be useful in conjunction with FluxBox which I already use
 on low-resource systems.

I fully agree. I think it will be great having a fully implemented
LCL-fpGUI, and many have mentioned that as well. I can list many
benefits. Unfortunately my plate is already very full with my family
responsibilities, my daytime job, fpGUI, tiOPF and DUnit2 development.


-- 
Regards,
  - Graeme -


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

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Graeme Geldenhuys
Hi Paul,

On 5 January 2011 17:42, Paul Breneman wrote:

 I would very much like to get MSEide set up that way and into a minimal
 distro for demonstration purposes.  If you have this documented somewhere
 please share a link!  You may already have this and I've overlooked it.

Have a look at:
   fpgui/extras/mseide_templates/readme.txt


I'll had more detailed instructions in the usual
fpgui/docs/INSTALL.txt file too.



-- 
Regards,
  - Graeme -


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

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Graeme Geldenhuys
On 5 January 2011 17:50, Paul Breneman wrote:
 would be interesting to see how well that could be done using Lazarus and
 QT.  The device is a bit underpowered but using framebuffer rather than X
 probably helps.

Adding a Linux framebuffer backend to fpGUI is already on my todo
list. I hope to get it done this year, so then fpGUI can compete on
that level too. :)


-- 
Regards,
  - Graeme -


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

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


[Lazarus] JSON - RTTI streaming.

2011-01-05 Thread Michael Van Canneyt

Hello,

For those of you that need JSON support:

I have committed support for streaming published properties 
(properties for which RTTI  is generated) from objects to 
JSON and vice versa, in a unit fpjsonrtti.


Not the full streaming as implemented in the classes system is supported:
- No DefineProperties.
- No methods.
Although it should not be difficult to add support for this.

In contrast, it can stream simple collections and stringlists 
(with ojects attached) in various ways.

There are various events to influence the streaming process.
This should be more than enough to stream objects to and from a web-browser.

I have committed an example and a testsuite.
All this is in packages/fcl-json.

Despite the fact that the testsuite runs OK , 
I'd like to ask those for whom it might be useful to test the 
code and report any errors you find to me. Suggestions for 
improvements are also welcome.


Michael.

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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Henry Vermaak
On 5 January 2011 14:13, Mark Morgan Lloyd
markmll.laza...@telemetry.co.uk wrote:

 It should not be necessary to use a tailored image, all you need to do is
 get the development package from the Debian repository which should pull in
 the libraries as well.

I'd usually expect embedded vendors to build packages specifically
targeted for their processor, as there are many ARM configurations,
and Debian only targets the ARMv4T architecture with no hardfloat,
which wouldn't make much sense to run on more modern processors.  But
this specific board does have an ARM920T, so maybe they just connect
to the Debian repositories.

Henry

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


Re: [Lazarus] Is there an svn command to find out the last commit affected a particular file?

2011-01-05 Thread Frank Church
On 2 January 2011 16:44, Henry Vermaak henry.verm...@gmail.com wrote:

 2011/1/2 Frank Church vfcli...@gmail.com:
 
  Is there an option to filter display just the latest one?

 svn log -l 1 file

 Henry


This does exactly what is needed.

Thanks


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




-- 
Frank Church

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


Re: [Lazarus] Rxnew component install error on amd64

2011-01-05 Thread Diwakoe
2011/1/5 alexs alex...@yandex.ru:
 Yes.

 05.01.2011 18:31, Diwakoe пишет:

 Is the svn version same with snapshot version?

 Thanks,
 Diwa
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



I'm already installed snapshot version:
lazarus-0.9.31.28842-20101231.amd64.deb.tar and
fpc-2.4.2-0.amd64.deb.tar install process goes well but when try to
install rxnew svn version package error happen (attached) Broken
Dependency, A Required packages was not found. See package graph
there is no rx package found.

Is there any new snapshot version which is contain rx package?

Thanks,
Diwa
-- 
Semua rasa ada disini
http://www.teoteblung.co.cc
attachment: Pkg_inst_err.png--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread Paul Breneman

Sven Barth wrote:

On 05.01.2011 16:42, Paul Breneman wrote:

Yesterday I loaded the Win32 fpGUI zip into ReactOS in VMware and it
*mostly* worked. ReactOS has some good potential as a free embedded OS
but I doubt it will ever be good enough for general desktop use.


I know this is getting off topic, but how much did it work? What failed? 
Might you be able to post a bug report for ReactOS?


I compiled and ran the fpGUI uidesigner program.  The graphics didn't 
work right.  The combobox dropdown list appeared somewhere else on the 
screen.  The black dots around controls when you selected them didn't 
appear.  I didn't do a lot of testing but apparently the GDI layer isn't 
quite done.  I would guess that if you ran a Delphi or Lazarus program 
that used Win32 widgets they would work better.




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


Re: [Lazarus] What are widgets in lazarus?

2011-01-05 Thread waldo kitty

On 1/5/2011 08:47, zeljko wrote:

On Wednesday 05 of January 2011 09:39:52 Graeme Geldenhuys wrote:

Op 2011-01-05 10:23, Bo Berglund het geskryf:

What is a widget and how does it relate to my aim of making a
cross-platform program?


widget = component


I'd say that widget = TWinControl (and others derived from TWinControl of
course).


FWIW and from what i've learned, this is accurate... more accurate than what 
other stuff i've seen and it pertains directly to Lazarus' usage...


it may also be stated as

  widget = TWinControl and descendants

;)

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


Re: [Lazarus] Project conversion Delphi - FreePascal: success!

2011-01-05 Thread waldo kitty

On 1/5/2011 12:33, Micha Nelissen wrote:

Bo Berglund wrote:

2) The fortran code failed to translate when it turned out that
Fortran could change the type of a matrix multiplication depending on
the dimensions of the two input matrices.


You couldn't translate the code or the function declarations? Calling the
fortran code from freepascal might be possible, then you don't have to translate
the code itself, just call it.


this was discussed but IIRC it seemed that determining the proper calling 
procedures came up... if the library wasn't callable in pascal or C format 
or some such... one would need to be able to compile those libraries in a 
FPC/Lazarus compatible format for the normal callouts (is that the proper 
term) to work... since this was hard to do (ie: no compiler with this 
capability??) it was looked into that those routines could be recoded in pascal 
format... this too has not been able to be done because there's no available 
FORTRAN - PASCAL coder who can make the conversion...


IIRC^2 : the original coder is long gone and no longer available for 
consultation...


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


[Lazarus] What do I need to do to install and use JEDI-SDL-v1.0

2011-01-05 Thread Peter Williams

Hi All,
What do I need to do to install and use JEDI-SDL-v1.0 or which ever is latest?I 
have downloaded JDL-SDLv1.0.zip and unarchived it. It is in Delphi format and 
free pascal and lazarus.
See below that I have tried to run the fpc-install.sh file (with the command 
sh ./fpc-install.sh ).
j...@juni ~/Public/Lazarus_source_code/JEDI-SDLv1.0/lazarus $ sh 
./fpc-install.sh: not foundll.sh: 14: : not foundll.sh: 17: : not foundll.sh: 
22: {^C:  (that´s where it hung and I pressed control+C)
I am attaching both the fpc-install.sh and Getting Started.html. I have printed 
a hard copy of the latter and it says to click on the Delphi Tools / 
Environment Options menu then select the Library tab then click on the ellipsis 
for Library Path. This is different in my copy of Lazarus 0.9.28.2 for Linux.
Any help will be welcome. Thanks in advance. 
_( Swerve me? The path to my fixed 
purpose )( is laid with iron rails, whereon my )( soul is grooved to run. 
Over unsounded  )( gorges, through the rifled hearts of)( mountains, under 
torrents' beds,)( unerringly I rush!  )(
 )( -- Captain Ahab, Moby Dick) 
-  o   o   \_\__/_/o  \__/  
 (oo)\___   (__)\   )\/\   ||w |
   || ||j...@juni ~ $ lsDesktop   lazarus success 
with wine 1.3Documents 
Life_the_Universe_and_Everything3.zip.html.txtDownloads 
MusicDropbox   Picturesgoogle_analyitics.zip 
Publicjre1.6.0_23   TemplatesjUploadr-1.1.2-linuxGTK-i386  
Uploadslazarus   videosj...@juni ~ $ cd publicj...@juni 
~/Public $ cd lazarus_source_codej...@juni ~/Public/Lazarus_source_code $ cd 
jedi-sdlv1.0j...@juni ~/Public/Lazarus_source_code/JEDI-SDLv1.0 $ cd 
lazarusj...@juni ~/Public/Lazarus_source_code/JEDI-SDLv1.0/lazarus $ lsCal3D
Newton SDL_flicSDL_SoundDemos
ODESDL_Gfx SDLSpriteEngineDocumentationOpenGL   
  SDL_Image   SDL_ttffmod PixelPrachtFX  
sdlinput.pas.patch  Setupfpc-install.sh   SDLSDL_Mixer  
 SFontHawkVoiceSDLCtrls   SDLMonoFonts
smpegJEDI-SDL-README.txt  SDLFilter  SDL_Net 
team_sdl.whtmj...@juni ~/Public/Lazarus_source_code/JEDI-SDLv1.0/lazarus $ sh 
./fpc-install.sh: not foundll.sh: 14: : not foundll.sh: 17: : not foundll.sh: 
22: {^C:  j...@juni ~/Public/Lazarus_source_code/JEDI-SDLv1.0/lazarus $ 
Best Regards,
PEW   

fpc-install.sh
Description: application/shellscript
Title: Setting up Delphi or Kylix to work with JEDI-SDL



  
   
  
Setting up Delphi or Kylix to work with JEDI-SDL
  
   
  

Extract the JEDI-SDL Zip file or Tar.gz file, to a directory
of  your  choice, making sure you maintain the archives built in directory 
 structure.  For example I have a "headers" directory under my Delphi or Kylix
 installation  directory. So for me on a windows machine I have installed 
JEDI-SDL to. "D:\Program  Files\Borland\Delphi6\Headers\JEDI-SDL\.". Make
sure you remember this  path and also that under Linux, paths are case
sensitive so you may  want to keep everything in lower case. The main advantage
of extracting them  under your installed Delphi or Kylix directory is so
you can make use of the $(DELPHI) path directive as shown in the next few
steps
  Next we need to make sure we are using the latest Runtimes for
out   system. in the \JEDI-SDL\Runtimes\ directory you will find the
latest   Linux ( in RPM format ) and and Windows ( DLLs ) runtimes.
   
  
Under Linux install each RPM and everything should be ready to
 go  on to Step 3.
   

NOTE : For the DeathTruckTion game to run you must have either
 fmod.dll ( under Windows ) or
  libfmod-3.5.so ( under Linux ) installed.
  Under Linux, make sure you are logged in as root and copy the libfmod-3.5.so
file from the Runtimes/Linux/ directory to your /usr/lib/ directory. You
also need to ensure that the shared library has the correct permissions,
 other wise it will not execute correctly. So via a command line, navigate
to the /usr/lib/ directory and enter the following command ( it assumed you
are in /usr/lib/ and logged in as root )...
  chmod 755 libfmod-3.5.so.
Now you need to create a symbolic link between libfmod-3.5.so and libfmod.so.
This is done with the
  following command ( it assumed you are in /usr/lib/ and logged in as root
)...
  ln -s libfmod-3.5.so libfmod.so.
Similarly, I found that the smpeg RPM did not install smpeg correctly.
 In you /usr/lib/ directory you will 

Re: [Lazarus] Project conversion Delphi - FreePascal: success!

2011-01-05 Thread Salvatore Coppola
2011/1/3 Birger Jansen bir...@cnoc.nl

 Hi all,

Last month I converted a 500.000 lines Delphi project to FreePascal, and I
 wanted to thank those who replied to my questions over the mailing list and
 the whole FPC / Lazarus team for delivering a great product. Also all
 contributors to wiki pages, newsgroups and forums: thanks! Even the smallest
 pages or postings contained useful information and are a valuable source of
 information.

 The converted application is an output viewer for calculations based on the
 finite element method. It is intended for 2-Dimensional and 3-Dimensional
 geotechnical analysis of deformation and stability of soil structures, as
 well as groundwater and heat flow, in geo-engineering applications such as
 excavation, foundations, embankments and tunnels. (so this is a result
 viewer, the actual calculations are performed with another application).

Hi Jansen
although it is no longer my main job I am geotechnical engineer and I'm
curious on the finite elements application: did you do it? is it in pascal?
what is his name?
As for the viewer it look very professional so BRAVO!
Regard
Salvatore


 The conversion was a pilot with the main reason for trying FPC the need for
 64 bit. During conversion I encountered lots of small issues (Unicode,
 OpenGL, images with scanline manipulation, generics, anonymous methods,
 class constants and functions, MDI forms, treeview with custom drawing,
 Steema TChart, custom controls and more). For most of the encountered issues
 I created a list with their solution, I'll try to clean it up and see if I
 can post it somewhere because it might also be helpful for others.

 Attached you will find some screenshots of the result, these give you an
 idea of what the program does.

 With kind regards,
   Birger Jansen

 --
 ___
 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