Re: [Lazarus] A new competitor to Lazarus and Free Pascal
On Tue, 2008-11-25 at 16:35 +0100, Florian Klaempfl wrote: Florian Klaempfl schrieb: And even thought FPC and Lazarus has support for 'gprof', I don't know of a single developer that managed to get it working under Linux. I tried numerous times before and searching my mailing list archive of 3 years I can see numerous other developers also being unsuccessful. I always get a blank output file. :-( Because everybody is using valgrind. I had no need to use gprof for years because valgrind is much better. BTW: Just tried gprof under linux, works as described in the manual. There is a basic native pascal profiler named fprofiler. It's in the fpcprojects section in SVN. The basics work although there are a lot of optimizations possible. The profiler works by inserting timing calls in the actual code, by parsing it first. I wrote a wrapper for the compiler (named fpp) to handle that. http://svn.freepascal.org/cgi-bin/viewvc.cgi/fpprofiler/trunk/?root=fpcprojects Would be nice to create an IDE addin for this tool for Lazarus at some point, never thought of that before. Darius ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [Fwd: Re: TAChart: simple patch and a code cleanup question]
On Fri, 2008-11-07 at 01:37 +1000, Alexander Klenin wrote: Well, one obvious choice is to add OnDrawPoint event. It is less 'object-oriented', but simpler to use. What do you think? Hmm, I don't see how that would improve readability. Imho it would just be moving code about in the same class. Making a polymorphic class would modularize the cart component a bit more. It would make it more easy for instance to add mixed charts like line-bar or bar and error bar. Darius ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TAChart: simple patch and a code cleanup question
On Wed, 2008-11-05 at 02:08 +1000, Alexander Klenin wrote: Attached is a patch which adds two more styles to TSeriesPointerStyle type, useful when there is a need to draw value intervals on a chart. I also would like to do some code cleanup (e.g. consistent re-indenting) and refactoring of TAChart code. The patches will be fairly intrusive, touching almost every line of code. Will such patches be accepted? Thanks Alexander applied in r17240. About the other patch, please create a report in the bugtracker under patches and assign it to me. I will know what to do. As to the patches themselves, I don't mind you cleaning up code and re-indenting stuff, but please split it up in separate patches, this way we will still be able to see what and why things changed. I prefer that as opposed to one huge patch. Some remarks from my side about the current code; - there's a label/goto construct in the code. will you clean that up as well please while your at it? - I'm not sure if more TSeriesPointerStyles will follow from you, but I could imagine adding a box and whisker plot style point and an errorbar style (other variations on the theme as well) would be possible in the future. So what do you say about implementing a polymorphic TPointStyle class? Regards, Darius ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Problems linking with QT4
I have some problems with linking to the QT widgetset. Apparently the linker does not like my library, but I believe to have correctly followed the instructions on the wiki. Is there anything else I need to do (or forget)? ldconfig -p | grep libqt4intf gives: libqt4intf.so (libc6,x86-64) = /usr/local/lib/libqt4intf.so The output of the build process is: Linking ../lazarus /usr/bin/ld: skipping incompatible /usr/local/lib/libqt4intf.so when searching for -lqt4intf /usr/bin/ld: cannot find -lqt4intf lazarus.pp(122,1) Error: Error while linking /usr/bin/ld: skipping incompatible /usr/local/lib/libqt4intf.so when searching for -lqt4intf /usr/bin/ld: cannot find -lqt4intf Regards, Darius ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Getting active project filename
On Sun, 2008-10-26 at 01:34 +0200, wile64 wrote: ExtractFileName(LazarusIDE.ActiveProject.ProjectInfoFile); Thanks, Darius ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Getting active project filename
I'm working on an IDE plugin, and I would need to determine the name (full path) of the active projectfile. I have been looking in the ideintf, but was not able to understand how this can be done. Any ideas or hints where to look further? Regards, Darius ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New about dialog in 0.9.27 (svn trunk)
This has been fixed in r17088. Graeme, can you send me the URL of the bugreport? I recall you mentioning this issue on the ML, but I cannot find the bugreport in the tracker. If it exists then I want to close it. Darius On Tue, 2008-10-21 at 09:52 +0200, Graeme Geldenhuys wrote: On Tue, Oct 21, 2008 at 12:08 AM, Benito van der Zander [EMAIL PROTECTED] wrote: in the current trunk the doublebuffer bitmap (?), is not always resized with the form, so sometimes the text scrolls only in a part of the window. I've already submitted a bug report for this. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New about dialog in 0.9.27 (svn trunk)
I cannot confirm it on Ubuntu 8.04 and GTK2 Darius On Sat, 2008-10-18 at 10:49 +0200, Graeme Geldenhuys wrote: Hi, I love the new about dialog and the animated information. :-) The pride and joy of a programmer - creating the about screen. ;-) One not so great feature is when you resize the dialog (Lazarus IDE compiled with GTK2). The mini logo, Close button and page control tabs flicker like crazy!! Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New about dialog in 0.9.27 (svn trunk)
On Sat, 2008-10-18 at 21:47 +1100, Alexander Klenin wrote: to increase the amount of visible credits, but the the animated area does not grow with the dialog, which looks rather amateurish, if you pardon the expression. This was fixed in r17035 The flicker I cannot reproduce myself, not even on windows. Darius ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [patch] - about dialog
Applied in r17037 thanks On Sat, 2008-10-18 at 11:24 +0200, Graeme Geldenhuys wrote: I submitted a minor optimization patch for the about dialog. The timer doesn't need to fire all the time. I on purposely didn't reset the scrolling text when switching between the two tabs that have scrolling text. So there is a better chance for those contributes far down the list to also get there claim to fame. :-) http://bugs.freepascal.org/view.php?id=12428 Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Zip files?
Yes there is. Please look here: http://wiki.lazarus.freepascal.org/ZipFile The current implementation though only supports uncompressed streams. But it should be fairly simple to implement compression. Darius On Thu, 2008-10-16 at 22:24 +0200, Reenen Laurie wrote: Is there a package that can access a zipfile as though it is a directory/folder? Specifically a password encrypted zip file. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus