Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-08

CVS updates

17 messages · 8 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Weustink

Hi,

I've introduced Interface Exceptions.
With these, a (GTK|win32|etc) interface can raise an exception when something bad like Critical/Error/Warning happens.

In the GTK interface it is implemented on all Critical/Error/Warning loggings. All fatal errors raise now a unhandled exception, all normal errors raise a handled exception so it would not interfere with normal operation.
When an app with GTK errors is run in the IDE, execution is paused and with the callstack one can find what's wrong :-)

Marc

Reply by email

Mattias Gaertner

Hi all,

TApplication now uses the TCustomApplication in custapp.pp, which is new in fpc 1.0.10. Are there still users who use 1.0.7?

Updates:

- TApplication is now a descendant of TCustomApplication, which provides some useful methods and properties for command line options.
- added Run -> Abort Build
- reduced repaints during cursor moving in TSynEdit
- replaced show compiler options message dialog with a dialog with a TMemo. Now you can copy the command line options more easily.
- TBitmap now saves written stream. Accelerates streaming.
- added TSelectDirectoryDialog to dialogs.pp and IDE palette.
- LazConf.pp now has a shared include file for linux and bsd.
- the messages view now supports blocks, so that compilation tasks that consists of several steps keeps all messages.
- New lcl unit: lcl/intfgraphics.pas
Contains TLazIntfImage, TLazAVLPalette, TLazReaderXPM and TLazWriterXPM.
TLazIntfImage is a TFPCustomImage descendant, which is able to store and edit images in lcl interface specific data format. Usage is quite easy and much faster than Get/PutPixel calls. For example: TLazReaderXPM is up to 6 times faster than the gdk1 internal xpm reading function.
It already supports 1,15,16,24 bit depths and transparency for the gtk interface. Palettes are not yet implemented. To use it, you need fpImage (in the cvs fpc 1.0.10 or the coming fpc 1.0.10a). Next step is to imbed it in TPixmap and implement the TPNG class. Any volunteers?

Mattias

Reply by email

Unknown author
to Mattias Gaertner: On Fri, 15 Aug 2003 20:40:37 +0200 (CEST) I hope you mean "make clean all". You know, fpc…
Mattias Gaertner wrote 18 lines
On Fri, 15 Aug 2003 20:40:37 +0200 (CEST) wrote: > > > On Fri, 15 Aug 2003, Mattias Gaertner wrote: > > > Hi all, > > > > TApplication now uses the TCustomApplication in custapp.pp, which is new > > in fpc 1.0.10. Are there still users who use 1.0.7? > > > > Updates: > > It seems that your update destroys making lazarus using 'make': I hope you mean "make clean all". You know, fpc is not very smart when checking include files.

On the contrary, it does too much. It's a difficult issue :/

Show quoted text 23 lines
> make[3]: Entering directory > `/home/michael/projects/lazarus/lcl/interfaces/gtk' > /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu > ppc386 -gl -dgtk1 -Fu../../units -Fu. > -Fl/opt/gnome/lib -Fl/opt/gnome2/lib -Fl/opt/kylix2/bin -di386 > interfaces.pp interfacebase.pp(35,16) Fatal: Can't find unit LCLSTRCONSTS > make[3]: *** [interfaces.ppu] Error 1 > > One hour before, it still worked. > Moving the 'lclstrconsts.ppu' and '.o' file to lcl/units makes it work, > but then I get > ppc386 -gl -Fulcl/units -Fulcl/units/gtk -Fucomponents/units > -Fucomponents/custom -Fucomponents/mpaslex -Fudesigner -Fudesigner/units > -Fudebugger -Fupackager -Fupackager/units -Fu. > -Fl/opt/gnome/lib -Fl/opt/gnome2/lib -Fl/opt/kylix2/bin -di386 lazarus.pp > lazconf.inc(36,2) Fatal: Can't open include file ../unix/lazbaseconf.inc > make[1]: *** [lazarus] Error 1 > > lazbaseconf.inc does not exist. Maybe you updated in just in the second between committing and fixing the permissions? I just did a clean checkout. No problem.

Solved; I forgot to add -dP to cvs update.

I did the following:
- Image component on form.
- Set picture property from XPM file.
- Run.
The image does not show. Is this normal ?

Michael

Reply by email

Marco van de Voort
to Mattias Gaertner: On Fri, 15 Aug 2003 20:40:37 +0200 (CEST) I hope you mean "make clean all". You know, fpc…
Show quoted text 41 lines
On Fri, 15 Aug 2003 20:40:37 +0200 (CEST) wrote: > On Fri, 15 Aug 2003, Mattias Gaertner wrote: > > > Hi all, > > > > TApplication now uses the TCustomApplication in custapp.pp, which is new > > in fpc 1.0.10. Are there still users who use 1.0.7? > > > > Updates: > > It seems that your update destroys making lazarus using 'make': I hope you mean "make clean all". You know, fpc is not very smart when checking include files. > make[3]: Entering directory > `/home/michael/projects/lazarus/lcl/interfaces/gtk' > /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu > ppc386 -gl -dgtk1 -Fu../../units -Fu. > -Fl/opt/gnome/lib -Fl/opt/gnome2/lib -Fl/opt/kylix2/bin -di386 > interfaces.pp interfacebase.pp(35,16) Fatal: Can't find unit LCLSTRCONSTS > make[3]: *** [interfaces.ppu] Error 1 > > One hour before, it still worked. > Moving the 'lclstrconsts.ppu' and '.o' file to lcl/units makes it work, > but then I get > ppc386 -gl -Fulcl/units -Fulcl/units/gtk -Fucomponents/units > -Fucomponents/custom -Fucomponents/mpaslex -Fudesigner -Fudesigner/units > -Fudebugger -Fupackager -Fupackager/units -Fu. > -Fl/opt/gnome/lib -Fl/opt/gnome2/lib -Fl/opt/kylix2/bin -di386 lazarus.pp > lazconf.inc(36,2) Fatal: Can't open include file ../unix/lazbaseconf.inc > make[1]: *** [lazarus] Error 1 > > lazbaseconf.inc does not exist. Maybe you updated in just in the second between committing and fixing the permissions? I just did a clean checkout. No problem.

FreeBSD went ok too.

bash-2.05b# ls -als lazarus
13008 -rwxrwxr-x 1 root fpc 13296601 Aug 15 21:19 lazarus

bash-2.05b# find . |grep lazbase
./include/unix/lazbaseconf.inc

bash-2.05b# cvs log include/unix/lazbaseconf.inc

RCS file: /FPC/CVS/projects/lazarus/include/unix/lazbaseconf.inc,v [snip]
revision 1.2
date: 2003/08/15 14:28:48; author: mattias; state: Exp; lines: +12 -0 clean up win32 ifdefs

BUT under FreeBSD, sources are in:

/usr/local/share/src/fpc-1.0.10/

and I don't see that listed. I probably never fixed because I always use CVS.

Reply by email

Mattias Gaertner
to Mattias Gaertner: TApplication now uses the TCustomApplication in custapp.pp, which is new in fpc 1.0.10.…
Show quoted text 12 lines
On Fri, 15 Aug 2003, Mattias Gaertner wrote: > Hi all, > > TApplication now uses the TCustomApplication in custapp.pp, which is new > in fpc 1.0.10. Are there still users who use 1.0.7? > > Updates: It seems that your update destroys making lazarus using 'make':

I hope you mean "make clean all". You know, fpc is not very smart when checking include files.

Show quoted text 19 lines
make[3]: Entering directory `/home/michael/projects/lazarus/lcl/interfaces/gtk' /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu ppc386 -gl -dgtk1 -Fu../../units -Fu. -Fl/opt/gnome/lib -Fl/opt/gnome2/lib -Fl/opt/kylix2/bin -di386 interfaces.pp interfacebase.pp(35,16) Fatal: Can't find unit LCLSTRCONSTS make[3]: *** [interfaces.ppu] Error 1 One hour before, it still worked. Moving the 'lclstrconsts.ppu' and '.o' file to lcl/units makes it work, but then I get ppc386 -gl -Fulcl/units -Fulcl/units/gtk -Fucomponents/units -Fucomponents/custom -Fucomponents/mpaslex -Fudesigner -Fudesigner/units -Fudebugger -Fupackager -Fupackager/units -Fu. -Fl/opt/gnome/lib -Fl/opt/gnome2/lib -Fl/opt/kylix2/bin -di386 lazarus.pp lazconf.inc(36,2) Fatal: Can't open include file ../unix/lazbaseconf.inc make[1]: *** [lazarus] Error 1 lazbaseconf.inc does not exist.

Maybe you updated in just in the second between committing and fixing the permissions?
I just did a clean checkout. No problem.

Mattias

Reply by email

Unknown author
to Mattias Gaertner: TApplication now uses the TCustomApplication in custapp.pp, which is new in fpc 1.0.10.…
Mattias Gaertner wrote 6 lines
Hi all, TApplication now uses the TCustomApplication in custapp.pp, which is new in fpc 1.0.10. Are there still users who use 1.0.7? Updates:

It seems that your update destroys making lazarus using 'make':

make[3]: Entering directory
`/home/michael/projects/lazarus/lcl/interfaces/gtk' /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu ppc386 -gl -dgtk1 -Fu../../units -Fu.
-Fl/opt/gnome/lib -Fl/opt/gnome2/lib -Fl/opt/kylix2/bin -di386 interfaces.pp interfacebase.pp(35,16) Fatal: Can't find unit LCLSTRCONSTS make[3]: *** [interfaces.ppu] Error 1

One hour before, it still worked.
Moving the 'lclstrconsts.ppu' and '.o' file to lcl/units makes it work, but then I get
ppc386 -gl -Fulcl/units -Fulcl/units/gtk -Fucomponents/units -Fucomponents/custom -Fucomponents/mpaslex -Fudesigner -Fudesigner/units -Fudebugger -Fupackager -Fupackager/units -Fu.
-Fl/opt/gnome/lib -Fl/opt/gnome2/lib -Fl/opt/kylix2/bin -di386 lazarus.pp lazconf.inc(36,2) Fatal: Can't open include file ../unix/lazbaseconf.inc make[1]: *** [lazarus] Error 1

lazbaseconf.inc does not exist.

Michael.

Reply by email

Unknown author
to Mattias Gaertner: TApplication now uses the TCustomApplication in custapp.pp, which is new in fpc 1.0.10.…
Mattias Gaertner wrote 33 lines
Hi all, TApplication now uses the TCustomApplication in custapp.pp, which is new in fpc 1.0.10. Are there still users who use 1.0.7? Updates: - TApplication is now a descendant of TCustomApplication, which provides some useful methods and properties for command line options. - added Run -> Abort Build - reduced repaints during cursor moving in TSynEdit - replaced show compiler options message dialog with a dialog with a TMemo. Now you can copy the command line options more easily. - TBitmap now saves written stream. Accelerates streaming. - added TSelectDirectoryDialog to dialogs.pp and IDE palette. - LazConf.pp now has a shared include file for linux and bsd. - the messages view now supports blocks, so that compilation tasks that consists of several steps keeps all messages. - New lcl unit: lcl/intfgraphics.pas Contains TLazIntfImage, TLazAVLPalette, TLazReaderXPM and TLazWriterXPM. TLazIntfImage is a TFPCustomImage descendant, which is able to store and edit images in lcl interface specific data format. Usage is quite easy and much faster than Get/PutPixel calls. For example: TLazReaderXPM is up to 6 times faster than the gdk1 internal xpm reading function. It already supports 1,15,16,24 bit depths and transparency for the gtk interface. Palettes are not yet implemented. To use it, you need fpImage (in the cvs fpc 1.0.10 or the coming fpc 1.0.10a). Next step is to imbed it in TPixmap and implement the TPNG class. Any volunteers?

Careful, PNG support already exists in fpImage.
BMP, JPEG and Gif support may be useful.
(and whatever others one sees fit)

Michael.

Reply by email

Prof. Roberto A. Berrospe Machin
to Mattias Gaertner: At the moment most graphics type are in graphtype.pp. The VCL defines them in…

Hellow everybody.
Im have downloaded the last cvs of lazarus (under windows) and tryed to make them using the fpc make with not result. I mean, when i try to compile using make, every return:
makefile:17: *** You need the gnu utils package to use this Makefile. Sop.

I try to download the Last GNU Utils, but after install, the make continues saying this error. :)

Some one in the list have experimented this problem?

Thanks

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Prof. Roberto A. Berrospe Machin
Florida - Uruguay
Tel-Fax: +598-353-0783
E-Mail:
MSN:
Web: http://www.binaryuniverse.com
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

Earlier message 37 lines
----- Original Message ----- From: "Mattias Gaertner" To: Sent: Tuesday, August 19, 2003 9:36 AM Subject: [lazarus] CVS Updates > Hi all, > > At the moment most graphics type are in graphtype.pp. The VCL defines them > in graphics.pp. They were moved to graphtype some time ago, to break unit > circles. I was able to move the types back to graphics.pp without circles. > This is currently deactivated by some IFDEFs. But it will soon be activated. > You can try it by adding -dNewGraphType to the lazarus build options. > > I don't think, that any program needs fixing, since most will have both > units in their uses section. At least the IDE and its components didn't need > any change. > > > Minor updates: > > - all saved unitlinks are now updated, when FPCSrcDir changes > - implemented Enclose Selection > - renamed LazQueue.pp to LazLinkedList.pas > - implemented character map dialog > > > Mattias > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives >

Reply by email

Jeroen van Iddekinge

hi,

- renamed LazQueue.pp to LazLinkedList.pas

Did you also aply my gtk interface cleanup patch?
just wondering,

Saluti,

Jer

Reply by email

Mattias Gaertner

Hi all,

At the moment most graphics type are in graphtype.pp. The VCL defines them in graphics.pp. They were moved to graphtype some time ago, to break unit circles. I was able to move the types back to graphics.pp without circles. This is currently deactivated by some IFDEFs. But it will soon be activated. You can try it by adding -dNewGraphType to the lazarus build options.

I don't think, that any program needs fixing, since most will have both units in their uses section. At least the IDE and its components didn't need any change.

Minor updates:

- all saved unitlinks are now updated, when FPCSrcDir changes
- implemented Enclose Selection
- renamed LazQueue.pp to LazLinkedList.pas
- implemented character map dialog

Mattias

Reply by email

Vincent Snijders
to Mattias Gaertner

Hi,

Make is included in the fpc for win32 installation. Check if it is in c:\pp\bin\win32 directory (replace c:\pp with your fpc installation path if you didn't install it in the default location). If not:
Make sure you installed fpc correctly.
Check if c:\pp\bin\win32 is in your path and it is before any other directory which contains a make executable, for example from visual studio or delphi.

You might get some information on the make currently in your path by doing: make -v

HTH,
Vincent.

On Tue, 19 Aug 2003 13:30:10 -0300
"Prof. Roberto A. Berrospe Machin"

Show quoted text 14 lines
Hellow everybody. Im have downloaded the last cvs of lazarus (under windows) and tryed to make them using the fpc make with not result. I mean, when i try to compile using make, every return: makefile:17: *** You need the gnu utils package to use this Makefile. Sop. I try to download the Last GNU Utils, but after install, the make continues saying this error. :) Some one in the list have experimented this problem? Thanks

Reply by email

Marco van de Voort
to Prof. Roberto A. Berrospe Machin: Hellow everybody. Im have downloaded the last cvs of lazarus (under windows) and tryed to…
Show quoted text 10 lines
Hellow everybody. Im have downloaded the last cvs of lazarus (under windows) and tryed to make them using the fpc make with not result. I mean, when i try to compile using make, every return: makefile:17: *** You need the gnu utils package to use this Makefile. Sop. I try to download the Last GNU Utils, but after install, the make continues saying this error. :) Some one in the list have experimented this problem?

The GNU utils don't need to be installed, they come with FPC. Make sure that only the FPC directory is in the $PATH$, and that it is originally set up to work.

Also make sure that you didn't install Free Pascal in a directory with a space in it. FPC can handle it, but the GNU utils can't.

Reply by email

Mattias Gaertner
to Mattias Gaertner: Many graphic types were moved from graphtype.pp to graphics.pp (more VCL compatible).…
Show quoted text 11 lines
On Mon, 25 Aug 2003 19:00:23 +0200 Mattias Gaertner wrote: > Hi all, > > Many graphic types were moved from graphtype.pp to graphics.pp (more > VCL compatible). > Don't you think, the 'uses graphics' should be moved from the implementation section to the interface section in win32int.pp.

Sorry. Fixed.

Mattias

Show quoted text 8 lines
Now I can't compile it. Vincent. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner

Hi all,

Many graphic types were moved from graphtype.pp to graphics.pp (more VCL compatible).

Minor updates:

- implemented "Build File" and "Run File"
You can now compile single pascal files (programs or units) without creating a new project. I hope the config dialog is self explanatory. The settings are saved directly into the pascal source by IDE directives {%name param}.
- TPixmap now saves in xpm format. You need fpImage, which is in the current fpc 1.0.10 from cvs and you must compile the LCL with the -dUseFPImage option.
- LCL now sends pending OnResize events after InitializeWnd. The event is sendt, when the clientrect changed, after the Handle was created.

Mattias

Reply by email