Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
Am 05.01.2014 02:44 schrieb Bart bartjun...@gmail.com: As for being able to participate by submitting patches or fixing bugs first many users may consider such things outside their field of competence, or may only be interested in areas that affect them directly or are deeply knowledgeable about, [snip] For me it was always a non-starter because compiles were breaking due to missing units and I was always afraid of breaking my installations to try new things even for my own use. It is only now that I am becoming more confident and even then I am still wary. And that is exactly how I started out. At first I was just a user of Lazarus, and I only used the release versions. And of course I hit bugs, and I reported them in bugtracker. When some of those bugs were not picked up soon enough (I'm a little impatient), I tried to see if I could fix them. At that time I never even wrote a single component of myself, so I really had to study the LCL and Lazarus code very hard. I then discussed these issues in the bugtracker with several of the devels and got very usefull feedback. This encouraged me to submit patches and some of them got accepted. I thinl that's how most devs started out. It was the same for me and FPC :) No need for VM images (which one could not provide for Windows at all). Note: Lazarus works more or less on ReactOS. So one could test how good it really works and then provide a ReactOS VM with Lazarus preinstalled. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Alpha transparency on GTK2 widgetset
On Sun, Jan 5, 2014 at 3:47 AM, Bart bartjun...@gmail.com wrote: On 1/5/14, Michael Fuchs freepas...@ypa-software.de wrote: Will this patch go into the upcoming 1.2 Version? If you want to make sure it is at least considered, then add it to the merge requests on http://wiki.lazarus.freepascal.org/Lazarus_1.2_fixes_branch I added it there right after committing. Now Martin has apparently merged all pending commits there. This was good timing. Lazarus 1.2 RC2 will come after a week. It will be the last RC version and not many changes should be merged any more after it. I will see if I can fix some more issues targeted for 1.2 before that. This GTK2 transparency fix was a major improvement. It affects also the IDE itself and resolves many reports. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Alpha transparency on GTK2 widgetset
On 01/05/2014 02:47 AM, Bart wrote: On 1/5/14, Michael Fuchs freepas...@ypa-software.de wrote: Will this patch go into the upcoming 1.2 Version? If you want to make sure it is at least considered, then add it to the merge requests on http://wiki.lazarus.freepascal.org/Lazarus_1.2_fixes_branch Commiter should add it there (Juha in this case). zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
Am 05.01.2014 01:48, schrieb vfclists .: I also suspect that some of those bugs wouldn't creep into the code in the first place if the development process was open enough for more eyes to spot them in the first place. There are the commit logs and they are much more precise about what's happening than any mailing list and allow real review. I think being able to see what is coming and follow their development will encourage more participants and more bug fixing as well. Just follow the commit logs, on windows CommitMonitor works very fine for this. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] (Source) in hint boxes
When the mouse is hovered over an identifier, a hint box pops up showing declaration and associated comment. Where is this implemented? -- 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] Is there a separate mailing list for Lazarus developers?
On Sun, Jan 5, 2014 at 2:48 AM, vfclists . vfcli...@gmail.com wrote: I have always had this nagging feeling that something wasn't quite right about Lazarus and this explains it. Now I have a strong nagging feeling about you! I think the developers fear that if they open up the list even for viewing alone there will be lots of acrimonious debates and disagreements with non developers over how Lazarus should evolve, such as the everlasting Unicode debates, and also criticism about its internal operation. It may be a well founded fear as seen in other open source projects but it ought to be reconsidered, with the understanding that whatever things non-developers/participants disagree with should be raised politely and in a tempered manner that doesn't offend or dishearten existing developers. You just refuse to understand what people explain to you. All development is open. New features are here: http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes All bug reports are public. This is the right list if you have _technical_ ideas or questions. Now you are just trolling and you should stop it! Without a single code contribution you are writing empty whining and nagging in Forum (vfclists) and in this list. Do you really feel that you should be allowed to do the same thing in developers' private list? [...] such the issue with transparency that Kostas recently submitted a patch for. If Kostas continues with his quality patches, he will become a Lazarus developer. With you it is a different story. BTW, notice how Kostas was interested in fixing code instead of peeking developers' private mails. You could learn something from him. For me it was always a non-starter because compiles were breaking due to missing units and I was always afraid of breaking my installations to try new things even for my own use. It is only now that I am becoming more confident and even then I am still wary. That's what I mean. I think that opening the list may allow people who are highly skilled in specialized areas to see where they can contribute and offer their help. Going through Bugzilla to select bugs for fixing is okay for young developers or students who want to cut their teeth or find a way to enhance their skills and acquire some experience, but some of us are too long in the tooth for that. Do you mean you feel too important person to fix bugs? Besides, we use Mantis instead of Bugzilla. I also suspect that some of those bugs wouldn't creep into the code in the first place if the development process was open enough for more eyes to spot them in the first place. Oh my God! Please go away troll! Do you seriously think new bugs are first introduced in developer mailing list before they are committed? [... and so on ...] In any case if Lazarus developers feel that this approach has proved to be the best over the years then they are entitled to continue as is. Yes. To everybody: He is wasting everybody's time. Don't feed him. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] (Source) in hint boxes
On Sun, 05 Jan 2014 10:44:04 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: When the mouse is hovered over an identifier, a hint box pops up showing declaration and associated comment. Where is this implemented? What do you search: Popup box or content? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] (Source) in hint boxes
Mattias Gaertner wrote: On Sun, 05 Jan 2014 10:44:04 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: When the mouse is hovered over an identifier, a hint box pops up showing declaration and associated comment. Where is this implemented? What do you search: Popup box or content? Content I think, but possibly also the popup if this is where final formatting is done. What I'm hoping to do is add a flag so that it only appears once in each box. Also my understanding (from previous discussion which I can't find) is that at present (Source) is a placeholder for a link so I was thinking about experimenting with a slightly more compact bit of Unicode. -- 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 the prerequisites for compiling Lazarus on a KDE based system?
On 05/01/2014 04:47, waldo kitty wrote: On 1/4/2014 4:37 PM, vfclists . wrote: On 4 January 2014 14:28, leledumbo leledumbo_c...@yahoo.co.id mailto:leledumbo_c...@yahoo.co.id wrote: +1!!n i'm running into similar situations building in this way... i've tried trunk for both FPC and LAZ and the defaults give be failures on building the docs... those failures being, mainly, that fpdoc and/or fpmake did not exist... but my last try was at 0500 this morning and i simply started fpcup clean with no previous config files or directories and let it run... RTFM (especially about the docs part) and properly read the failures please. Thanks. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What are the prerequisites for compiling Lazarus on a KDE based system?
No idea, sorry. I don't use fpcup and I don't know whether it suppresses compiler/assembler/linker messages or not. If you build manually by hand, you'll be able to see a list of cannot find: -lXXX which indicates the missing libraries. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-What-are-the-prerequisites-for-compiling-Lazarus-on-a-KDE-based-system-tp4035177p4035211.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
When people ask questions like this it is because they are making comparisons with other projects which are more open, or in the case of Lazarus easier to follow. I follow a few groups such as pharo-dev and squeak-dev regularly and others such as web2py occasionally. In all instances once I log on to my email I can quickly get a good idea of how things are moving, ie you know how features are progressing and what bugs are being fixed. I couldn't understand why I coudn't get an idea of developments in Lazarus* just by following the mailing lists* and wondered if there was another mailing list. The mailing list you are referring to is not listed at http://lists.lazarus.freepascal.org/mailman/listinfo and it is clearly not related to development of features as is generally understood. The wiki only tells you about features after they have been implemented. It doesn't give an idea of how and why they evolved the way they did. Although they enable code displays to be better formatted once you have to follow more than a few different wikis and forums they are less convenient. This is an issue which has been well debated and I have no intention of raising it here. FWIW I have just spent over an hour exploring Mantis and it looks like the place where a lot of Lazarus development related discussions occur. Obviously it is a complex multiplatform system which is rather mature in internet years and has gathered quite an amount of cruft and I can understand why its developers prefer to focus on fixing existing issues rather than spending/wasting time debating new features. @Matthias and Bart - I think it helps to open up the more technical discussions to outside viewing. There is always smart lurker out there who can help with some abstruse issue which escapes you or you don't have the time or resources for. Kostas issue is an example of what I am taking about. Not that many people would be familiar with that area, be involved with it and to recognize that there was a bug there let alone have knowledge of the library or API internals to fix it. Bugs for most people mean bugs in programming logic not in interfaces to specialized libraries. @Juha - Perhaps you could follow the example of the older wiser heads such as Florian and Matthias who have responded to this thread with examples and suggestions because they had a better understanding of why I asked this question. Just because someone's manners or style rubs you the wrong way doesn't mean they are trolling - which is generally understood to be creating drama and controversy for its own sake. A belated Happy New Year to Lazarus Developers and Congratulations for what is a good development tool given their resource constraints. ( I tend to be stingy with praise!!) -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What are the prerequisites for compiling Lazarus on a KDE based system?
OP cross-posted on the forum that he had identical systems that did have the correct prereqs where fpcup did work; as indicated on the forum post, recent fpcup will show some missing libraries when running It would help to RTFM/run fpcup -h and run fpcup --lclplatform=qt though. On 05/01/2014 15:06, leledumbo wrote: No idea, sorry. I don't use fpcup and I don't know whether it suppresses compiler/assembler/linker messages or not. If you build manually by hand, you'll be able to see a list of cannot find: -lXXX which indicates the missing libraries. Alternatively to the above, run fpcup --verbose to show all commands used, make output etc. Finally, OP may try and run something like dpkg -l on both systems and compare the differences... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
Am 05.01.2014 15:07, schrieb vfclists .: When people ask questions like this it is because they are making comparisons with other projects which are more open, or in the case of Lazarus easier to follow. I follow a few groups such as pharo-dev and squeak-dev regularly and others such as web2py occasionally. In all instances once I log on to my email I can quickly get a good idea of how things are moving, ie you know how features are progressing and what bugs are being fixed. Considering the svn log, squeak developed (80 commits in 2013) approx. 50 times (!) slower than lazarus (almost 4000 commits in 2013) so no wonder you cannot follow lazarus comparable easily. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
On 05/01/2014 15:07, vfclists . wrote: @Matthias and Bart - I think it helps to open up the more technical discussions to outside viewing. There is always smart lurker out there who can help with some abstruse issue which escapes you or you don't have the time or resources for. Kostas issue is an example of what I am taking about. Not that many people would be familiar with that area, be involved with it and to recognize that there was a bug there let alone have knowledge of the library or API internals to fix it. Bugs for most people mean bugs in programming logic not in interfaces to specialized libraries. Nothing wrong with holding that discussion on this list. Go for it, I'd say. It is *very* telling that Kostas did not ask for or need access to anything else than he already had (this mailing list, the bug tracker etc). @Juha - Perhaps you could follow the example of the older wiser heads such as Florian and Matthias who have responded to this thread with examples and suggestions because they had a better understanding of why I asked this question. Just because someone's manners or style rubs you the wrong way doesn't mean they are trolling - which is generally understood to be creating drama and controversy for its own sake. Well, just because somebody's reply rubs you the wrong way doesn't mean the impression you create is the one you might necessarily want to give. As said by (I think) everybody, it all starts with code contribution. Yes, in patches. Yes, on the bugtracker. If you give excuses about not being able to contribute code but are willing to correct other people's code (which is what your posts seem to imply to me)... that's not much use, is it? Because you cannot even test your own suggestions. The impression you're giving me is somebody who is used to a set practice of having well laid-out development goals, central steering etc, and you are unwilling to just jump in and get started. I may very well be wrong about it, but we're talking about impressions here. That said, I hope you'll be able to contribute patches/code - it can only improve Lazarus. A belated Happy New Year to Lazarus Developers and Congratulations for what is a good development tool given their resource constraints. snip And best wishes for a good 2014 to you, too. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Alpha transparency on GTK2 widgetset
Nice job. I had a different approach in mind, but that required a rewrite of gtk2devicecontext and a lot of cairo stuff. This effectively would be similar to gtk3 and take a lot of time. After some initial rewrites, life changed and my time became limited. At the same time I heard rumors about a start of a gtk3 interface. So the interest of changing gtk2 dropped. I'm glad you wrote this patch. Marc On 4-1-2014 19:22, Kostas Michalopoulos wrote: I've made a patch that fixes the common cases (drawing an image with an alpha channel with optional scaling and flipping). It can be downloaded here: http://bugs.freepascal.org/view.php?id=25491 Here is also an image showing what this fixes: http://i.imgur.com/FH8wbX0.png The test program (attached on the bug report) shows the toolbar, image/icon and generated bitmap with TLazIntfImage/TRawImage. The latter is drawn normally, stretched, flipped and both stretched and flipped (as a side note the flipping doesn't seem to work under Windows but the API seems to support it and the unpatched GTK2 also supported that, so this is probably a bug in the Win32 widgetset). Also the watches toolbar in Lazarus is shown before and after the patch (notice the jaggies and missing pixels in the unpatched version). On Sat, Jan 4, 2014 at 4:38 PM, Juha Manninen juha.mannine...@gmail.com wrote: On Sat, Jan 4, 2014 at 5:20 PM, Kostas Michalopoulos badsectorac...@gmail.com wrote: Looking in the code, I think i see the problem. [...] Impressive. I still mostly don't understand GTK2 bindings code. For now i'm looking into trying to use the pixbuf when an image operation is requested and see if that helps for solving the most glaring issues with toolbars having no transparency and converting between tbitmap to tlazintfimage and back losing the alpha channel. It wont solve the issue of other operations (f.e. drawing a line, arc, rectangle, etc over an image with alpha channel), but that would require a complete rewrite of the GTK2 graphics context code to use Cairo (which will be necessary for GTK3 anyway). A patch for GTK2 bindings would surely be welcome. Do you know that GTK3 bindings also exist. They have a different architecture than GTK2 bindings. Zeljan has started them but they are in alpha state now. Contributions are welcome there, too. Juha -- ___ 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 mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Problem with Record Helpers and Identifier completion
Hi! in the past I have not used Lazarus that much, currently I am developing some code for embedded platforms based on fpc and I would like to make this code as usable as possible in Lazarus. I am currently extending the record definitions for embedded controllers with Record Helpers. (The reason is that this approach uses less precious flash storage than objects or classes and it looks cleaner to me than to redefine the records again). Problem with this approach seems to be that identifier completion does not have a clue about the extra procedures defined in the Record Helper. Here's an example: In stm32f10x_cl I have this code type TGPIO_Registers = record CRL : longword; CRH : longword; end; Then I have a helper Unit defining some extra procedures: unit gpioHelper; uses stm32f10x_cl; // necessary to make indentifier completion work at all type TGPIO_RegistersHelper = record helper for TGPIO_Registers procedure setConfig(bit : TGPIO_Bit; config : TGPIO_Config); procedure setConfig(bit : TGPIO_BitSet; config : TGPIO_Config); end; In main Code I now have: program test; uses gpioHelper; begin GPIOD. end. and hit Ctrl-Space after GPIOD. The record elements show up in completion, all the procedures defined in the helper class are not visible. Is it me doing something wrong? Or is there something that I can do with my code to create hints/whatever so that the helper classes are visible? Or am I doomed and should bite in the sour apple and redefine all records that I need? TnX, Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
On 05/01/2014 14:07, vfclists . wrote: In all instances once I log on to my email I can quickly get a good idea of how things are moving, ie you know how features are progressing and what bugs are being fixed. You where looking for an announcement channel, but asking more general for any private list. Then you did (or so it seemed to me) set them equal (which they are not). It took me a few of your mails to figure that. The idea for more insight is very old: http://lazarus-dev.blogspot.co.uk/2007/08/lets-start-blogging.html But it never took of. Seems we rather write code than blogs. We do not intend to keep it secret. We are just not bothered to do the work and write something about it. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Bugtracker for non-Lazarus developer core
Hi, I wonder if there is some mechanism in Bugtracker, for developers who are not part of Lazarus core, know if has somebody is working (Lazarus developer or not) in some bug report. In other words, if I want working in something in Bugtracker -- to send a patch on the future -- how I can know if someone is working on the same bug? Thank you. Regards, Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Bugtracker for non-Lazarus developer core
On 05.01.2014 16:33, Marcos Douglas wrote: Hi, I wonder if there is some mechanism in Bugtracker, for developers who are not part of Lazarus core, know if has somebody is working (Lazarus developer or not) in some bug report. In other words, if I want working in something in Bugtracker -- to send a patch on the future -- how I can know if someone is working on the same bug? One can't tell for sure, but often you can tell by checking whether the bug is assigned to someone. This can be a wrong indicator however as - mostly in the Lazarus project - some bug categories are automatically assigned to people also one might accidentaly collect a bug by setting it to feedback and forgetting to unassign oneself. Nevertheless it's the best indicator you have. To be really sure you should maybe ask on the mailing list whether someone is working on a specific bug. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Bugtracker for non-Lazarus developer core
On 05/01/2014 15:33, Marcos Douglas wrote: Hi, I wonder if there is some mechanism in Bugtracker, for developers who are not part of Lazarus core, know if has somebody is working (Lazarus developer or not) in some bug report. In other words, if I want working in something in Bugtracker -- to send a patch on the future -- how I can know if someone is working on the same bug? The only person who knows, is the one to whom it is assigned. if it is not assigned, then likelihood is no one works on it. Please send a mail to this list, with the assignee name, and bug title in the subject, and ask. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Bugtracker for non-Lazarus developer core
On Sun, Jan 5, 2014 at 1:43 PM, Martin Frb laza...@mfriebe.de wrote: On 05/01/2014 15:33, Marcos Douglas wrote: Hi, I wonder if there is some mechanism in Bugtracker, for developers who are not part of Lazarus core, know if has somebody is working (Lazarus developer or not) in some bug report. In other words, if I want working in something in Bugtracker -- to send a patch on the future -- how I can know if someone is working on the same bug? The only person who knows, is the one to whom it is assigned. if it is not assigned, then likelihood is no one works on it. Please send a mail to this list, with the assignee name, and bug title in the subject, and ask. Ok Martin, thank you. Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What are the prerequisites for compiling Lazarus on a KDE based system?
On 5 January 2014 11:37, Reinier Olislagers reinierolislag...@gmail.comwrote: On 05/01/2014 04:47, waldo kitty wrote: On 1/4/2014 4:37 PM, vfclists . wrote: On 4 January 2014 14:28, leledumbo leledumbo_c...@yahoo.co.id mailto:leledumbo_c...@yahoo.co.id wrote: +1!!n i'm running into similar situations building in this way... i've tried trunk for both FPC and LAZ and the defaults give be failures on building the docs... those failures being, mainly, that fpdoc and/or fpmake did not exist... but my last try was at 0500 this morning and i simply started fpcup clean with no previous config files or directories and let it run... RTFM (especially about the docs part) and properly read the failures please. Thanks. I just read the wiki and noticed the --noconfirm option. Although I have a list of fpcup options in my blog I missed it among the large number of options. IMHO the 'fpcup --verbose --noconfirm fpcverbose.txt' method should be recommended as the first thing to do if fpcup fails and placed at the top of the Troubleshooting Section in the wiki. A full compilation takes about 20 minutes on my system and it is much easier on the eye this way. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
On 1/5/14, vfclists . vfcli...@gmail.com wrote: In all instances once I log on to my email I can quickly get a good idea of how things are moving, ie you know how features are progressing and what bugs are being fixed. http://svn.freepascal.org/cgi-bin/viewvc.cgi/?root=lazarusview=log How much easier must it get for you to track what's going on in trunk? FWIW I have just spent over an hour exploring Mantis and it looks like the place where a lot of Lazarus development related discussions occur. Isn't that a logical place? You report what you think is a bug and then others can put their information in as well. And yes, you can use it to discuss how to fix, or if it needs fixing at all. @Matthias and Bart - I think it helps to open up the more technical discussions to outside viewing. I disagree. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Alpha transparency on GTK2 widgetset
Yeah, the proper approach would be to make a Cairo-based gtk2devicecontext implementation and it might still be a valid goal, depending on how long the gtk3 interface will be in development (after all it took years for the gtk2 interface to become the default in Linux). Also i think that with gtk2 and gtk3 being incompatible, we'll see gtk2 to remain around for a while, especially in non-GNOME-based desktop environments (such as MATE, the GNOME2 fork, XFCE, etc). But for the short term, this solves some common issues. Some of the stuff mentioned in the related bugs seem to require a more solid conversion to Cairo since currently there is a lot of information lost with the conversions between pixmaps and pixbufs. On Sun, Jan 5, 2014 at 3:56 PM, Marc Weustink m...@dommelstein.net wrote: Nice job. I had a different approach in mind, but that required a rewrite of gtk2devicecontext and a lot of cairo stuff. This effectively would be similar to gtk3 and take a lot of time. After some initial rewrites, life changed and my time became limited. At the same time I heard rumors about a start of a gtk3 interface. So the interest of changing gtk2 dropped. I'm glad you wrote this patch. Marc On 4-1-2014 19:22, Kostas Michalopoulos wrote: I've made a patch that fixes the common cases (drawing an image with an alpha channel with optional scaling and flipping). It can be downloaded here: http://bugs.freepascal.org/view.php?id=25491 Here is also an image showing what this fixes: http://i.imgur.com/FH8wbX0.png The test program (attached on the bug report) shows the toolbar, image/icon and generated bitmap with TLazIntfImage/TRawImage. The latter is drawn normally, stretched, flipped and both stretched and flipped (as a side note the flipping doesn't seem to work under Windows but the API seems to support it and the unpatched GTK2 also supported that, so this is probably a bug in the Win32 widgetset). Also the watches toolbar in Lazarus is shown before and after the patch (notice the jaggies and missing pixels in the unpatched version). On Sat, Jan 4, 2014 at 4:38 PM, Juha Manninen juha.mannine...@gmail.com wrote: On Sat, Jan 4, 2014 at 5:20 PM, Kostas Michalopoulos badsectorac...@gmail.com wrote: Looking in the code, I think i see the problem. [...] Impressive. I still mostly don't understand GTK2 bindings code. For now i'm looking into trying to use the pixbuf when an image operation is requested and see if that helps for solving the most glaring issues with toolbars having no transparency and converting between tbitmap to tlazintfimage and back losing the alpha channel. It wont solve the issue of other operations (f.e. drawing a line, arc, rectangle, etc over an image with alpha channel), but that would require a complete rewrite of the GTK2 graphics context code to use Cairo (which will be necessary for GTK3 anyway). A patch for GTK2 bindings would surely be welcome. Do you know that GTK3 bindings also exist. They have a different architecture than GTK2 bindings. Zeljan has started them but they are in alpha state now. Contributions are welcome there, too. Juha -- ___ 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 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
Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
On Sun, Jan 5, 2014 at 4:41 PM, Florian Klämpfl flor...@freepascal.org wrote: Considering the svn log, squeak developed (80 commits in 2013) approx. 50 times (!) slower than lazarus (almost 4000 commits in 2013) so no wonder you cannot follow lazarus comparable easily. :-) Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What are the prerequisites for compiling Lazarus on a KDE based system?
On 1/5/2014 6:37 AM, Reinier Olislagers wrote: On 05/01/2014 04:47, waldo kitty wrote: On 1/4/2014 4:37 PM, vfclists . wrote: On 4 January 2014 14:28, leledumbo leledumbo_c...@yahoo.co.id mailto:leledumbo_c...@yahoo.co.id wrote: +1!!n i'm running into similar situations building in this way... i've tried trunk for both FPC and LAZ and the defaults give be failures on building the docs... those failures being, mainly, that fpdoc and/or fpmake did not exist... but my last try was at 0500 this morning and i simply started fpcup clean with no previous config files or directories and let it run... RTFM (especially about the docs part) and properly read the failures please. i will try but i've not found a 'manual' as such... fpcup.txt or similar... all i have is the binary that was downloaded... nothing else other than the built-in help... Thanks. you are welcome... i can only try to help make things better when possible ;) BTW: i do like fpcup... i'm still trying to wrap my head around all of its capabilities and functions... nice work :) -- NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
On 5 January 2014 14:41, Florian Klämpfl flor...@freepascal.org wrote: Am 05.01.2014 15:07, schrieb vfclists .: When people ask questions like this it is because they are making comparisons with other projects which are more open, or in the case of Lazarus easier to follow. I follow a few groups such as pharo-dev and squeak-dev regularly and others such as web2py occasionally. In all instances once I log on to my email I can quickly get a good idea of how things are moving, ie you know how features are progressing and what bugs are being fixed. Considering the svn log, squeak developed (80 commits in 2013) approx. 50 times (!) slower than lazarus (almost 4000 commits in 2013) so no wonder you cannot follow lazarus comparable easily. Squeak is a Smalltalk system and all the changes are versioned automatically in the live image and shared via the Monticello repository. If they use svn it is probably some ancillary systems related to the project. Between 1st and 5 Jan their repository system has recorded 25 commits to about 10 different packages. Anyway I am not comparing a dynamic, interpreted system using a live image with a static compiled language as they are quite different paradigms and the development styles are quite different. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What are the prerequisites for compiling Lazarus on a KDE based system?
On 5 January 2014 18:42, waldo kitty wkitt...@windstream.net wrote: On 1/5/2014 6:37 AM, Reinier Olislagers wrote: On 05/01/2014 04:47, waldo kitty wrote: On 1/4/2014 4:37 PM, vfclists . wrote: On 4 January 2014 14:28, leledumbo leledumbo_c...@yahoo.co.id mailto:leledumbo_c...@yahoo.co.id wrote: +1!!n i'm running into similar situations building in this way... i've tried trunk for both FPC and LAZ and the defaults give be failures on building the docs... those failures being, mainly, that fpdoc and/or fpmake did not exist... but my last try was at 0500 this morning and i simply started fpcup clean with no previous config files or directories and let it run... RTFM (especially about the docs part) and properly read the failures please. i will try but i've not found a 'manual' as such... fpcup.txt or similar... all i have is the binary that was downloaded... nothing else other than the built-in help... Thanks. you are welcome... i can only try to help make things better when possible ;) BTW: i do like fpcup... i'm still trying to wrap my head around all of its capabilities and functions... nice work :) http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Use 'fpcup --verbose --noconfirm fpcverbose.txt' and view the output in a text editor. It will much easier and Reinier will be able to help quicker. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Bugtracker for non-Lazarus developer core
On Sun, Jan 5, 2014 at 1:43 PM, Sven Barth pascaldra...@googlemail.com wrote: On 05.01.2014 16:33, Marcos Douglas wrote: Hi, I wonder if there is some mechanism in Bugtracker, for developers who are not part of Lazarus core, know if has somebody is working (Lazarus developer or not) in some bug report. In other words, if I want working in something in Bugtracker -- to send a patch on the future -- how I can know if someone is working on the same bug? One can't tell for sure, but often you can tell by checking whether the bug is assigned to someone. This can be a wrong indicator however as - mostly in the Lazarus project - some bug categories are automatically assigned to people also one might accidentaly collect a bug by setting it to feedback and forgetting to unassign oneself. Nevertheless it's the best indicator you have. To be really sure you should maybe ask on the mailing list whether someone is working on a specific bug. Ok Sven, thanks. Regards, Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a separate mailing list for Lazarus developers?
On Sun, Jan 5, 2014 at 4:07 PM, vfclists . vfcli...@gmail.com wrote: [...] I can understand why its developers prefer to focus on fixing existing issues rather than spending/wasting time debating new features. True, new features are not being debated much but they are being developed surely. This is not only about fixing bugs. This is possible because people mostly agree that those features are needed. At least currently developers are not pulling to different directions. @Juha - Perhaps you could follow the example of the older wiser heads such as Florian and Matthias who have responded to this thread with examples and suggestions because they had a better understanding of why I asked this question. Just because someone's manners or style rubs you the wrong way doesn't mean they are trolling - which is generally understood to be creating drama and controversy for its own sake. I try to be more constructive. The fact still is that most features are in developers' personal ToDo--lists and not discussed actively by developers. However there are many ideas which get often discussed in forum and mailing list by many people. So there is no lack of discussion. There is only lack of people implementing the ideas. You forgot the most important means of communication which is the code commit history. We are like aliens using an alien language, Pascal in this case. It is the most powerful way to communicate SW, a human language cannot do it as well. Good program code explains to people what we want the computer to do. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] how about a HasProperty() property?
For example, if you want to loop though components and set the dbNavigator's DataSource property to that of the component if it has a DataSource property (and of course is not a dbNavigator itself). It seems you can't do that by using the component's hierarchy. Is there someway else to do that? Components do seem to have HasHelp and HasParent properties already. Perhaps being able to test for the Palate that the component is on would work, is there a way to do that? Thanks. A. G. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] how about a HasProperty() property?
On 05/01/2014 23:50, Alejandro Gonzalo wrote: For example, if you want to loop though components and set the dbNavigator's DataSource property to that of the component if it has a DataSource property (and of course is not a dbNavigator itself). It seems you can't do that by using the component's hierarchy. Is there someway else to do that? Components do seem to have HasHelp and HasParent properties already. Something like this: uses typinfo; function ComponentHasProperty(aComponent: TComponent; aProperty: string): boolean; begin if not Assigned(aComponent) or (aProperty='') then Exit(False); Result:=GetPropInfo(aComponent, aProperty)nil; end; function ClassHasProperty(aClass: TClass; aProperty: string): boolean; begin if (aProperty='') then Exit(False); Result:=GetPropInfo(aClass, aProperty)nil; end; -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] how about a HasProperty() property?
Unit typinfo contains: Function IsPublishedProp(Instance: TObject; const PropName: string): Boolean; Function IsPublishedProp(AClass: TClass; const PropName: string): Boolean; That should do what you want. Michael. On Mon, 6 Jan 2014, Howard Page-Clark wrote: On 05/01/2014 23:50, Alejandro Gonzalo wrote: For example, if you want to loop though components and set the dbNavigator's DataSource property to that of the component if it has a DataSource property (and of course is not a dbNavigator itself). It seems you can't do that by using the component's hierarchy. Is there someway else to do that? Components do seem to have HasHelp and HasParent properties already. Something like this: uses typinfo; function ComponentHasProperty(aComponent: TComponent; aProperty: string): boolean; begin if not Assigned(aComponent) or (aProperty='') then Exit(False); Result:=GetPropInfo(aComponent, aProperty)nil; end; function ClassHasProperty(aClass: TClass; aProperty: string): boolean; begin if (aProperty='') then Exit(False); Result:=GetPropInfo(aClass, aProperty)nil; end; -- ___ 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