Zaher Dirkey | 1 Jan 09:05
Picon

Re: Undo for Form Designer

On Thu, Dec 31, 2009 at 5:37 PM, JoshyFun <joshyfun <at> gmail.com> wrote:
> Hello Lazarus-List,
>
> Thursday, December 31, 2009, 4:08:11 PM, you wrote:
>
> MG> Notes:
> MG> Changing a property (e.g. Left) changes some other properties too and
> MG> there is no hook. So for undo you must store the whole form plus the
> MG> descendant forms plus the referenced forms plus the source changes. This
> MG> costs much time and memory. For example with some images you easily get
> MG> a megabyte.
> MG> So it would be unwise to create an undo step on every change.
>
> It would be great to at least have 1 step undo, specially when you try
> to delete a visual object but the selected one is the container ;) Or
> maybe a container delete with objects inside should raise some kind of
> warning ?
>

Only undo for Delete, Move, Size is enough with more than 1 steps.

--

-- 
Zaher Dirkey

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

(Continue reading)

Marco van de Voort | 1 Jan 11:47
Picon
Favicon

Free Pascal 2.4.0 released


Happy New Year!

As a special present, We have placed a new major release of the Free Pascal
Compiler, version 2.4.0 on our ftp-servers.

Changes that may break backwards compatibility are documented at:
http://wiki.freepascal.org/User_Changes_2.4.0

Downloads are available at:

the main FTP server at

ftp://ftp.freepascal.org/pub/fpc/beta/2.4.0/

and

ftp://freepascal.stack.nl/pub/fpc/beta/2.4.0/

Enjoy!

The Free Pascal Compiler Team

                            Free Pascal Compiler

                                Version 2.4.0

******************************************************************************
                              What's New in 2.4.0
******************************************************************************
(Continue reading)

Juha Manninen | 1 Jan 13:39
Picon

Re: Undo for Form Designer

On torstai, 31. joulukuuta 2009 17:08:11 Mattias Gaertner wrote:
> Notes:
> Changing a property (e.g. Left) changes some other properties too and
> there is no hook. So for undo you must store the whole form plus the
> descendant forms plus the referenced forms plus the source changes. This
> costs much time and memory. For example with some images you easily get
> a megabyte.
> So it would be unwise to create an undo step on every change.

It should be possible to store only the changed properties, thus using less 
memory. A simple comparison with the previous state reveals the changes.

Descendant and referenced forms make it more complicated. I think they can't 
be ignored because the program could end up being broken otherwise.

Undo would be used mostly for Delete, Move and Size, as noted in other mails 
in this thread. Including binary images in the undo buffer sounds like an 
overkill. Such images are always loaded from an external image, they are not 
edited or created in the Form Designer.

My thought here were at "abstract" level because I don't know the code enough 
now to create anything concrete.

Regards,
Juha Manninen

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
(Continue reading)

dominique | 1 Jan 14:00

Re: Free Pascal 2.4.0 released


Looks like a great release.

Well done to you and all the team for getting it out there!

2010 is off to a great start.

Dominique.

On Fri, 1 Jan 2010 11:47:42 +0100 (CET), marcov <at> stack.nl (Marco van de
Voort) wrote:
> Happy New Year!
> 
> As a special present, We have placed a new major release of the Free
Pascal
> Compiler, version 2.4.0 on our ftp-servers.
> 
> Changes that may break backwards compatibility are documented at:
> http://wiki.freepascal.org/User_Changes_2.4.0
> 
> Downloads are available at:
> 
> the main FTP server at
> 
> ftp://ftp.freepascal.org/pub/fpc/beta/2.4.0/
> 
> and
> 
> ftp://freepascal.stack.nl/pub/fpc/beta/2.4.0/
> 
(Continue reading)

Picon
Favicon

Improving IDE Internationalization

Happy new year to everyone.
 
   I´m having some troubles when using other compiler messages files to compile Lazarus or
when using fpc compiled with other message file language than english.
   The fact is that Lazarus IDE has some pieces of code with embedded strings constants.
   I thought the most common way to solve problems like this was to declare an identifier to it and
moving it to resourcestring header (or file, i.e. LazarusIDEstrconsts)
 

*** The question is : What should be moved or not moved there ???? ***
 

Other situation occurs with constant string in logic, like this example from msgview.pp
 

procedure TMessagesView.MessageViewDrawItem(Sender: TCustomTreeView;
  Node: TTreeNode; State: TCustomDrawState; Stage: TCustomDrawStage;
  var PaintImages, DefaultDraw: Boolean);
var
  TheText: string;
  ARect: TRect;
 
const
->  cHint         = 'Hint: User defined:';
->  cNote         = 'Note: User defined:';
->  cWarning      = 'Warning: User defined:';
  clMsgHint     = clBlue;
  clMsgNote     = clGreen;
  clMsgWarning  = clRed;
  cLeftSpacer   = 0;
 
  procedure ChangeFontColor(c: TColor);
[-] ...
  end;
 
begin
  if Stage<>cdPostPaint then exit;
  // a paint means, something has changed (scrolling, expand, collapse, resize, ...)
  Changed;
 
  //DebugLn(['TMessagesView.MessageViewDrawItem Index=',Node.Index,' Count=',MessageTreeView.Items.Count,' TheText="',TheText,'"']);
 
  { Only use custom colors if not selected, otherwise it is difficult to read }
  if not (cdsSelected in State)
  then begin
->    TheText := Node.Text;
->    if Pos(cNote, TheText) > 0 then
->      ChangeFontColor(clMsgNote)
->    else if Pos(cHint, TheText) > 0 then
->      ChangeFontColor(clMsgHint)
->    else if Pos(cWarning, TheText) > 0 then
->      ChangeFontColor(clMsgWarning);
  end;
end;
 

   If i use other language the code above will not work, since messages are translated.
 
   I´m trying to figure how to solve this one, but before start sending patches maybe should be wise to
hear what others have to say.
   Maybe we get some guidelines on how to proceed in such situations.
 
Regards,
 
Marcelo.
--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Doug Chamberlin | 2 Jan 03:53
Picon
Favicon
Gravatar

Re: [fpc-pascal] Free Pascal 2.4.0 released

Thanks for all the great work that has gone into 2.4.0!

For my new year's resolution I'm going to commit to FPC and Lazarus. So, 
I'm installing the latest in a fresh Ubuntu 9.10 VM and diving in. I'll 
be pushing all this software hard and will probably be coming here for help.

First problem: I downloaded the 32bit Linux (fpc-2.4.0.i386-linux.tar) 
and unpacked it into "~/ins/fpc 2.4.0" and ran "sudo ./install.sh". 
Immediately I ran into a problem because the directory I was installing 
from contained an embedded space in the name.

It really should be documented as a requirement to not have embedded 
spaces. Or, better yet, the install script should be updated to allow 
for them. Or, at least, the install script should be updated to detect 
them and stop gracefully.

How can we get this done?

As far as I can see there is NO documentation in the installation 
tarball. Just the install script. Can't a readme file be added with this 
little detail?

--

-- 
Doug C.
-----
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Doug Chamberlin | 2 Jan 04:36
Picon
Favicon
Gravatar

Installing lazarus with fpc 2.4.0

Looks like there are not yet any Lazarus install downloads ready that 
contain fpc 2.4.0. That's what I'd like to start with, so I'm looking at 
the best way to install Laz 0.9.28.2 with fpc 2.4.0.

I started installing lazarus but the dependency checking said it was 
going to install a bunch of fp* packages that I assumed were older than 
2.4.0 (since they were already in the Ubuntu distribution channel). So I 
stopped.

I'm thinking if I first install fpc 2.4.0 and then install Lazarus 
0.9.28.2 that the Laz install will see the existing fpc install and NOT 
bring in some older fpc packages. Is that correct? I hope so, since 
that's exactly what I want to happen. I'm just looking for some 
confirmation that my assessment is reasonably correct.

--

-- 
Doug C.
-----
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: Installing lazarus with fpc 2.4.0

> I'm thinking if I first install fpc 2.4.0 and then install Lazarus 0.9.28.2...

If you already have Lazarus installed, you can simply install the new
compiler, with the sources...then launch Lazarus. Go to tools, and
build Lazarus. After the build is finished you should be working with
the new compiler

At least that worked for me today with the OSX version...

Joel Sundquist
http://www.intelliadmin.com

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Doug Chamberlin | 2 Jan 05:34
Picon
Favicon
Gravatar

Re: Installing lazarus with fpc 2.4.0

IntelliAdmin Support wrote:
> If you already have Lazarus installed, you can simply install the new
> compiler, with the sources...then launch Lazarus. Go to tools, and
> build Lazarus. After the build is finished you should be working with
> the new compiler

OK, I get that. But I don't have Lazarus already installed and I don't 
really want to install it with an older fpc version.

I'm wondering if Lazarus can be installed without also including an fpc 
install at the same time. Seems like a logical thing to have it be 
separate. Or at least an option. But that does not appear to be available.

--

-- 
Doug C.
-----
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Picon
Favicon

Re: Installing lazarus with fpc 2.4.0

Doug Chamberlin schrieb:

>> If you already have Lazarus installed, you can simply install the new
>> compiler, with the sources...then launch Lazarus. Go to tools, and
>> build Lazarus. After the build is finished you should be working with
>> the new compiler
> 
> OK, I get that. But I don't have Lazarus already installed and I don't 
> really want to install it with an older fpc version.

Install FPC first, then build Lazarus from the makefile.

Since the latest FPC version breaks some old code, an older Lazarus 
distribution may fail to compile with a new compiler. If you want to be 
up to date, checkout the latest version (trunk) from the repositories, 
and install from the command line.

DoDi

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Gmane