From david at mandrakesoft.com Mon Jul 1 07:43:39 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 1 Jul 2002 08:43:39 +0200 Subject: going back in khtml_part.cpp In-Reply-To: <200206291739.41264@danielnaber.de> References: <200206281947.43694@danielnaber.de> <200206291215.26812.david@mandrakesoft.com> <200206291739.41264@danielnaber.de> Message-ID: <200207010843.40075.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 29 June 2002 17:39, Daniel Naber wrote: > On Saturday 29 June 2002 12:15, David Faure wrote: > > > But I fail to see why KHTMLPart would want to do that (sounds like a > > hack). > > Yes, I think you suggested that hack when I asked how to fix the "RMB > doesn't go back in framesets" :-) Ah yes, okay ;) > BTW, both the original code in konq_view.cpp and this new code have > problems when a new config is applied. The new setting doesn't become > active immediately. Would it be okay the read the config value for each > RMB click or is that too expensive? Don't do that, simply use reparseConfiguration(). - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is coming very shortly... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9H/oc72KcVAmwbhARAg7iAJ4pOEkHzU4pLCR5kT5n9nXFb3L6fACgmX8O zqvVY3pa93ZTJedr3tihMZ0= =tFSZ -----END PGP SIGNATURE----- From till at snafu.de Mon Jul 1 08:09:14 2002 From: till at snafu.de (Till Krech) Date: Mon, 1 Jul 2002 09:09:14 +0200 Subject: Java - problems again ? In-Reply-To: <20020629032514.GA23343@tangens.sinus.cz> References: <20020628053626.GA3418@tangens.sinus.cz> <200206282348.46508.till@snafu.de> <20020629032514.GA23343@tangens.sinus.cz> Message-ID: <200207010909.14354.till@snafu.de> On Saturday 29 June 2002 05:25, Pavel Troller wrote: > Hi! ... > I did, and it works as expected. Yes, there are delays about 10 seconds, > especially when the page is visited by going back, but it's acceptable. > I'll change my JDK anyways, I'm planning to try the latest Sun's JDK. > Could you please update and try again. There should be no more (long) delays now. greetings, till From j.p.vanbest at tbm.tudelft.nl Tue Jul 2 11:50:54 2002 From: j.p.vanbest at tbm.tudelft.nl (Best, Jan-Pascal van) Date: Tue, 2 Jul 2002 12:50:54 +0200 Subject: HTTP server sends 404, but Job->error() is zero! Message-ID: Hi all, I'm trying to discover whether a certain file exists on a webdav server. For this I send a PROPFIND to the server, asking for DAV:displayname and for urn:schemas:calendar:uid. When the file doesn't exist, I used to get a KIO::ERR_DOES_NOT_EXIST error code from job->error() in the slotResult slot. Not any more. I'm not sure if something changed in our server or in the kio code, but at the moment the server returns a HTTP/1.1 404 Resource Not Found ... Content-Type: text/html ... ... etc but, worse, job->error() returns zero, while the server sent us a 404! I guess this would be allright for konqueror, which would want to show the user the error page returned by the server, but in my case I'd really like to know that the file doesn't exist on the server. Is this expected behaviour that I should code around, or should kio be changed to return an error code in this case? Cheers Jan-Pascal -- Jan-Pascal van Best Delft University of Technology http://www.tbm.tudelft.nl/webstaf/janb/index.htm From david at mandrakesoft.com Tue Jul 2 12:38:56 2002 From: david at mandrakesoft.com (David Faure) Date: Tue, 2 Jul 2002 13:38:56 +0200 Subject: HTTP server sends 404, but Job->error() is zero! In-Reply-To: References: Message-ID: <200207021338.56828.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 02 July 2002 12:50, Best, Jan-Pascal van wrote: > but, worse, job->error() returns zero, while the server sent > us a 404! I guess this would be allright for konqueror, which > would want to show the user the error page returned by the > server, but in my case I'd really like to know that the > file doesn't exist on the server. if (job->error() || job->isErrorPage()) [...] - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9IZDQ72KcVAmwbhARAhJrAJ4tJAQ9vQwTYi3wVO+Q9y198v7XJwCgqvEa 9PxpdQHgOg0mbPEaUWWnJgU= =Boog -----END PGP SIGNATURE----- From j.p.vanbest at tbm.tudelft.nl Tue Jul 2 13:09:45 2002 From: j.p.vanbest at tbm.tudelft.nl (Best, Jan-Pascal van) Date: Tue, 2 Jul 2002 14:09:45 +0200 Subject: HTTP server sends 404, but Job->error() is zero! Message-ID: David Faure wrote: > On Tuesday 02 July 2002 12:50, Best, Jan-Pascal van wrote: > > but, worse, job->error() returns zero, while the server sent > > us a 404! I guess this would be allright for konqueror, which > > would want to show the user the error page returned by the > > server, but in my case I'd really like to know that the > > file doesn't exist on the server. > > if (job->error() || job->isErrorPage()) > [...] Thanks for the quick reply. But how do I know which error it is, a file-not-found error, or a connect error, or something else? I'm now using job->addMetaData( "errorPage", "false" ); which works fine for me. I saw in the CVS comments that the default for errorPage changed from false to true. Related question: I need to output a date (QDateTime) in a certain format in UTC. The default seems to be to output in the locale's timezone (QDateTime::toString()), but how do I convert a QDataTime to UTC, taking into account the locale's timezone? Cheers Jan-Pascal From hetz at kde.org Tue Jul 2 19:26:52 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Tue, 2 Jul 2002 21:26:52 +0300 Subject: weird underlines Message-ID: <200207022126.52307.hetz@kde.org> Hi people, I'm looking at this page: http://www.mandrakesoft.com/company/investors/bsa/faq2 It seems to render ok, the main article appears in black. Now, move the cursor over the article - all the text appears as blue underlined.. Thanks, Hetz From bastian at kde.org Tue Jul 2 19:28:57 2002 From: bastian at kde.org (Waldo Bastian) Date: Tue, 2 Jul 2002 11:28:57 -0700 Subject: HTTP server sends 404, but Job->error() is zero! In-Reply-To: References: Message-ID: <200207021128.57815.bastian@kde.org> On Tuesday 02 July 2002 05:09 am, Best, Jan-Pascal van wrote: > I'm now using > job->addMetaData( "errorPage", "false" ); > which works fine for me. I saw in the CVS comments that the default > for errorPage changed from false to true. Which version where you using originally? In KDE 3.0 the default was true, no? > Related question: I need to output a date (QDateTime) in a certain > format in UTC. The default seems to be to output in the locale's > timezone You may want to look at KRFCDate in kdelibs/kdecore. Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From aseigo at olympusproject.org Tue Jul 2 20:13:59 2002 From: aseigo at olympusproject.org (Aaron J. Seigo) Date: Tue, 2 Jul 2002 13:13:59 -0600 Subject: weird underlines In-Reply-To: <200207022126.52307.hetz@kde.org> References: <200207022126.52307.hetz@kde.org> Message-ID: <200207021313.59523.aseigo@olympusproject.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 02 July 2002 12:26, Hetz Ben Hamo wrote: > Hi people, > > I'm looking at this page: > http://www.mandrakesoft.com/company/investors/bsa/faq2 > > It seems to render ok, the main article appears in black. > > Now, move the cursor over the article - all the text appears as blue > underlined.. it's been fixed apparently since then (i saw the same thing went i went there earlier today but it doesn't do that anymore) .. probably just a missing somewhere ... IOW broken html as usual =/ - -- Aaron J. Seigo GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 "Everything should be made as simple as possible, but not simpler" - Albert Einstein -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD4DBQE9Ift31rcusafx20MRAitbAJQLIYGyh6yN/c/q5KfpI98efBkdAJ9/pj0J xIMX+cZQBduzilfDOFUQzg== =9mwP -----END PGP SIGNATURE----- From Ladislav.Strojil at seznam.cz Tue Jul 2 20:34:11 2002 From: Ladislav.Strojil at seznam.cz (Ladislav Strojil) Date: Tue, 2 Jul 2002 21:34:11 +0200 Subject: weird underlines In-Reply-To: <200207022126.52307.hetz@kde.org> References: <200207022126.52307.hetz@kde.org> Message-ID: <200207022134.12110.Ladislav.Strojil@seznam.cz> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 02 July 2002 20:26, Hetz Ben Hamo wrote: > Hi people, > > I'm looking at this page: > http://www.mandrakesoft.com/company/investors/bsa/faq2 The problem is that the page contains unclosed A tag. Line 147: This anchor is not closed. This is broken HTML. :-) Cheers, Lada - -- ~ Ladislav Strojil, MFF UK ' v ' // \\ /( )\ Powered by Penguin. ^ ' ^ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9IgAzTnMZPFqq4nwRAiRsAKD4dTZTVDNdZjQE1Ov5Nem0NYkj0ACggdMh MiKhA4jxsgfTJj0sV0PVVAo= =Ym5t -----END PGP SIGNATURE----- From mmh at gmx.net Tue Jul 2 20:01:10 2002 From: mmh at gmx.net (Moritz Moeller-Herrmann) Date: Tue, 02 Jul 2002 21:01:10 +0200 Subject: weird underlines References: <200207022126.52307.hetz@kde.org> Message-ID: Hetz Ben Hamo wrote: > Hi people, > > I'm looking at this page: > http://www.mandrakesoft.com/company/investors/bsa/faq2 > > It seems to render ok, the main article appears in black. > > Now, move the cursor over the article - all the text appears as blue > underlined.. That's because the whole text is a link. Obviously Mandrake can't code HTML for shit. Line ~149:

1- United Linux: why MandrakeSoft will not join.

United Linux is a group effort by four Linux vendors (Caldera, SuSE, TurboLinux and Conectiva) to develop a common Linux distribution that will bear the label "United Linux". Obviously the error handling of other browsers automatically closes the , as it encounters the next tag, but that is not correct HTML. I think Mandrake would be wise to check their page with some syntax checker. -- Moritz Moeller-Herrmann mmh at gmx.net wiss. Mitarbeiter, IMGB La loi, dans un grand souci d'�galit�, interdit aux riches comme aux pauvres de coucher sous les ponts, de mendier dans les rues et de voler du pain. (ANATOLE FRANCE) From malte at kde.org Wed Jul 3 05:14:13 2002 From: malte at kde.org (Malte Starostik) Date: Wed, 3 Jul 2002 06:14:13 +0200 Subject: PATCH: nspluginviewer and gcc 3.x Message-ID: <200207030614.16639.malte@kde.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, here's a more complete patch to fix the missing symbols with nsplugins when KDE is gcc 3.x compiled. With these, realplayer works as well. I've seen quite a few flash sites that don't work (blank player with a single-entry "Movie not loaded" popup menu), but whenever I compared to mozilla, the same happens there, so maybe that's a different problem. Any problems with this? Will the preproc stuff work, i.e. correctly exclude the block with all non-gcc-3.x compilers? - -- Malte Starostik PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A 27CD 5431 7745 D2F3 C787] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9InoYVDF3RdLzx4cRAjj6AKDJlyeaGFkWAYF7PPg8p5gA2uGlyACfcndC 0sAJWw2rGNI+QMWa2/xSWQw= =B4RV -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: nsplugins.diff Type: text/x-diff Size: 2396 bytes Desc: not available URL: From malte at kde.org Wed Jul 3 05:19:18 2002 From: malte at kde.org (Malte Starostik) Date: Wed, 3 Jul 2002 06:19:18 +0200 Subject: PATCH: nspluginviewer and gcc 3.x In-Reply-To: <200207030614.16639.malte@kde.org> References: <200207030614.16639.malte@kde.org> Message-ID: <200207030619.21661.malte@kde.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Wednesday 03 July 2002 06:14 schrieb Malte Starostik: > Hi, > > here's a more complete patch to fix the missing symbols with nsplugins when > KDE is gcc 3.x compiled. With these, realplayer works as well. I've seen > quite a few flash sites that don't work (blank player with a single-entry > "Movie not loaded" popup menu), but whenever I compared to mozilla, the > same happens there, so maybe that's a different problem. > > Any problems with this? Will the preproc stuff work, i.e. correctly exclude > the block with all non-gcc-3.x compilers? Err, I guess __pure_virtual() should just call abort(); - -- Malte Starostik PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A 27CD 5431 7745 D2F3 C787] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9IntJVDF3RdLzx4cRAieFAJwJinUOlCUmrp38Nzm2be0otwgwywCeKE8v dgedka8fqGq4MWacUk/n/cw= =y6Ox -----END PGP SIGNATURE----- From adawit at kde.org Wed Jul 3 05:34:30 2002 From: adawit at kde.org (Dawit A.) Date: Wed, 3 Jul 2002 00:34:30 -0400 Subject: HTTP server sends 404, but Job->error() is zero! In-Reply-To: <200207021128.57815.bastian@kde.org> References: <200207021128.57815.bastian@kde.org> Message-ID: <200207030034.30619.adawit@kde.org> On Tuesday 02 July 2002 14:28, Waldo Bastian wrote: > On Tuesday 02 July 2002 05:09 am, Best, Jan-Pascal van wrote: > > I'm now using > > job->addMetaData( "errorPage", "false" ); > > which works fine for me. I saw in the CVS comments that the default > > for errorPage changed from false to true. > > Which version where you using originally? In KDE 3.0 the default was true, > no? no. You changed it on -r 1.516 which is post KDE 3.0.1 :) Cheers, Dawit A. From bastian at kde.org Wed Jul 3 07:10:46 2002 From: bastian at kde.org (Waldo Bastian) Date: Tue, 2 Jul 2002 23:10:46 -0700 Subject: HTTP server sends 404, but Job->error() is zero! In-Reply-To: <200207030034.30619.adawit@kde.org> References: <200207021128.57815.bastian@kde.org> <200207030034.30619.adawit@kde.org> Message-ID: <200207022310.46760.bastian@kde.org> On Tuesday 02 July 2002 09:34 pm, Dawit A. wrote: > On Tuesday 02 July 2002 14:28, Waldo Bastian wrote: > > On Tuesday 02 July 2002 05:09 am, Best, Jan-Pascal van wrote: > > > I'm now using > > > job->addMetaData( "errorPage", "false" ); > > > which works fine for me. I saw in the CVS comments that the default > > > for errorPage changed from false to true. > > > > Which version where you using originally? In KDE 3.0 the default was > > true, no? > > no. You changed it on -r 1.516 which is post KDE 3.0.1 :) Yes, 1.516 reverts 1.506 in which you fucked it up :-) So it was broken between 1.506 and 1.516. In 3.0.x it reads: m_bErrorPage = (metaData("errorPage") != "false"); which is a difficult way of saying that it defaults to true. Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From mmh at gmx.net Wed Jul 3 10:17:32 2002 From: mmh at gmx.net (Moritz Moeller-Herrmann) Date: Wed, 03 Jul 2002 11:17:32 +0200 Subject: weird underlines References: <200207022126.52307.hetz@kde.org> <200207021313.59523.aseigo@olympusproject.org> Message-ID: Aaron J. Seigo wrote: > it's been fixed apparently since then (i saw the same thing went i went > there earlier today but it doesn't do that anymore) .. probably just a > missing somewhere ... IOW broken html as usual =/ I notified the webmaster. But I think konqueror should (in error handling mode) close tags when encountering the next tag, like Mozilla Opera and Konqueror do. From mueller at kde.org Wed Jul 3 10:12:39 2002 From: mueller at kde.org (Dirk Mueller) Date: Wed, 3 Jul 2002 11:12:39 +0200 Subject: weird underlines In-Reply-To: <200207022134.12110.Ladislav.Strojil@seznam.cz> References: <200207022126.52307.hetz@kde.org> <200207022134.12110.Ladislav.Strojil@seznam.cz> Message-ID: <20020703091239.GA29592@matrix.wg> On Die, 02 Jul 2002, Ladislav Strojil wrote: > This anchor is not closed. This is broken HTML. :-) Jeez.. This is unfortunately legal. Relax again, somewhen khtml will handle it as well ;-) Dirk From staikos at kde.org Wed Jul 3 14:51:33 2002 From: staikos at kde.org (George Staikos) Date: Wed, 3 Jul 2002 09:51:33 -0400 Subject: PATCH: nspluginviewer and gcc 3.x In-Reply-To: <200207030614.16639.malte@kde.org> References: <200207030614.16639.malte@kde.org> Message-ID: <200207030951.34001.staikos@kde.org> On Wednesday 03 July 2002 00:14, Malte Starostik wrote: > here's a more complete patch to fix the missing symbols with nsplugins when > KDE is gcc 3.x compiled. With these, realplayer works as well. I've seen > quite a few flash sites that don't work (blank player with a single-entry > "Movie not loaded" popup menu), but whenever I compared to mozilla, the > same happens there, so maybe that's a different problem. > > Any problems with this? Will the preproc stuff work, i.e. correctly exclude > the block with all non-gcc-3.x compilers? I was lead to believe that this will not work in all cases. However, if we don't see it breaking anything, I think it's a good idea to apply. I can test it on SUSE 7.3 tonight (gcc 2.95) if needed. -- George Staikos From malte at kde.org Wed Jul 3 20:22:20 2002 From: malte at kde.org (Malte Starostik) Date: Wed, 3 Jul 2002 21:22:20 +0200 Subject: PATCH: nspluginviewer and gcc 3.x In-Reply-To: <200207030951.34001.staikos@kde.org> References: <200207030614.16639.malte@kde.org> <200207030951.34001.staikos@kde.org> Message-ID: <200207032122.23138.malte@kde.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Wednesday 03 July 2002 15:51 schrieb George Staikos: > On Wednesday 03 July 2002 00:14, Malte Starostik wrote: > > here's a more complete patch to fix the missing symbols with nsplugins > > when KDE is gcc 3.x compiled. With these, realplayer works as well. I've > > seen quite a few flash sites that don't work (blank player with a > > single-entry "Movie not loaded" popup menu), but whenever I compared to > > mozilla, the same happens there, so maybe that's a different problem. > > > > Any problems with this? Will the preproc stuff work, i.e. correctly > > exclude the block with all non-gcc-3.x compilers? > > I was lead to believe that this will not work in all cases. However, if > we don't see it breaking anything, I think it's a good idea to apply. I > can test it on SUSE 7.3 tonight (gcc 2.95) if needed. That'd be nice. I don't expect any problems with gcc <3 though, maybe only with non-gcc. But then, why should it fail actually, just paranoia... - -- Malte Starostik PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A 27CD 5431 7745 D2F3 C787] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9I07uVDF3RdLzx4cRAp4AAJ4vr0SAYuGlAOUf3M/yAoqJ2lhdPwCgkmbQ NqtwmWFRH2GSsXOwEgLtkCc= =Grpo -----END PGP SIGNATURE----- From mueller at kde.org Wed Jul 3 22:24:32 2002 From: mueller at kde.org (Dirk Mueller) Date: Wed, 3 Jul 2002 23:24:32 +0200 Subject: libkjava installed ? Message-ID: <20020703212432.GA4169@matrix.wg> Hi, does anybody know a reason why libkjava is installed ? Dirk From adawit at kde.org Wed Jul 3 23:46:31 2002 From: adawit at kde.org (Dawit A.) Date: Wed, 3 Jul 2002 18:46:31 -0400 Subject: HTTP server sends 404, but Job->error() is zero! In-Reply-To: <200207022310.46760.bastian@kde.org> References: <200207030034.30619.adawit@kde.org> <200207022310.46760.bastian@kde.org> Message-ID: <200207031846.31411.adawit@kde.org> On Wednesday 03 July 2002 02:10, Waldo Bastian wrote: > On Tuesday 02 July 2002 09:34 pm, Dawit A. wrote: > > On Tuesday 02 July 2002 14:28, Waldo Bastian wrote: > > > On Tuesday 02 July 2002 05:09 am, Best, Jan-Pascal van wrote: > > > > I'm now using > > > > job->addMetaData( "errorPage", "false" ); > > > > which works fine for me. I saw in the CVS comments that the default > > > > for errorPage changed from false to true. > > > > > > Which version where you using originally? In KDE 3.0 the default was > > > true, no? > > > > no. You changed it on -r 1.516 which is post KDE 3.0.1 :) > > Yes, 1.516 reverts 1.506 in which you fucked it up :-) So it was broken > between 1.506 and 1.516. > > In 3.0.x it reads: > m_bErrorPage = (metaData("errorPage") != "false"); > > which is a difficult way of saying that it defaults to true. Hmm... so I can claim I only made it more readable :) Anyways, I always assumed the default for readBoolEntry was true!!! Was it always false ? *sigh* Assumption is a mother of all f***ups! Regards, Dawit A. From per.winkvist at cell-telecom.com Thu Jul 4 07:06:43 2002 From: per.winkvist at cell-telecom.com (Per Winkvist) Date: Thu, 4 Jul 2002 08:06:43 +0200 Subject: PATCH: nspluginviewer and gcc 3.x Message-ID: <5BE76BE415F6294FBFA5149516FC178A58F95B@exsthmb01.europe.cellnetwork.com> On Wednesday 03 July 2002 15:51, George Staikos wrote: > On Wednesday 03 July 2002 00:14, Malte Starostik wrote: > > here's a more complete patch to fix the missing symbols with nsplugins > > when KDE is gcc 3.x compiled. With these, realplayer works as well. I've > > seen quite a few flash sites that don't work (blank player with a > > single-entry "Movie not loaded" popup menu), but whenever I compared to > > mozilla, the same happens there, so maybe that's a different problem. > > > > Any problems with this? Will the preproc stuff work, i.e. correctly > > exclude the block with all non-gcc-3.x compilers? > > I was lead to believe that this will not work in all cases. However, if > we don't see it breaking anything, I think it's a good idea to apply. I > can test it on SUSE 7.3 tonight (gcc 2.95) if needed. I tested it on * RH 7.3 (gcc 2.96) /w KDE_3_0_BRANCH : Ok (Worked before) * Mdk 8.3 (gcc 3.1.1) /w HEAD : Ok (Didn't work before) Per From j.p.vanbest at tbm.tudelft.nl Thu Jul 4 08:53:47 2002 From: j.p.vanbest at tbm.tudelft.nl (Best, Jan-Pascal van) Date: Thu, 4 Jul 2002 09:53:47 +0200 Subject: [PATCH] davjob stuff Message-ID: Hi all, I've wrapped up the davjob patches. I think they're ready for inclusion. This is what this patch does: - Add a DavJob class in kio/kio/davjob.[h,cpp]. A DavJob is mostly a TransferJob, but you can give the webdav method to call and the result is given as a convenient QDomDocument. - Move definitions of the HTTP_METHOD enum to interfaces/kio/http.h which is exported. This is needed for generic WebDAV calls - In HTTPProtocol::davStatList(), cleanup some namespace stuff - In HTTPProtocol::httpOpen(), for DAV_PROPFIND, set davData to true to indicate there's more to come, and read metadata "davDepth" for the depth: header, if supplied (else use current intelligence). - Introduce a special() in http.cc for generic WebDAV actions any comments or suggestions? Is this ready to check in? Cheers Jan-Pascal =============== kdelibs/interfaces/kio/http.h ================== /* This file is part of the KDE libraries Copyright (C) 2002 Jan-Pascal van Best This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef KIOSLAVE_HTTP_H_ #define KIOSLAVE_HTTP_H_ namespace KIO { /** HTTP / DAV method **/ enum HTTP_METHOD {HTTP_GET, HTTP_PUT, HTTP_POST, HTTP_HEAD, HTTP_DELETE, HTTP_OPTIONS, DAV_PROPFIND, DAV_PROPPATCH, DAV_MKCOL, DAV_COPY, DAV_MOVE, DAV_LOCK, DAV_UNLOCK, DAV_SEARCH }; }; #endif =============== kdelibs/interfaces/kio/Makefile.am ================= kioincludedir = $(includedir)/kio kioinclude_HEADERS = http.h =============== kdelibs/kio/kio/davjob.h ================= // -*- c++ -*- /* This file is part of the KDE libraries Copyright (C) 2002 Jan-Pascal van Best This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __kio_davjob_h__ #define __kio_davjob_h__ #include #include #include #include #include #include #include #include #include #include #include class Observer; class QTimer; namespace KIO { class Slave; class SlaveInterface; /** * The transfer job pumps data into and/or out of a Slave. * Data is sent to the slave on request of the slave (@ref dataReq). * If data coming from the slave can not be handled, the * reading of data from the slave should be suspended. */ class DavJob : public TransferJob { Q_OBJECT public: DavJob(const KURL& url, int method, const QString& request, bool showProgressInfo); QDomDocument& response() { return m_response; } protected slots: virtual void slotFinished(); virtual void slotData( const QByteArray &data); protected: bool m_suspended; TransferJob *m_subJob; private: class DavJobPrivate* d; QString m_str_response; QDomDocument m_response; }; DavJob* davPropFind( const KURL& url, const QDomDocument& properties, QString depth, bool showProgressInfo=true ); DavJob* davPropPatch( const KURL& url, const QDomDocument& properties, bool showProgressInfo=true ); DavJob* davSearch( const KURL &url, const QString& nsURI, const QString& qName, const QString& query, bool showProgressInfo=true ); }; #endif =============== kdelibs/kio/kio/davjob.cpp ================= // -*- c++ -*- /* This file is part of the KDE libraries Copyright (C) 2002 Jan-Pascal van Best This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace KIO; #define KIO_ARGS QByteArray packedArgs; QDataStream stream( packedArgs, IO_WriteOnly ); stream DavJob::DavJob( const KURL& url, int method, const QString& request, bool showProgressInfo ) : TransferJob( url, KIO::CMD_SPECIAL, QByteArray(), QByteArray(), showProgressInfo ) { // We couldn't set the args when calling the parent constructor, // so do it now. QDataStream stream( m_packedArgs, IO_WriteOnly ); stream << (int) 7 << url << method; // Same for static data staticData = "\r\n" + request.utf8(); staticData.truncate( staticData.size() - 1 ); } void DavJob::slotData( const QByteArray& data ) { m_str_response.append( QString( data ) ); } void DavJob::slotFinished() { kdDebug() << "DavJob::slotFinished()" << endl; kdDebug() << m_str_response << endl; m_response.setContent( m_str_response, true ); TransferJob::slotFinished(); } /* Convenience methods */ DavJob* KIO::davPropFind( const KURL& url, const QDomDocument& properties, QString depth, bool showProgressInfo ) { DavJob *job = new DavJob( url, (int) KIO::DAV_PROPFIND, properties.toString(), showProgressInfo ); job->addMetaData( "davDepth", depth ); return job; } DavJob* KIO::davPropPatch( const KURL& url, const QDomDocument& properties, bool showProgressInfo ) { return new DavJob( url, (int) KIO::DAV_PROPPATCH, properties.toString(), showProgressInfo ); } DavJob* KIO::davSearch( const KURL& url, const QString& nsURI, const QString& qName, const QString& query, bool showProgressInfo ) { QDomDocument doc; QDomElement searchrequest = doc.createElementNS( "DAV:", "searchrequest" ); QDomElement searchelement = doc.createElementNS( nsURI, qName ); QDomText text = doc.createTextNode( query ); searchelement.appendChild( text ); searchrequest.appendChild( searchelement ); doc.appendChild( searchrequest ); return new DavJob( url, KIO::DAV_SEARCH, doc.toString(), showProgressInfo ); } =================== DIFFS ================================ Index: interfaces/Makefile.am =================================================================== RCS file: /home/kde/kdelibs/interfaces/Makefile.am,v retrieving revision 1.29 diff -u -3 -p -r1.29 Makefile.am --- interfaces/Makefile.am2002/05/28 21:02:161.29 +++ interfaces/Makefile.am2002/07/04 05:33:04 @@ -1,4 +1,4 @@ -SUBDIRS = ktexteditor kscript kregexpeditor kmediaplayer +SUBDIRS = ktexteditor kscript kregexpeditor kmediaplayer kio DOXYGEN_REFERENCES = kdecore kdefx kdeui kparts dcop DOXYGEN_EXCLUDE = kscript/sample/* Index: kio/kio/Makefile.am =================================================================== RCS file: /home/kde/kdelibs/kio/kio/Makefile.am,v retrieving revision 1.194 diff -u -3 -p -r1.194 Makefile.am --- kio/kio/Makefile.am2002/06/21 10:43:511.194 +++ kio/kio/Makefile.am2002/07/04 05:33:10 @@ -38,7 +38,7 @@ libksycoca_la_SOURCES = \ kautomount.cpp krun.cpp \ kfileitem.cpp kdirlister.cpp kimageio.cpp \ yacc.c lex.c \ -chmodjob.cpp kscan.cpp kar.cpp ktar.cpp kzip.cpp previewjob.cpp metainfojob.cpp \ +chmodjob.cpp kscan.cpp kar.cpp ktar.cpp kzip.cpp previewjob.cpp metainfojob.cpp davjob.cpp \ kdatatool.cpp karchive.cpp kfilefilter.cpp \ kfilemetainfo.cpp @@ -97,7 +97,7 @@ kioinclude_HEADERS = connection.h \ observer.h chmodjob.h uiserver_stub.h \ kpac.h kmdbase.h authinfo.h \ ioslave_defaults.h http_slave_defaults.h previewjob.h thumbcreator.h \ -metainfojob.h +metainfojob.h davjob.h # Internal - kprotocolinfofactory.h is old stuff noinst_HEADERS = kservicetypefactory.h kservicefactory.h \ Index: kioslave/http/http.cc =================================================================== RCS file: /home/kde/kdelibs/kioslave/http/http.cc,v retrieving revision 1.518 diff -u -3 -p -r1.518 http.cc --- kioslave/http/http.cc2002/06/25 21:31:541.518 +++ kioslave/http/http.cc2002/07/04 05:33:15 @@ -522,7 +522,7 @@ void HTTPProtocol::davStatList( const KU // We are only after certain features... QCString request; request = "" - ""; + ""; // insert additional XML request from the davRequestResponse metadata if ( hasMetaData( "davRequestResponse" ) ) @@ -542,9 +542,9 @@ void HTTPProtocol::davStatList( const KU "" "" "" - ""; + ""; } - request += ""; + request += ""; davSetRequest( request ); } @@ -616,6 +616,27 @@ void HTTPProtocol::davStatList( const KU } } +void HTTPProtocol::davGeneric( const KURL& url, HTTP_METHOD method ) +{ + kdDebug(7113) << "(" << m_pid << ") HTTPProtocol::davGeneric " << url.url() + << endl; + + if ( !checkRequestURL( url ) ) + return; + + // check to make sure this host supports WebDAV + if ( !davHostOk() ) + return; + + // WebDAV method + m_request.method = method; + m_request.query = QString::null; + m_request.cache = CC_Reload; + m_request.doProxy = m_bUseProxy; + + retrieveContent( false ); +} + int HTTPProtocol::codeFromResponse( const QString& response ) { int firstSpace = response.find( ' ' ); @@ -1881,11 +1902,18 @@ bool HTTPProtocol::httpOpen() break; case DAV_PROPFIND: header = "PROPFIND "; + davData = true; davHeader = "Depth: "; - if ( m_request.davData.depth == 2 ) - davHeader += "infinity"; - else - davHeader += QString("%1").arg( m_request.davData.depth ); + if ( hasMetaData( "davDepth" ) ) { + kdDebug(7113) << "Reading DAV depth from metadata: " << metaData( "davDepth" ) << endl; + davHeader += metaData( "davDepth" ); + } else + { + if ( m_request.davData.depth == 2 ) + davHeader += "infinity"; + else + davHeader += QString("%1").arg( m_request.davData.depth ); + } davHeader += "\r\n"; m_bCachedWrite = false; // Do not put any result in the cache break; @@ -3477,6 +3505,13 @@ void HTTPProtocol::special( const QByteA stream >> url; davUnlock( url ); break; + } + case 7: // Generic WebDAV + { + KURL url; + int method; + stream >> url >> method; + davGeneric( url, (HTTP_METHOD) method ); } default: // Some command we don't understand. Index: kioslave/http/http.h =================================================================== RCS file: /home/kde/kdelibs/kioslave/http/http.h,v retrieving revision 1.135 diff -u -3 -p -r1.135 http.h --- kioslave/http/http.h2002/06/14 20:08:221.135 +++ kioslave/http/http.h2002/07/04 05:33:15 @@ -36,14 +36,18 @@ #include #include "kio/tcpslavebase.h" +#include "kio/http.h" class DCOPClient; class QDomElement; +class QDomNodeList; namespace KIO { class AuthInfo; } +using namespace KIO; + class HTTPProtocol : public QObject, public KIO::TCPSlaveBase { Q_OBJECT @@ -59,9 +63,10 @@ public: enum HTTP_AUTH {AUTH_None, AUTH_Basic, AUTH_Digest}; /** HTTP / DAV method **/ - enum HTTP_METHOD {HTTP_GET, HTTP_PUT, HTTP_POST, HTTP_HEAD, HTTP_DELETE, - HTTP_OPTIONS, DAV_PROPFIND, DAV_PROPPATCH, DAV_MKCOL, - DAV_COPY, DAV_MOVE, DAV_LOCK, DAV_UNLOCK, DAV_SEARCH }; + // Removed to interfaces/kio/http.h + //enum HTTP_METHOD {HTTP_GET, HTTP_PUT, HTTP_POST, HTTP_HEAD, HTTP_DELETE, + // HTTP_OPTIONS, DAV_PROPFIND, DAV_PROPPATCH, DAV_MKCOL, + // DAV_COPY, DAV_MOVE, DAV_LOCK, DAV_UNLOCK, DAV_SEARCH }; /** State of the current Connection **/ typedef struct @@ -142,6 +147,9 @@ public: // ask the host whether it supports WebDAV & cache this info bool davHostOk(); + + // send generic DAV request + void davGeneric( const KURL& url, HTTP_METHOD method ); // Send requests to lock and unlock resources void davLock( const KURL& url, const QString& scope, From meddie at yoyo.its.monash.edu.au Thu Jul 4 09:12:36 2002 From: meddie at yoyo.its.monash.edu.au (Hamish Rodda) Date: Thu, 4 Jul 2002 18:12:36 +1000 Subject: [PATCH] davjob stuff References: Message-ID: <000e01c22332$8e6d2610$c800a8c0@HAMISH> > I've wrapped up the davjob patches. > any comments or suggestions? Looks conceptually fine to me. I don't have time to test it though, sorry. Cheers, Hamish. From j.p.vanbest at tbm.tudelft.nl Thu Jul 4 09:32:40 2002 From: j.p.vanbest at tbm.tudelft.nl (Best, Jan-Pascal van) Date: Thu, 4 Jul 2002 10:32:40 +0200 Subject: [PATCH] davjob stuff Message-ID: > > I've wrapped up the davjob patches. > > any comments or suggestions? > > Looks conceptually fine to me. I don't have time to test it > though, sorry. No problem. If nobody sees trouble from the patch (sorry it's so long), I'll apply tomorrow and we'll hear people scream if I f***ed up. Changes apart from webdav seem minimal and OK to me. Cheers Jan-Pascal From staikos at kde.org Thu Jul 4 14:49:34 2002 From: staikos at kde.org (George Staikos) Date: Thu, 4 Jul 2002 09:49:34 -0400 Subject: PATCH: nspluginviewer and gcc 3.x In-Reply-To: <5BE76BE415F6294FBFA5149516FC178A58F95B@exsthmb01.europe.cellnetwork.com> References: <5BE76BE415F6294FBFA5149516FC178A58F95B@exsthmb01.europe.cellnetwork.com> Message-ID: <200207040949.34958.staikos@kde.org> On Thursday 04 July 2002 02:06, Per Winkvist wrote: > On Wednesday 03 July 2002 15:51, George Staikos wrote: > > On Wednesday 03 July 2002 00:14, Malte Starostik wrote: > > > here's a more complete patch to fix the missing symbols with nsplugins > > > when KDE is gcc 3.x compiled. With these, realplayer works as well. > > > I've seen quite a few flash sites that don't work (blank player with a > > > single-entry "Movie not loaded" popup menu), but whenever I compared to > > > mozilla, the same happens there, so maybe that's a different problem. > > > > > > Any problems with this? Will the preproc stuff work, i.e. correctly > > > exclude the block with all non-gcc-3.x compilers? > > > > I was lead to believe that this will not work in all cases. However, > > if we don't see it breaking anything, I think it's a good idea to apply. > > I can test it on SUSE 7.3 tonight (gcc 2.95) if needed. > > I tested it on > * RH 7.3 (gcc 2.96) /w KDE_3_0_BRANCH : Ok (Worked before) > * Mdk 8.3 (gcc 3.1.1) /w HEAD : Ok (Didn't work before) Yes I think it should be committed. -- George Staikos From staikos at kde.org Fri Jul 5 01:38:02 2002 From: staikos at kde.org (George Staikos) Date: Thu, 4 Jul 2002 20:38:02 -0400 Subject: Tab browsing bugs Message-ID: <200207042038.02764.staikos@kde.org> There are a couple of tab browsing bugs in CVS still. They are: 1) a) open a page b) click on a link with RMB, select "Open in new tab" c) click on a bookmark button from the bookmark toolbar result: bookmark opens in a background tab (the previous active one) instead of the current one. 2) a) open a page b) click on a link with RMB, select "Open in new tab" c) split the view. The tabs are now in a weird state at the top, where the first tab is mostly hidden. Clicking on the tabs fixes it. 3) I get occasional crashes when I remove views from within a tab. Generally not reproducible. -- George Staikos From staikos at kde.org Fri Jul 5 02:17:44 2002 From: staikos at kde.org (George Staikos) Date: Thu, 4 Jul 2002 21:17:44 -0400 Subject: NSPlugin changes Message-ID: I have done a hand merge of Till's KJavaEmbed changes to KNSPluginEmbed. So far things work very nicely for me. However it could have severely broken anything and everything including your toilet. Please test and provide constructive feedback. What it does now: Plugins appear instantly! What it doesn't do: Unfortunately it doesn't fix the crossover problem with mouse coordinates not mapping properly. I still maintain that this is a crossover bug. Perhaps they have fixed it since my version 1.1.0? I tested flash and crossover and both work nicely for me with these patches. Dirk: Please do -not- move the tag for the alpha release. I don't want to deal with that many bug reports. ;) -- George Staikos From adawit at kde.org Fri Jul 5 02:43:33 2002 From: adawit at kde.org (Dawit A.) Date: Thu, 4 Jul 2002 21:43:33 -0400 Subject: [PATCH] davjob stuff In-Reply-To: References: Message-ID: <200207042143.33089.adawit@kde.org> On Thursday 04 July 2002 04:32, Best, Jan-Pascal van wrote: > > > I've wrapped up the davjob patches. > > > any comments or suggestions? > > > > Looks conceptually fine to me. I don't have time to test it > > though, sorry. > > No problem. If nobody sees trouble from the patch (sorry it's so long), > I'll apply tomorrow and we'll hear people scream if I f***ed up. > Changes apart from webdav seem minimal and OK to me. Well I have a one minor qualm. For consistency and sanity sake it is IMHO much better to avoid the "using namespaces" in http.h. Just simply declare the variable that uses the factored out enum with a full scope resultion. This is consistent with how everything else is declared there. Regards, Dawit A. From j.p.vanbest at tbm.tudelft.nl Fri Jul 5 08:54:26 2002 From: j.p.vanbest at tbm.tudelft.nl (Best, Jan-Pascal van) Date: Fri, 5 Jul 2002 09:54:26 +0200 Subject: [PATCH] davjob stuff Message-ID: > On Thursday 04 July 2002 04:32, Best, Jan-Pascal van wrote: > > > > I've wrapped up the davjob patches. > > > > any comments or suggestions? > > > > > > Looks conceptually fine to me. I don't have time to test it > > > though, sorry. > > > > No problem. If nobody sees trouble from the patch (sorry > it's so long), > > I'll apply tomorrow and we'll hear people scream if I f***ed up. > > Changes apart from webdav seem minimal and OK to me. > > Well I have a one minor qualm. For consistency and sanity > sake it is IMHO > much better to avoid the "using namespaces" in http.h. Just > simply declare > the variable that uses the factored out enum with a full > scope resultion. > This is consistent with how everything else is declared there. You're right. Done that and checked into CVS. Jan-Pascal From mmh at gmx.net Fri Jul 5 08:55:51 2002 From: mmh at gmx.net (Moritz Moeller-Herrmann) Date: Fri, 05 Jul 2002 09:55:51 +0200 Subject: NSPlugin changes References: Message-ID: George Staikos wrote: > > > I have done a hand merge of Till's KJavaEmbed changes to KNSPluginEmbed. > So > far things work very nicely for me. However it could have severely broken > anything and everything including your toilet. Please test and provide > constructive feedback. > > What it does now: Plugins appear instantly! > What it doesn't do: Unfortunately it doesn't fix the crossover problem > with > mouse coordinates not mapping properly. I still maintain that this is a > crossover bug. Perhaps they have fixed it since my version 1.1.0? > > I tested flash and crossover and both work nicely for me with these > patches. Could you also have a look at the CoPyCat plugin for cpc compressed files? ATM it crashes the nspluginviewer. http://www.cartesianinc.com/Products/Copycat/ -- Moritz Moeller-Herrmann mmh at gmx.net wiss. Mitarbeiter, IMGB La loi, dans un grand souci d'�galit�, interdit aux riches comme aux pauvres de coucher sous les ponts, de mendier dans les rues et de voler du pain. (ANATOLE FRANCE) From mueller at kde.org Fri Jul 5 09:42:32 2002 From: mueller at kde.org (Dirk Mueller) Date: Fri, 5 Jul 2002 10:42:32 +0200 Subject: NSPlugin changes In-Reply-To: <200207042117.44807.staikos@kde.org> References: <200207042117.44807.staikos@kde.org> Message-ID: <20020705084232.GA9039@matrix.wg> On Don, 04 Jul 2002, staikos George Staikos wrote: > What it doesn't do: Unfortunately it doesn't fix the crossover problem with > mouse coordinates not mapping properly. I still maintain that this is a > crossover bug. Perhaps they have fixed it since my version 1.1.0? it happens because we reparent after the plugin being loaded.. Can we somehow merge the tons of xembed reincarnations into one class ? Dirk From staikos at kde.org Fri Jul 5 15:24:42 2002 From: staikos at kde.org (George Staikos) Date: Fri, 5 Jul 2002 10:24:42 -0400 Subject: NSPlugin changes In-Reply-To: References: Message-ID: <200207051024.42618.staikos@kde.org> On Friday 05 July 2002 03:55, Moritz Moeller-Herrmann wrote: > George Staikos wrote: > > I have done a hand merge of Till's KJavaEmbed changes to KNSPluginEmbed. > > So > > far things work very nicely for me. However it could have severely > > broken anything and everything including your toilet. Please test and > > provide constructive feedback. > > > > What it does now: Plugins appear instantly! > > What it doesn't do: Unfortunately it doesn't fix the crossover problem > > with > > mouse coordinates not mapping properly. I still maintain that this is a > > crossover bug. Perhaps they have fixed it since my version 1.1.0? > > > > I tested flash and crossover and both work nicely for me with these > > patches. > > Could you also have a look at the CoPyCat plugin for cpc compressed files? > ATM it crashes the nspluginviewer. > http://www.cartesianinc.com/Products/Copycat/ I will do so asap, but in the meantime, could you get me a backtrace please? Thanks. -- George Staikos From staikos at kde.org Fri Jul 5 15:29:40 2002 From: staikos at kde.org (George Staikos) Date: Fri, 5 Jul 2002 10:29:40 -0400 Subject: NSPlugin changes In-Reply-To: <20020705084232.GA9039@matrix.wg> References: <200207042117.44807.staikos@kde.org> <20020705084232.GA9039@matrix.wg> Message-ID: <200207051029.40525.staikos@kde.org> On Friday 05 July 2002 04:42, Dirk Mueller wrote: > On Don, 04 Jul 2002, staikos George Staikos wrote: > > What it doesn't do: Unfortunately it doesn't fix the crossover problem > > with mouse coordinates not mapping properly. I still maintain that this > > is a crossover bug. Perhaps they have fixed it since my version 1.1.0? > > it happens because we reparent after the plugin being loaded.. Why is that the only affected plugin then? I have yet to find another plugin which has this problem. Using xwininfo revealed some details on where the mouse clicks were interpreted to be, but that was long ago and I forget the details now. I didn't get a response from the crossover guys when I emailed them about this. You told me about this reparent-before-loading issue before, right? I looked into it and decided that this was not the way to go, iirc. I think I ran a test and it either didn't change anything, or plain didn't work at all. This was 6+ months ago. > Can we somehow merge the tons of xembed reincarnations into one class ? Yes Till and I have been discussing this. It looks like this will all go into the kdelibs one. -- George Staikos From koos.vriezen at xs4all.nl Fri Jul 5 15:27:56 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Fri, 5 Jul 2002 16:27:56 +0200 (CEST) Subject: Default value of JS window object Message-ID: Hi, There is still a problem with JS code '"" + window'. It shows 'WARNING: Script threw exception: TypeError: No default value' at the console. Doing 'alert(window)' correctly shows '[object Window]'. Other objects than window/frame, do return a '[object XXX]' when doing a '"" + object'. Regards, Koos Vriezen From mueller at kde.org Fri Jul 5 15:38:37 2002 From: mueller at kde.org (Dirk Mueller) Date: Fri, 5 Jul 2002 16:38:37 +0200 Subject: NSPlugin changes In-Reply-To: <200207051029.40525.staikos@kde.org> References: <200207042117.44807.staikos@kde.org> <20020705084232.GA9039@matrix.wg> <200207051029.40525.staikos@kde.org> Message-ID: <20020705143837.GA17344@matrix.wg> On Fre, 05 Jul 2002, staikos George Staikos wrote: > Why is that the only affected plugin then? I have yet to find another > plugin which has this problem. Using xwininfo revealed some details on where > the mouse clicks were interpreted to be, but that was long ago and I forget > the details now. I didn't get a response from the crossover guys when I > emailed them about this. This was the result of the analysis of the Crossover guys. I'll see if I can in contact with them again, just keep lurking on IRC :) > Yes Till and I have been discussing this. It looks like this will all go > into the kdelibs one. This is great news. :-) Dirk From porten at trolltech.com Fri Jul 5 15:54:52 2002 From: porten at trolltech.com (Harri Porten) Date: Fri, 5 Jul 2002 16:54:52 +0200 (CEST) Subject: Default value of JS window object In-Reply-To: References: Message-ID: On Fri, 5 Jul 2002, Koos Vriezen wrote: > There is still a problem with JS code '"" + window'. It shows 'WARNING: > Script threw exception: TypeError: No default value' at the console. > Doing 'alert(window)' correctly shows '[object Window]'. alert() calls the toString() C++ function on it's arguments. The attempt to add a non-primitive object with a string will trigger a toPrimitive() operation which is appearantly not implemented (see kjs/operations.cpp). > Other objects than window/frame, do return a '[object XXX]' when doing a > '"" + object'. The window object is the most special object of all (as it's the global object as well). I've added this case as a test to khtmltests/ecma/location.html. Will look into this at home. Should be easy to fix. Question: have you encountered this problem in a real world web page ? Harri. From germain at ebooksfrance.com Fri Jul 5 16:00:01 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Fri, 5 Jul 2002 16:00:01 +0100 Subject: [PATCH] a fix for bug #42681 : CSS positionning : relative translations don't apply to HREF links Message-ID: <200207051600.01454.germain@ebooksfrance.com> Hello there, I'm quite new to KDE development (got in a few weeks ago for the PerlQt/Smoke project) so I'm not very used to the bug fixes process. Anyway, I've started investigating my old bug reports for Khtml and here is a first result : Bug #42681 is due to a problem in RenderObject::nodeAtPoint() (render_object.cpp) This method tells if the current mouse coordinates translates to the inside of a box which contains a link (->hasLink() ). In other words, it decides if the cursor should change to reflect a "mouse hover" on a link. It iterates over all childs of the node to find the inner one that has a link. The problem is : it only takes Relatively Positioned boxes into account for the parent node and then call itself recursively ignoring the translation that occured in coordinates. So the patch is just one line : could you please review and tell me if I shall commit ? Cheers, Germain -------------- next part -------------- A non-text attachment was scrubbed... Name: render_object.cpp.patch Type: text/x-diff Size: 874 bytes Desc: not available URL: From koos.vriezen at xs4all.nl Fri Jul 5 16:40:05 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Fri, 5 Jul 2002 17:40:05 +0200 (CEST) Subject: Default value of JS window object Message-ID: On Fri, 5 Jul 2002, Harri Porten wrote: > On Fri, 5 Jul 2002, Koos Vriezen wrote: > > > There is still a problem with JS code '"" + window'. It shows 'WARNING: > > Script threw exception: TypeError: No default value' at the console. > > Doing 'alert(window)' correctly shows '[object Window]'. > > The window object is the most special object of all (as it's the global > object as well). I've added this case as a test to > khtmltests/ecma/location.html. Will look into this at home. Should be easy > to fix. Thanks! > > Question: have you encountered this problem in a real world web page ? Only if I'm part of it ;). Anyway, window.toString also doesn't exist. Btw, the same exception is thrown doing a 'window=="I'm a string, not a window"', which isn't such a strange test to do IMO. (Of course it should always return false, even if 'window=="[object Window]"' is evaluated.) Hmm, that funny 'document=="[object HTMLDocument]"' returns 'true'. Should it? Koos From porten at trolltech.com Fri Jul 5 16:55:23 2002 From: porten at trolltech.com (Harri Porten) Date: Fri, 5 Jul 2002 17:55:23 +0200 (CEST) Subject: Default value of JS window object In-Reply-To: References: Message-ID: On Fri, 5 Jul 2002, Koos Vriezen wrote: > > Question: have you encountered this problem in a real world web page ? > > Only if I'm part of it ;). Anyway, window.toString also doesn't exist. That is the source of the problem. The window object needs a Object.prototype prototype as far as I can tell. This way it should get toString() automatically. > Btw, the same exception is thrown doing a > 'window=="I'm a string, not a window"', which isn't such a strange test > to do IMO. (Of course it should always return false, even if > 'window=="[object Window]"' is evaluated.) It's all using the same (missing) mechanism. > Hmm, that funny 'document=="[object HTMLDocument]"' returns 'true'. Should > it? HTMLDocument is the proper DOM name IIRC. The whole "[object X]" thing is completely arbritrary according to the spec. We just do the same as other browsers (at least NS) here. Harri. From koos.vriezen at xs4all.nl Fri Jul 5 17:13:02 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Fri, 5 Jul 2002 18:13:02 +0200 (CEST) Subject: Default value of JS window object In-Reply-To: References: Message-ID: On Fri, 5 Jul 2002, Harri Porten wrote: > On Fri, 5 Jul 2002, Koos Vriezen wrote: > > > Hmm, that funny 'document=="[object HTMLDocument]"' returns 'true'. Should > > it? > > HTMLDocument is the proper DOM name IIRC. The whole "[object X]" thing is > completely arbritrary according to the spec. We just do the same as other > browsers (at least NS) here. Yes, just tested mozilla. But I didn't mean the naming stuff, it's strange that comparing an object with a string can return 'true'. I wonder what IE does... Koos From porten at trolltech.com Fri Jul 5 17:31:24 2002 From: porten at trolltech.com (Harri Porten) Date: Fri, 5 Jul 2002 18:31:24 +0200 (CEST) Subject: Default value of JS window object In-Reply-To: References: Message-ID: On Fri, 5 Jul 2002, Koos Vriezen wrote: > > HTMLDocument is the proper DOM name IIRC. The whole "[object X]" thing is > > completely arbritrary according to the spec. We just do the same as other > > browsers (at least NS) here. > > Yes, just tested mozilla. But I didn't mean the naming stuff, it's strange > that comparing an object with a string can return 'true'. Yes. The way == works is really miracleous. It tries very hard to do a conversion. The strict comparison operator === rather does what you would expect from C++. > I wonder what IE does... Haven't checked lately. I've now fixed the problem. A bit critical issue so I'd be thankful if e.g. David could verify that it fits the modelling approach we have taken currently. Harri. From koos.vriezen at xs4all.nl Fri Jul 5 18:54:10 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Fri, 5 Jul 2002 19:54:10 +0200 (CEST) Subject: KJS crash: var v=[]; v[0]=v; var w=""+v; Message-ID: Hi, Its probably very bad javascript, but would be nice if it didn't crash kjs. Regards, Koos Vriezen From malte at kde.org Sat Jul 6 03:57:30 2002 From: malte at kde.org (Malte Starostik) Date: Sat, 6 Jul 2002 04:57:30 +0200 Subject: NSPlugin changes In-Reply-To: <200207051029.40525.staikos@kde.org> References: <200207042117.44807.staikos@kde.org> <20020705084232.GA9039@matrix.wg> <200207051029.40525.staikos@kde.org> Message-ID: <200207060457.30543.malte@kde.org> Am Friday 05 July 2002 16:29 schrieb George Staikos: > On Friday 05 July 2002 04:42, Dirk Mueller wrote: > > On Don, 04 Jul 2002, staikos George Staikos wrote: > > > What it doesn't do: Unfortunately it doesn't fix the crossover problem > > > with mouse coordinates not mapping properly. I still maintain that > > > this is a crossover bug. Perhaps they have fixed it since my version > > > 1.1.0? > > > > it happens because we reparent after the plugin being loaded.. > > Why is that the only affected plugin then? I have yet to find another > plugin which has this problem. Using xwininfo revealed some details on > where the mouse clicks were interpreted to be, but that was long ago and I > forget the details now. I didn't get a response from the crossover guys > when I emailed them about this. I saw the same problem in reaktivate where we xembed a wine window as well. But only sometimes and under certain conditions. I'd think it's a general issue with wine and embedding. -- Malte Starostik PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A 27CD 5431 7745 D2F3 C787] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: signature URL: From till at snafu.de Sat Jul 6 04:11:47 2002 From: till at snafu.de (Till Krech) Date: Sat, 6 Jul 2002 05:11:47 +0200 Subject: NSPlugin changes In-Reply-To: <20020705084232.GA9039@matrix.wg> References: <200207042117.44807.staikos@kde.org> <20020705084232.GA9039@matrix.wg> Message-ID: On Friday 05 July 2002 10:42, Dirk Mueller wrote: > On Don, 04 Jul 2002, staikos George Staikos wrote: > > What it doesn't do: Unfortunately it doesn't fix the crossover problem > > with mouse coordinates not mapping properly. I still maintain that this > > is a crossover bug. Perhaps they have fixed it since my version 1.1.0? > > it happens because we reparent after the plugin being loaded.. > > Can we somehow merge the tons of xembed reincarnations into one class ? > Yes. kjava uses QXEmbed now :) > > Dirk -- SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP KDE: 3.0.6 (KDE 3.1 alpha1) Qt: 3.0.4 From Ladislav.Strojil at seznam.cz Sat Jul 6 12:50:19 2002 From: Ladislav.Strojil at seznam.cz (Ladislav Strojil) Date: Sat, 6 Jul 2002 13:50:19 +0200 Subject: Open in background tab using MMB Message-ID: <200207061350.30089.Ladislav.Strojil@seznam.cz> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I wonder if it is possible to open link in a background tab using MMB (ala Mozilla). If it is, where is it configurable? I could not find it anywhere. (CVS HEAD) Thanks a lot, new Konqueror is incredibly cool. :-) Lada - -- ~ Ladislav Strojil, MFF UK ' v ' // \\ /( )\ Powered by Penguin. ^ ' ^ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9Jtl+TnMZPFqq4nwRAlIkAJ95/kNEWCmSqXXeBJ3vBo4gFYlLrACeKv8p dg2MKgORisYlTC9B6powZWY= =y5UX -----END PGP SIGNATURE----- From staikos at kde.org Sat Jul 6 16:29:33 2002 From: staikos at kde.org (George Staikos) Date: Sat, 6 Jul 2002 11:29:33 -0400 Subject: NSPlugin changes In-Reply-To: <200207060457.30543.malte@kde.org> References: <200207042117.44807.staikos@kde.org> <200207051029.40525.staikos@kde.org> <200207060457.30543.malte@kde.org> Message-ID: <200207061129.33328.staikos@kde.org> On July 5, 2002 22:57, Malte Starostik wrote: > Am Friday 05 July 2002 16:29 schrieb George Staikos: > > On Friday 05 July 2002 04:42, Dirk Mueller wrote: > > > On Don, 04 Jul 2002, staikos George Staikos wrote: > > > > What it doesn't do: Unfortunately it doesn't fix the crossover > > > > problem with mouse coordinates not mapping properly. I still > > > > maintain that this is a crossover bug. Perhaps they have fixed it > > > > since my version 1.1.0? > > > > > > it happens because we reparent after the plugin being loaded.. > > > > Why is that the only affected plugin then? I have yet to find another > > plugin which has this problem. Using xwininfo revealed some details on > > where the mouse clicks were interpreted to be, but that was long ago and > > I forget the details now. I didn't get a response from the crossover > > guys when I emailed them about this. > > I saw the same problem in reaktivate where we xembed a wine window as well. > But only sometimes and under certain conditions. I'd think it's a general > issue with wine and embedding. Do you know any clever debugging techniques we could use to see what exactly is happening? Perhaps it would allow us to make patch for wine. -- George Staikos From malte at kde.org Sat Jul 6 18:53:12 2002 From: malte at kde.org (Malte Starostik) Date: Sat, 6 Jul 2002 19:53:12 +0200 Subject: NSPlugin changes In-Reply-To: <200207061129.33328.staikos@kde.org> References: <200207042117.44807.staikos@kde.org> <200207060457.30543.malte@kde.org> <200207061129.33328.staikos@kde.org> Message-ID: <200207061953.14841.malte@kde.org> Am Saturday 06 July 2002 17:29 schrieb George Staikos: > On July 5, 2002 22:57, Malte Starostik wrote: > > Am Friday 05 July 2002 16:29 schrieb George Staikos: > > > On Friday 05 July 2002 04:42, Dirk Mueller wrote: > > > > On Don, 04 Jul 2002, staikos George Staikos wrote: > > > > > What it doesn't do: Unfortunately it doesn't fix the crossover > > > > > problem with mouse coordinates not mapping properly. I still > > > > > maintain that this is a crossover bug. Perhaps they have fixed it > > > > > since my version 1.1.0? > > > > > > > > it happens because we reparent after the plugin being loaded.. > > > > > > Why is that the only affected plugin then? I have yet to find > > > another plugin which has this problem. Using xwininfo revealed some > > > details on where the mouse clicks were interpreted to be, but that was > > > long ago and I forget the details now. I didn't get a response from > > > the crossover guys when I emailed them about this. > > > > I saw the same problem in reaktivate where we xembed a wine window as > > well. But only sometimes and under certain conditions. I'd think it's a > > general issue with wine and embedding. > > Do you know any clever debugging techniques we could use to see what > exactly is happening? Perhaps it would allow us to make patch for wine. Not exactly, but be warned: debugging wine is a PITA at first. I never looked into this one any further, but I'd guess a good start would be to trace any message like WM_MOUSEMOVE, WM_{L,M,R}BTNCLICK etc. for their coordinates. IIRC the problem didn't show up until the embed parent was moved, e.g. the coords are right in the starting position but after moving the konqueror window around or after a relayout they sometimes end up wrongly translated. Maybe someone one wine-devel has more useful hints about this... -- Malte Starostik PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A 27CD 5431 7745 D2F3 C787] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: signature URL: From porten at trolltech.com Sat Jul 6 19:40:45 2002 From: porten at trolltech.com (Harri Porten) Date: Sat, 6 Jul 2002 20:40:45 +0200 (CEST) Subject: KJS crash: var v=[]; v[0]=v; var w=""+v; In-Reply-To: References: Message-ID: On Fri, 5 Jul 2002, Koos Vriezen wrote: > Its probably very bad javascript, I wouldn't know of any (finite) result at least. > but would be nice if it didn't crash kjs. I moved the recently added safe guard against function f() { f(); } to a more general position. The infinite recursive call to toString() is now stopped with an exception (that can even be caught in the script!) at the arbritrary level of 1000. Thanks for finding this one, Harri. P.S. NS 4.7 segfaulted on this one, too. Didn't try any other browser. From koos.vriezen at xs4all.nl Sat Jul 6 21:11:01 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Sat, 6 Jul 2002 22:11:01 +0200 (CEST) Subject: KJS crash: var v=[]; v[0]=v; var w=""+v; In-Reply-To: References: Message-ID: On Sat, 6 Jul 2002, Harri Porten wrote: > On Fri, 5 Jul 2002, Koos Vriezen wrote: > > > Its probably very bad javascript, > > I wouldn't know of any (finite) result at least. Both bugs I send yesterday, where from my attempt to improve org.kde.javascript.JSObject.decls javascript declarations. Must be my bad luck day :) > more general position. The infinite recursive call to toString() is now > stopped with an exception (that can even be caught in the script!) at the > arbritrary level of 1000. Interesting, never used the try/catch in JS. Hmm, this object being thrown, doesn't seem to show useful error information: try { var v=[]; v[0]=v; var w=""+v; } catch(e) { var s = ""; for (var i in e) s += i + "=" + e[i] + "\n"; alert(""+ e + "\n" + s + "\n" + s.message); } shows an alert box with: TypeError: No default value name=TypeError message=No default value message=No default value undefined > P.S. NS 4.7 segfaulted on this one, too. Didn't try any other browser. Mozilla makes an empty string of w. Koos From till at snafu.de Sat Jul 6 22:12:03 2002 From: till at snafu.de (Till Krech) Date: Sat, 6 Jul 2002 23:12:03 +0200 Subject: NSPlugin changes In-Reply-To: <200207061953.14841.malte@kde.org> References: <200207042117.44807.staikos@kde.org> <200207061129.33328.staikos@kde.org> <200207061953.14841.malte@kde.org> Message-ID: <200207062312.03651.till@snafu.de> On Saturday 06 July 2002 19:53, Malte Starostik wrote: > Am Saturday 06 July 2002 17:29 schrieb George Staikos: > > On July 5, 2002 22:57, Malte Starostik wrote: > > > Am Friday 05 July 2002 16:29 schrieb George Staikos: > > > > On Friday 05 July 2002 04:42, Dirk Mueller wrote: > > > > > On Don, 04 Jul 2002, staikos George Staikos wrote: > > > > > > What it doesn't do: Unfortunately it doesn't fix the crossover > > > > > > problem with mouse coordinates not mapping properly. I still > > > > > > maintain that this is a crossover bug. Perhaps they have fixed > > > > > > it since my version 1.1.0? > > > > > > > > > > it happens because we reparent after the plugin being loaded.. > > > > > > > > Why is that the only affected plugin then? I have yet to find > > > > another plugin which has this problem. Using xwininfo revealed some > > > > details on where the mouse clicks were interpreted to be, but that > > > > was long ago and I forget the details now. I didn't get a response > > > > from the crossover guys when I emailed them about this. > > > > > > I saw the same problem in reaktivate where we xembed a wine window as > > > well. But only sometimes and under certain conditions. I'd think it's a > > > general issue with wine and embedding. > > > > Do you know any clever debugging techniques we could use to see what > > exactly is happening? Perhaps it would allow us to make patch for wine. > > Not exactly, but be warned: debugging wine is a PITA at first. I never > looked into this one any further, but I'd guess a good start would be to > trace any message like WM_MOUSEMOVE, WM_{L,M,R}BTNCLICK etc. for their > coordinates. IIRC the problem didn't show up until the embed parent was > moved, e.g. the coords are right in the starting position but after moving > the konqueror window around or after a relayout they sometimes end up > wrongly translated. Maybe someone one wine-devel has more useful hints > about this... This sounds like the same problem, I saw with java applets. Could you please try the attached pach for kdelibs/kdeui/qxembed.cpp and test if the problem still persists ? Please note that this is not a fix. If this patch is applied we will have problems with java applets again. greetings, till -- SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP KDE: 3.0.6 (KDE 3.1 alpha1) Qt: 3.0.4 -------------- next part -------------- A non-text attachment was scrubbed... Name: qxembed.diff Type: text/x-diff Size: 658 bytes Desc: not available URL: From moritz at moeller-herrmann.de Sun Jul 7 00:13:17 2002 From: moritz at moeller-herrmann.de (Moritz Moeller-Herrmann) Date: Sun, 7 Jul 2002 01:13:17 +0200 Subject: NSPlugin changes Message-ID: <200207070113.17599.moritz@moeller-herrmann.de> George Staikos wrote: >> > I tested flash and crossover and both work nicely for me with these >> > patches. >> >> Could you also have a look at the CoPyCat plugin for cpc compressed >> files? ATM it crashes the nspluginviewer. >> http://www.cartesianinc.com/Products/Copycat/ > > I will do so asap, but in the meantime, could you get me a backtrace > please? If you really want one, I would have to compile a KDE with debug info. Do you want a backtrace of KDE head or KDE-3.0 branch? (Both crash on the latest SuSE rpms, including adrian's) -- Moritz Moeller-Herrmann mmh at gmx.net wiss. Mitarbeiter, IMGB La loi, dans un grand souci d'égalité, interdit aux riches comme aux pauvres de coucher sous les ponts, de mendier dans les rues et de voler du pain. (ANATOLE FRANCE) From macolu2002 at yahoo.fr Sun Jul 7 20:49:13 2002 From: macolu2002 at yahoo.fr (Macolu) Date: Sun, 7 Jul 2002 21:49:13 +0200 Subject: Bug in CVS HEAD ? Can't copy file with accents Message-ID: <200207072149.13904.macolu2002@yahoo.fr> I'm having this problem for about one week I create a file or a folder, and I call it "é" for example (in the /root folder). This file is correctly created. Then, if I try to copy it, I got a error message telling me that the file or directory "/root/é" (hope you will see it correctly !) does not exist. Is it the same for you ? From staikos at kde.org Sun Jul 7 22:09:49 2002 From: staikos at kde.org (George Staikos) Date: Sun, 7 Jul 2002 17:09:49 -0400 Subject: NSPlugin changes In-Reply-To: <200207070113.17599.moritz@moeller-herrmann.de> References: <200207070113.17599.moritz@moeller-herrmann.de> Message-ID: <200207071709.49715.staikos@kde.org> On July 6, 2002 19:13, Moritz Moeller-Herrmann wrote: > George Staikos wrote: > >> > I tested flash and crossover and both work nicely for me with these > >> > patches. > >> > >> Could you also have a look at the CoPyCat plugin for cpc compressed > >> files? ATM it crashes the nspluginviewer. > >> http://www.cartesianinc.com/Products/Copycat/ > > > > I will do so asap, but in the meantime, could you get me a backtrace > > please? > > If you really want one, I would have to compile a KDE with debug info. Do > you want a backtrace of KDE head or KDE-3.0 branch? > (Both crash on the latest SuSE rpms, including adrian's) That plugin doesn't work for me in NS 4.x or Konqueror. It just doesn't even load (though they both clearly try to load it). -- George Staikos From hetz at kde.org Mon Jul 8 11:53:03 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Mon, 8 Jul 2002 13:53:03 +0300 Subject: why the % cruft? Message-ID: <200207081353.03199.hetz@kde.org> Hi, One of my biggest problems with Konqueror is it's usage of % stuff for non latin-1 while other browsers (MSIE, Galeon/Mozilla) doesn't seem to have this problem.. I understand that this was due to QT-2 lack of Unicode support, but we're using QT-3 now (at least I think that why the % was, unless I'm wrong), and it's very hard to use Konq. URL's with this - specially when you put a URL with non latin-1 chars... here's an example: With Mozilla, if I want to enter a hebrew chat room - I use: http://chat1.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30פלוס%20àéëåúé&nick=àîéø194úà With konqueror: http://chat1.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30%20ôìåñ%20àéëåúé&nick=%3F%3F%3F%3F%3F%3F%3F%3F%3F%3F and even that - it seems that konq. always trying to convert the URL into latin-1 chars (and the konq case of the above it squashed the hebrew chars) Could the URL handling be done in fully Unicode please? Thanks, Hetz From porten at trolltech.com Mon Jul 8 14:00:30 2002 From: porten at trolltech.com (Harri Porten) Date: Mon, 8 Jul 2002 15:00:30 +0200 (CEST) Subject: KJS crash: var v=[]; v[0]=v; var w=""+v; In-Reply-To: References: Message-ID: On Sat, 6 Jul 2002, Koos Vriezen wrote: > Interesting, never used the try/catch in JS. Hmm, this object being > thrown, doesn't seem to show useful error information: > shows an alert box with: > TypeError: No default value > name=TypeError > message=No default value > message=No default value Hmmm. With the other kind of recursion (khtmltests/js/crash-2.js) I get the expected name (RangeError) and message (Maximum call stack size exceeded). Looks like the "No default value" is overwriting the other one. Is this a problem ? It's an exception after all. Just coming from a higher level. > > P.S. NS 4.7 segfaulted on this one, too. Didn't try any other browser. > > Mozilla makes an empty string of w. Hmmm. Would require more work. Tell me if you ever have a problem with this difference in a real world script. Harri. From mueller at kde.org Mon Jul 8 15:47:02 2002 From: mueller at kde.org (Dirk Mueller) Date: Mon, 8 Jul 2002 16:47:02 +0200 Subject: why the % cruft? In-Reply-To: <200207081353.03199.hetz@kde.org> References: <200207081353.03199.hetz@kde.org> Message-ID: <20020708144702.GA3849@matrix.wg> On Mon, 08 Jul 2002, Hetz Ben Hamo wrote: > One of my biggest problems with Konqueror is it's usage of % stuff for non > latin-1 while other browsers (MSIE, Galeon/Mozilla) doesn't seem to have this > problem.. This is a KURL "feature", not related to Konqueror. I'm not sure if there is a reason why KURL behaves different from IE or Mozilla. Dirk From craig at physics.ubc.ca Mon Jul 8 16:29:13 2002 From: craig at physics.ubc.ca (Craig Jones) Date: Mon, 08 Jul 2002 08:29:13 -0700 Subject: Views and "Use index.html" Message-ID: <3D29AFC9.5050801@physics.ubc.ca> Hi, For a long time now I have wanted to try and figure out how to make the "Use index.html" a property of the current view rather than all views in the main window. Is this an easy change (i.e. would it be easy for someone who has not worked on the kde project to try and figure it out)? Is this planned at all in the near future? Craig From koos.vriezen at xs4all.nl Mon Jul 8 16:40:27 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Mon, 8 Jul 2002 17:40:27 +0200 (CEST) Subject: KJS crash: var v=[]; v[0]=v; var w=""+v; In-Reply-To: References: Message-ID: On Mon, 8 Jul 2002, Harri Porten wrote: > On Sat, 6 Jul 2002, Koos Vriezen wrote: > > > Interesting, never used the try/catch in JS. Hmm, this object being > > thrown, doesn't seem to show useful error information: > > > shows an alert box with: > > TypeError: No default value > > name=TypeError > > message=No default value > > message=No default value > > Hmmm. With the other kind of recursion (khtmltests/js/crash-2.js) I get > the expected name (RangeError) and message (Maximum call stack size > exceeded). Looks like the "No default value" is overwriting the other one. > Is this a problem ? It's an exception after all. Just coming from a higher > level. > > > > P.S. NS 4.7 segfaulted on this one, too. Didn't try any other browser. > > > > Mozilla makes an empty string of w. > > Hmmm. Would require more work. Tell me if you ever have a problem with > this difference in a real world script. No, no problem, just reported what I saw. Thanks for fixing this bug and pointing me to the try/catch possibility. Koos From lucy-ples at mtu-net.ru Mon Jul 8 17:12:53 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Mon, 8 Jul 2002 20:12:53 +0400 Subject: why the % cruft? In-Reply-To: <20020708144702.GA3849@matrix.wg> References: <200207081353.03199.hetz@kde.org> <20020708144702.GA3849@matrix.wg> Message-ID: <200207082012.53067.lucy-ples@mtu-net.ru> On Monday 08 July 2002 6:47 pm, Dirk Mueller wrote: | On Mon, 08 Jul 2002, Hetz Ben Hamo wrote: | > One of my biggest problems with Konqueror is it's usage of % stuff for | > non latin-1 while other browsers (MSIE, Galeon/Mozilla) doesn't seem to | > have this problem.. | | This is a KURL "feature", not related to Konqueror. I'm not sure if there | is a reason why KURL behaves different from IE or Mozilla. | And, BTW, KURL is the reason why you can't create and use IMAP folders with Cyrillic (or non-Latin) names. KMail , in fact, can *create* such folder, but can't access it later because of misformed URL. Try to create folder name as "пример" ("example" in Russian), and you will see the problem. Check my bug report about that: http://bugs.kde.org/db/43/43889.html There was similar bug report about Google, Konq wrongly encodes URL from Google search if you search for non-Latin word. Again, open Google and type "пример" in Search box. Than hit Search. You will get: http://www.google.com/search?hl=en&ie=ISO-8859-1&q=%3F%3F%3F%3F%3F%3F&btnG=Google+Search | | Dirk -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From bastian at kde.org Mon Jul 8 18:23:59 2002 From: bastian at kde.org (Waldo Bastian) Date: Mon, 8 Jul 2002 10:23:59 -0700 Subject: why the % cruft? In-Reply-To: <200207081353.03199.hetz@kde.org> References: <200207081353.03199.hetz@kde.org> Message-ID: <200207081023.59713.bastian@kde.org> On Monday 08 July 2002 03:53 am, Hetz Ben Hamo wrote: > Hi, > > One of my biggest problems with Konqueror is it's usage of % stuff for non > latin-1 while other browsers (MSIE, Galeon/Mozilla) doesn't seem to have > this problem.. > > I understand that this was due to QT-2 lack of Unicode support, but we're > using QT-3 now (at least I think that why the % was, unless I'm wrong), and > it's very hard to use Konq. URL's with this - specially when you put a URL > with non latin-1 chars... URLs are spec'ed as a sequence of octets (8-bit values) "Unicode URLs" basically don't exist. Despite that we try to handle them anyway and appearantly that doesn't always work. (E.g. we need to convert unicode to an 8 bit sequence before we can tranfer it to the website but the encoding to use for that is unspecified, so we can only guess.) Which locale are you using? Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From bastian at kde.org Mon Jul 8 18:28:43 2002 From: bastian at kde.org (Waldo Bastian) Date: Mon, 8 Jul 2002 10:28:43 -0700 Subject: why the % cruft? In-Reply-To: <200207082012.53067.lucy-ples@mtu-net.ru> References: <200207081353.03199.hetz@kde.org> <20020708144702.GA3849@matrix.wg> <200207082012.53067.lucy-ples@mtu-net.ru> Message-ID: <200207081028.43136.bastian@kde.org> On Monday 08 July 2002 09:12 am, Vadim Plessky wrote: > There was similar bug report about Google, Konq wrongly encodes URL from > Google search if you search for non-Latin word. > Again, open Google and type "пример" in Search box. Than hit Search. You > will get: > http://www.google.com/search?hl=en&ie=ISO-8859-1&q=%3F%3F%3F%3F%3F%3F&btnG= >Google+Search How do you propose to express such query in ISO-8859-1? Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From hetz at kde.org Mon Jul 8 20:04:43 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Mon, 8 Jul 2002 22:04:43 +0300 Subject: why the % cruft? In-Reply-To: <200207081028.43136.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207082012.53067.lucy-ples@mtu-net.ru> <200207081028.43136.bastian@kde.org> Message-ID: <200207082204.43725.hetz@kde.org> The question is - why only ISO 8859-1 and not in UTF (8 or 16)? Hetz On Monday 08 July 2002 20:28, Waldo Bastian wrote: > On Monday 08 July 2002 09:12 am, Vadim Plessky wrote: > > There was similar bug report about Google, Konq wrongly encodes URL from > > Google search if you search for non-Latin word. > > Again, open Google and type "������" in Search box. Than hit Search. You > > will get: > > http://www.google.com/search?hl=en&ie=ISO-8859-1&q=%3F%3F%3F%3F%3F%3F&btn > >G= Google+Search > > How do you propose to express such query in ISO-8859-1? > > Cheers, > Waldo From bastian at kde.org Mon Jul 8 20:33:39 2002 From: bastian at kde.org (Waldo Bastian) Date: Mon, 8 Jul 2002 12:33:39 -0700 Subject: why the % cruft? In-Reply-To: <200207082204.43725.hetz@kde.org> References: <200207081353.03199.hetz@kde.org> <200207081028.43136.bastian@kde.org> <200207082204.43725.hetz@kde.org> Message-ID: <200207081231.22344.bastian@kde.org> I don't know. The web-page is in ISO-8859-1 so we send in that encoding. We can send in utf-8 but I doubt that will work if the webserver expects iso-8859-1. Since google adds "ie=ISO-8859-1" itself I strongly suspect that it expects to receive iso-8859-1. We can't send utf-16 because HTTP is a 8-bit protocol, not 16-bit. Cheers, Waldo On Monday 08 July 2002 12:04 pm, Hetz Ben Hamo wrote: > The question is - why only ISO 8859-1 and not in UTF (8 or 16)? > > Hetz > > On Monday 08 July 2002 20:28, Waldo Bastian wrote: > > On Monday 08 July 2002 09:12 am, Vadim Plessky wrote: > > > There was similar bug report about Google, Konq wrongly encodes URL > > > from Google search if you search for non-Latin word. > > > Again, open Google and type "������" in Search box. Than hit Search. > > > You will get: > > > http://www.google.com/search?hl=en&ie=ISO-8859-1&q=%3F%3F%3F%3F%3F%3F&b > > >tn G= Google+Search > > > > How do you propose to express such query in ISO-8859-1? > > > > Cheers, > > Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From germain at ebooksfrance.com Mon Jul 8 20:49:54 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Mon, 8 Jul 2002 20:49:54 +0100 Subject: why the % cruft? In-Reply-To: <200207082204.43725.hetz@kde.org> References: <200207081353.03199.hetz@kde.org> <200207081028.43136.bastian@kde.org> <200207082204.43725.hetz@kde.org> Message-ID: <200207082049.54039.germain@ebooksfrance.com> Le Lundi 08 Juillet 2002 20:04, Hetz Ben Hamo a écrit : > The question is - why only ISO 8859-1 and not in UTF (8 or 16)? This is a Google preference - nothing to do with konqui. http://www.google.com/preferences -> russian or use the "gg:" shortcut, it is set to use UTF-8 Best, Germain From mueller at kde.org Mon Jul 8 21:10:28 2002 From: mueller at kde.org (Dirk Mueller) Date: Mon, 8 Jul 2002 22:10:28 +0200 Subject: why the % cruft? In-Reply-To: <200207081231.22344.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207081028.43136.bastian@kde.org> <200207082204.43725.hetz@kde.org> <200207081231.22344.bastian@kde.org> Message-ID: <20020708201028.GA20113@matrix.wg> On Mon, 08 Jul 2002, Waldo Bastian wrote: > I don't know. The web-page is in ISO-8859-1 so we send in that encoding. We > can send in utf-8 but I doubt that will work if the webserver expects > iso-8859-1. Since google adds "ie=ISO-8859-1" itself I strongly suspect that > it expects to receive iso-8859-1. We can't send utf-16 because HTTP is a > 8-bit protocol, not 16-bit. I've seen google already switching to utf-8 in konqueror, but after some more kdelibs updates its now latin-1 again. Dirk From hetz at kde.org Mon Jul 8 21:14:34 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Mon, 8 Jul 2002 23:14:34 +0300 Subject: why the % cruft? In-Reply-To: <20020708201028.GA20113@matrix.wg> References: <200207081353.03199.hetz@kde.org> <200207081231.22344.bastian@kde.org> <20020708201028.GA20113@matrix.wg> Message-ID: <200207082314.34221.hetz@kde.org> As I asked Waldo in a private email - could there be an option added to either select ISO-8859-1 or UTF-8 please (or any other encoding as long as it's 8 bit)? Thanks, Hetz On Monday 08 July 2002 23:10, Dirk Mueller wrote: > On Mon, 08 Jul 2002, Waldo Bastian wrote: > > I don't know. The web-page is in ISO-8859-1 so we send in that encoding. > > We can send in utf-8 but I doubt that will work if the webserver expects > > iso-8859-1. Since google adds "ie=ISO-8859-1" itself I strongly suspect > > that it expects to receive iso-8859-1. We can't send utf-16 because HTTP > > is a 8-bit protocol, not 16-bit. > > I've seen google already switching to utf-8 in konqueror, but after some > more kdelibs updates its now latin-1 again. > > > Dirk From mueller at kde.org Mon Jul 8 21:35:38 2002 From: mueller at kde.org (Dirk Mueller) Date: Mon, 8 Jul 2002 22:35:38 +0200 Subject: why the % cruft? In-Reply-To: <200207081231.22344.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207081028.43136.bastian@kde.org> <200207082204.43725.hetz@kde.org> <200207081231.22344.bastian@kde.org> Message-ID: <20020708203538.GA17126@matrix.wg> On Mon, 08 Jul 2002, Waldo Bastian wrote: > I don't know. The web-page is in ISO-8859-1 so we send in that encoding. We > can send in utf-8 but I doubt that will work if the webserver expects > iso-8859-1. Since google adds "ie=ISO-8859-1" itself I strongly suspect that > it expects to receive iso-8859-1. We can't send utf-16 because HTTP is a > 8-bit protocol, not 16-bit. FYI Microsoft IE uses utf-8 for urls (there is a checkbox in the advanced configuration tab, enabled by default). I doubt that there are many pages that don't work with IE. Dirk From staikos at kde.org Tue Jul 9 03:55:36 2002 From: staikos at kde.org (George Staikos) Date: Tue, 9 Jul 2002 04:55:36 +0200 (CEST) Subject: kdebase/nsplugins/viewer Message-ID: <20020709025536.431B96140@office.kde.org> kdebase/nsplugins/viewer NSPluginClassIface.h,1.15,1.16 nsplugin.cpp,1.71,1.72 nsplugin.h,1.30,1.31 Author: staikos Modified Files: NSPluginClassIface.h nsplugin.cpp nsplugin.h Log Message: Fix WINE based plugins so that mouse coordinates are correct. Hm I guess this also applies to any other coordinate based things that the plugin does. This is a 3.0.3 candidate as well. This in conjunction with QXEmbed changes should fix most outstanding bugs in nsplugins. Now it's safe to add more features I think. CCMAIL: kfm-devel at mail.kde.org From staikos at kde.org Tue Jul 9 03:55:36 2002 From: staikos at kde.org (George Staikos) Date: Tue, 9 Jul 2002 04:55:36 +0200 (CEST) Subject: kdebase/nsplugins Message-ID: kdebase/nsplugins nspluginloader.cpp,1.26,1.27 Author: staikos Modified Files: nspluginloader.cpp Log Message: Fix WINE based plugins so that mouse coordinates are correct. Hm I guess this also applies to any other coordinate based things that the plugin does. This is a 3.0.3 candidate as well. This in conjunction with QXEmbed changes should fix most outstanding bugs in nsplugins. Now it's safe to add more features I think. CCMAIL: kfm-devel at mail.kde.org From staikos at kde.org Tue Jul 9 03:57:07 2002 From: staikos at kde.org (George Staikos) Date: Mon, 8 Jul 2002 22:57:07 -0400 Subject: kdebase/nsplugins In-Reply-To: <20020709025536.1B3F630E7@office.kde.org> References: <20020709025536.1B3F630E7@office.kde.org> Message-ID: <200207082257.07761.staikos@kde.org> On July 8, 2002 22:55, George Staikos wrote: > Fix WINE based plugins so that mouse coordinates are correct. Hm I guess > this also applies to any other coordinate based things that the plugin > does. > > This is a 3.0.3 candidate as well. This in conjunction with QXEmbed > changes should fix most outstanding bugs in nsplugins. Now it's safe to > add more features I think. Argh I suspect this broke something else now. I tested for 10 minutes without problems, and just after I commit, I see a problem. -- George Staikos From lars at trolltech.com Tue Jul 9 08:01:42 2002 From: lars at trolltech.com (Lars Knoll) Date: Tue, 9 Jul 2002 09:01:42 +0200 Subject: why the % cruft? In-Reply-To: <200207081023.59713.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207081023.59713.bastian@kde.org> Message-ID: <200207090901.42475.lars@trolltech.com> > On Monday 08 July 2002 03:53 am, Hetz Ben Hamo wrote: > > Hi, > > > > One of my biggest problems with Konqueror is it's usage of % stuff for > > non latin-1 while other browsers (MSIE, Galeon/Mozilla) doesn't seem to > > have this problem.. > > > > I understand that this was due to QT-2 lack of Unicode support, but we're > > using QT-3 now (at least I think that why the % was, unless I'm wrong), > > and it's very hard to use Konq. URL's with this - specially when you put > > a URL with non latin-1 chars... > > URLs are spec'ed as a sequence of octets (8-bit values) "Unicode URLs" > basically don't exist. Despite that we try to handle them anyway and > appearantly that doesn't always work. (E.g. we need to convert unicode to > an 8 bit sequence before we can tranfer it to the website but the encoding > to use for that is unspecified, so we can only guess.) As Dirk already pointed out, IE sends URLS in utf8 by default. I'm pretty sure we could do the same without breaking a lot of web pages (they'd be broken with IE aswell). Maybe there's an HTTP header field we can set to indicate this? Cheers, Lars From bastian at kde.org Tue Jul 9 08:15:07 2002 From: bastian at kde.org (Waldo Bastian) Date: Tue, 9 Jul 2002 00:15:07 -0700 Subject: why the % cruft? In-Reply-To: <200207090901.42475.lars@trolltech.com> References: <200207081353.03199.hetz@kde.org> <200207081023.59713.bastian@kde.org> <200207090901.42475.lars@trolltech.com> Message-ID: <200207090015.07974.bastian@kde.org> On Tuesday 09 July 2002 12:01 am, Lars Knoll wrote: > > URLs are spec'ed as a sequence of octets (8-bit values) "Unicode URLs" > > basically don't exist. Despite that we try to handle them anyway and > > appearantly that doesn't always work. (E.g. we need to convert unicode to > > an 8 bit sequence before we can tranfer it to the website but the > > encoding to use for that is unspecified, so we can only guess.) > > As Dirk already pointed out, IE sends URLS in utf8 by default. I'm pretty > sure we could do the same without breaking a lot of web pages (they'd be > broken with IE aswell). Maybe there's an HTTP header field we can set to > indicate this? My impression was that many non-latin1 (e.g. russian, japanese, korean, etc.) websites use the "local locale" as encoding and not utf8. Maybe Vadim can comment on that from the Russian point of view. Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From hetz at kde.org Tue Jul 9 08:41:51 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Tue, 9 Jul 2002 10:41:51 +0300 Subject: JS problem Message-ID: <200207091041.51317.hetz@kde.org> Hi, The following web site (which needs UA as MSIE) doesn't let me login in konq. at all.. http://www.jobinfo.co.il it's hebrew text, but the login is a bit to the left (the 2 empty lines) - try to put any text and click on the "log in" button - it doesn't work. If you put a password and press Enter - it does... Hetz From lucy-ples at mtu-net.ru Tue Jul 9 09:55:35 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Tue, 9 Jul 2002 12:55:35 +0400 Subject: why the % cruft? In-Reply-To: <200207081028.43136.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207082012.53067.lucy-ples@mtu-net.ru> <200207081028.43136.bastian@kde.org> Message-ID: <200207091255.35732.lucy-ples@mtu-net.ru> On Monday 08 July 2002 9:28 pm, Waldo Bastian wrote: | On Monday 08 July 2002 09:12 am, Vadim Plessky wrote: | > There was similar bug report about Google, Konq wrongly encodes URL from | > Google search if you search for non-Latin word. | > Again, open Google and type "пример" in Search box. Than hit Search. You | > will get: | > http://www.google.com/search?hl=en&ie=ISO-8859-1&q=%3F%3F%3F%3F%3F%3F&bt | >nG= Google+Search | | How do you propose to express such query in ISO-8859-1? Instead of %3F%3F%3F%3F%3F%3F should be codes for Cyrillic letters. And encoding should be cp1251, I guess - it's 8-bit encoding and it has all Cyrillic characters in second half of 256-char table. BTW: I have no idea why Google translate response page to iso-8859-1. if you launch http://www.google.com.ru/ and serach for "пример", URL would be: http://www.google.com.ru/search?q=%EF%F0%E8%EC%E5%F0&ie=windows-1251&hl=ru&btnG=%CF%EE%E8%F1%EA+%E2+Google So, in some cases, Google uses cp1251 encoding instead of iso8859-1. And my example below just demonstrates bug on Google's main page. Anyway, problem with IMAP folder names is different. IMAP folders has names in modified UTF7 encoding, according to RFC. KMAil can create folder name. But can't display it later, because of KURL. | | Cheers, | Waldo Cheers, -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From lucy-ples at mtu-net.ru Tue Jul 9 09:56:21 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Tue, 9 Jul 2002 12:56:21 +0400 Subject: why the % cruft? In-Reply-To: <200207081231.22344.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207082204.43725.hetz@kde.org> <200207081231.22344.bastian@kde.org> Message-ID: <200207091256.21883.lucy-ples@mtu-net.ru> On Monday 08 July 2002 11:33 pm, Waldo Bastian wrote: | I don't know. The web-page is in ISO-8859-1 so we send in that encoding. | We can send in utf-8 but I doubt that will work if the webserver expects | iso-8859-1. Since google adds "ie=ISO-8859-1" itself I strongly suspect | that it expects to receive iso-8859-1. We can't send utf-16 because HTTP is | a 8-bit protocol, not 16-bit. ok, what about IMAP folder names than? | | Cheers, | Waldo | | On Monday 08 July 2002 12:04 pm, Hetz Ben Hamo wrote: | > The question is - why only ISO 8859-1 and not in UTF (8 or 16)? | > | > Hetz | > | > On Monday 08 July 2002 20:28, Waldo Bastian wrote: | > > On Monday 08 July 2002 09:12 am, Vadim Plessky wrote: | > > > There was similar bug report about Google, Konq wrongly encodes URL | > > > from Google search if you search for non-Latin word. | > > > Again, open Google and type "������" in Search box. Than hit Search. | > > > You will get: | > > > http://www.google.com/search?hl=en&ie=ISO-8859-1&q=%3F%3F%3F%3F%3F%3 | > > >F&b tn G= Google+Search | > > | > > How do you propose to express such query in ISO-8859-1? | > > | > > Cheers, | > > Waldo -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From david at mandrakesoft.com Tue Jul 9 10:11:23 2002 From: david at mandrakesoft.com (David Faure) Date: Tue, 9 Jul 2002 11:11:23 +0200 Subject: Views and "Use index.html" In-Reply-To: <3D29AFC9.5050801@physics.ubc.ca> References: <3D29AFC9.5050801@physics.ubc.ca> Message-ID: <200207091111.23167.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 08 July 2002 17:29, Craig Jones wrote: > Hi, > > For a long time now I have wanted to try and figure out how to make the > "Use index.html" a property of the current view rather than all views in > the main window. Settings / Save view properties in directory (then activate "Use index.html") - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9Kqi772KcVAmwbhARAoERAKCQyJQjxokIm0RmlApLgebb8JKEaQCgi8G5 q/lMdHKb57677FIIVB71wPU= =jz6z -----END PGP SIGNATURE----- From david at mandrakesoft.com Tue Jul 9 10:13:57 2002 From: david at mandrakesoft.com (David Faure) Date: Tue, 9 Jul 2002 11:13:57 +0200 Subject: JS problem In-Reply-To: <200207091041.51317.hetz@kde.org> References: <200207091041.51317.hetz@kde.org> Message-ID: <200207091113.57784.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 09 July 2002 09:41, Hetz Ben Hamo wrote: > Hi, > > The following web site (which needs UA as MSIE) doesn't let me login in konq. > at all.. > > http://www.jobinfo.co.il > > it's hebrew text, but the login is a bit to the left (the 2 empty lines) - try > to put any text and click on the "log in" button - it doesn't work. If you > put a password and press Enter - it does... which means it expects a password? how is that a bug? - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9KqlV72KcVAmwbhARAuuOAKCpQOnIhh5PNWoPxXvvRMsvSkgcqQCfW6LM nT2bCc7/YSFUfEs2UwaBo2o= =EU6b -----END PGP SIGNATURE----- From hetz at kde.org Tue Jul 9 10:17:55 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Tue, 9 Jul 2002 12:17:55 +0300 Subject: JS problem In-Reply-To: <200207091113.57784.david@mandrakesoft.com> References: <200207091041.51317.hetz@kde.org> <200207091113.57784.david@mandrakesoft.com> Message-ID: <200207091217.55865.hetz@kde.org> Huh??? AFTER I'm typing my username and password and click on the "log in" it doesn't do anything.. Hetz On Tuesday 09 July 2002 12:13, David Faure wrote: > On Tuesday 09 July 2002 09:41, Hetz Ben Hamo wrote: > > Hi, > > > > The following web site (which needs UA as MSIE) doesn't let me login in > > konq. at all.. > > > > http://www.jobinfo.co.il > > > > it's hebrew text, but the login is a bit to the left (the 2 empty lines) > > - try to put any text and click on the "log in" button - it doesn't work. > > If you put a password and press Enter - it does... > > which means it expects a password? how is that a bug? From lucy-ples at mtu-net.ru Tue Jul 9 11:27:57 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Tue, 9 Jul 2002 14:27:57 +0400 Subject: why the % cruft? In-Reply-To: <200207082049.54039.germain@ebooksfrance.com> References: <200207081353.03199.hetz@kde.org> <200207082204.43725.hetz@kde.org> <200207082049.54039.germain@ebooksfrance.com> Message-ID: <200207091427.57140.lucy-ples@mtu-net.ru> On Monday 08 July 2002 11:49 pm, Germain Garand wrote: | Le Lundi 08 Juillet 2002 20:04, Hetz Ben Hamo a écrit : | > The question is - why only ISO 8859-1 and not in UTF (8 or 16)? | | This is a Google preference - nothing to do with konqui. | http://www.google.com/preferences -> russian | or use the "gg:" shortcut, it is set to use UTF-8 wrong! Try gg:пример and you will get http://www.google.com/search?q=%3F%3F%3F%3F%3F%3F IIRC this behavior/scenario has been reported already (don't remember bug no.) As about preferences: they are not required under Windows (MS IE). So we need to fix Konq and KURL here, and release KDE 3.0.3 with this fix. | | Best, | Germain -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From lucy-ples at mtu-net.ru Tue Jul 9 11:45:08 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Tue, 9 Jul 2002 14:45:08 +0400 Subject: why the % cruft? In-Reply-To: <200207090015.07974.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207090901.42475.lars@trolltech.com> <200207090015.07974.bastian@kde.org> Message-ID: <200207091445.08218.lucy-ples@mtu-net.ru> On Tuesday 09 July 2002 11:15 am, Waldo Bastian wrote: | On Tuesday 09 July 2002 12:01 am, Lars Knoll wrote: | > > URLs are spec'ed as a sequence of octets (8-bit values) "Unicode URLs" | > > basically don't exist. Despite that we try to handle them anyway and | > > appearantly that doesn't always work. (E.g. we need to convert unicode | > > to an 8 bit sequence before we can tranfer it to the website but the | > > encoding to use for that is unspecified, so we can only guess.) | > | > As Dirk already pointed out, IE sends URLS in utf8 by default. I'm | > pretty sure we could do the same without breaking a lot of web pages | > (they'd be broken with IE aswell). Maybe there's an HTTP header field we | > can set to indicate this? | | My impression was that many non-latin1 (e.g. russian, japanese, korean, | etc.) websites use the "local locale" as encoding and not utf8. Maybe Vadim | can comment on that from the Russian point of view. ok, in my Linux setup (I use English locale, as I don't need Cyrillic in console, etc.) - I tried to do the same task (search with Google) for Cyrillic word, now Using Mozilla (1.0-rc2). First Mozilla redirected me from Google.com to google.com.ru, and I tried same word 'пример' from that page a) http://www.google.com.ru/search?q=%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80&ie=UTF-8&oe=UTF-8&hl=ru&btnG=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA+%D0%B2+Google So, despite being on web page dispalyed in Cyrillic, Google transformed search word (URL) to UTF8. Than I forced Mozilla to http://www.google.com/en (Google in English button) b) Result: http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80&btnG=Google+Search So, difference was: a) hl=ru b) hl=en but in both cases: ie=UTF-8&oe=UTF-8 (don't know though what's the difference between those two fileds) Than I took serach engine with local roots ;-) Yandex (which claims to be the biggest serach engine here: http://www.yandex.ru word: пример Result: http://www.yandex.ru/yandsearch?text=%EF%F0%E8%EC%E5%F0 So, Yandex *doesn't encode* URL and doesn't use UTF. As far as I can see, they use windows-1251 (cp1251) by default, and encode URL using cp1251 encoding, without extra fields. Another big search engine, Rambler: http://www.rambler.ru word: пример http://search.rambler.ru/cgi-bin/rambler_search?words=%D0%D2%C9%CD%C5%D2&where=1 And those guys return page in 'koi8-r' (not in 'cp1251')! Encoding values are also different... So, it seems that *returning URL string in same encoding as original page", is valid (and existing) approach. But Google is probably has the best solution, using UTF8 by default. We can't change other search engines, though... | | Cheers, | Waldo -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From josh at yucs.org Tue Jul 9 16:55:45 2002 From: josh at yucs.org (Joshua Spoerri) Date: Tue, 9 Jul 2002 11:55:45 -0400 Subject: manual icon placement? Message-ID: <20020709115545.B1705@yucs.org> Is there any way to manually place file icons in konqueror's icon view, such that they don't get rearranged when a new file is created in that directory (or even when the directory is openned later)? If not, are there any plans to add such a feature? Thanks, Josh Spoerri From david at mandrakesoft.com Tue Jul 9 17:17:22 2002 From: david at mandrakesoft.com (David Faure) Date: Tue, 9 Jul 2002 18:17:22 +0200 Subject: manual icon placement? In-Reply-To: <20020709115545.B1705@yucs.org> References: <20020709115545.B1705@yucs.org> Message-ID: <200207091817.22512.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 09 July 2002 17:55, Joshua Spoerri wrote: > Is there any way to manually place file icons in konqueror's icon view, > such that they don't get rearranged when a new file is created in that > directory (or even when the directory is openned later)? Not currently. > If not, are there any plans to add such a feature? Not currently. But I asked for the icon placement saving feature of kdesktop to be done in libkonq, when it was developed, so that one day Konqueror could benefit from it. If you feel like hacking this, it's mostly about calling KonqIconViewWidget::slotSaveIconPositions from konqueror's iconview after moving an icon, and reusing some of kdesktop's KDIconView::slotNewItems in KonqIconView::slotNewItems - to use the saved icon positions. - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9KwyS72KcVAmwbhARAlmOAJ4qEU4OqkkvUMsSXjskPInz1S4vbgCeNN3P O9PXeWgpT8etqNUUZ1jb2u4= =e+qx -----END PGP SIGNATURE----- From lucy-ples at mtu-net.ru Tue Jul 9 17:37:52 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Tue, 9 Jul 2002 20:37:52 +0400 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207090015.07974.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207090901.42475.lars@trolltech.com> <200207090015.07974.bastian@kde.org> Message-ID: <200207092037.52935.lucy-ples@mtu-net.ru> On Tuesday 09 July 2002 11:15 am, Waldo Bastian wrote: | On Tuesday 09 July 2002 12:01 am, Lars Knoll wrote: | > > URLs are spec'ed as a sequence of octets (8-bit values) "Unicode URLs" | > > basically don't exist. Despite that we try to handle them anyway and | > > appearantly that doesn't always work. (E.g. we need to convert unicode | > > to an 8 bit sequence before we can tranfer it to the website but the | > > encoding to use for that is unspecified, so we can only guess.) | > | > As Dirk already pointed out, IE sends URLS in utf8 by default. I'm | > pretty sure we could do the same without breaking a lot of web pages | > (they'd be broken with IE aswell). Maybe there's an HTTP header field we | > can set to indicate this? | | My impression was that many non-latin1 (e.g. russian, japanese, korean, | etc.) websites use the "local locale" as encoding and not utf8. Maybe Vadim | can comment on that from the Russian point of view. I did the same experiment (search for ‘пример’ ) with several Windows browsers I have. Opera 6 / Windows ---------------- http://www.google.com/search?hl=en&ie=ISO-8859-1&q=%3F%3F%3F%3F%3F%3F&btnG=Google+Search --> here Opera fails exactly in a same way as Konqueror http://www.google.com.ru/search?q=%EF%F0%E8%EC%E5%F0&ie=windows-1251&hl=ru&btnG=%CF%EE%E8%F1%EA+%E2+Google Netscape 6/Win ---------------- http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80&btnG=Google+Search http://www.google.com.ru/search?q=%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80&ie=UTF-8&oe=UTF-8&hl=ru&btnG=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA+%D0%B2+Google http://www.yandex.ru/yandsearch?text=%EF%F0%E8%EC%E5%F0 (URL encoded in windows 1251) http://search.rambler.ru/cgi-bin/rambler_search?words=%EF%F0%E8%EC%E5%F0&where=1 (URL encoded in windows 1251) MS IE6 ---------------- http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80&btnG=Google+Search http://www.google.com.ru/search?q=%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80&ie=UTF-8&oe=UTF-8&hl=ru&btnG=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA+%D0%B2+Google And, finally I extracted some words from the mail I have in Chineese: 老蟹 and searched Google for it using Mozilla: Results were quite good, 721 matches (don't ask me what those words mean!...) http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=%E8%80%81%E8%9F%B9&btnG=Google+Search Again, UTF8. So, it seems it's rather safe to encode URL to UTF8, as it's common pratice and acepted not only by MS IE, but by Mozilla aswell. | | Cheers, | Waldo My Best Regards, -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From bastian at kde.org Tue Jul 9 18:35:06 2002 From: bastian at kde.org (Waldo Bastian) Date: Tue, 9 Jul 2002 10:35:06 -0700 Subject: why the % cruft? In-Reply-To: <200207091256.21883.lucy-ples@mtu-net.ru> References: <200207081353.03199.hetz@kde.org> <200207081231.22344.bastian@kde.org> <200207091256.21883.lucy-ples@mtu-net.ru> Message-ID: <200207091035.06060.bastian@kde.org> On Tuesday 09 July 2002 01:56 am, Vadim Plessky wrote: > On Monday 08 July 2002 11:33 pm, Waldo Bastian wrote: > | I don't know. The web-page is in ISO-8859-1 so we send in that encoding. > | We can send in utf-8 but I doubt that will work if the webserver expects > | iso-8859-1. Since google adds "ie=ISO-8859-1" itself I strongly suspect > | that it expects to receive iso-8859-1. We can't send utf-16 because HTTP > | is a 8-bit protocol, not 16-bit. > > ok, what about IMAP folder names than? According to you they should use utf7, so if KMail tells KURL to use utf7 everything should be fine. I didn't know IMAP used URLs as part of its wire-protocol btw. Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From bastian at kde.org Tue Jul 9 18:41:22 2002 From: bastian at kde.org (Waldo Bastian) Date: Tue, 9 Jul 2002 10:41:22 -0700 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207092037.52935.lucy-ples@mtu-net.ru> References: <200207081353.03199.hetz@kde.org> <200207090015.07974.bastian@kde.org> <200207092037.52935.lucy-ples@mtu-net.ru> Message-ID: <200207091041.22043.bastian@kde.org> On Tuesday 09 July 2002 09:37 am, Vadim Plessky wrote: > So, it seems it's rather safe to encode URL to UTF8, as it's common pratice > and acepted not only by MS IE, but by Mozilla aswell. There must be more to it, why else does Netscape / MSIE send "ie=UTFF-8" instead of "ie=ISO-8859-1"? The page that I get contains "ie=ISO-8859-1". Should we change that value when we send the URL in utf8 format as part of some secret handshake? Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From germain at ebooksfrance.com Tue Jul 9 19:27:34 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Tue, 9 Jul 2002 19:27:34 +0100 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207091041.22043.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207092037.52935.lucy-ples@mtu-net.ru> <200207091041.22043.bastian@kde.org> Message-ID: <200207091927.34309.germain@ebooksfrance.com> Le Mardi 09 Juillet 2002 18:41, Waldo Bastian a écrit : > On Tuesday 09 July 2002 09:37 am, Vadim Plessky wrote: > > So, it seems it's rather safe to encode URL to UTF8, as it's common > > pratice and acepted not only by MS IE, but by Mozilla aswell. > > There must be more to it, why else does Netscape / MSIE send "ie=UTFF-8" > instead of "ie=ISO-8859-1"? The page that I get contains "ie=ISO-8859-1". having made some tests with testkhtml, it seems that the Accept-Charset is never set according to the current encoding... it is always : kio_http: (3071) Accept-Charset: iso-8859-1, utf-8;q=0.5, *;q=0.5 must be that... G. From craig at physics.ubc.ca Tue Jul 9 20:18:03 2002 From: craig at physics.ubc.ca (Craig Jones) Date: Tue, 09 Jul 2002 12:18:03 -0700 Subject: Views and "Use index.html" References: <3D29AFC9.5050801@physics.ubc.ca> <200207091111.23167.david@mandrakesoft.com> Message-ID: <3D2B36EB.2030400@physics.ubc.ca> David, Thanks for the help... but still have one comment and one question: Q: I brought up konq with two views of the same directory (linked) and did the "Settings / Save view properties in directory" and then "Use index.html" as you suggested. Both views are still displaying the index.html file. (I am using konq 3.0.0-2). I am guessing it is because it is a property of the directory, right? C: I *still* think it would be nice to have the "Use index.html" a property of the view and not the directory, but maybe I am just not understanding your suggestion. Help? Craig David Faure wrote: >> >>For a long time now I have wanted to try and figure out how to make the >>"Use index.html" a property of the current view rather than all views in >>the main window. > > > Settings / Save view properties in directory > (then activate "Use index.html") From mueller at kde.org Wed Jul 10 00:10:51 2002 From: mueller at kde.org (Dirk Mueller) Date: Wed, 10 Jul 2002 01:10:51 +0200 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207091041.22043.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207090015.07974.bastian@kde.org> <200207092037.52935.lucy-ples@mtu-net.ru> <200207091041.22043.bastian@kde.org> Message-ID: <20020709231051.GA27653@matrix.wg> On Die, 09 Jul 2002, Waldo Bastian wrote: > instead of "ie=ISO-8859-1"? The page that I get contains "ie=ISO-8859-1". > Should we change that value when we send the URL in utf8 format as part of > some secret handshake? The secrect handshake is the Accept-Charset header field. Dirk From bastian at kde.org Wed Jul 10 00:49:38 2002 From: bastian at kde.org (Waldo Bastian) Date: Tue, 9 Jul 2002 16:49:38 -0700 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <20020709231051.GA27653@matrix.wg> References: <200207081353.03199.hetz@kde.org> <200207091041.22043.bastian@kde.org> <20020709231051.GA27653@matrix.wg> Message-ID: <200207091649.38170.bastian@kde.org> On Tuesday 09 July 2002 04:10 pm, Dirk Mueller wrote: > On Die, 09 Jul 2002, Waldo Bastian wrote: > > instead of "ie=ISO-8859-1"? The page that I get contains "ie=ISO-8859-1". > > Should we change that value when we send the URL in utf8 format as part > > of some secret handshake? > > The secrect handshake is the Accept-Charset header field. When I set the Accept-Charset to utf-8 instead of iso-8859-1 I still get the page with ie=ISO-8859-1. Try it yourself by adding Charsets=utf-8 to the top of kioslaverc Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From toshitaka at kde.gr.jp Wed Jul 10 04:29:38 2002 From: toshitaka at kde.gr.jp (Toshitaka Fujioka) Date: Wed, 10 Jul 2002 12:29:38 +0900 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207092037.52935.lucy-ples@mtu-net.ru> References: <200207081353.03199.hetz@kde.org> <200207090015.07974.bastian@kde.org> <200207092037.52935.lucy-ples@mtu-net.ru> Message-ID: <200207101229.38764.toshitaka@kde.gr.jp> On Wednesday 10 July 2002 01:37, Vadim Plessky wrote: > On Tuesday 09 July 2002 11:15 am, Waldo Bastian wrote: > | On Tuesday 09 July 2002 12:01 am, Lars Knoll wrote: > | > > URLs are spec'ed as a sequence of octets (8-bit values) "Unicode > | > > URLs" basically don't exist. Despite that we try to handle them > | > > anyway and appearantly that doesn't always work. (E.g. we need to > | > > convert unicode to an 8 bit sequence before we can tranfer it to the > | > > website but the encoding to use for that is unspecified, so we can > | > > only guess.) > | > > | > As Dirk already pointed out, IE sends URLS in utf8 by default. I'm > | > pretty sure we could do the same without breaking a lot of web pages > | > (they'd be broken with IE aswell). Maybe there's an HTTP header field > | > we can set to indicate this? > | > | My impression was that many non-latin1 (e.g. russian, japanese, korean, > | etc.) websites use the "local locale" as encoding and not utf8. Maybe > | Vadim can comment on that from the Russian point of view. [snip] > So, it seems it's rather safe to encode URL to UTF8, as it's common pratice > and acepted not only by MS IE, but by Mozilla aswell. Please change Change Browser Identification or User Agent. e.g. Mozilla M18n on Windows NT 4.0 or Gecko/20000110 or compatible; MSIE 6.0 then you get a result same as Mozilla or IE 6.0. -- Toshitaka Fujioka http://www.kde.org The K Desktop Environment Project fujioka at kde.org http://www.kde.gr.jp Japan KDE User's Group toshitaka at kde.gr.jp -- A journey of a thousand miles must begin with a single step. Lao-zi -- From lucy-ples at mtu-net.ru Wed Jul 10 09:00:41 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Wed, 10 Jul 2002 12:00:41 +0400 Subject: KURL & KMail [Re: why the % cruft?] In-Reply-To: <200207091035.06060.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207091256.21883.lucy-ples@mtu-net.ru> <200207091035.06060.bastian@kde.org> Message-ID: <200207101200.41166.lucy-ples@mtu-net.ru> On Tuesday 09 July 2002 9:35 pm, Waldo Bastian wrote: | On Tuesday 09 July 2002 01:56 am, Vadim Plessky wrote: | > On Monday 08 July 2002 11:33 pm, Waldo Bastian wrote: | > | I don't know. The web-page is in ISO-8859-1 so we send in that | > | encoding. We can send in utf-8 but I doubt that will work if the | > | webserver expects iso-8859-1. Since google adds "ie=ISO-8859-1" itself | > | I strongly suspect that it expects to receive iso-8859-1. We can't | > | send utf-16 because HTTP is a 8-bit protocol, not 16-bit. | > | > ok, what about IMAP folder names than? | | According to you they should use utf7, so if KMail tells KURL to use utf7 | everything should be fine. I didn't know IMAP used URLs as part of its | wire-protocol btw. That was kind of surprise for me as well, but a pleasant one ;-) I guess you know that you can access IMAP server in Konqueror by using command like this: imap://vplessky at umail.ru/ (just tried it, it works! But of course you need password :-) I have a test folder on that IMAP server, it's named 'Корзинка' When I click on it, I have: An error occured while loading imap://vplessky at umail.ru/%3F%3F%3F%3F%3F%3F%3F%3F/: The file or directory imap://vplessky at umail.ru/????????/ does not exist. To test it in an easy way, you can create local folder with Cyrillic (take one above) or Chineese name, and reproduce this problem. According to Michael Haeckel, some time ago KMail *could* access such folders, but later (due to changes in KURL) something was broken. Would be nice to know *what*, and have a fix for this... | | Cheers, | Waldo -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From Must_Book at address.com Wed Jul 10 10:04:33 2002 From: Must_Book at address.com (Dr. Carter) Date: Wed, 10 Jul 2002 05:04:33 -0400 Subject: It is beneficial to your library & its patrons to have the book (Please suggest) Message-ID: <4170-2200273109432990@oemcomputer> Dear Sir/Ma'am: It is significantly beneficial to your library and its patrons to have a book titled "Complete Conduct Principles for the 21st Century" by Dr. John Newton. Please suggest to your local library(ies) that the book be purchased. This is a great contribution you can make to your neighborhood! "I find it heartening that you are crusading on behalf of this worthy book. It has occupied a space on our shelves for some time now. To have this book in our library is a quiet source of pride to me, the librarian." said Mr. Don Brusha, a highly respectable Librarian of Avon Park Library in Avon Park, Florida, USA, in a letter to me regarding the book. This book is a MUST for EVERYONE to be better prepared for personal conduct for the 21st century. EVERY LIBRARY SHOULD HAVE IT. You may ask yourself > How to make people respect you > How to win friends > How to let your conduct help your health, work, job, career, relationships, spirit, mind, well-being, ... > How to make your life smoother and happier > How to do whatever you like without being unpleasant to other people > How to develop good conduct in your children or students > How to make the world peaceful and better You (and the library patrons) can find all the answers to these questions, and much more, in this great book. BENEFITS to each individual reader: Many! -- such as for health, work, job, career, self-improvement, education, relationships, spirit, mind, well-being, and much more -- almost all the areas that are important to you in the 21st century. People around you will benefit, too. (Please see the preface of the book for details.) EVERYONE may find this book useful and helpful, regardless of age (from children to oldsters), occupation, rank, status, gender, religious beliefs, nationality, country, or region. If you are a parent or a teacher, you can learn how to develop good conduct in your children or students from this book. Please advise your children or students to read the book. It will result in great benefits for both you and them. The book's content is obvious from its title. The complete useful conduct principles cover not only what we should do, but also what we should not do -- especially those faults people make often and easily. "The book will also be effective for violence prevention for the whole society." said some experts. This timely, unique, and very important book is designed to suit most people, and is self-contained and user-friendly. This book is significantly different and better than competitive works. Some of its innovative contents may help solve problems that Western culture cannot. The book's merit and importance have been recognized and praised by many experts, elected public officials, and world leaders. How to make the world peaceful and better --- You (and the library patrons) can find the solution in the book. Let's work together to make the world peaceful and better! The author, John Newton, holds a Ph.D. from MIT, and does researches at Harvard. His long-term research on "The personal conduct in the human society of the 21st century" resulted in this book. It is published by Nicer Century World Organization, headquartered beside Harvard University and MIT, two leading institutes of new knowledge and literature. It has the Library of Congress Cataloging-in-Publication data. Trade hardcover (case bound, Smyth sewn; with dust jacket) ISBN 0967370574; trade paperback (perfect bound) ISBN 0967370582. Bound durably and functionally to stand up to heavy library use. 60 lb natural acid-free excellent and healthful paper. 5.5inX8.5in. 192 pages. Including Principle Index and General Index. Self-contained. Again, please suggest to your local library(ies) that the book be purchased. Your effort to make a great contribution to your family and neighborhood and the whole society will be highly appreciated. Sincerely yours, Tom Carter, Ph.D. President, Nicer Century World Organization Massachusetts, USA (Nicer Century World Organization is an educational, non-profit, non-partisan organization; it endeavors to make the 21st century nicer than ever before. To accomplish its mission, Nicer Century World Organization is proud to introduce this book.) From patrol at sinus.cz Wed Jul 10 10:54:10 2002 From: patrol at sinus.cz (Pavel Troller) Date: Wed, 10 Jul 2002 11:54:10 +0200 Subject: konqueror freezing Message-ID: <20020710095410.GA4312@tangens.sinus.cz> Hi! On the following URL, http://www.nobilis.cz/uvod.htm, konqueror freezes, obviously creating a new window, but no contents is visible in any of them. This does even with javascript off. Sorry for no further analysis, this is just a report from my friend, verified by me (HEAD). With regards, Pavel Troller From lucy-ples at mtu-net.ru Wed Jul 10 14:54:23 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Wed, 10 Jul 2002 17:54:23 +0400 Subject: konqueror freezing In-Reply-To: <20020710095410.GA4312@tangens.sinus.cz> References: <20020710095410.GA4312@tangens.sinus.cz> Message-ID: <200207101754.23818.lucy-ples@mtu-net.ru> On Wednesday 10 July 2002 1:54 pm, Pavel Troller wrote: | Hi! | On the following URL, http://www.nobilis.cz/uvod.htm, konqueror freezes, | obviously creating a new window, but no contents is visible in any of | them. This does even with javascript off. | Sorry for no further analysis, this is just a report from my friend, | verified by me (HEAD). | With regards, Pavel Troller Can you file bug report, please? Than all history for this bug will be tracked, and it will help to fix not only this but other bugs as well. -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From lucy-ples at mtu-net.ru Wed Jul 10 14:52:28 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Wed, 10 Jul 2002 17:52:28 +0400 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207101229.38764.toshitaka@kde.gr.jp> References: <200207081353.03199.hetz@kde.org> <200207092037.52935.lucy-ples@mtu-net.ru> <200207101229.38764.toshitaka@kde.gr.jp> Message-ID: <200207101752.28969.lucy-ples@mtu-net.ru> On Wednesday 10 July 2002 7:29 am, Toshitaka Fujioka wrote: | On Wednesday 10 July 2002 01:37, Vadim Plessky wrote: | > On Tuesday 09 July 2002 11:15 am, Waldo Bastian wrote: | > | On Tuesday 09 July 2002 12:01 am, Lars Knoll wrote: | > | > > URLs are spec'ed as a sequence of octets (8-bit values) "Unicode | > | > > URLs" basically don't exist. Despite that we try to handle them | > | > > anyway and appearantly that doesn't always work. (E.g. we need to | > | > > convert unicode to an 8 bit sequence before we can tranfer it to | > | > > the website but the encoding to use for that is unspecified, so | > | > > we can only guess.) | > | > | > | > As Dirk already pointed out, IE sends URLS in utf8 by default. I'm | > | > pretty sure we could do the same without breaking a lot of web | > | > pages (they'd be broken with IE aswell). Maybe there's an HTTP | > | > header field we can set to indicate this? | > | | > | My impression was that many non-latin1 (e.g. russian, japanese, | > | korean, etc.) websites use the "local locale" as encoding and not | > | utf8. Maybe Vadim can comment on that from the Russian point of view. | | [snip] | | > So, it seems it's rather safe to encode URL to UTF8, as it's common | > pratice and acepted not only by MS IE, but by Mozilla aswell. | | Please change Change Browser Identification or User Agent. | e.g. Mozilla M18n on Windows NT 4.0 or Gecko/20000110 or compatible; MSIE | 6.0 | | then you get a result same as Mozilla or IE 6.0. Bahh!.. You are right. With MS IE5 UserAgent, I have on Google http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80 So, problem is in userAgent identification area, not in KURL?.. // Ihate idea to fake as MS IE5 on Google, there should be another solution. But thanks for the tip! P.S. do you have similar solution for IMAP folder names? -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From germain at ebooksfrance.com Wed Jul 10 15:14:45 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Wed, 10 Jul 2002 15:14:45 +0100 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207101752.28969.lucy-ples@mtu-net.ru> References: <200207081353.03199.hetz@kde.org> <200207101229.38764.toshitaka@kde.gr.jp> <200207101752.28969.lucy-ples@mtu-net.ru> Message-ID: <200207101514.45552.germain@ebooksfrance.com> Le Mercredi 10 Juillet 2002 14:52, Vadim Plessky a écrit : > // Ihate idea to fake as MS IE5 on Google, there should be another > solution. But thanks for the tip! Yuck. The better would be a formal letter from a commitee of well-known KDE core programmers to a Google representative... Historicaly, they have been quite commited to the "best viewed with any browser" philosophy, and it's just about adding one word in a RE. G. From hetz at kde.org Wed Jul 10 15:40:37 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Wed, 10 Jul 2002 17:40:37 +0300 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207101514.45552.germain@ebooksfrance.com> References: <200207081353.03199.hetz@kde.org> <200207101752.28969.lucy-ples@mtu-net.ru> <200207101514.45552.germain@ebooksfrance.com> Message-ID: <200207101740.37917.hetz@kde.org> Thats a nice solution, but not good politically... See, I want web masters to know that I am using Konqueror to browse their site - they see the logs. With MSIE as a user agent - it's just adding up as another MSIE is viewing the text. Waldo, could you add a simple check-box to enable UTF-8 sending instead of ISO8859-1 please? Thanks, Hetz On Wednesday 10 July 2002 17:14, Germain Garand wrote: > Le Mercredi 10 Juillet 2002 14:52, Vadim Plessky a יcrit : > > // Ihate idea to fake as MS IE5 on Google, there should be another > > solution. But thanks for the tip! > > Yuck. > The better would be a formal letter from a commitee of well-known KDE core > programmers to a Google representative... > > Historicaly, they have been quite commited to the "best viewed with any > browser" philosophy, and it's just about adding one word in a RE. > > G. From sean at digitalspinner.com Wed Jul 10 16:51:35 2002 From: sean at digitalspinner.com (Sean Pecor) Date: Wed, 10 Jul 2002 11:51:35 -0400 Subject: Where to add file sort priority support? Message-ID: <200207101151.35658.sean@digitalspinner.com> Hey folks, I want to experiment with a particular approach to the prioritization of files within a file manager view. My goal is to create a priority field, but I'm not sure how best to approach this problem. I'm hoping for some suggestions, even if your only suggestion is that this isn't currently possible :) A priority field could be an integer value, perhaps represented to the user as an index to a customizable list of enumerated strings. So a priority 1 could be "Not important", priority 2 could be defined as "Important" and priority 3 could be "Very important" etc. A priority field would open up a path to some important features, including: 1. Ability to hide files from a particular Konqi View profile. A real world example might be to view a library of MP3s, showing only "Very Important" songs. You might organize music by style, but when you have 2,000 songs alot of "okay" music is mixed in with "great" music. Another real world example would be a document library, where you could categorize documents into one taxonomy, but differentiate via the Priority field. 2. Backup software could support Priority by recognizing defined priorities. Backups could be configured to protect more important data by backing up VIP files with greater frequency, or perhaps to a different backup destination etc. 3. Editors like Kate could support Priority by being told to load all "Very Important" files underneath a chosen directory. 4. Context-click on a directory in Konqueror, and an option would appear to open files via Priority. So, say, I want to play all my VIP files in Noatun, so I Context-click on "Rock and Roll" directory and select Open Very Important Files. All the VIP files underneath the directory are MP3s, so Noatun opens up with all my favorite songs. Another scenario would be to Context-click on a "Website.com" directory, select Open Very Important Files. All the VIP files are .html so Kate opens up all those files. A priority field is an important part of large Intranets, which I develop. Seeing them in use within a large taxonomy convinces me that this is a valuable feature for the average PC user. How to support them is the big question. The argument that each application should support this itself with its own features (Noatun should have library support etc, Kate should have project management etc) means more work for the individual programmer and potentially dozens of different approaches that don't lend themselves to one another in terms of GUI ease of use. Plus a user gets locked down to one editor that supports this. If Konqueror can handle it then it can potentially work with any applications you prefer. Anyway, its my odd thought for the morning. Sean. -- Digital Spinner, Inc. Cutting edge web design and applications development. http://www.digitalspinner.com http://www.groupit.org Phone: 802.948.2020 Fax: 802.948.2749 From david at mandrakesoft.com Wed Jul 10 17:25:01 2002 From: david at mandrakesoft.com (David Faure) Date: Wed, 10 Jul 2002 18:25:01 +0200 Subject: Where to add file sort priority support? In-Reply-To: <200207101151.35658.sean@digitalspinner.com> References: <200207101151.35658.sean@digitalspinner.com> Message-ID: <200207101825.01945.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 10 July 2002 17:51, Sean Pecor wrote: > Hey folks, > > I want to experiment with a particular approach to the prioritization of files > within a file manager view. My goal is to create a priority field, but I'm > not sure how best to approach this problem. I'm hoping for some suggestions, > even if your only suggestion is that this isn't currently possible :) Well, IMHO without proper support from the file system, this is either impossible or far too hacky. Do some file systems support this by now? ext3? reiserfs? xfs? - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9LF/d72KcVAmwbhARAlqeAJ9+cW20J1QR2HGSDypty+b1N6dYPACgsdII dQg3P8mSXaAXgLU+OPVLHYQ= =ZYzA -----END PGP SIGNATURE----- From carpdjih at sp.zrz.tu-berlin.de Wed Jul 10 17:24:26 2002 From: carpdjih at sp.zrz.tu-berlin.de (Carsten Pfeiffer) Date: Wed, 10 Jul 2002 18:24:26 +0200 Subject: Where to add file sort priority support? In-Reply-To: <200207101151.35658.sean@digitalspinner.com> References: <200207101151.35658.sean@digitalspinner.com> Message-ID: <200207101824.26762.carpdjih@sp.zrz.tu-berlin.de> -----BEGIN PGP SIGNED MESSAGE----- On Wednesday 10 July 2002 17:51, Sean Pecor wrote: > A priority field could be an integer value, perhaps represented to the user > as an index to a customizable list of enumerated strings. So a priority 1 > could be "Not important", priority 2 could be defined as "Important" and > priority 3 could be "Very important" etc. Sounds like a very good idea -- reminds me a lot of those "meta data for files" discussions tho. And the lack of filesystems, supporting that and the problem of distributing files, losing the meta information... Anyway, we have a very generic interface to meta information for all kinds of files with KFileMetaInfo (in kdelibs/kio/kio). KFileMetaInfo is a plugin-based system, where every plugin handles the extraction/insertion of meta information for some type of file(s), i.e. the plugins are mapped to mimetypes. To add priority support for all files (i.e. all mimetypes) we could either extend the base-class of all plugins, so that all plugins automatically get the priority information or allow for multiple plugins per mimetype (i.e. merging the results of multiple plugins). It's up to you where to store the priority information, be it a database, a plain file, or directly in the file. As not all files formats have support for saving meta information inside the file, you get problems when files are moved around the filesystem. Maybe with dnotify and/or FAM, you can track renamings of files, don't know. Cheers Carsten Pfeiffer -----BEGIN PGP SIGNATURE----- iQEVAwUBPSxfuqWgYMJuwmZtAQH6+gf9FPES4SvO1IKeB9aynfoOf8M5gth+66TX 6Q76/zSlOqmP4IXZGBoCcRTpO8tLEg/WPUgtgthDB00CUsbKK6fZSa0dJepP8JTV zMnxmoU9mt0DYroSxvW7xeKa0zhjwgmskZfgXcThWoQqa505SoqjLoYDZNzEJ1+z Tcg/mYzZoztOKv2XNwSKAkJ0LoucH4QpJe9ePtCPdFNTvLj2+dzm5nZi/pkn43eG dgnDhtkgE3EbAGxmf2pJnOQ66pqMnMIm/XdPaPge3zo3aV6OcOAVaBsuc9pQua0M HdU2qDcceme+VqpAhsrWnBSGSiTmW9UNgIMNehE5+41UfIqcizFRvw== =nVrN -----END PGP SIGNATURE----- From germain at ebooksfrance.com Wed Jul 10 17:35:48 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Wed, 10 Jul 2002 17:35:48 +0100 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207101740.37917.hetz@kde.org> References: <200207081353.03199.hetz@kde.org> <200207101514.45552.germain@ebooksfrance.com> <200207101740.37917.hetz@kde.org> Message-ID: <200207101735.49040.germain@ebooksfrance.com> Le Mercredi 10 Juillet 2002 15:40, Hetz Ben Hamo a écrit : > Waldo, could you add a simple check-box to enable UTF-8 sending instead of > ISO8859-1 please? > That won't solve the Google problem, because still, if you have no "preference" cookie, it will parse your Accept-Language and User-Agent string and send you a form with Browsers shouldn't enforce UTF-8 encoding in FORMS, or when clicking a link : they should use whatever the HTTP-EQUIV meta tell them to. Now, UTF-8 can be used when entering new URLs, indeed, but that won't solve much problems... The only solution here is to bug Google for having the Accept-Charset parsed correctly. Also, if the Encoding as been forced in konqui by the user (as opposed to Auto), the Accept-Charset should reflect that, which is not the case currently. G. From coolo at kde.org Wed Jul 10 18:03:33 2002 From: coolo at kde.org (Stephan Kulow) Date: Wed, 10 Jul 2002 19:03:33 +0200 Subject: [PATCH] printing of transparent images Message-ID: <200207101903.37784.coolo@kde.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Printing web sites with black&white images, where white is transparent results in black on black print outs. As an example check http://verein.lst.de/~coolo/printout.html My suggested patch follows. It hard codes the color to print for transparent pixels to white. David is working on an alternative solution, but that would require bigger changes in QPSPrinter as it would need to generate PS level 3 to get transparancy in the generated PS. The patch works for me, but I'm open for suggestions :) Greetings, Stephan Index: khtml/rendering/render_image.cpp =================================================================== RCS file: /home/kde/kdelibs/khtml/rendering/render_image.cpp,v retrieving revision 1.97 diff -u -u -r1.97 render_image.cpp - --- khtml/rendering/render_image.cpp 2002/06/16 11:55:34 1.97 +++ khtml/rendering/render_image.cpp 2002/07/10 16:58:32 @@ -175,6 +175,22 @@ } } +static QPixmap pixmapForPainter( const QPixmap &pix, QPainter *p) +{ + // as postscript doesn't allow transparency, we have to do something about it + if (pix.mask() && p->device()->devType() == QInternal::Printer) { + QImage rsc = pix.convertToImage().convertDepth(8, 0); + for (int n = 0; n < rsc.numColors(); n++) + if (qAlpha(rsc.color(n)) == 0) + rsc.setColor(n, qRgb(255, 255, 255)); + rsc.setAlphaBuffer(false); + QPixmap rscp; + rscp.convertFromImage(rsc); + return rscp; + } else + return pix; +} + void RenderImage::printObject(QPainter *p, int /*_x*/, int /*_y*/, int /*_w*/, int /*_h*/, int _tx, int _ty) { // add offset for relative positioning @@ -257,7 +273,7 @@ resizeCache, scaledrect ); } else - - p->drawPixmap( QPoint( _tx + leftBorder + leftPad, _ty + topBorder + topPad), resizeCache ); + p->drawPixmap(QPoint( _tx + leftBorder + leftPad, _ty + topBorder + topPad), pixmapForPainter(resizeCache, p)); } else { @@ -280,8 +296,8 @@ // p->drawPixmap( offs.x(), y, pix, rect.x(), rect.y(), rect.width(), rect.height() ); - - p->drawPixmap(offs, pix, rect); + p->drawPixmap(offs, pixmapForPainter(pix, p), rect); } } if(style()->outlineWidth()) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9LGjpwFSBhlBjoJYRAgsoAKDkkLS5UZz9aVgAHFL0ABD1ZpDzcwCfT0cH v2Hb82lqmAWjahQAy9lTdxU= =jSpA -----END PGP SIGNATURE----- From haeckel at kde.org Wed Jul 10 18:15:54 2002 From: haeckel at kde.org (Michael =?iso-8859-1?q?H=E4ckel?=) Date: Wed, 10 Jul 2002 19:15:54 +0200 Subject: why the % cruft? In-Reply-To: <200207091035.06060.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207091256.21883.lucy-ples@mtu-net.ru> <200207091035.06060.bastian@kde.org> Message-ID: <200207101912.43789.haeckel@kde.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 09 July 2002 19:35, Waldo Bastian wrote: > > According to you they should use utf7, so if KMail tells KURL to use utf7 > everything should be fine. I didn't know IMAP used URLs as part of its > wire-protocol btw. IMAP doesn't use URLs in the protocol but KMail of course needs to use URLs to talk to the kio slave. That broke due to incompatible changes in KURL since I tested non-latin IMAP folders the last time, because KURL now uses unlike earlier iso-8859-1 by default and eats all other characters. KMail can't tell KURL to use utf7, because KURL doesn't support utf7 and also IMAP doesn't use really utf7 but a similar encoding. Anyway the IMAP-utf7 encoding should remain internal to the imap kio slave if possible. The kio slave should talk to the application in unicode or utf8. Otherwise all applications using the imap kioslave need a IMAP-utf7 encoding/decoding library. I probably can tell all involved KURLs manually to use utf8. Then it should work again in KMail, but browsing IMAP accounts in Konqueror is then still broken so I assume this is not the correct solution. I still can't see any reason why Konqueror shouldn't use utf-8 when the characters are entered manually in the location bar as it even seems to work in IE. Regards, Michael Häckel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9LGvKe9KEPyN2R8URAj47AJwLN4voolEitx6TS1H6iy4tdOIEJACfbRN1 LdDsPQevZNZilHSyYeFq/Qw= =f+ss -----END PGP SIGNATURE----- From ramagnus at kde.org Wed Jul 10 18:55:12 2002 From: ramagnus at kde.org (Rolf Magnus) Date: Wed, 10 Jul 2002 19:55:12 +0200 Subject: Where to add file sort priority support? In-Reply-To: <200207101151.35658.sean@digitalspinner.com> References: <200207101151.35658.sean@digitalspinner.com> Message-ID: <200207101955.12881.ramagnus@kde.org> On Wednesday 10 July 2002 17:51, Sean Pecor wrote: > Hey folks, > > I want to experiment with a particular approach to the prioritization of > files within a file manager view. My goal is to create a priority field, > but I'm not sure how best to approach this problem. I'm hoping for some > suggestions, even if your only suggestion is that this isn't currently > possible :) Reminds me of something I saw in gnome's nautilus. In the properties dialog of a file, you can add "emblems" to it. Those are small icons that are laid over a corner of the file's icon, with stuff like "Urgent" or "Special". > A priority field could be an integer value, perhaps represented to the user > as an index to a customizable list of enumerated strings. So a priority 1 > could be "Not important", priority 2 could be defined as "Important" and > priority 3 could be "Very important" etc. Well, if the strings are customizable, you'd get some quite strange results if one user looks at files from another user. The same value that means "Best music I have" for one user might mean "Junk" for another user. > A priority field is an important part of large Intranets, which I develop. > Seeing them in use within a large taxonomy convinces me that this is a > valuable feature for the average PC user. How to support them is the big > question. The optimum way is through the file system. But not all file systems support metadata and even if they did, there would be the need for a standardized format for this. If you don't use such a facility, you'd need to save the data into an extra file. > The argument that each application should support this itself > with its own features (Noatun should have library support etc, Kate should > have project management etc) means more work for the individual programmer > and potentially dozens of different approaches that don't lend themselves > to one another in terms of GUI ease of use. Plus a user gets locked down to > one editor that supports this. If Konqueror can handle it then it can > potentially work with any applications you prefer. Only if you start it from konqueror. From david at mandrakesoft.com Wed Jul 10 18:54:17 2002 From: david at mandrakesoft.com (David Faure) Date: Wed, 10 Jul 2002 19:54:17 +0200 Subject: [PATCH] printing of transparent images In-Reply-To: <200207101903.37784.coolo@kde.org> References: <200207101903.37784.coolo@kde.org> Message-ID: <200207101954.17764.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 10 July 2002 19:03, Stephan Kulow wrote: > Hi! > > Printing web sites with black&white images, where white is transparent results > in black on black print outs. As an example check > http://verein.lst.de/~coolo/printout.html > > My suggested patch follows. It hard codes the color to print for transparent > pixels to white. David is working on an alternative solution, but that would > require bigger changes in QPSPrinter as it would need to generate PS level 3 > to get transparancy in the generated PS. The patch works for me, but I'm > open for suggestions :) Lars tells me that Qt 3.1's QPSPrinter uses the PS level 3 feature, when available, to paint pixmap with masks properly. - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9LHTJ72KcVAmwbhARAmYTAKCgTSlu3kOOUNR356Fm/am/Ey21DQCggsej Uss9riSUbHeK1qteAQG5qac= =4X4i -----END PGP SIGNATURE----- From sean at digitalspinner.com Wed Jul 10 19:18:09 2002 From: sean at digitalspinner.com (Sean Pecor) Date: Wed, 10 Jul 2002 14:18:09 -0400 Subject: Where to add file sort priority support? In-Reply-To: <200207101824.26762.carpdjih@sp.zrz.tu-berlin.de> References: <200207101151.35658.sean@digitalspinner.com> <200207101824.26762.carpdjih@sp.zrz.tu-berlin.de> Message-ID: <200207101418.09888.sean@digitalspinner.com> On Wednesday 10 July 2002 12:24 pm, Carsten Pfeiffer wrote: > Anyway, we have a very generic interface to meta information for all kinds > of files with KFileMetaInfo (in kdelibs/kio/kio). Thanks for this information - I'll investigate. I might grow old and die waiting until extended attributes are supported on all of the OS platforms KDE runs on, so this will help me begin preliminary work. > It's up to you where to store the priority information, be it a database, a > plain file, or directly in the file. As not all files formats have support > for saving meta information inside the file, you get problems when files > are moved around the filesystem. Yes the attribution may be lost after a file move, but there are some imperfect solutions to this problem. It just struck me that the file group attribute could be used in a nice way for a single machine implementation. You could create, and add your user account to, groups like "lowpriority", "highpriority" etc. Then change your file properties as needed. Using a theoretical KDE app that could be attached to the inode mime type, you could choose a Group name, the directory tree would be scanned, and all known mime types would be displayed in a tree view, with each mime branch containing under it file for that type. You could then click the Mpeg Audio mime type and Noatun would begin playing your matches in sequence. If groups are used, then the file can be moved around the local filesystem with no problem. You couldn't have multiple group assignments for one file though. Sean. -- Digital Spinner, Inc. Cutting edge web design and applications development. http://www.digitalspinner.com http://www.groupit.org Phone: 802.948.2020 Fax: 802.948.2749 From bastian at kde.org Wed Jul 10 19:24:56 2002 From: bastian at kde.org (Waldo Bastian) Date: Wed, 10 Jul 2002 11:24:56 -0700 Subject: KURL & KMail [Re: why the % cruft?] In-Reply-To: <200207101200.41166.lucy-ples@mtu-net.ru> References: <200207081353.03199.hetz@kde.org> <200207091035.06060.bastian@kde.org> <200207101200.41166.lucy-ples@mtu-net.ru> Message-ID: <200207101124.56099.bastian@kde.org> On Wednesday 10 July 2002 01:00 am, Vadim Plessky wrote: > That was kind of surprise for me as well, but a pleasant one ;-) > I guess you know that you can access IMAP server in Konqueror by using > command like this: > imap://vplessky at umail.ru/ > (just tried it, it works! But of course you need password :-) > > I have a test folder on that IMAP server, it's named 'Корзинка' > When I click on it, I have: > > An error occured while loading > imap://vplessky at umail.ru/%3F%3F%3F%3F%3F%3F%3F%3F/: > The file or directory imap://vplessky at umail.ru/????????/ does not exist. > > To test it in an easy way, you can create local folder with Cyrillic (take > one above) or Chineese name, and reproduce this problem. > According to Michael Haeckel, some time ago KMail *could* access such > folders, but later (due to changes in KURL) something was broken. > Would be nice to know *what*, and have a fix for this... Ok, I look into it. Can you mail me a password in private mail? Note to Michael: If something breaks and you think it is due to KURL it helps if you tell the KURL maintainer (that's me) about it. Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From bastian at kde.org Wed Jul 10 19:27:39 2002 From: bastian at kde.org (Waldo Bastian) Date: Wed, 10 Jul 2002 11:27:39 -0700 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207101740.37917.hetz@kde.org> References: <200207081353.03199.hetz@kde.org> <200207101514.45552.germain@ebooksfrance.com> <200207101740.37917.hetz@kde.org> Message-ID: <200207101127.39927.bastian@kde.org> On Wednesday 10 July 2002 07:40 am, Hetz Ben Hamo wrote: > Thats a nice solution, but not good politically... > > See, I want web masters to know that I am using Konqueror to browse their > site - they see the logs. > > With MSIE as a user agent - it's just adding up as another MSIE is viewing > the text. > > Waldo, could you add a simple check-box to enable UTF-8 sending instead of > ISO8859-1 please? You mean a "hack for google that probably doesn't work anywhere else"? No thanks. Better mail google and tell them that konqueror supports utf-8. Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From bastian at kde.org Wed Jul 10 19:33:20 2002 From: bastian at kde.org (Waldo Bastian) Date: Wed, 10 Jul 2002 11:33:20 -0700 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207101735.49040.germain@ebooksfrance.com> References: <200207081353.03199.hetz@kde.org> <200207101740.37917.hetz@kde.org> <200207101735.49040.germain@ebooksfrance.com> Message-ID: <200207101133.20778.bastian@kde.org> On Wednesday 10 July 2002 09:35 am, Germain Garand wrote: > Le Mercredi 10 Juillet 2002 15:40, Hetz Ben Hamo a écrit : > > Waldo, could you add a simple check-box to enable UTF-8 sending instead > > of ISO8859-1 please? > > That won't solve the Google problem, because still, if you have no > "preference" cookie, it will parse your Accept-Language and User-Agent > string and send you a form with > > > > Browsers shouldn't enforce UTF-8 encoding in FORMS, or when clicking a link > : they should use whatever the HTTP-EQUIV meta tell them to. > > Now, UTF-8 can be used when entering new URLs, indeed, but that won't > solve much problems... > > The only solution here is to bug Google for having the Accept-Charset > parsed correctly. > > Also, if the Encoding as been forced in konqui by the user (as opposed to > Auto), the Accept-Charset should reflect that, which is not the case > currently. Does the "Encoding" menu option remain in effect across multiple pages? If not it makes little sense to change the Accept-Charset. If so, khtml/konqueror should set the "Charsets" metadata accordingly. (Or one could add a SessionData::setCharset() function and call that.) Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From hetz at kde.org Wed Jul 10 20:26:48 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Wed, 10 Jul 2002 22:26:48 +0300 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207101127.39927.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207101740.37917.hetz@kde.org> <200207101127.39927.bastian@kde.org> Message-ID: <200207102226.48237.hetz@kde.org> Ahhm, It's definately not only google. It's tons of Israeli and Arabic web sites who uses UTF8 encoding to specify various parameters on the URL (like hebrew name). Hetz On Wednesday 10 July 2002 21:27, Waldo Bastian wrote: > On Wednesday 10 July 2002 07:40 am, Hetz Ben Hamo wrote: > > Thats a nice solution, but not good politically... > > > > See, I want web masters to know that I am using Konqueror to browse their > > site - they see the logs. > > > > With MSIE as a user agent - it's just adding up as another MSIE is > > viewing the text. > > > > Waldo, could you add a simple check-box to enable UTF-8 sending instead > > of ISO8859-1 please? > > You mean a "hack for google that probably doesn't work anywhere else"? No > thanks. Better mail google and tell them that konqueror supports utf-8. > > Cheers, > Waldo From bastian at kde.org Wed Jul 10 21:15:19 2002 From: bastian at kde.org (Waldo Bastian) Date: Wed, 10 Jul 2002 13:15:19 -0700 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207102226.48237.hetz@kde.org> References: <200207081353.03199.hetz@kde.org> <200207101127.39927.bastian@kde.org> <200207102226.48237.hetz@kde.org> Message-ID: <200207101315.19493.bastian@kde.org> On Wednesday 10 July 2002 12:26 pm, Hetz Ben Hamo wrote: > Ahhm, > > It's definately not only google. It's tons of Israeli and Arabic web sites > who uses UTF8 encoding to specify various parameters on the URL (like > hebrew name). Please provide URLs and tell me what they do, what you expect them to do, and how other browsers behave (if possible). Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From germain at ebooksfrance.com Wed Jul 10 21:39:29 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Wed, 10 Jul 2002 21:39:29 +0100 Subject: Where to add file sort priority support? In-Reply-To: <200207101418.09888.sean@digitalspinner.com> References: <200207101151.35658.sean@digitalspinner.com> <200207101824.26762.carpdjih@sp.zrz.tu-berlin.de> <200207101418.09888.sean@digitalspinner.com> Message-ID: <200207102139.29720.germain@ebooksfrance.com> Le Mercredi 10 Juillet 2002 19:18, Sean Pecor a écrit : > It just struck me that the file group attribute could be used in a nice way > for a single machine implementation. You could create, and add your user > account to, groups like "lowpriority", "highpriority" etc. Then change your > file properties as needed. Using a theoretical KDE app that could be > attached to the inode mime type, you could choose a Group name, the > directory tree would be scanned, and all known mime types would be > displayed in a tree view, with each mime branch containing under it file > for that type. You could then click the Mpeg Audio mime type and Noatun > would begin playing your matches in sequence. Wow. That sounds like a nice hack... With a consistent naming scheme for those pseudo-groups, like -highpriority/-lowpriority, it could even suits to a multi-user environment without challenging security... G. From hetz at kde.org Wed Jul 10 22:05:06 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Thu, 11 Jul 2002 00:05:06 +0300 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207101315.19493.bastian@kde.org> References: <200207081353.03199.hetz@kde.org> <200207102226.48237.hetz@kde.org> <200207101315.19493.bastian@kde.org> Message-ID: <200207110005.06004.hetz@kde.org> I did - here it is again: http://chat.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30%20ôìåñ%20àéëåúé&nick=fasdfasd This URL lets you go into a Java hebrew based chat. With MSIE (and suprisingly Netscape 4.x) - the gybrish stuff is being feed into the server as parameters which room. the fasdfasd stuff is my test to put a nick name. if I put a hebrew nick the chat java client will get it as "????????" in konqueror. Actually if you'll try this URL on konqueror with Java enabled, you'll get into the chat to a room named "30 ????? ??????" - the ? should be of course hebrew letters ;) Thanks, Hetz On Wednesday 10 July 2002 23:15, Waldo Bastian wrote: > On Wednesday 10 July 2002 12:26 pm, Hetz Ben Hamo wrote: > > Ahhm, > > > > It's definately not only google. It's tons of Israeli and Arabic web > > sites who uses UTF8 encoding to specify various parameters on the URL > > (like hebrew name). > > Please provide URLs and tell me what they do, what you expect them to do, > and how other browsers behave (if possible). > > Cheers, > Waldo From bastian at kde.org Wed Jul 10 22:36:22 2002 From: bastian at kde.org (Waldo Bastian) Date: Wed, 10 Jul 2002 14:36:22 -0700 Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the % cruft?]) In-Reply-To: <200207110005.06004.hetz@kde.org> References: <200207081353.03199.hetz@kde.org> <200207101315.19493.bastian@kde.org> <200207110005.06004.hetz@kde.org> Message-ID: <200207101436.22910.bastian@kde.org> On Wednesday 10 July 2002 02:05 pm, Hetz Ben Hamo wrote: > I did - here it is again: > > http://chat.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30%20ôìåñ >%20àéëåúé&nick=fasdfasd This URL lets you go into a Java hebrew based chat. Selecting http://chat.tapuz.co.il/newchat/main.asp and then clicking on one of the links at the bottom (e.g. the one that starts with 30) causes a KJS crash here. Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From koos.vriezen at xs4all.nl Wed Jul 10 23:12:39 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Thu, 11 Jul 2002 00:12:39 +0200 (CEST) Subject: More fun with auto scrolling Message-ID: Hi, The attached patch is just a trial for auto scrolling. It works only with scrolling down. The cursor down key starts auto scrolling. Pressing it again, accelerated the scrolling. Holding the key long enough for auto repeat, enables normal scrolling. The up key decelerates scrolling, until it stops and normal up scrolling is enabled. I found that scrolling is smoother if not for each pixel line a renderer()->print is called, but fill the whole paintbuffer and copy each time a line out of it. This is not perfect, it will mess up the view a bit (eg. when increasing font sizes) but its quite harmless. Can't wait to read tomorrows lwn's 'All in one big page' ;) Regards, Koos Vriezen -------------- next part -------------- Index: khtmlview.cpp =================================================================== RCS file: /home/kde/kdelibs/khtml/khtmlview.cpp,v retrieving revision 1.474 diff -u -3 -p -r1.474 khtmlview.cpp --- khtmlview.cpp 2002/06/25 02:28:04 1.474 +++ khtmlview.cpp 2002/07/10 22:11:18 @@ -98,6 +98,7 @@ public: prevScrollbarVisible = true; timerId = 0; repaintTimerId = 0; + scrollTimerId = 0; complete = false; tooltip = 0; } @@ -139,6 +140,7 @@ public: scrollingSelf = false; timerId = 0; repaintTimerId = 0; + scrollTimerId = 0; complete = false; firstRelayout = true; layoutSchedulingEnabled = true; @@ -174,6 +176,10 @@ public: int timerId; int repaintTimerId; + int scrollTimerId; + int scrollLine; + QRect scrollRect; + int scrollBy; bool complete; bool firstRelayout; bool layoutSchedulingEnabled; @@ -326,26 +332,39 @@ void KHTMLView::drawContents( QPainter * if ( d->paintBuffer->width() < visibleWidth() ) d->paintBuffer->resize(visibleWidth(),PAINT_BUFFER_HEIGHT); - int py=0; - while (py < eh) { - int ph = eh-py < PAINT_BUFFER_HEIGHT ? eh-py : PAINT_BUFFER_HEIGHT; - d->tp->begin(d->paintBuffer); - d->tp->translate(-ex, -ey-py); - d->tp->fillRect(ex, ey+py, ew, ph, palette().normal().brush(QColorGroup::Base)); - m_part->xmlDocImpl()->renderer()->print(d->tp, ex, ey+py, ew, ph, 0, 0); + if (d->scrollTimerId && d->scrollLine && d->scrollRect.contains(QRect(ex, ey, ew, eh)) && d->scrollLine + eh < PAINT_BUFFER_HEIGHT && ex == d->scrollRect.x()) { + p->drawPixmap(ex, ey, *d->paintBuffer, 0, d->scrollLine, ew, eh); + d->scrollLine += eh; + // kdDebug( 6000 ) << "drawContents using cache" << endl; + } + else { + int py=0; + while (py < eh) { + int ph = eh-py < PAINT_BUFFER_HEIGHT ? eh-py : PAINT_BUFFER_HEIGHT; + int pvh = ph; + if (pvh < PAINT_BUFFER_HEIGHT && d->scrollTimerId && ey + eh == contentsY() + visibleHeight()) { + pvh = PAINT_BUFFER_HEIGHT; + d->scrollRect = QRect(ex, ey, ew, PAINT_BUFFER_HEIGHT); + d->scrollLine = eh; + // kdDebug( 6000 ) << "drawContents make cache" << endl; + } + d->tp->begin(d->paintBuffer); + d->tp->translate(-ex, -ey-py); + d->tp->fillRect(ex, ey+py, ew, pvh, palette().normal().brush(QColorGroup::Base)); + m_part->xmlDocImpl()->renderer()->print(d->tp, ex, ey+py, ew, pvh, 0, 0); #ifdef BOX_DEBUG - if (m_part->xmlDocImpl()->focusNode()) - { - d->tp->setBrush(Qt::NoBrush); - d->tp->drawRect(m_part->xmlDocImpl()->focusNode()->getRect()); - } + if (m_part->xmlDocImpl()->focusNode()) + { + d->tp->setBrush(Qt::NoBrush); + d->tp->drawRect(m_part->xmlDocImpl()->focusNode()->getRect()); + } #endif - d->tp->end(); + d->tp->end(); - p->drawPixmap(ex, ey+py, *d->paintBuffer, 0, 0, ew, ph); - py += PAINT_BUFFER_HEIGHT; + p->drawPixmap(ex, ey+py, *d->paintBuffer, 0, 0, ew, ph); + py += PAINT_BUFFER_HEIGHT; + } } - khtml::DrawContentsEvent event( p, ex, ey, ew, eh ); QApplication::sendEvent( m_part, &event ); @@ -636,8 +655,19 @@ void KHTMLView::keyPressEvent( QKeyEvent case Key_J: if ( d->vmode == QScrollView::AlwaysOff ) _ke->accept(); - else + else if (_ke->isAutoRepeat()) { + if (d->scrollTimerId) { + killTimer(d->scrollTimerId); + d->scrollTimerId = 0; + } scrollBy( 0, 10 ); + } else if (!d->scrollTimerId) { + d->scrollLine = 0; + d->scrollBy = 1; + scrollBy( 0, d->scrollBy ); + d->scrollTimerId = startTimer(30); + } else if (d->scrollBy < 10) + d->scrollBy++; break; case Key_Space: @@ -652,7 +682,12 @@ void KHTMLView::keyPressEvent( QKeyEvent case Key_K: if ( d->vmode == QScrollView::AlwaysOff ) _ke->accept(); - else + else if (d->scrollTimerId) { + if (--d->scrollBy <= 0) { + killTimer(d->scrollTimerId); + d->scrollTimerId = 0; + } + } else scrollBy( 0, -10 ); break; @@ -1445,6 +1480,15 @@ void KHTMLView::slotScrollBarMoved() void KHTMLView::timerEvent ( QTimerEvent *e ) { // kdDebug() << "timer event " << e->timerId() << endl; + if (e->timerId() == d->scrollTimerId) { + if (contentsY() + visibleHeight () >= contentsHeight() || d->scrollBy <= 0) { + kdDebug() << "timer event killing timer" << endl; + killTimer(d->scrollTimerId); + d->scrollTimerId = 0; + } else + scrollBy( 0, d->scrollBy ); + return; + } if (e->timerId()==d->timerId) { d->firstRelayout = false; From koos.vriezen at xs4all.nl Wed Jul 10 23:22:29 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Thu, 11 Jul 2002 00:22:29 +0200 (CEST) Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the % cruft?]) In-Reply-To: <200207101436.22910.bastian@kde.org> References: <200207101436.22910.bastian@kde.org> Message-ID: On Wed, 10 Jul 2002, Waldo Bastian wrote: > On Wednesday 10 July 2002 02:05 pm, Hetz Ben Hamo wrote: > > I did - here it is again: > > > > http://chat.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30%20���� > >%20������&nick=fasdfasd This URL lets you go into a Java hebrew based chat. > > Selecting http://chat.tapuz.co.il/newchat/main.asp and then clicking on one of > the links at the bottom (e.g. the one that starts with 30) causes a KJS crash > here. Here, nothing happens. I do see a Java exception KJAS: sendShowStatusCmd, contextID = 1 msg = Applet chat started. java.lang.NullPointerException at Chat2000c.(Chat2000c) at Chat2000c.(Chat2000c) at Chat2000c.(Chat2000c) at Chat2000c.(Chat2000c) at Chat2000c.run(Chat2000c) at java.lang.Thread.run(Thread.java:536) in the Java console. But no chat?, no crash, no nothing. Koos From bastian at kde.org Wed Jul 10 23:23:50 2002 From: bastian at kde.org (Waldo Bastian) Date: Wed, 10 Jul 2002 15:23:50 -0700 Subject: More fun with auto scrolling In-Reply-To: References: Message-ID: <200207101523.50589.bastian@kde.org> On Wednesday 10 July 2002 03:12 pm, Koos Vriezen wrote: > Hi, Isn't this cache bound to break when you have one of these nifty CSS features like objects with fixed positions? Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From hetz at kde.org Wed Jul 10 23:29:19 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Thu, 11 Jul 2002 01:29:19 +0300 Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the % cruft?]) In-Reply-To: References: Message-ID: <200207110129.19796.hetz@kde.org> > Here, nothing happens. I do see a Java exception > > KJAS: sendShowStatusCmd, contextID = 1 msg = Applet chat started. > java.lang.NullPointerException > at Chat2000c.(Chat2000c) > at Chat2000c.(Chat2000c) > at Chat2000c.(Chat2000c) > at Chat2000c.(Chat2000c) > at Chat2000c.run(Chat2000c) > at java.lang.Thread.run(Thread.java:536) > > in the Java console. But no chat?, no crash, no nothing. If you tried the URL that Waldo posted - then yes, no chat because it doesn't know whats your nick and what room do u want to start chatting - I know, dumb thing, but the chat is based on a user/pass mechanism, so thats why you don't see anything... Try the URL I gave prior to Waldo's replies. I do have some focus problems randomly (suddenly I cannot type anything inside the chat) but I cannot find a way to reproduce this.. Thanks, Hetz From mueller at kde.org Wed Jul 10 23:33:46 2002 From: mueller at kde.org (Dirk Mueller) Date: Thu, 11 Jul 2002 00:33:46 +0200 Subject: More fun with auto scrolling In-Reply-To: <200207101523.50589.bastian@kde.org> References: <200207101523.50589.bastian@kde.org> Message-ID: <20020710223346.GA16712@matrix.wg> On Mit, 10 Jul 2002, Waldo Bastian wrote: > Isn't this cache bound to break when you have one of these nifty CSS features > like objects with fixed positions? It'll probably break as well when you use pages with animated images. -- Dirk (26 mails today) From mueller at kde.org Wed Jul 10 23:38:13 2002 From: mueller at kde.org (Dirk Mueller) Date: Thu, 11 Jul 2002 00:38:13 +0200 Subject: More fun with auto scrolling In-Reply-To: References: Message-ID: <20020710223813.GA16868@matrix.wg> On Don, 11 Jul 2002, Koos Vriezen wrote: > I found that scrolling is smoother if not for each pixel line a > renderer()->print is called, but fill the whole paintbuffer and copy each > time a line out of it. This is not perfect, it will mess up the view a bit > (eg. when increasing font sizes) but its quite harmless. Hmm, I'd like to separate these two parts. can you commit the auto scroller stuff already ? The paintbuffer-caching is a long term TODO but I never got around yet. (being a new feature and all that.. ). -- Dirk (29 mails today) From bastian at kde.org Wed Jul 10 23:40:01 2002 From: bastian at kde.org (Waldo Bastian) Date: Wed, 10 Jul 2002 15:40:01 -0700 Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the % cruft?]) In-Reply-To: References: Message-ID: <200207101540.01115.bastian@kde.org> On Wednesday 10 July 2002 03:22 pm, Koos Vriezen wrote: > On Wed, 10 Jul 2002, Waldo Bastian wrote: > > On Wednesday 10 July 2002 02:05 pm, Hetz Ben Hamo wrote: > > > I did - here it is again: > > > > > > http://chat.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30%20 > > >ôìåñ %20àéëåúé&nick=fasdfasd This URL lets you go into a Java hebrew > > > based chat. > > > > Selecting http://chat.tapuz.co.il/newchat/main.asp and then clicking on > > one of the links at the bottom (e.g. the one that starts with 30) causes > > a KJS crash here. > > Here, nothing happens. I do see a Java exception The crash seems to be related to me not having Java enabled. Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From germain at ebooksfrance.com Wed Jul 10 23:57:58 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Wed, 10 Jul 2002 23:57:58 +0100 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207110005.06004.hetz@kde.org> References: <200207081353.03199.hetz@kde.org> <200207101315.19493.bastian@kde.org> <200207110005.06004.hetz@kde.org> Message-ID: <200207102357.58188.germain@ebooksfrance.com> Le Mercredi 10 Juillet 2002 22:05, Hetz Ben Hamo a écrit : > I did - here it is again: > > http://chat.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30%20ôìåñ >%20àéëåúé&nick=fasdfasd This URL lets you go into a Java hebrew based chat. > > With MSIE (and suprisingly Netscape 4.x) - the gybrish stuff is being feed > into the server as parameters which room. > > the fasdfasd stuff is my test to put a nick name. if I put a hebrew nick > the chat java client will get it as "????????" in konqueror. Actually if > you'll try this URL on konqueror with Java enabled, you'll get into the > chat to a room named "30 ????? ??????" - the ? should be of course hebrew > letters ;) The Java stuff works but I have the same problem than Waldo with javascript links. Seems to me there are two problems here : 1) - when you feed the nick attr. with chars in cp-1255 encoding (as requested by the HTTP-EQUIV meta), they are correctly displayed in the HTML - but the Java applet receives garbage, so maybe it incorrectly expects utf-8 ...or the Java interface is broken ?... dunno. 2) Then again, if I simply copy/paste Hebrew chars (copy/paste works in utf-8, right?) from the page into the URL, they are incorrectly translated to %3Fs when I confirm. e.g : מצלמות which in hex is: d7 9e d7 a6 d7 9c d7 9e d7 95 d7 aa should be translated by KURL into: %D7%9E%D7%A6%D7%9C%D7%9E%D7%95%D7%AA and is in fact changed into : %3F%3F%3F%3F%3F%3F (which looks like it converts UTF-8 codes to my locale before encoding them) G. From koos.vriezen at xs4all.nl Thu Jul 11 07:14:23 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Thu, 11 Jul 2002 08:14:23 +0200 (CEST) Subject: More fun with auto scrolling In-Reply-To: <20020710223813.GA16868@matrix.wg> References: <20020710223813.GA16868@matrix.wg> Message-ID: On Thu, 11 Jul 2002, Dirk Mueller wrote: > On Don, 11 Jul 2002, Koos Vriezen wrote: > > > I found that scrolling is smoother if not for each pixel line a > > renderer()->print is called, but fill the whole paintbuffer and copy each > > time a line out of it. This is not perfect, it will mess up the view a bit > > (eg. when increasing font sizes) but its quite harmless. > > Hmm, I'd like to separate these two parts. can you commit the auto scroller > stuff already ? The paintbuffer-caching is a long term TODO but I never got > around yet. > > (being a new feature and all that.. ). Ok, curious to see how much hate-mail this will trigger :). Also, there should at least be a config option for this. Koos From lars at trolltech.com Thu Jul 11 08:09:02 2002 From: lars at trolltech.com (Lars Knoll) Date: Thu, 11 Jul 2002 09:09:02 +0200 Subject: [PATCH] printing of transparent images In-Reply-To: <200207101903.37784.coolo@kde.org> References: <200207101903.37784.coolo@kde.org> Message-ID: <200207110909.02191.lars@trolltech.com> > Hi! > > Printing web sites with black&white images, where white is transparent > results in black on black print outs. As an example check > http://verein.lst.de/~coolo/printout.html > > My suggested patch follows. It hard codes the color to print for > transparent pixels to white. David is working on an alternative solution, > but that would require bigger changes in QPSPrinter as it would need to > generate PS level 3 to get transparancy in the generated PS. The patch > works for me, but I'm open for suggestions :) Hmmm... we have a hack like that in QPSPrinter already. I'm wondering why it fails. Concerning the masked image printing, I have it working in the postscript driver of Qt-3.1. As the change is a bit bigger, I didn't want to commit it to the 3.0 codebase. If anyone is interested in testing it, feel free to ask me for the code. Cheers, Lars From falk.brettschneider at gmx.de Thu Jul 11 10:21:08 2002 From: falk.brettschneider at gmx.de (F@lk Brettschneider) Date: Thu, 11 Jul 2002 11:21:08 +0200 Subject: konqueror doesn't use correct page sizes Message-ID: <3D2D4E04.7080000@gmx.de> Hi! I use cvs HEAD (something after KDE-3.1a1). The following link and all the others on that site aren't shown correctly in Konqueror: http://www.baumeroptronic.de/index.php?PageName=Karriere&Language=de&NavigationId=62 Maybe you can check this during your bugfix sessions. Cheers F at lk From porten at trolltech.com Thu Jul 11 11:28:04 2002 From: porten at trolltech.com (Harri Porten) Date: Thu, 11 Jul 2002 12:28:04 +0200 (CEST) Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the % cruft?]) In-Reply-To: <200207101540.01115.bastian@kde.org> References: <200207101540.01115.bastian@kde.org> Message-ID: On Wed, 10 Jul 2002, Waldo Bastian wrote: > > > Selecting http://chat.tapuz.co.il/newchat/main.asp and then clicking on > > > one of the links at the bottom (e.g. the one that starts with 30) causes > > > a KJS crash here. > > > > Here, nothing happens. I do see a Java exception > > The crash seems to be related to me not having Java enabled. I don't have a JVM installed. But I don't get any crash (3.0 branch). Some JS debug/errors, though: khtml (jscript): Window::get found dynamic property 'ChangeRoom' khtml (jscript): Window::get found dynamic property 'ready' KJS: WARNING: Failed function call attempt on: undefined : Undefined (0x8277ee0), line 6 KJS: Was property 'switchRoom' KJS: of: [object APPLET] : HTMLAppletElement (0x81d6940) Your crash is most likely attributable to the JS implementation of HTMLAppletElement then. Harri. From lucy-ples at mtu-net.ru Thu Jul 11 12:26:08 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Thu, 11 Jul 2002 15:26:08 +0400 Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the % cruft?]) In-Reply-To: <200207101540.01115.bastian@kde.org> References: <200207101540.01115.bastian@kde.org> Message-ID: <200207111526.08548.lucy-ples@mtu-net.ru> On Thursday 11 July 2002 2:40 am, Waldo Bastian wrote: | On Wednesday 10 July 2002 03:22 pm, Koos Vriezen wrote: | > On Wed, 10 Jul 2002, Waldo Bastian wrote: | > > On Wednesday 10 July 2002 02:05 pm, Hetz Ben Hamo wrote: | > > > I did - here it is again: | > > > | > > > http://chat.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30 | > > >%20 ôìåñ %20àéëåúé&nick=fasdfasd This URL lets you go into a Java | > > > hebrew based chat. | > > | > > Selecting http://chat.tapuz.co.il/newchat/main.asp and then clicking | > > on one of the links at the bottom (e.g. the one that starts with 30) | > > causes a KJS crash here. | > | > Here, nothing happens. I do see a Java exception | | The crash seems to be related to me not having Java enabled. I don't have crash (KDE 3.0.2) - but Ialso don't have any version of Java installed. So, pressing on link with פלוס - and 30 - nothing happens. | | Cheers, | Waldo -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From lucy-ples at mtu-net.ru Thu Jul 11 12:34:48 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Thu, 11 Jul 2002 15:34:48 +0400 Subject: how Windows browsers encode URL [Re: why the % cruft?] In-Reply-To: <200207102357.58188.germain@ebooksfrance.com> References: <200207081353.03199.hetz@kde.org> <200207110005.06004.hetz@kde.org> <200207102357.58188.germain@ebooksfrance.com> Message-ID: <200207111534.48362.lucy-ples@mtu-net.ru> On Thursday 11 July 2002 2:57 am, Germain Garand wrote: | Le Mercredi 10 Juillet 2002 22:05, Hetz Ben Hamo a écrit : [...] | | 2) | Then again, if I simply copy/paste Hebrew chars (copy/paste works in | utf-8, right?) from the page into the URL, they are incorrectly translated | to %3Fs when I confirm. | e.g : מצלמות | And if you test the same with Google in Mozilla, you will get: http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=+%D7%A4%D7%9C%D7%95%D7%A1+&btnG=Google+Search (I was searching for פלוס ) Try to open URL above in Konq - and you will see the same page as in Mozilla. So, we just need to way to get a right page, using right encoding. | which in hex is: | d7 9e d7 a6 d7 9c d7 9e d7 95 d7 aa | | should be translated by KURL into: | %D7%9E%D7%A6%D7%9C%D7%9E%D7%95%D7%AA | | and is in fact changed into : | %3F%3F%3F%3F%3F%3F | | (which looks like it converts UTF-8 codes to my locale before encoding | them) -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From lucy-ples at mtu-net.ru Thu Jul 11 12:43:17 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Thu, 11 Jul 2002 15:43:17 +0400 Subject: was fixed by Dirk-> [Width of http://www.gentoo.org/doc/build.html] In-Reply-To: References: Message-ID: <200207111543.17142.lucy-ples@mtu-net.ru> On Friday 14 June 2002 12:18 am, Koos Vriezen wrote: | Hi, | | This page is rendered by khtml very wide, its hardly readable. | Attached a small fragment of this page, that's already too wide. It seems | to be the combination of FONT tags inside PRE tags inside a table cell. | Is this a known problem? | Hello Koos! In case you are not subscribed to mailing list: this problem was fixed. ------------------------------------------------------------- Bug#44155 acknowledged by developer ("Page too wide"-

 tag inside table 
(stripped from http://www.gentoo.org/doc/build.html ))
From: owner at bugs.kde.org (Stephan Kulow)
To: Vadim Plessky 

Your report has been marked as closed by one of the developers, namely
Dirk Mueller .

This problem has already been identified and fixed in the current CVS
version. If the fix is urgent for you, please consider upgrading to current
CVS version or the upcoming next stable release. Thank you for your valuable
feedback.

If you are pretty sure that something went wrong, 
please contact Dirk Mueller  directly.
-------------------------------------------------------------

|  Regards,
|
|  Koos Vriezen

-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/




From koos.vriezen at xs4all.nl  Thu Jul 11 17:25:59 2002
From: koos.vriezen at xs4all.nl (Koos Vriezen)
Date: Thu, 11 Jul 2002 18:25:59 +0200 (CEST)
Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the %
 cruft?])
In-Reply-To: 
References: 
Message-ID: 



On Thu, 11 Jul 2002, Harri Porten wrote:

> On Wed, 10 Jul 2002, Waldo Bastian wrote:
>
> > > > Selecting http://chat.tapuz.co.il/newchat/main.asp and then clicking on
> > > > one of the links at the bottom (e.g. the one that starts with 30) causes
> > > > a KJS crash here.
> > >
> > > Here, nothing happens. I do see a Java exception
> >
> > The crash seems to be related to me not having Java enabled.
>
> I don't have a JVM installed. But I don't get any crash (3.0 branch). Some
> JS debug/errors, though:
>
> khtml (jscript): Window::get found dynamic property 'ChangeRoom'
> khtml (jscript): Window::get found dynamic property 'ready'
> KJS: WARNING: Failed function call attempt on: undefined : Undefined
> (0x8277ee0), line 6
> KJS: Was property 'switchRoom'
> KJS: of: [object APPLET] : HTMLAppletElement (0x81d6940)
>
> Your crash is most likely attributable to the JS implementation of
> HTMLAppletElement then.

#5  
#6  KJavaApplet::appletId (this=0xffffffff) at kjavaapplet.cpp:191
#7  0x417adbe5 in KJS::HTMLElement::toString (this=0x8434c80,
exec=0xbfffe05c)
    at kjs_html.cpp:1844
#8  0x418a82db in KJS::Value::toString ()

Interesting this pointer :). Anyway, it's fixed.

Koos





From koos.vriezen at xs4all.nl  Thu Jul 11 17:37:49 2002
From: koos.vriezen at xs4all.nl (Koos Vriezen)
Date: Thu, 11 Jul 2002 18:37:49 +0200 (CEST)
Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the %
 cruft?])
In-Reply-To: <200207110129.19796.hetz@kde.org>
References: <200207110129.19796.hetz@kde.org>
Message-ID: 

On Thu, 11 Jul 2002, Hetz Ben Hamo wrote:

> > in the Java console. But no chat?, no crash, no nothing.
>
> If you tried the URL that Waldo posted - then yes, no chat because it doesn't
> know whats your nick and what room do u want to start chatting - I know, dumb
> thing, but the chat is based on a user/pass mechanism, so thats why you don't
> see anything...
>
> Try the URL I gave prior to Waldo's replies. I do have some focus problems
> randomly (suddenly I cannot type anything inside the chat) but I cannot find
> a way to reproduce this..

That's weird, you get two editboxes with blinking cursors. A html form
element and a Java TextField. This looks like a problem with the recent
embedding change.
Well let's pass this one once again, Till?

Regards,

Koos




From demos23 at gmx.net  Thu Jul 11 14:20:34 2002
From: demos23 at gmx.net (World Class)
Date: Thu, 11 Jul 2002 10:20:34 -0300
Subject: Capacitacin en Idiomas
Message-ID: 

An HTML attachment was scrubbed...
URL: 

From bastian at kde.org  Fri Jul 12 01:46:27 2002
From: bastian at kde.org (Waldo Bastian)
Date: Thu, 11 Jul 2002 17:46:27 -0700
Subject: how Windows browsers encode URL [Re: why the % cruft?]
In-Reply-To: <200207110005.06004.hetz@kde.org>
References: <200207081353.03199.hetz@kde.org> <200207101315.19493.bastian@kde.org> <200207110005.06004.hetz@kde.org>
Message-ID: <200207111746.27336.bastian@kde.org>

On Wednesday 10 July 2002 02:05 pm, Hetz Ben Hamo wrote:
> I did - here it is again:
>
> http://chat.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30%20ôìåñ
>%20àéëåúé&nick=fasdfasd This URL lets you go into a Java hebrew based chat.
>
> With MSIE (and suprisingly Netscape 4.x) - the gybrish stuff is being feed
> into the server as parameters which room.
>
> the fasdfasd stuff is my test to put a nick name. if I put a hebrew nick
> the chat java client will get it as "????????" in konqueror. Actually if
> you'll try this URL on konqueror with Java enabled, you'll get into the
> chat to a room named "30 ????? ??????" - the ? should be of course hebrew
> letters ;)

The problem seems to be related to the fact that the javascript construct 
"location.href = ...." fails to pass on the encoding.

E.g. there is:
KURL KHTMLPart::completeURL( const QString &url )
{
  if ( !d->m_doc ) return url;

  if (d->m_decoder)
    return KURL(d->m_doc->completeURL(url), d->m_decoder->codec()->mibEnum());

  return KURL( d->m_doc->completeURL( url ) );
}
which correctly informs KURL about the encoding but which is too late because 
m_doc->completeURL() has already ruined it.

In order to do it right, m_doc should know about the codec so that 
m_doc->completeURL( url ) can do the right thing itself. Can I add that?

The other option is to change all occurences of:
       KHTMLPart* p = Window::retrieveActive(exec)->m_part;
        if ( p )
          url = p->htmlDocument().completeURL(str).string();

in khtml/ecma into something like:
       KHTMLPart* p = Window::retrieveActive(exec)->m_part;
        if ( p )
          url = p->completeURL(str);

And then change KHTMLPart::completeURL() to:

  if (d->m_decoder)
    return KURL(d->m_doc->baseURL(), url, d->m_decoder->codec()->mibEnum());

But then everyone else who still uses htmDocument().completeURL() will run 
into similar problems.

(And after that the only thing needed is a patch for KURL so that KURL::url() 
returns ascii-only URLs)

Cheers,
Waldo
-- 
bastian at kde.org  |   SuSE Labs KDE Developer  |  bastian at suse.com




From till at snafu.de  Fri Jul 12 02:11:18 2002
From: till at snafu.de (Till Krech)
Date: Fri, 12 Jul 2002 03:11:18 +0200
Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the % cruft?])
In-Reply-To: 
References: 
Message-ID: <200207120311.18565.till@snafu.de>

Hi,
On Thursday 11 July 2002 18:37, Koos Vriezen wrote:
> On Thu, 11 Jul 2002, Hetz Ben Hamo wrote:
> > > in the Java console. But no chat?, no crash, no nothing.
> >
> > If you tried the URL that Waldo posted - then yes, no chat because it
> > doesn't know whats your nick and what room do u want to start chatting -
> > I know, dumb thing, but the chat is based on a user/pass mechanism, so
> > thats why you don't see anything...
> >
> > Try the URL I gave prior to Waldo's replies. I do have some focus
> > problems randomly (suddenly I cannot type anything inside the chat) but I
> > cannot find a way to reproduce this..
>
> That's weird, you get two editboxes with blinking cursors. A html form
> element and a Java TextField. This looks like a problem with the recent
> embedding change.
> Well let's pass this one once again, Till?
hmm, will have a look during the weekend. Did this ever work before ?
If I only new what is written there ;)
regards, till
>
> Regards,
>
> Koos

-- 
SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP
KDE: 3.0.6 (KDE 3.1 alpha1)
Qt: 3.0.4




From till at snafu.de  Fri Jul 12 02:22:10 2002
From: till at snafu.de (Till Krech)
Date: Fri, 12 Jul 2002 03:22:10 +0200
Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the % cruft?])
In-Reply-To: <200207120311.18565.till@snafu.de>
References:  <200207120311.18565.till@snafu.de>
Message-ID: <200207120322.10235.till@snafu.de>

s/new/knew/
-- 
SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP
KDE: 3.0.6 (KDE 3.1 alpha1)
Qt: 3.0.4




From toshitaka at kde.gr.jp  Fri Jul 12 04:54:08 2002
From: toshitaka at kde.gr.jp (Toshitaka Fujioka)
Date: Fri, 12 Jul 2002 12:54:08 +0900
Subject: how Windows browsers encode URL [Re: why the % cruft?]
In-Reply-To: <200207101752.28969.lucy-ples@mtu-net.ru>
References: <200207081353.03199.hetz@kde.org> <200207101229.38764.toshitaka@kde.gr.jp> <200207101752.28969.lucy-ples@mtu-net.ru>
Message-ID: <200207121254.08938.toshitaka@kde.gr.jp>

On Wednesday 10 July 2002 22:52, Vadim Plessky wrote:
[snip]
> P.S. do you have similar solution for IMAP folder names?

Hmm, I have a only one account of IMAP with my company. But I can't access
this account with KMail. I can access only with Lotus notes.

Therefore I can't test this problem, sorry.
-- 
Toshitaka Fujioka
http://www.kde.org                The K Desktop Environment Project
                                                    fujioka at kde.org
http://www.kde.gr.jp               Japan KDE User's Group
                                                    toshitaka at kde.gr.jp

-- A journey of a thousand miles must begin with a single step.  Lao-zi --  



From david at mandrakesoft.com  Fri Jul 12 11:24:48 2002
From: david at mandrakesoft.com (David Faure)
Date: Fri, 12 Jul 2002 12:24:48 +0200
Subject: how Windows browsers encode URL [Re: why the % cruft?]
In-Reply-To: <200207111746.27336.bastian@kde.org>
References: <200207081353.03199.hetz@kde.org> <200207110005.06004.hetz@kde.org> <200207111746.27336.bastian@kde.org>
Message-ID: <200207121224.48524.david@mandrakesoft.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 12 July 2002 02:46, Waldo Bastian wrote:
> In order to do it right, m_doc should know about the codec so that 
> m_doc->completeURL( url ) can do the right thing itself. Can I add that?

Fun. I remember adding a codec int to that method in the past, to fix
a similar problem, and then dropping this idea..... I can't remember why, though.
(I do think it's a correct fix though).

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9Lq5w72KcVAmwbhARAl42AJ0f9N5XKCXgVUGhvbfeZoldKaxRswCfacx0
Hvof+jPYrVnIgsYnJn7T/84=
=zaGv
-----END PGP SIGNATURE-----




From lars at trolltech.com  Fri Jul 12 11:37:19 2002
From: lars at trolltech.com (Lars Knoll)
Date: Fri, 12 Jul 2002 12:37:19 +0200
Subject: how Windows browsers encode URL [Re: why the % cruft?]
In-Reply-To: <200207111746.27336.bastian@kde.org>
References: <200207081353.03199.hetz@kde.org> <200207110005.06004.hetz@kde.org> <200207111746.27336.bastian@kde.org>
Message-ID: <200207121237.19879.lars@trolltech.com>


> On Wednesday 10 July 2002 02:05 pm, Hetz Ben Hamo wrote:
> > I did - here it is again:
> >
> > http://chat.tapuz.co.il/newchat/main.asp?regUser=no&shower=1&room=30%20ôì
> >åñ %20àéëåúé&nick=fasdfasd This URL lets you go into a Java hebrew based
> > chat.
> >
> > With MSIE (and suprisingly Netscape 4.x) - the gybrish stuff is being
> > feed into the server as parameters which room.
> >
> > the fasdfasd stuff is my test to put a nick name. if I put a hebrew nick
> > the chat java client will get it as "????????" in konqueror. Actually if
> > you'll try this URL on konqueror with Java enabled, you'll get into the
> > chat to a room named "30 ????? ??????" - the ? should be of course hebrew
> > letters ;)
>
> The problem seems to be related to the fact that the javascript construct
> "location.href = ...." fails to pass on the encoding.
>
> E.g. there is:
> KURL KHTMLPart::completeURL( const QString &url )
> {
>   if ( !d->m_doc ) return url;
>
>   if (d->m_decoder)
>     return KURL(d->m_doc->completeURL(url),
> d->m_decoder->codec()->mibEnum());
>
>   return KURL( d->m_doc->completeURL( url ) );
> }
> which correctly informs KURL about the encoding but which is too late
> because m_doc->completeURL() has already ruined it.

Hmmm... why does KURL loose information at all? To me the fundamental flaw 
seems to be that KURL can do lossy conversions earlier than needed. 

So putting a Unicode URL into KURL, then setting the encoding to latin1, and 
afterwards to eg. utf8 should not result in any operation that looses data.

All strings in KURL should be stored in Unicode, and the conversion should 
only be done in the end to avoid exactly these problems. In that case you 
wouldn't loose anything when constructing a url, and could then set the 
encoding whenever you want. This might be difficult because of some inlined 
methods in KURL, but IMO that's how the class should behave.

Cheers,
Lars




From koos.vriezen at xs4all.nl  Fri Jul 12 12:05:30 2002
From: koos.vriezen at xs4all.nl (Koos Vriezen)
Date: Fri, 12 Jul 2002 13:05:30 +0200 (CEST)
Subject: KJS crash (Was: how Windows browsers encode URL [Re: why the %
 cruft?])
In-Reply-To: <200207120311.18565.till@snafu.de>
References: <200207120311.18565.till@snafu.de>
Message-ID: 

On Fri, 12 Jul 2002, Till Krech wrote:

> On Thursday 11 July 2002 18:37, Koos Vriezen wrote:
> >
> > That's weird, you get two editboxes with blinking cursors. A html form
> > element and a Java TextField. This looks like a problem with the recent
> > embedding change.
> >
> hmm, will have a look during the weekend. Did this ever work before ?

Can't be fully for more than a few weeks, uses JS <-> Java a lot.

Koos




From bruggie at bruggie.dnsalias.org  Fri Jul 12 14:48:11 2002
From: bruggie at bruggie.dnsalias.org (Otto Bruggeman)
Date: Fri, 12 Jul 2002 15:48:11 +0200 (CEST)
Subject: More fun with auto scrolling
In-Reply-To: 
References: 
Message-ID: 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 11 Jul 2002, Koos Vriezen wrote:
> On Thu, 11 Jul 2002, Dirk Mueller wrote:
>
> > On Don, 11 Jul 2002, Koos Vriezen wrote:
> >
> > > I found that scrolling is smoother if not for each pixel line a
> > > renderer()->print is called, but fill the whole paintbuffer and copy each
> > > time a line out of it. This is not perfect, it will mess up the view a bit
> > > (eg. when increasing font sizes) but its quite harmless.
> >
> > Hmm, I'd like to separate these two parts. can you commit the auto scroller
> > stuff already ? The paintbuffer-caching is a long term TODO but I never got
> > around yet.
> >
> > (being a new feature and all that.. ).
>
> Ok, curious to see how much hate-mail this will trigger :). Also, there
> should at least be a config option for this.
>
> Koos

Hehe, here is one :)

Please allow for even slower autoscrolling, especially on really wide
pages with a small font. Besides not all people are speedreaders (the
default speed is really too fast for my taste, especially on pages not in
dutch) :)

But it is a nice feature though that i wanted to code myself one day,
thank you for taking it off my todo list :)

Otto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQE9Lt4hDc93sltYd+ERAmEkAJ9T55zR/S8Y3N0MkR/0MM2U/dtVDwCaAzgt
S75hfm1CG9t9LOAjC6e754w=
=hK+F
-----END PGP SIGNATURE-----





From koos.vriezen at xs4all.nl  Fri Jul 12 15:10:23 2002
From: koos.vriezen at xs4all.nl (Koos Vriezen)
Date: Fri, 12 Jul 2002 16:10:23 +0200 (CEST)
Subject: More fun with auto scrolling
In-Reply-To: 
References: 
Message-ID: 

On Fri, 12 Jul 2002, Otto Bruggeman wrote:
> > Ok, curious to see how much hate-mail this will trigger :). Also, there
> > should at least be a config option for this.
> >
> > Koos
>
> Hehe, here is one :)

Yes, I'm really pissed now :)

> Please allow for even slower autoscrolling, especially on really wide
> pages with a small font. Besides not all people are speedreaders (the
> default speed is really too fast for my taste, especially on pages not in
> dutch) :)
>
> But it is a nice feature though that i wanted to code myself one day,
> thank you for taking it off my todo list :)

It's now 1 pixel/30ms, going up to 10px/30ms. Maybe decreasing the timer
interval from 1px/60ms to 1px/10ms is a better solution. Will try that.
What do you thing of always starting auto scrolling, maybe only start with
the shift key down? Or, ...?

Thanks,

Koos




From germain at ebooksfrance.com  Fri Jul 12 15:34:38 2002
From: germain at ebooksfrance.com (Germain Garand)
Date: Fri, 12 Jul 2002 15:34:38 +0100
Subject: More fun with auto scrolling
In-Reply-To: 
References: 
Message-ID: <200207121534.38224.germain@ebooksfrance.com>

Le Vendredi 12 Juillet 2002 15:10, Koos Vriezen a écrit :
> What do you thing of always starting auto scrolling, maybe only start with
> the shift key down? Or, ...?

Oh yes, please, definetly, having it triggered by shift-down would be perfect 
and won't break old habits (I personnally love normal scrolling :/)...

I think it's a far better solution than 
yet-another-config-checkbox-you-won't-find-anyway...

Cheers,
G.
>
> Thanks,
>
> Koos




From bruggie at bruggie.dnsalias.org  Fri Jul 12 16:14:03 2002
From: bruggie at bruggie.dnsalias.org (Otto Bruggeman)
Date: Fri, 12 Jul 2002 17:14:03 +0200 (CEST)
Subject: More fun with auto scrolling
In-Reply-To: <200207121534.38224.germain@ebooksfrance.com>
References: <200207121534.38224.germain@ebooksfrance.com>
Message-ID: 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 12 Jul 2002, Germain Garand wrote:
> Le Vendredi 12 Juillet 2002 15:10, Koos Vriezen a écrit :
> > What do you thing of always starting auto scrolling, maybe only start with
> > the shift key down? Or, ...?
>
> Oh yes, please, definetly, having it triggered by shift-down would be perfect
> and won't break old habits (I personnally love normal scrolling :/)...
>
> I think it's a far better solution than
> yet-another-config-checkbox-you-won't-find-anyway...
>
> Cheers,
> G.

Yeah i agree as well, shift down sounds more reasonable to me.
Oh and about the timer thingy yeah that might be a better idea. and
increase the minimum to 1px/100ms (about a second per line with a
smallish font), if people want it scroll faster they have to tap the down
key a few more times :)

Otto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQE9LvJBDc93sltYd+ERAiIUAJ9JQmjFMzdmDJXT7OzDt4B9YwcWRwCeI4vB
iw4UlhuXj8tCKH7KLaQgI6o=
=PvH2
-----END PGP SIGNATURE-----





From bruggie at bruggie.dnsalias.org  Fri Jul 12 16:14:03 2002
From: bruggie at bruggie.dnsalias.org (Otto Bruggeman)
Date: Fri, 12 Jul 2002 17:14:03 +0200 (CEST)
Subject: More fun with auto scrolling
In-Reply-To: <200207121534.38224.germain@ebooksfrance.com>
References: <200207121534.38224.germain@ebooksfrance.com>
Message-ID: 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 12 Jul 2002, Germain Garand wrote:
> Le Vendredi 12 Juillet 2002 15:10, Koos Vriezen a écrit :
> > What do you thing of always starting auto scrolling, maybe only start with
> > the shift key down? Or, ...?
>
> Oh yes, please, definetly, having it triggered by shift-down would be perfect
> and won't break old habits (I personnally love normal scrolling :/)...
>
> I think it's a far better solution than
> yet-another-config-checkbox-you-won't-find-anyway...
>
> Cheers,
> G.

Yeah i agree as well, shift down sounds more reasonable to me.
Oh and about the timer thingy yeah that might be a better idea. and
increase the minimum to 1px/100ms (about a second per line with a
smallish font), if people want it scroll faster they have to tap the down
key a few more times :)

Otto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQE9LvJBDc93sltYd+ERAiIUAJ9JQmjFMzdmDJXT7OzDt4B9YwcWRwCeI4vB
iw4UlhuXj8tCKH7KLaQgI6o=
=PvH2
-----END PGP SIGNATURE-----





From koos.vriezen at xs4all.nl  Fri Jul 12 16:57:21 2002
From: koos.vriezen at xs4all.nl (Koos Vriezen)
Date: Fri, 12 Jul 2002 17:57:21 +0200 (CEST)
Subject: More fun with auto scrolling
In-Reply-To: 
References: 
Message-ID: 

> On Fri, 12 Jul 2002, Germain Garand wrote:
> > Le Vendredi 12 Juillet 2002 15:10, Koos Vriezen a �crit :
> > > What do you thing of always starting auto scrolling, maybe only start with
> > > the shift key down? Or, ...?
> >
> > Oh yes, please, definetly, having it triggered by shift-down would be perfect
> > and won't break old habits (I personnally love normal scrolling :/)...
> >
> > I think it's a far better solution than
> > yet-another-config-checkbox-you-won't-find-anyway...
> >
> > Cheers,
> > G.
>
> Yeah i agree as well, shift down sounds more reasonable to me.
> Oh and about the timer thingy yeah that might be a better idea. and
> increase the minimum to 1px/100ms (about a second per line with a
> smallish font), if people want it scroll faster they have to tap the down
> key a few more times :)

Ok, attached a patch that does:
- Only enable/accelerate/decelerate auto scrolling when shift key is down
- Changed scrolling velocity by changing interval and pixel/scroll
  These timings {100, 1}, {50, 1}, {30,1}, {20,1}, {10,1}, {10,2}, {10,3}
  are used ({interval, pixel}).

I do think though, intervals bigger than 30 are ugly.

Please test.

Koos
-------------- next part --------------
Index: khtmlview.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/khtmlview.cpp,v
retrieving revision 1.476
diff -u -3 -p -r1.476 khtmlview.cpp
--- khtmlview.cpp	2002/07/11 06:15:26	1.476
+++ khtmlview.cpp	2002/07/12 15:49:24
@@ -177,6 +177,7 @@ public:
 
     int repaintTimerId;
     int scrollTimerId;
+    int scrollTiming;
     int scrollBy;
     bool complete;
     bool firstRelayout;
@@ -622,7 +623,8 @@ void KHTMLView::keyPressEvent( QKeyEvent
     }
 
     int offs = (clipper()->height() < 30) ? clipper()->height() : 30;
-    if (_ke->state()&ShiftButton)
+    static int timings [][2] = { {100, 1}, {50, 1}, {30,1}, {20,1}, {10,1}, {10,2}, {10,3}, {0,0} };
+    if (_ke->state() & Qt::ShiftButton)
       switch(_ke->key())
         {
         case Key_Space:
@@ -631,6 +633,30 @@ void KHTMLView::keyPressEvent( QKeyEvent
             else
                 scrollBy( 0, -clipper()->height() - offs );
             break;
+
+        case Key_Down:
+        case Key_J:
+            if (!d->scrollTimerId) {
+                d->scrollTiming = 0;
+                d->scrollBy = timings[0][1];
+                scrollBy( 0, d->scrollBy );
+                d->scrollTimerId = startTimer(timings[0][0]);
+            } else if (timings[d->scrollTiming+1][0]) {
+                d->scrollBy = timings[++d->scrollTiming][1];
+                scrollBy( 0, d->scrollBy );
+                killTimer(d->scrollTimerId);
+                d->scrollTimerId = startTimer(timings[d->scrollTiming][0]);
+            }
+            break;
+
+        case Key_Up:
+        case Key_K:
+            if (d->scrollTiming) {
+                d->scrollBy = timings[--d->scrollTiming][1];
+                killTimer(d->scrollTimerId);
+                d->scrollTimerId = startTimer(timings[d->scrollTiming][0]);
+            }
+            break;
         }
     else
         switch ( _ke->key() )
@@ -639,18 +665,13 @@ void KHTMLView::keyPressEvent( QKeyEvent
         case Key_J:
             if ( d->vmode == QScrollView::AlwaysOff )
                 _ke->accept();
-            else if (_ke->isAutoRepeat()) {
+            else {
                 if (d->scrollTimerId) {
                     killTimer(d->scrollTimerId);
                     d->scrollTimerId = 0;
                 }
                 scrollBy( 0, 10 );
-            } else if (!d->scrollTimerId) {
-                d->scrollBy = 1;
-                scrollBy( 0, d->scrollBy );
-                d->scrollTimerId = startTimer(30);
-            } else if (d->scrollBy < 10)
-                d->scrollBy++;
+            }
             break;
 
         case Key_Space:
@@ -665,13 +686,13 @@ void KHTMLView::keyPressEvent( QKeyEvent
         case Key_K:
             if ( d->vmode == QScrollView::AlwaysOff )
                 _ke->accept();
-            else if (d->scrollTimerId) {
-                if (--d->scrollBy <= 0) {
+            else {
+                if (d->scrollTimerId) {
                     killTimer(d->scrollTimerId);
                     d->scrollTimerId = 0;
                 }
-            } else
                 scrollBy( 0, -10 );
+            }
             break;
 
         case Key_Prior:
@@ -1481,7 +1502,7 @@ void KHTMLView::timerEvent ( QTimerEvent
 {
 //    kdDebug() << "timer event " << e->timerId() << endl;
     if (e->timerId() == d->scrollTimerId) {
-        if (contentsY() + visibleHeight () >= contentsHeight() || d->scrollBy <= 0) {
+        if (contentsY() + visibleHeight () >= contentsHeight()) {
             kdDebug() << "timer event killing timer" << endl;
             killTimer(d->scrollTimerId);
             d->scrollTimerId = 0;

From bastian at kde.org  Fri Jul 12 20:15:13 2002
From: bastian at kde.org (Waldo Bastian)
Date: Fri, 12 Jul 2002 12:15:13 -0700
Subject: how Windows browsers encode URL [Re: why the % cruft?]
In-Reply-To: <200207121237.19879.lars@trolltech.com>
References: <200207081353.03199.hetz@kde.org> <200207111746.27336.bastian@kde.org> <200207121237.19879.lars@trolltech.com>
Message-ID: <200207121215.13919.bastian@kde.org>

On Friday 12 July 2002 03:37 am, Lars Knoll wrote:
> So putting a Unicode URL into KURL, then setting the encoding to latin1,
> and afterwards to eg. utf8 should not result in any operation that looses
> data.

I fail to see why it is so hard to set the encoding right the first time. You 
don't read HTML pages as "latin1" first and then later change the QStrings to 
correct for the fact that the encoding should have been utf8, do you?

If you set the wrong encoding then KURL::url() will return the wrong result. 
If you continue to work with those wrong results then things will not 
automagically correct themselves after you throw them into a KURL with 
another encoding set.

Cheers,
Waldo
-- 
bastian at kde.org  |   SuSE Labs KDE Developer  |  bastian at suse.com




From lars at trolltech.com  Sat Jul 13 11:48:49 2002
From: lars at trolltech.com (Lars Knoll)
Date: Sat, 13 Jul 2002 12:48:49 +0200
Subject: how Windows browsers encode URL [Re: why the % cruft?]
In-Reply-To: <200207121215.13919.bastian@kde.org>
References: <200207081353.03199.hetz@kde.org> <200207121237.19879.lars@trolltech.com> <200207121215.13919.bastian@kde.org>
Message-ID: <200207131248.49214.lars@trolltech.com>


> On Friday 12 July 2002 03:37 am, Lars Knoll wrote:
> > So putting a Unicode URL into KURL, then setting the encoding to latin1,
> > and afterwards to eg. utf8 should not result in any operation that looses
> > data.
>
> I fail to see why it is so hard to set the encoding right the first time.
> You don't read HTML pages as "latin1" first and then later change the
> QStrings to correct for the fact that the encoding should have been utf8,
> do you?
>
> If you set the wrong encoding then KURL::url() will return the wrong
> result. If you continue to work with those wrong results then things will
> not automagically correct themselves after you throw them into a KURL with
> another encoding set.

I think you misunderstand me. Sure that KURL::url() returns a wrong result 
with a wrong encoding. My point is more that we actually should never need to 
call url() before actually sending it out over the wire in a request as it 
can be an operation where we loose information. 

When constructing one URL from another, we should probably use the decoded 
variants so no information is lost. KURL should provide all means to do that, 
so you can set arbitrary unicode strings and only when sending it out as part 
of a request will it get transformed into an encoding.

Lars






From germain at ebooksfrance.com  Sat Jul 13 17:55:20 2002
From: germain at ebooksfrance.com (Germain Garand)
Date: Sat, 13 Jul 2002 17:55:20 +0100
Subject: [PATCH]  various nodeAtPoint() fixes
Message-ID: <200207131755.20637.germain@ebooksfrance.com>


Hello there, hello Dirk !

I've dived since a week into nodeAtPoint's internals to solve a number of problems
 with mouse hovering and link detection.

 I finally found 3 errors and made a patch.

As the whole method is very tense and touchy, I think it's better if I details exactly 
what my changes do :

-------------------------------

- 1°: relative coordinates change don't propagate recursively to childrens.
(I posted this last week on kfm-devel but noone replied so it's still pending)

 if (!child->isPositioned() && child->nodeAtPoint(info, _x, _y, _tx+xPos(), _ty+yPos()))

Here, it should pass tx and ty, which are exactly the same as _tx+xPos()/_ty+yPos() excepted if a relative translation occured.

 Testcase: http://www.phoenix-library.org/bug-konq-css.html
 Bug: #42681 (+ #43282)

------------------------------------------------------

- 2°: on the same line, the test for !child->isPositioned() need to be !child->isSpecial()
(I do know it was changed in r1.171, but please read on.. there is more on this later)

rationale :
----------
All specialObjects (i.e : isFloating() || isPositioned() ) are parsed only in RenderFlow::nodeAtPoint().
It first iterates over specialObjects, calling ->nodeAtPoint() on each.
When there are no more, it then inspects NORMAL children by calling the base class method on
"this".
Thus, if you just filter child->isPositioned(), all floating objects will end up beiing parsed twice.

That's no good, because when innerNode is found, nodeAtPoint() proceeds unsetting mouseInside()
for EVERY remaining node, without checking if it already parsed them.
In other words, it will cancel a previous hover on floating objects instantly.

There are quite a lot of subtle problems with hovering which are caused by this double parsing.

Now, the original !child->isSpecial() was replaced by !child->isPositioned() in revision 1.171
to force the parsing of non-RenderFlow floating objects.

So a simple solution to correct everything is :

 if (!(child->isSpecial() && isFlow()) && child->nodeAtPoint(info, _x, _y, tx, ty))

That way,  specialObjects are filtered out only if the parent inherits RenderFlow.

Here is one of my testcases for the duplicate parsing error: 
http://www.phoenix-library.org/germain/testcases/bug_khtml_hover.html
Bug: #44602             
(the bug points to a real-world page, but my testcase is a reduction of it)

And for filtering out every specialObjects vs. filtering only when this->isFlow():
http://www.phoenix-library.org/germain/testcases/khtml-absolute-rendercontainer.html
Bug: #40519
(same remark as above)
------------------------------------------

3°-innerNode() and URLElement() are sometimes differents, the former being selected before
 the later, thus avoiding mouse hover (or mouse active) on some links.

I've made a drawing to make it simpler to explain the kind of problems it causes :
http://www.phoenix-library.org/germain/testcases/intersection.jpg  (kprez rulez! :)

Div A and Div B are transparent containers for Link A and Link B (they don't appear on screen).
But Div A covers a large part of Link B.
So if you click on the (blue) covered part of Link B, nodeAtPoint() will:
- track the mouse cursor to Div A
- check that mouse is outside of Link A
- proceed to assign Div A to innerNode
- continue (unsetting mouseInside() on the way) until it reaches Link B
- assign URLElement to Link B

So Link B will have the hand cursor, but hover will only be triggered if you hover the
white, non-covered part, of Link B

Example: 
----------
http://www.w3.org/Style/CSS

Here, you can't hover "CSS Test Suites" at all, because it's totally covered by transparent containers.
"What's new" only light up when you hover on the middle region, that is : between the invisible 
containers of "Learning CSS" and "Specs".

Now the rationale behind my patch :
--------------------------------------------
- All the point of having an innerNode is "there can be only one hovered branch at a time,
 and one active container if it's a click event".
- Thus there's no point in selecting an innerNode that has no "hasHover" or "hasActive", better wait until :
  A) we encounter an URLElement (and we give it the innerNode)
or
 B) we encounter a better innerNode, with hover or active.
or
 C) we default to the root node.

This doesn't change the logic : it's just about being smarter about the choice of innerNode.

+        if (!info.innerNode() && (isRoot() || (style() && style()->hasHover()) || (info.active() && style()->hasActive())))
             info.setInnerNode(element());
[...]
                     info.setURLElement(p->element());
+                    if (!info.innerNode())
+                        info.setInnerNode(element());

I'm waiting for your comments - it would be great if at least point 1) made it's way to KDE 3.1
because it's the most obvious and the most ennoying (links inaccessibles in a lot of DHTML pages).

Cheers,

Germain







-------------- next part --------------
A non-text attachment was scrubbed...
Name: render_object.cpp.3.patch
Type: text/x-diff
Size: 1552 bytes
Desc: not available
URL: 

From bastian at kde.org  Sat Jul 13 18:35:49 2002
From: bastian at kde.org (Waldo Bastian)
Date: Sat, 13 Jul 2002 10:35:49 -0700
Subject: how Windows browsers encode URL [Re: why the % cruft?]
In-Reply-To: <200207131248.49214.lars@trolltech.com>
References: <200207081353.03199.hetz@kde.org> <200207121215.13919.bastian@kde.org> <200207131248.49214.lars@trolltech.com>
Message-ID: <200207131035.49098.bastian@kde.org>

On Saturday 13 July 2002 03:48 am, Lars Knoll wrote:
> > On Friday 12 July 2002 03:37 am, Lars Knoll wrote:
> > > So putting a Unicode URL into KURL, then setting the encoding to
> > > latin1, and afterwards to eg. utf8 should not result in any operation
> > > that looses data.
> >
> > I fail to see why it is so hard to set the encoding right the first time.
> > You don't read HTML pages as "latin1" first and then later change the
> > QStrings to correct for the fact that the encoding should have been utf8,
> > do you?
> >
> > If you set the wrong encoding then KURL::url() will return the wrong
> > result. If you continue to work with those wrong results then things will
> > not automagically correct themselves after you throw them into a KURL
> > with another encoding set.
>
> I think you misunderstand me. Sure that KURL::url() returns a wrong result
> with a wrong encoding. My point is more that we actually should never need
> to call url() before actually sending it out over the wire in a request as
> it can be an operation where we loose information.

Tell that to khtml which converts back and forth between KURL and QString.

Take e.g. DOM::DocumentImpl: 
QString completeURL(const QString& url) 
{ return KURL(baseURL(),url,m_decoderMibEnum).url(); };

(I added the proper encoding yesterday, so now it works)

> When constructing one URL from another, we should probably use the decoded
> variants so no information is lost. KURL should provide all means to do
> that, so you can set arbitrary unicode strings and only when sending it out
> as part of a request will it get transformed into an encoding.

That's waht happens if you do:
KURL u;
u.setPath(path_str);

But if you do
url_str = textCodec->toUnicode(url_cstr);
KURL u(url_str);

it is important to preserve the original encoding of url_cstr and for that we 
need to know what it was.

Cheers,
Waldo
-- 
bastian at kde.org  |   SuSE Labs KDE Developer  |  bastian at suse.com




From david at mandrakesoft.com  Sat Jul 13 18:54:59 2002
From: david at mandrakesoft.com (David Faure)
Date: Sat, 13 Jul 2002 19:54:59 +0200
Subject: About khtml/xml/dom2_eventsimpl.cpp revision 1.22
In-Reply-To: 
References: 
Message-ID: <200207131954.59795.david@mandrakesoft.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 13 July 2002 12:47, you wrote:
> Hi David,
> 
> revision 1.22
> date: 2002/03/07 15:07:34;  author: faure;  state: Exp;  lines: +4 -1
> -  qKeyEvent->ignore();
> +  // Events are supposed to be accepted by default in Qt!
> +  // This line made QLineEdit's keyevents be ignored, so they were sent
> to the khtmlview
> +  // (and e.g. space would make it scroll down)
> +  //qKeyEvent->ignore();
> 
> This patch makes that the scroll keys don't work when a link has the
> focus. Shouldn't XXEdit event handles mark qKeyEvent as accepted?

Hmm, I'm no expert on the question, and I don't remember the big
picture (if I ever grasped it ;).

Anyway from the above comment: we could also state that this default 
behaviour (accepting) is correct, and that the fix would be for the link
to ignore (pass up, whatever) any keyevent it doesn't handle?

This needs more investigation, sorry I can't do it today.

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9MGlz72KcVAmwbhARAmYFAKCHifaqW8ognZsCY+Y817PdXyCJPQCdFgx/
bcHLBkTedTpnzZJvgSU0GxA=
=H+R5
-----END PGP SIGNATURE-----




From koos.vriezen at xs4all.nl  Sat Jul 13 19:07:41 2002
From: koos.vriezen at xs4all.nl (Koos Vriezen)
Date: Sat, 13 Jul 2002 20:07:41 +0200 (CEST)
Subject: About khtml/xml/dom2_eventsimpl.cpp revision 1.22
In-Reply-To: <200207131954.59795.david@mandrakesoft.com>
References: <200207131954.59795.david@mandrakesoft.com>
Message-ID: 



On Sat, 13 Jul 2002, David Faure wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Saturday 13 July 2002 12:47, you wrote:
> > Hi David,
> >
> > revision 1.22
> > date: 2002/03/07 15:07:34;  author: faure;  state: Exp;  lines: +4 -1
> > -  qKeyEvent->ignore();
> > +  // Events are supposed to be accepted by default in Qt!
> > +  // This line made QLineEdit's keyevents be ignored, so they were sent
> > to the khtmlview
> > +  // (and e.g. space would make it scroll down)
> > +  //qKeyEvent->ignore();
> >
> > This patch makes that the scroll keys don't work when a link has the
> > focus. Shouldn't XXEdit event handles mark qKeyEvent as accepted?
>
> Hmm, I'm no expert on the question, and I don't remember the big
> picture (if I ever grasped it ;).

Me neither, but I've played with it a bit. Reverting version 1.22 and do a

diff -u -3 -p -r1.278 html_formimpl.cpp
--- html/html_formimpl.cpp      2002/07/05 00:34:46     1.278
+++ html/html_formimpl.cpp      2002/07/13 18:05:26
@@ -656,6 +656,7 @@ void HTMLGenericFormElementImpl::default
            evt->id()==EventImpl::KHTML_KEYUP_EVENT)
        {
            KeyEventImpl * k = static_cast(evt);
+            k->qKeyEvent->accept();
            if (k->keyVal() == QChar('\n').unicode() && m_render &&
m_render->isWidget() && k->qKeyEvent)
                QApplication::sendEvent(static_cast(m_render)->widget(), k->qKeyEvent);
        }

here seems to work.

> Anyway from the above comment: we could also state that this default
> behaviour (accepting) is correct, and that the fix would be for the link
> to ignore (pass up, whatever) any keyevent it doesn't handle?

Yes, that could probably also work...

Thanks,

Koos




From mueller at kde.org  Sat Jul 13 19:19:21 2002
From: mueller at kde.org (Dirk Mueller)
Date: Sat, 13 Jul 2002 20:19:21 +0200
Subject: [PATCH]  various nodeAtPoint() fixes
In-Reply-To: <200207131755.20637.germain@ebooksfrance.com>
References: <200207131755.20637.germain@ebooksfrance.com>
Message-ID: <20020713181921.GA30698@matrix.wg>

On Sam, 13 Jul 2002, Germain Garand wrote:

> I've dived since a week into nodeAtPoint's internals to solve a number of problems
>  with mouse hovering and link detection.

Very nice! I'm quite impressed by the precise analysis and the patch!

> 
> - 1°: relative coordinates change don't propagate recursively to childrens.
> (I posted this last week on kfm-devel but noone replied so it's still pending)

Yes, this was partly intended. I think I remember an interaction with 
absolute positioned containers in relative positioned parents. I have to 
reconstruct the testcase again, for now your change does make sense to 
me, perhaps the old reason for this code line was already fixed in an 
earlier rewrite. 


> - 2°: on the same line, the test for !child->isPositioned() need to be !child->isSpecial()
> (I do know it was changed in r1.171, but please read on.. there is more on this later)

There is another problem here.. the paint order is different than usual for 
floats, see the similiar hacks in renderflow. Therefore floats are 
"special Specialobjects" ( I really hate the name as well). 
Will think about this more. Of course you need very evil cases where the 
paint order of floats vs other elements matters, but this is already found 
on many webpages ;-)

> So Link B will have the hand cursor, but hover will only be triggered if you hover the
> white, non-covered part, of Link B
> 
> Example: 
> ----------
> http://www.w3.org/Style/CSS
> 
> Here, you can't hover "CSS Test Suites" at all, because it's totally covered by transparent containers.
> "What's new" only light up when you hover on the middle region, that is : between the invisible 
> containers of "Learning CSS" and "Specs".
> 
> Now the rationale behind my patch :
> --------------------------------------------
> - All the point of having an innerNode is "there can be only one hovered branch at a time,
>  and one active container if it's a click event".
> - Thus there's no point in selecting an innerNode that has no "hasHover" or "hasActive", better wait until :
>   A) we encounter an URLElement (and we give it the innerNode)
> or
>  B) we encounter a better innerNode, with hover or active.
> or
>  C) we default to the root node.
> 
> This doesn't change the logic : it's just about being smarter about the choice of innerNode.
> 
> +        if (!info.innerNode() && (isRoot() || (style() && style()->hasHover()) || (info.active() && style()->hasActive())))
>              info.setInnerNode(element());
> [...]
>                      info.setURLElement(p->element());
> +                    if (!info.innerNode())
> +                        info.setInnerNode(element());

I like the idea, however the implementation doesn't catch the case where an 
event listener is registered on the innermost node. 

I know your patch is emulating IE's behaviour - which is sort of flawed 
(they mainly did this for performance reasons is my bet) because there is 
nothing "special" about anchor elements in the xml / css world, unlike in 
HTML of course. 

Personally i think khtml is behaving correct in this case, although it is 
very annoying for the example page you mentioned (I've spend some hours on 
that page already)

I'll investigate this a bit more. 


Thanks for your patch, 

Dirk



From mueller at kde.org  Sat Jul 13 19:24:58 2002
From: mueller at kde.org (Dirk Mueller)
Date: Sat, 13 Jul 2002 20:24:58 +0200
Subject: About khtml/xml/dom2_eventsimpl.cpp revision 1.22
In-Reply-To: <200207131954.59795.david@mandrakesoft.com>
References:  <200207131954.59795.david@mandrakesoft.com>
Message-ID: <20020713182458.GB30698@matrix.wg>

On Sam, 13 Jul 2002, David Faure wrote:

> > This patch makes that the scroll keys don't work when a link has the
> > focus. Shouldn't XXEdit event handles mark qKeyEvent as accepted?
> 
> Hmm, I'm no expert on the question, and I don't remember the big
> picture (if I ever grasped it ;).
> 
> Anyway from the above comment: we could also state that this default 
> behaviour (accepting) is correct, and that the fix would be for the link
> to ignore (pass up, whatever) any keyevent it doesn't handle?
> 
> This needs more investigation, sorry I can't do it today.

The big picture is working around Qt bugs: Qt widgets usually only 
reimplement keydown event, not the keyup event. therefore while some 
subwidget on the page might accept (i.e. capture) a keypress event, the 
keyrelease event still arrives in the khtmlview, and has to be ignored 
there. 


-- 
Dirk (602 mails today)



From koos.vriezen at xs4all.nl  Sat Jul 13 21:35:59 2002
From: koos.vriezen at xs4all.nl (Koos Vriezen)
Date: Sat, 13 Jul 2002 22:35:59 +0200 (CEST)
Subject: About khtml/xml/dom2_eventsimpl.cpp revision 1.22
In-Reply-To: <20020713182458.GB30698@matrix.wg>
References: <20020713182458.GB30698@matrix.wg>
Message-ID: 

On Sat, 13 Jul 2002, Dirk Mueller wrote:

> On Sam, 13 Jul 2002, David Faure wrote:
>
> > > This patch makes that the scroll keys don't work when a link has the
> > > focus. Shouldn't XXEdit event handles mark qKeyEvent as accepted?
> >
> > Hmm, I'm no expert on the question, and I don't remember the big
> > picture (if I ever grasped it ;).
> >
> > Anyway from the above comment: we could also state that this default
> > behaviour (accepting) is correct, and that the fix would be for the link
> > to ignore (pass up, whatever) any keyevent it doesn't handle?
> >
> > This needs more investigation, sorry I can't do it today.
>
> The big picture is working around Qt bugs: Qt widgets usually only
> reimplement keydown event, not the keyup event. therefore while some
> subwidget on the page might accept (i.e. capture) a keypress event, the
> keyrelease event still arrives in the khtmlview, and has to be ignored
> there.

Forgive me for being dumb, but you mean version 1.22 should be reverted?
And where to put the accept call, in
HTMLGenericFormElementImpl::defaultEventHandler, other places too?
HTMLAnchorElementImpl::defaultEventHandler already accepts in case of
enter.

Koos




From mueller at kde.org  Sat Jul 13 22:28:12 2002
From: mueller at kde.org (Dirk Mueller)
Date: Sat, 13 Jul 2002 23:28:12 +0200
Subject: About khtml/xml/dom2_eventsimpl.cpp revision 1.22
In-Reply-To: 
References: <20020713182458.GB30698@matrix.wg> 
Message-ID: <20020713212811.GA2631@matrix.wg>

On Sam, 13 Jul 2002, Koos Vriezen wrote:

> Forgive me for being dumb, but you mean version 1.22 should be reverted?
> And where to put the accept call, in
> HTMLGenericFormElementImpl::defaultEventHandler, other places too?
> HTMLAnchorElementImpl::defaultEventHandler already accepts in case of
> enter.

No, nothing should be reverted, because it works correctly the way it is. if 
you want it to work better, then  then make sure that 
HTMLAnchorElementImpl::defaultEventHandler  
calls setDefaultEventHandled only when it actually was able to handle 
the keypress and not all the time like it does now. 

For example it could capture space and return, and ignore the rest. 

-- 
Dirk (720 mails today)



From koos.vriezen at xs4all.nl  Sat Jul 13 23:21:06 2002
From: koos.vriezen at xs4all.nl (Koos Vriezen)
Date: Sun, 14 Jul 2002 00:21:06 +0200 (CEST)
Subject: About khtml/xml/dom2_eventsimpl.cpp revision 1.22
In-Reply-To: <20020713212811.GA2631@matrix.wg>
References: <20020713212811.GA2631@matrix.wg>
Message-ID: 

On Sat, 13 Jul 2002, Dirk Mueller wrote:

> No, nothing should be reverted, because it works correctly the way it is. if
> you want it to work better, then  then make sure that
> HTMLAnchorElementImpl::defaultEventHandler
> calls setDefaultEventHandled only when it actually was able to handle
> the keypress and not all the time like it does now.

No, it doesn't

--- html/html_inlineimpl.cpp    2002/03/15 22:53:08     1.109
+++ html/html_inlineimpl.cpp    2002/07/13 22:11:06
@@ -82,6 +82,8 @@ void HTMLAnchorElementImpl::defaultEvent

         if ( k ) {
             if (k->virtKeyVal() != KeyEventImpl::DOM_VK_ENTER) {
+                if (k->qKeyEvent)
+                    k->qKeyEvent->ignore();
                 HTMLElementImpl::defaultEventHandler(evt);
                 return;
             }

It just returned (NodeImpl::defaultEventHandler being empty). Adding these
two lines seems to work (as David suggested).

> For example it could capture space and return, and ignore the rest.

Space? Doesn't do anything now and it's also a scroll key.

Koos




From sam at bifrost.demon.co.uk  Sun Jul 14 14:15:58 2002
From: sam at bifrost.demon.co.uk (Samuel Penn)
Date: Sun, 14 Jul 2002 14:15:58 +0100
Subject: page-break-before
In-Reply-To: <200207121237.19879.lars@trolltech.com>
References: <200207081353.03199.hetz@kde.org> <200207111746.27336.bastian@kde.org> <200207121237.19879.lars@trolltech.com>
Message-ID: <200207141416.11598.sam@bifrost.demon.co.uk>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Does anyone know if Konquerer/KHTML supports the various
page break tags for CSS? I'm currently trying something
like:

h1 {
    page-break-before: always;
}

or

div.section {
    page-break-after: always;
}

This doesn't behave as expected (i.e. it doesn't give a 
page break). Some print media tags are supported (since if
I have a stylesheet of media="print", the printed version
will use different colour schemes to the screen version.
However, I'm not sure whether it's my CSS at fault, or
Konqueror.

I'm using KDE 3.0, so if this support has been added since
then, then I've found a good reason to upgrade.

Cheers.

- -- 
Be seeing you,
Sam.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9MXmYf6Cy7pRwE0QRAquRAKCasJbh4LT6MNy+tLMK0XqmIo0rOgCgxX0i
djzFI1OlGgM3qdaxIgtFIBM=
=o9r3
-----END PGP SIGNATURE-----



From kudling at kde.org  Sun Jul 14 15:07:51 2002
From: kudling at kde.org (Lenny)
Date: Sun, 14 Jul 2002 16:07:51 +0200
Subject: Empty dialog pops up after pressing cancel in download dialog
Message-ID: <200207141607.51593.kudling@kde.org>

Try for example: http://www.ecs.soton.ac.uk/~cjg/AmberDB

Press "cancel" soon and after that a 100% empty dialog pops up. 

Bye
Lenny (cvs 2 days old)



From hanleyman at adelphia.net  Sun Jul 14 17:22:19 2002
From: hanleyman at adelphia.net (Doug Hanley)
Date: Sun, 14 Jul 2002 12:22:19 -0400
Subject: MMB opens in new tab
Message-ID: <200207141222.19644.hanleyman@adelphia.net>

Hi,

I was checking out the webcvs logs and I noticed that there was some sign of a 
mmb opens in new tab patch coming soon.  I'm not sure if you've already done 
this, or if you haven't started yet, but I just wanted to tell you that I 
have that feature already in my tree, so I guess I'll just show you what I 
have right here:

(this function is called in the beginning of both versions of 
slotCreateNewWindow, i'm not sure if thats correct)

void KonqMainWindow::createNewTab( const KURL &url, const KParts::URLArgs 
&args )
{
  bool unknown = false;
  KMimeType::Ptr mimeType = KMimeType::findByURL( url );
  QString mimeName = mimeType->name();
  QString mimeComment = mimeType->comment();    
  if (mimeName == "application/octet-stream") {
    unknown = true;
    mimeName = "text/html";
  }
  KonqView* newView = 0L;
  newView = m_pViewManager->addTab( mimeName, mimeComment );
  if (newView == 0L) return;
  if (unknown) new KonqRun( this, newView, url );
  else openURL( newView, url, args );
  static_cast(m_pViewManager->docContainer())->showPage( 
newView->frame() );
}

I also changed the popup tab code to something very similar to this, because 
it fixes a bug where if you open a link to an image from a webpage in a new 
tab, and the image is not a local file, it displays the image as text.  The 
sollution is kind of hacky though.

Also, I though that the options for tabs should go under a "Tabbed Browsing" 
tab in the "Web Browsing->Konqueror Browser", because tabbed browsing is used 
almost exclusively for web surfing, so this would seem the most intuitive 
choice.  I also have some code for that in my tree which I am cleaning up 
little.

So, if you've whipped up some code for this already, i would love to see it, 
so that way we can kind of pool our resources, and come up with the best 
sollution.

Thanks!

-- Doug



From adawit at kde.org  Sun Jul 14 19:27:01 2002
From: adawit at kde.org (Dawit A.)
Date: Sun, 14 Jul 2002 14:27:01 -0400
Subject: PATCH: Open With...
Message-ID: <200207141427.01882.adawit@kde.org>

Hello,

Here is a patch that changes/fixes a couple of things in the Open With... 
dialog box:

- Follow the "Open With->" format even if only one application is associated 
with a given mime-type.  I guess this is a matter of preference, but it would 
make the behavior consistent plus reduce the real-state the popup menu 
occupies.

- Make sure that separators are added properly.  Currently there were 
cuircumstances where a double/triple separators were being drawn. The
way to make sure this does not happen is to only add separators "before"
adding new menu items, never "after".  The culprit for the above problem were 
the plugins, specifically the kuick plugin.  As such, with the patch attached 
below, a plugin no longer needs to add any separator unless it specifically 
needs to separate its own items...

Regards,
Dawit A.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: konq_popupmenu.diff
Type: text/x-diff
Size: 8080 bytes
Desc: not available
URL: 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kuick.diff
Type: text/x-diff
Size: 1481 bytes
Desc: not available
URL: 

From binner at kde.org  Sun Jul 14 20:47:47 2002
From: binner at kde.org (Stephan Binner)
Date: Sun, 14 Jul 2002 21:47:47 +0200
Subject: MMB opens in new tab
Message-ID: <200207142147.47331.binner@kde.org>

Doug Hanley wrote:

> I was checking out the webcvs logs and I noticed that there was some sign of 
> a mmb opens in new tab patch coming soon.  I'm not sure if you've already 

http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/konqueror/konq_mainwindow.cc.diff?r1=1.1018&r2=1.1019

This is result of yesterday night hacking (note missing mimetype, only in one 
slotCreateNewWindow) after the question for it came up on #kde irc channel.

> if you haven't started yet, but I just wanted to tell you that I have that
> feature already in my tree, so I guess I'll just show you what I have right

If something at least partly works (and doesn't break anything else) I propose 
you commit what you have more frequently to CVS. And at this state of release
it is also a good idea to list features you will implement in the KDE 3.1 
feature list so others can see what you are working on.

> Also, I though that the options for tabs should go under a "Tabbed Browsing" 
> tab in the "Web Browsing->Konqueror Browser", because tabbed browsing is
> used almost exclusively for web surfing, so this would seem the most 

I'm not happy with current position too, as it's in a different dialog than
"Right click goes back in history" which works for file-mode too. I wouldn't
say that tabbed browsing will be exclusively used for web surfing. :-)

> So, if you've whipped up some code for this already, i would love to see it, 
> so that way we can kind of pool our resources, and come up with the best 
> sollution.

See above, I guess your solution is more advanced (because you know the code).
Feel free to replace the commit. Can you comment on if you plan/work to im-
plement keyboard shortcuts to switch tabs, close query dialog, close buttons?

Bye,
   Steve



From bastian at kde.org  Sun Jul 14 21:09:05 2002
From: bastian at kde.org (Waldo Bastian)
Date: Sun, 14 Jul 2002 13:09:05 -0700
Subject: PATCH: Open With...
In-Reply-To: <200207141427.01882.adawit@kde.org>
References: <200207141427.01882.adawit@kde.org>
Message-ID: <200207141309.05377.bastian@kde.org>

On Sunday 14 July 2002 11:27 am, Dawit A. wrote:
> Hello,
>
> Here is a patch that changes/fixes a couple of things in the Open With...
> dialog box:
>
> - Follow the "Open With->" format even if only one application is
> associated with a given mime-type.  I guess this is a matter of preference,
> but it would make the behavior consistent plus reduce the real-state the
> popup menu occupies.

Yes, I think this would be a good change.

Cheers,
Waldo
-- 
bastian at kde.org  |   SuSE Labs KDE Developer  |  bastian at suse.com




From till at snafu.de  Sun Jul 14 22:33:05 2002
From: till at snafu.de (Till Krech)
Date: Sun, 14 Jul 2002 23:33:05 +0200
Subject: QXEmbed reparent patch
Message-ID: <200207142333.05330.till@snafu.de>

Hi,

I discovered a problem in QXEmbed (kdelibs/kdeui/qxembed.cpp).
QXEmbed is now also used by the java applet server and the nspluginviewer.

Problem:
http://www.shockwave.com embeds several flash movies. Although 
QXEmbed::embed() is called, the movies are not always embedded but appear in 
a toplevel window managed by the windowmanager.

I think that this is the same problem why applets are not always embedded when 
running konqi under sawfish/gnome.

The trick is, to retry to XReparentWindow the window for up to 50 times with 
slight delays (usleep(1000)) and look if it has already the required parent 
with XQueryTree.

Could you please look at the attached patch, if it solves the problem or if it 
is just a workaround. Some Xlib knowledge required.

regards, till
 
-- 
SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP
KDE: 3.0.6 (KDE 3.1 alpha1)
Qt: 3.0.6-snapshot-20020712
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qxembed-reparent.patch
Type: text/x-diff
Size: 3792 bytes
Desc: not available
URL: 

From staikos at kde.org  Mon Jul 15 01:10:12 2002
From: staikos at kde.org (George Staikos)
Date: Sun, 14 Jul 2002 20:10:12 -0400
Subject: QXEmbed reparent patch
In-Reply-To: <200207142333.05330.till@snafu.de>
References: <200207142333.05330.till@snafu.de>
Message-ID: <200207142010.12701.staikos@kde.org>

On July 14, 2002 17:33, Till Krech wrote:
> Hi,
>
> I discovered a problem in QXEmbed (kdelibs/kdeui/qxembed.cpp).
> QXEmbed is now also used by the java applet server and the nspluginviewer.
>
> Problem:
> http://www.shockwave.com embeds several flash movies. Although
> QXEmbed::embed() is called, the movies are not always embedded but appear
> in a toplevel window managed by the windowmanager.
>
> I think that this is the same problem why applets are not always embedded
> when running konqi under sawfish/gnome.
>
> The trick is, to retry to XReparentWindow the window for up to 50 times
> with slight delays (usleep(1000)) and look if it has already the required
> parent with XQueryTree.
>
> Could you please look at the attached patch, if it solves the problem or if
> it is just a workaround. Some Xlib knowledge required.

   What a great idea :)  I'm going to try it right now!

-- 

George Staikos




From staikos at kde.org  Mon Jul 15 01:26:52 2002
From: staikos at kde.org (George Staikos)
Date: Sun, 14 Jul 2002 20:26:52 -0400
Subject: QXEmbed reparent patch
In-Reply-To: <200207142333.05330.till@snafu.de>
References: <200207142333.05330.till@snafu.de>
Message-ID: 

On July 14, 2002 17:33, Till Krech wrote:
> Hi,
>
> I discovered a problem in QXEmbed (kdelibs/kdeui/qxembed.cpp).
> QXEmbed is now also used by the java applet server and the nspluginviewer.
>
> Problem:
> http://www.shockwave.com embeds several flash movies. Although
> QXEmbed::embed() is called, the movies are not always embedded but appear
> in a toplevel window managed by the windowmanager.
>
> I think that this is the same problem why applets are not always embedded
> when running konqi under sawfish/gnome.
>
> The trick is, to retry to XReparentWindow the window for up to 50 times
> with slight delays (usleep(1000)) and look if it has already the required
> parent with XQueryTree.
>
> Could you please look at the attached patch, if it solves the problem or if
> it is just a workaround. Some Xlib knowledge required.

  This works very well for me.  Please commit to cvs, at least until a proper 
solution can be found if this isn't the best approach.  (I dont' see anything 
wrong with it though)

-- 

George Staikos




From mueller at kde.org  Mon Jul 15 01:36:08 2002
From: mueller at kde.org (Dirk Mueller)
Date: Mon, 15 Jul 2002 02:36:08 +0200
Subject: QXEmbed reparent patch
In-Reply-To: <200207142333.05330.till@snafu.de>
References: <200207142333.05330.till@snafu.de>
Message-ID: 

On Son, 14 Jul 2002, Till Krech wrote:

> The trick is, to retry to XReparentWindow the window for up to 50 times with 
> slight delays (usleep(1000)) and look if it has already the required parent 
> with XQueryTree.

ewww.. both hardcoded usleeps and XQueryTree's are awful. XQueryTree is 
terrible slow. 

I think what you're looking for is a syncX(). 


-- 
Dirk (68 mails today)



From staikos at kde.org  Mon Jul 15 05:36:13 2002
From: staikos at kde.org (George Staikos)
Date: Mon, 15 Jul 2002 00:36:13 -0400
Subject: khtml freeze
Message-ID: <200207150036.13220.staikos@kde.org>




KHTML freezes, using a fair amount of cpu, with the following assert:

ASSERT: "m_multiple" in html_formimpl.cpp (1404)


on the url:

http://www.sofitel.com/sofitel/gb/actualite/fiches_actu/s_athenes.html


-- 

George Staikos




From hanleyman at adelphia.net  Mon Jul 15 06:27:38 2002
From: hanleyman at adelphia.net (Doug Hanley)
Date: Mon, 15 Jul 2002 01:27:38 -0400
Subject: MMB opens in new tab
In-Reply-To: <200207142147.47331.binner@kde.org>
References: <200207142147.47331.binner@kde.org>
Message-ID: <200207150127.38369.hanleyman@adelphia.net>

On Sunday 14 July 2002 03:47 pm, Stephan Binner wrote:

> This is result of yesterday night hacking (note missing mimetype, only in
> one slotCreateNewWindow) after the question for it came up on #kde irc
> channel.

So you're saying only to do the tab code in the first slotCreateNewWindow (the 
one you changed in the cvs).

> If something at least partly works (and doesn't break anything else) I
> propose you commit what you have more frequently to CVS. And at this state
> of release it is also a good idea to list features you will implement in
> the KDE 3.1 feature list so others can see what you are working on.

Ok, I'll commit what I have now then.  And I'll write up a planned feature 
list very soon.

> See above, I guess your solution is more advanced (because you know the
> code). Feel free to replace the commit. Can you comment on if you plan/work
> to im- plement keyboard shortcuts to switch tabs, close query dialog, close
> buttons?

I made some code that allowed for the switching of tabs, but unfortunately I 
couldn't figure out how to catch keyboard events (e.g. Shift+Left/Right), so 
I couldn't finish it.  I tried KAccel, but it didn't seem to work.  If you'd 
like, I could commit the part where I add slot functions to go left and 
right, and someone else could fill in the rest.

As for the query close dialog, I have that too, but it doesn't have the "Don't 
show this in the future" check box.  Is there an easy way to do that?  
Perhaps with a static method from KMessageBox?  Or would I have to use 
KDialog?  Should I commit it anyway?

As for close buttons, that would definitely involve custom widget painting, 
something which I have absolutely no experience with, so I probably won't be 
working on that.

-- Doug



From germain at ebooksfrance.com  Mon Jul 15 07:04:53 2002
From: germain at ebooksfrance.com (Germain Garand)
Date: Mon, 15 Jul 2002 07:04:53 +0100
Subject: [PATCH]  various nodeAtPoint() fixes
In-Reply-To: <20020713181921.GA30698@matrix.wg>
References: <200207131755.20637.germain@ebooksfrance.com> <20020713181921.GA30698@matrix.wg>
Message-ID: <200207150704.53900.germain@ebooksfrance.com>

Le Samedi 13 Juillet 2002 19:19, Dirk Mueller a écrit :
[..]
> > - 1°: relative coordinates change don't propagate recursively to
> > childrens. (I posted this last week on kfm-devel but noone replied so
> > it's still pending)
>
> Yes, this was partly intended. I think I remember an interaction with
> absolute positioned containers in relative positioned parents.

I've tried to do something like that here :
http://www.phoenix-library.org/germain/testcases/bug_khtml_abs_child_in_rel_parent.html

Oddly enough, in such a case, the absolute translation is not rendered, but 
nodeAtPoint() still think the link is were it should be : in the small golden 
box.

>
> Personally i think khtml is behaving correct in this case, although it is
> very annoying for the example page you mentioned (I've spend some hours on
> that page already)
>

Frankly I think not... I've been haunted all the WE by that...

I'll elaborate, still on the http://www.w3.org/Style/CSS/ example :

When you hover the invisibly covered part of "What's New ?", the innermost 
node is indeed, formally, 

. But how is it that the tree walking continues and finally elects "What's New" as a good candidate for the hand cursor ? From the formal point of view, the search should stop at

... A striking illustration of that is when you hover "nearby" in the fixed menu. Should we really get "What's New"'s hand cursor ? What I want to advocate here is : there is a need to distinguish between two kind of inner nodes : - formal ones ("P" is indeed the innermost node, may it be invisible or opaque) [owner: innerNode] - visual ones ( for human sight, the innermost node is the "A" tag. If "P" was overriding something on "A", it would be "P") [owner: visualNode] In fact, khtml already does this distinction with URLElement, since it can be different from the innerNode (too bad it's only for URLs). I've implemented roughly such a mechanism in the attached patch, and it looks promizing... For instance, try comparing the behaviour on this slightly modified version : http://www.phoenix-library.org/germain/testcases/www.w3.org/Style/CSS/ Anyway, feel free to have a look or simply throw it to the overcrowded Hell of Lame ! ;-) Germain -------------- next part -------------- A non-text attachment was scrubbed... Name: render_object.patch Type: text/x-diff Size: 5065 bytes Desc: not available URL: From david at mandrakesoft.com Mon Jul 15 09:01:28 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 15 Jul 2002 10:01:28 +0200 Subject: MMB opens in new tab In-Reply-To: <200207141222.19644.hanleyman@adelphia.net> References: <200207141222.19644.hanleyman@adelphia.net> Message-ID: <200207151001.28681.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 14 July 2002 18:22, Doug Hanley wrote: > KMimeType::Ptr mimeType = KMimeType::findByURL( url ); Ouch. That's not good at all. This function doesn't give reliable results, in particular over HTTP. You work around that by assuming HTML, but there is more than HTML that one can get over HTTP. Think images, for instance. Hmm, ok, I see you use a KonqRun if the mimetype was unknown, but.... the danger of the code that was posted here is more precisely in case findByURL does a wrong assumption (as it does on some protocols). Why does addTab need to know the mimetype? Can't it create an empty tab, and let openView (directly via openURL, or via KonqRun), take care of creating the right part into it? - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9MoFY72KcVAmwbhARAq2WAJ9RhBfyY+q+yWR/f24bhiMQuj4DNwCdGCdw 5UNyLgqjwRYMJl4/ZWRN77I= =FhGc -----END PGP SIGNATURE----- From david at mandrakesoft.com Mon Jul 15 09:04:53 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 15 Jul 2002 10:04:53 +0200 Subject: PATCH: Open With... In-Reply-To: <200207141427.01882.adawit@kde.org> References: <200207141427.01882.adawit@kde.org> Message-ID: <200207151004.54111.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 14 July 2002 20:27, Dawit A. wrote: > - Make sure that separators are added properly. Currently there were > cuircumstances where a double/triple separators were being drawn. The > way to make sure this does not happen is to only add separators "before" > adding new menu items, never "after". The culprit for the above problem were > the plugins, specifically the kuick plugin. As such, with the patch attached > below, a plugin no longer needs to add any separator unless it specifically > needs to separate its own items... I don't see the point of this change. IIRC the logic was simply the other way round: "always add separators _after_ adding new menu items, never _before_". The kuick plugin did it wrong - isn't it simpler to fix it? I'm afraid you might have missed some cases, this popupmenu code (particularly the separators) is a bit touchy (since it's used in so many different ways), and has been fixed several times already, I'm not too happy with throwing all this away. Since you investigated the problem - can't this be fixed with the old logic? - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9MoIm72KcVAmwbhARArO0AKCdgn8AQYS9PK1j4qbPiK+n/eVCxgCdFIvQ 3Am+jzW0PUXBnbYN+TciSFY= =NtCQ -----END PGP SIGNATURE----- From david at mandrakesoft.com Mon Jul 15 10:23:27 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 15 Jul 2002 11:23:27 +0200 Subject: Empty dialog pops up after pressing cancel in download dialog In-Reply-To: <200207141607.51593.kudling@kde.org> References: <200207141607.51593.kudling@kde.org> Message-ID: <200207151123.27554.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 14 July 2002 16:07, Lenny wrote: > Try for example: http://www.ecs.soton.ac.uk/~cjg/AmberDB > > Press "cancel" soon and after that a 100% empty dialog pops up. Kate bug, not khtml/konq (this is a text file). Anyway, fixed. (tip for anyone who wants to find out where a dialog box comes from: gdb konqueror / bt -> tells you very precisely). - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9MpSP72KcVAmwbhARAofzAJ9W7Myo+dzZcRyykONP0c0L5eK3fQCcCksB fm1zyv/3oyv7VVoAeqbPgUo= =/ktI -----END PGP SIGNATURE----- From lars at trolltech.com Mon Jul 15 10:33:19 2002 From: lars at trolltech.com (Lars Knoll) Date: Mon, 15 Jul 2002 11:33:19 +0200 Subject: page-break-before In-Reply-To: <200207141416.11598.sam@bifrost.demon.co.uk> References: <200207081353.03199.hetz@kde.org> <200207121237.19879.lars@trolltech.com> <200207141416.11598.sam@bifrost.demon.co.uk> Message-ID: <200207151133.19020.lars@trolltech.com> > Does anyone know if Konquerer/KHTML supports the various > page break tags for CSS? I'm currently trying something > like: > > h1 { > page-break-before: always; > } > > or > > div.section { > page-break-after: always; > } > > This doesn't behave as expected (i.e. it doesn't give a > page break). Some print media tags are supported (since if No, page-break-before and after are not implemented currently. > I have a stylesheet of media="print", the printed version > will use different colour schemes to the screen version. > However, I'm not sure whether it's my CSS at fault, or > Konqueror. The print media type is implemented, to you can use a different style sheet for printing. Cheers, Lars > I'm using KDE 3.0, so if this support has been added since > then, then I've found a good reason to upgrade. From mueller at kde.org Mon Jul 15 10:52:04 2002 From: mueller at kde.org (Dirk Mueller) Date: Mon, 15 Jul 2002 11:52:04 +0200 Subject: khtml freeze In-Reply-To: <200207150036.13220.staikos@kde.org> References: <200207150036.13220.staikos@kde.org> Message-ID: <20020715095204.GA18297@matrix.wg> On Mon, 15 Jul 2002, staikos George Staikos wrote: > KHTML freezes, using a fair amount of cpu, with the following assert: > > ASSERT: "m_multiple" in html_formimpl.cpp (1404) > > > on the url: > > http://www.sofitel.com/sofitel/gb/actualite/fiches_actu/s_athenes.html I don't see any element on that page. Hm I did not produce this myself, but I saw it reproduced twice in a row with new browser instances. I'll find out tonight what method was used to trigger it. -- George Staikos From staikos at kde.org Mon Jul 15 15:32:58 2002 From: staikos at kde.org (George Staikos) Date: Mon, 15 Jul 2002 10:32:58 -0400 Subject: khtml freeze In-Reply-To: <200207151005.28539.staikos@kde.org> References: <200207150036.13220.staikos@kde.org> <20020715095204.GA18297@matrix.wg> <200207151005.28539.staikos@kde.org> Message-ID: <200207151032.58486.staikos@kde.org> On Monday 15 July 2002 10:05, George Staikos wrote: > On Monday 15 July 2002 05:52, Dirk Mueller wrote: > > On Mon, 15 Jul 2002, staikos George Staikos wrote: > > > KHTML freezes, using a fair amount of cpu, with the following assert: > > > > > > ASSERT: "m_multiple" in html_formimpl.cpp (1404) > > > > > > > > > on the url: > > > > > > http://www.sofitel.com/sofitel/gb/actualite/fiches_actu/s_athenes.html > > > > I don't see any s, anchors and other fontstyling element, but should not actually render them because the container is not %flow !?! That sucks beyond belief ! People do style their legends, do put imgs in their legends, because they are allowed to do so... Now, I don't know how IE render them, because I have no IE here and that's not my reference (my reference is KHTML :), but yes Mozilla style them, Opera style them ... so what ? > then search for a legend element in the DOM tree, not the rendering tree, I do ensure that legend is unique inside it's HTMLFieldsetElementImpl, but you could only extract #PCDATAs from here, as innerText() do... that's not following the DTD either... why would they be more important than e.g. an image ? G. From germain at ebooksfrance.com Wed Jul 24 12:56:45 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Wed, 24 Jul 2002 12:56:45 +0100 Subject: [Patch] a renderer for

and Message-ID: <200207241256.45966.germain@ebooksfrance.com> Le Mercredi 24 Juillet 2002 09:53, Till Krech a écrit : > Hi, > > well done! > I just ask myself why the form elements were ignored before. Shouldn't any > body content be rendered as normal when a tag is unknown in a browser ? > > So, your patch a) fixes a grave bug. b) adds a nice feature. > > I would say, it's worth committing, and should even be backported because > without your patch the form isn't displayed at all - but I cannot decide > about this. > Dirk - are you here ? What do you think ? > > regards, till Thanks for your nice comments Till ! I would really love to see (at least minimal : ie. non destructive) support for fieldset make it's way back to the 3.0 serie... For now, I'm just piling sandbags, donning asbestos,and ducking for cover, as LEGEND is a touchy subject among purists :) Germain > On Wednesday 24 July 2002 04:13, Germain Garand wrote: > > Hello there, > > > > I noticed a while back that HTML 4's
and elements > > didn't have a renderer in KHTML, so I've worked on this topic. > > It was ennoying to sometime miss forms because they were wrapped in > > those. > > > > I intended to respect HTML 4.01's DTD, so tell me if I've missed > > something. > > > > Here is a testcase: > > http://www.phoenix-library.org/germain/testcases/testfieldset.html > > > > And a screenshot after patch : > > http://www.phoenix-library.org/germain/shots/konq_fieldset.png > > > > Cheers, > > > > Germain ------------------------------------------------------- From lucy-ples at mtu-net.ru Wed Jul 24 12:55:50 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Wed, 24 Jul 2002 15:55:50 +0400 Subject: post this to bugzilla? In-Reply-To: <20020724094642.GA30721@matrix.wg> References: <200207240058.03183.hetz@kde.org> <20020724094642.GA30721@matrix.wg> Message-ID: <200207241555.50989.lucy-ples@mtu-net.ru> On Wednesday 24 July 2002 1:46 pm, Dirk Mueller wrote: | On Mit, 24 Jul 2002, Hetz Ben Hamo wrote: | > Should I post it in bugzilla or is this problem being taken care of? | | As it has been said here already, I know about the problems. Please wait | till the weekend, I have no time during the week to fix this. Dirk, Can you please check this URL as well: http://www.geocrawler.com/lists/3/SourceForge/2311/25/8215112/ I think layout is broken again because of tables. (Tested with KDE 3.0.2) | | Thanks, -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From lucy-ples at mtu-net.ru Wed Jul 24 13:38:17 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Wed, 24 Jul 2002 16:38:17 +0400 Subject: HTML for KMail [Re: khtml and table widths] In-Reply-To: <200207181535.25534.klingens@kde.org> References: <200207180958.06690.Ladislav.Strojil@seznam.cz> <200207181729.45571.lucy-ples@mtu-net.ru> <200207181535.25534.klingens@kde.org> Message-ID: <200207241638.17351.lucy-ples@mtu-net.ru> On Thursday 18 July 2002 5:35 pm, Martijn Klingens wrote: | On Thursday 18 July 2002 15:29, Vadim Plessky wrote: | > It seems my HTML example hasn't impressed you. | > ok, please take XML than! | > Ladislav: thanks for original KMail's HTML/CSS, I used some of those | > definitions in example below. | > | > [ ... ] | > | > left { display: block; width: 4em; float: left; | | ^^^^^^^^^^^^^ | This one won't impress me either as a replacement for a table, because | again it cannot possibly guarantee that all elements are properly | positioned in a 2x3 grid. Depending on translations that might break the | layout horribly... Checking code on one of C-Net pages, I found following JS example, which can do the trick if fixed layout (like width: 4em; ) is not o.k. You can "extract" actual width of document (and its height) using DOM methods and/or JS bindings, and re-layout document in accordance -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From oever at fenk.wau.nl Wed Jul 24 13:51:41 2002 From: oever at fenk.wau.nl (Jos van den Oever) Date: Wed, 24 Jul 2002 14:51:41 +0200 Subject: web pages as text Message-ID: <200207241451.41326.oever@fenk.wau.nl> Hi all, In the current cvs, when viewing a web page by typing the URL in the location bar, after viewing a text file in the embedded viewer, the web page's source code is shown instead of the rendered file. This is probably due to some editing after a tab discussion a few days ago. When this happens, you can click on the 'home' button and visit the URL again. Now the web page appears. My base system is SuSE 8.0. Best regards, Jos From germain at ebooksfrance.com Wed Jul 24 14:13:53 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Wed, 24 Jul 2002 14:13:53 +0100 Subject: [Patch] Re: web pages as text In-Reply-To: <200207241451.41326.oever@fenk.wau.nl> References: <200207241451.41326.oever@fenk.wau.nl> Message-ID: <200207241413.53656.germain@ebooksfrance.com> Le Mercredi 24 Juillet 2002 13:51, Jos van den Oever a écrit : > Hi all, > > In the current cvs, when viewing a web page by typing the URL in the > location bar, after viewing a text file in the embedded viewer, the web > page's source code is shown instead of the rendered file. > > This is probably due to some editing after a tab discussion a few days ago. > No, this is a bad kpart policy. See thread "Is someone working on #41620" It currently says "if the part can handle the next mimetype, keep it". Now it seems it was agreed to switch to the much better "if next mimetype is different, check what is the preferred viewer for the new mimetype, and use that" David Faure made a patch (attached) for this just before leaving for holidays, but it was not applied... Maybe someone could apply it ? It would be good to have this for Beta 1, which is scheduled for July 28 th... G. -------------- next part -------------- A non-text attachment was scrubbed... Name: khtml_part.cpp.diff Type: text/x-diff Size: 769 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: konq_view.cc.diff Type: text/x-diff Size: 2432 bytes Desc: not available URL: From germain at phoenix-library.org Wed Jul 24 17:33:30 2002 From: germain at phoenix-library.org (Germain Garand) Date: Wed, 24 Jul 2002 17:33:30 +0100 Subject: Bug#34634 acknowledged by developer (CSS2 absolute positionning does not work when specifying top property in percent (%) (testcase)) In-Reply-To: <200207240753.45718@bilbo.math.uni-mannheim.de> References: <200207231451.34772@bilbo.math.uni-mannheim.de> <200207240412.09805.germain@phoenix-library.org> <200207240753.45718@bilbo.math.uni-mannheim.de> Message-ID: <200207241733.30023.germain@phoenix-library.org> Le Mercredi 24 Juillet 2002 06:53, vous avez écrit : > Am Mittwoch, 24. Juli 2002 05:12 schrieben Sie: > > Le Mardi 23 Juillet 2002 14:03, vous avez écrit : > > > I've looked at your test case, I think it is displayed correctly now. > > > > No it's not... > > Sh*t, it would have been so nice... > > > CSS2 "top" property expressed in percent within an absolute positioning > > should be made relative to the viewport. > > So the headline should always be displayed in the middle of the window, > regardless how much text there is in, right? > Right - but that is not a spec. In fact, it's yet another objectable zone in the spec. An absolute purist would say KHTML behaves right, whereas all other main stream browsers made it relative to the viewport. The reason for that is there is no way to specify a relative-to-the-viewport thing in CSS (because the notion of viewport exists only for "fixed" positioned elements - that is : elements that don't move when you scroll the page). However, practically, web designers (and all the others as well :) need to have a way of specifying a position when the page displays, otherwise they wouldn't know if their elements are there or not. For instance, when you say : "positioned: absolute; top: 500px" you know your element will be displayed 500px from top, because the document will grow to suit your need. But if you say "positioned: absolute; bottom: 500px", and it's not relative to viewport, then it's relative to the bottom of the document, which you ignore - hence not absolute at all, because the document won't raise its top to fit your needs. Other case : you want a string displayed plain centered (height & width) in your viewport. You can't do that with plain CSS2 spec. Conclusion : the specs are dead dumb in that respect, and there's no way the one who would blindly follow them would have an excuse... Being critical regarding standards is essential because they are supposed to be clever than you. That's why I like to have this bug report lying around - it's rather a reminder that the discussion is still open and that blood needs to flow somehow... I'll re-open it :-[° G. From nicog at snafu.de Wed Jul 24 21:12:40 2002 From: nicog at snafu.de (Nicolas Goutte) Date: Wed, 24 Jul 2002 22:12:40 +0200 Subject: [PATCH] RTF: underline and other stuff Message-ID: <200207242212.40263.nicog@snafu.de> The patch is for the directory filters/kword/rtf/import I have tried to fix the loading of AbiWord's test file rtftest.rtf. Changes: - support advanced underline modes (thick, dot, dash dot, dash dot dot.) - support conditional hyphen - do not generate control characters under 32 (apart TAB, LF, CR.) While working on the underline modes, I have found a bug in KWord, which does not respect the dot and dash-dot modes. (Bug reported, number pending.) I have found another bug, this time more in the filter and in the file that I have tested. The problem is the sequence (in a \uc1 context ) \u8164\'20 The filter does not recognised the Unicode character value and tries to generated a control character outside XML's valid characters. The sequence 20 is already considered as normal text. Have a nice day/evening/night! -------------- next part -------------- Index: rtfimport.cpp =================================================================== RCS file: /home/kde/koffice/filters/kword/rtf/import/rtfimport.cpp,v retrieving revision 1.24 diff -u -r1.24 rtfimport.cpp --- rtfimport.cpp 2002/07/23 09:11:00 1.24 +++ rtfimport.cpp 2002/07/24 19:48:54 @@ -72,6 +72,7 @@ PROP( 0L, "|", insertSymbol, 0L, 0x00b7 ), PROP( 0L, "}", insertSymbol, 0L, '}' ), PROP( 0L, "~", insertSymbol, 0L, 0x00a0 ), + PROP( 0L, "-", insertSymbol, 0L, 0x00ad ), PROP( 0L, "ansicpg", setCodepage, 0L, 0 ), MEMBER( 0L, "b", setToggleProperty, state.format.bold, 0 ), MEMBER( "@colortbl", "blue", setNumericProperty, blue, 0 ), @@ -206,9 +207,13 @@ MEMBER( 0L, "u", insertUnicodeSymbol, state.format.uc, 0 ), MEMBER( 0L, "uc", setNumericProperty, state.format.uc, 0 ), MEMBER( 0L, "ul", setToggleProperty, state.format.underline, 0 ), - MEMBER( 0L, "uld", setFlagProperty, state.format.underline, true ), + MEMBER( 0L, "uld", setFlagProperty, state.format.underlineDot, true ), + MEMBER( 0L, "uldash", setFlagProperty, state.format.underlineDash, true ), + MEMBER( 0L, "uldashd", setFlagProperty, state.format.underlineDashDot, true ), + MEMBER( 0L, "uldashdd", setFlagProperty, state.format.underlineDashDotDot, true ), MEMBER( 0L, "uldb", setFlagProperty, state.format.underlined, true ), MEMBER( 0L, "ulnone", setFlagProperty, state.format.underline, false ), + MEMBER( 0L, "ulth", setFlagProperty, state.format.underlineThick, true ), MEMBER( 0L, "ulw", setFlagProperty, state.format.underline, true ), MEMBER( 0L, "up", setUpProperty, state.format.baseline, 6 ), MEMBER( 0L, "v", setToggleProperty, state.format.hidden, 0 ), @@ -716,6 +721,11 @@ format.vertAlign = RTFFormat::Normal; format.underline = false; format.underlined = false; + format.underlineDash = false; + format.underlineThick = false; + format.underlineDot = false; + format.underlineDashDot = false; + format.underlineDashDotDot = false; format.bold = false; format.italic = false; format.strike = false; @@ -948,7 +958,7 @@ token.type = RTFTokenizer::PlainText; token.text = buf; - if (ch > 0) + if (ch > 31) { if (ch > 0x007f) { @@ -962,6 +972,14 @@ } *text++ = ch; } + else + { + // We have a control character, so we must check if it is XML-compactible + if ( ch == 9 || ch == 10 || ch == 13 ) + *text++ = ch ; + else + kdWarning() << "RTFImport::insertUTF8: tried to insert control character " << ch << endl; + } *text++ = 0; (this->*destination.destproc)(); @@ -1787,14 +1805,48 @@ node.setAttribute( "value", format.fmt.italic ); node.closeNode( "ITALIC" ); } - if (!baseFormat || format.fmt.underline != baseFormat->underline || format.fmt.underlined != baseFormat->underlined) + if (!baseFormat || format.fmt.underline != baseFormat->underline + || format.fmt.underlined != baseFormat->underlined + || format.fmt.underlineDash != baseFormat->underlineDash + || format.fmt.underlineThick != baseFormat->underlineThick + || format.fmt.underlineDot != baseFormat->underlineDot + || format.fmt.underlineDashDot != baseFormat->underlineDashDot + || format.fmt.underlineDashDotDot != baseFormat->underlineDashDotDot ) { node.addNode( "UNDERLINE" ); - QCString st; + QCString st,styleline; st.setNum(format.fmt.underline); if ( format.fmt.underlined ) st="double"; - node.setAttribute( "value", st ); + else if ( format.fmt.underlineDash ) + { + st="1"; + styleline="dash"; + } + else if (format.fmt.underlineThick ) + { + st="single-bold"; + styleline="solid"; + } + else if (format.fmt.underlineDot ) + { + st="1"; + styleline="dot"; // ### FIXME: KWord has bug and considers it as DashDot + } + else if (format.fmt.underlineDashDot ) + { + st="1"; + styleline="dashdot"; // ### FIXME: KWord has bug mixing Dot and DashDot + } + else if (format.fmt.underlineDashDotDot ) + { + st="1"; + styleline="dashdotdot"; // ### FIXME: KWord has bug mixing Dot and DashDot + } + node.setAttribute( "value", st ); + if ( !styleline.isEmpty() ) + node.setAttribute( "styleline", styleline ); + node.closeNode( "UNDERLINE" ); } if (!baseFormat || format.fmt.strike != baseFormat->strike || format.fmt.striked != baseFormat->striked) Index: rtfimport.h =================================================================== RCS file: /home/kde/koffice/filters/kword/rtf/import/rtfimport.h,v retrieving revision 1.11 diff -u -r1.11 rtfimport.h --- rtfimport.h 2002/07/23 09:11:00 1.11 +++ rtfimport.h 2002/07/24 19:48:54 @@ -133,6 +133,7 @@ int color, bgcolor; int uc; bool underline, underlined, bold, italic, strike, striked, hidden, caps; + bool underlineDash, underlineThick, underlineDot, underlineDashDot, underlineDashDotDot; }; // Style sheet entry From nicog at snafu.de Wed Jul 24 21:45:25 2002 From: nicog at snafu.de (Nicolas Goutte) Date: Wed, 24 Jul 2002 22:45:25 +0200 Subject: [PATCH] RTF: underline and other stuff In-Reply-To: <200207242212.40263.nicog@snafu.de> References: <200207242212.40263.nicog@snafu.de> Message-ID: <200207242245.25877.nicog@snafu.de> Sorry, wrong list! On Mittwoch, 24. Juli 2002 22:12, Nicolas Goutte wrote: > The patch is for the directory filters/kword/rtf/import From lars at trolltech.com Thu Jul 25 07:57:34 2002 From: lars at trolltech.com (Lars Knoll) Date: Thu, 25 Jul 2002 08:57:34 +0200 Subject: [Patch] a renderer for
and In-Reply-To: <200207241246.51024.germain@ebooksfrance.com> References: <200207240313.27821.germain@ebooksfrance.com> <200207241126.20598.lars@trolltech.com> <200207241246.51024.germain@ebooksfrance.com> Message-ID: <200207250857.34194.lars@trolltech.com> > Le Mercredi 24 Juillet 2002 10:26, Lars Knoll a écrit : > > I don't really like the fact, that legend get's a rendering element. I > > think it should get "display: none" in the default stylesheet. We should > > Ah, I new you would say that ! :) It hurted me as well ! :) > In fact it was my first approach, but it is not quite satisfactory, and I > now think it's wrong ... > Sure, this is quite a special case since the HTML DTD doesn't define LEGEND > as either %inline or %block... > But OTOH, it defines it as : > > > and NOT : > > > Which means, if you follow strictly the spec, that Legend must accept funny > things such as s, s, anchors and other fontstyling element, but > should not actually render them because the container is not %flow !?! > That sucks beyond belief ! Ok. You;re right. But that means that we should treat the first legend as the one to render the "legend" of the fieldset, and all others (they should not exist, but we all know how web pages look...) as regular flows. > People do style their legends, do put imgs in their legends, because they > are allowed to do so... Ok. Then I see your point, and basically agree with your patch. > Now, I don't know how IE render them, because I have no IE here and that's > not my reference (my reference is KHTML :), but yes Mozilla style them, > Opera style them ... so what ? > > > then search for a legend element in the DOM tree, not the rendering tree, > > I do ensure that legend is unique inside it's HTMLFieldsetElementImpl, but > you could only extract #PCDATAs from here, as innerText() do... that's not > following the DTD either... why would they be more important than e.g. an > image ? Please apply your patch then :) Cheers, Lars From carpdjih at sp.zrz.tu-berlin.de Thu Jul 25 05:38:26 2002 From: carpdjih at sp.zrz.tu-berlin.de (Carsten Pfeiffer) Date: Thu, 25 Jul 2002 06:38:26 +0200 Subject: patch for bug 27362 : put redirected URLs in history In-Reply-To: <200207240008.02771.CP.Hennessy@iname.com> References: <200207240008.02771.CP.Hennessy@iname.com> Message-ID: <200207250638.26150.carpdjih@sp.zrz.tu-berlin.de> -----BEGIN PGP SIGNED MESSAGE----- On Wednesday 24 July 2002 01:08, Con Hennessy wrote: [Konqueror issues are handled on kfm-devel] Hi, > The bug http://bugs.kde.org/db/27/27362.html is marked as a duplicate > and is closed. However I could not find any other bug which may be a > duplicate of it, also the problem itself is not resolved. > > Basically the problem is that when a URL is actually redirected, > this URL is never added to the history, and therefore is never > marked as being "visited" when you go back to the original page. > As an example following any news link from http://newshub.com/tech > or any link from http://www.freshmeat.net/. > > The patch files below, are very basic : > 1) to the class BrowserRun a slotRedirection slot is added and > connected with the redirection signal from the KIO::TransferJob; > 2) to the class KonqRun the virtual method defined above (slotRedirection) > is redefined so that the pending URL ( i.e. the one which we are > being redirected from ) is confirmed and the new URL ( i.e. the > one we are being directed to ) is added as "pending". > > These changes work for me (on newshub but now I'm not completely sure > whether they do on freshmeat ?). I am not sure if KonqRun is the right > class to add the code for the history. Thanks for the patch! Unfortunately, it causes a binary incompatibility in KParts::BrowserRun (we can't add a new virtual method). However, looking at BrowserRun::scanFile(), the job is assigned to KRun's m_job, so KonqRun could simply reimplement scanFile(), call BrowserRun::scanFile and then connect() to the redirected() signal. New patch attached. Unfortunately, David Faure is on vacation at the moment, so it might take a little while to get his comment. Cheers Carsten Pfeiffer -----BEGIN PGP SIGNATURE----- iQEVAwUBPT+AwqWgYMJuwmZtAQH0LQf+LfJ93xyurdQzs1Y3GNlLQiIO9jo13dga o9bxBx1UlSoiiztVeTVsSm2Sk8bMS/fXpYpIHYc3FQvHCpoE1F24JWuCMgug9Mo6 RnNdDKH/vsxHVYB0+8LW9hbjyMs7mXRfpoK6jkDz/tQufv/v8c9nsmkCcHMQDMD4 mRt9E6kPkqndG5BTYKDW0VMvHcEY+myNj/WFxGfCj6zNRGWolVDAro7CEPqLp67Z lH2Ws0eZKs3dJaHg5X0c2ambCGwJuy7c/6ka8z2y2LSooxWt9yNNbFTH8ipbQb73 HHlLDOcFCyzD4vnf3IAB+uQK51dx+pFNaB81T9MSUU3NF0NtUdqAaQ== =3NxD -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: patch Type: text/x-diff Size: 2030 bytes Desc: not available URL: From germain at ebooksfrance.com Thu Jul 25 10:32:27 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Thu, 25 Jul 2002 10:32:27 +0100 Subject: [Patch] a renderer for
and In-Reply-To: <200207250857.34194.lars@trolltech.com> References: <200207240313.27821.germain@ebooksfrance.com> <200207241246.51024.germain@ebooksfrance.com> <200207250857.34194.lars@trolltech.com> Message-ID: <200207251032.27490.germain@ebooksfrance.com> Le Jeudi 25 Juillet 2002 07:57, Lars Knoll a écrit : > > Which means, if you follow strictly the spec, that Legend must accept > > funny things such as s, s, anchors and other fontstyling > > element, but should not actually render them because the container is not > > %flow !?! That sucks beyond belief ! > > Ok. You;re right. But that means that we should treat the first legend as > the one to render the "legend" of the fieldset, and all others (they should > not exist, but we all know how web pages look...) as regular flows. Ah OK... that's also the behaviour of Mozilla, I think. If another legend was given, I was removing the previous one, so I've corrected this - it even simplify things. I also handle better the case were an element of the legend would be absolutely positioned or floating (yuck!) Updated patch attached. >> I do ensure that legend is unique inside it's HTMLFieldsetElementImpl, but >> you could only extract #PCDATAs from here, as innerText() do... that's not >> following the DTD either... why would they be more important than e.g. an >> image ? > >Please apply your patch then :) Thanks ! I'll do it in a few hours then... Bye, Germain -------------- next part -------------- A non-text attachment was scrubbed... Name: html_formimpl.diff Type: text/x-diff Size: 4489 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: render_form.diff Type: text/x-diff Size: 7883 bytes Desc: not available URL: From market_pub at 1001trocs.com Thu Jul 25 20:29:52 2002 From: market_pub at 1001trocs.com (market_pub at 1001trocs.com) Date: Thu, 25 Jul 2002 21:29:52 +0200 (CEST) Subject: Tout VENDRE/ACHETER aux enchres en allant l'essentiel. Nouveau Message-ID: <200207251929.g6PJTqV98072@black.adarweb.com> Bonjour, Vous avez toutes et tous quelque chose � vendre (CD, DVD, BD, livres, disques, appareils �lectro-m�nagers, ordinateurs, logiciels, collections diverses, ..... etc etc ..... ) Nous sommes une toute nouvelle micro entreprise, sous le r�gime de l'entreprise individuelle, et nous avons d�cid� de cr�er un nouveau service de ventes aux ench�res sur Internet. Il n'est pas acceptable en effet de voir ce monopole d�tenu par de tr�s grosses soci�t�s. Nous relevons le d�fi, pour le plus grand int�r�t de toutes et tous. Sur ce nouveau service, le ma�tre mot est : VENDRE et ACHETER en ALLANT � L'ESSENTIEL. Sous une interface sobre, mais d�taill�e, et � l'aide de fichiers d'aide clairs et succints, nous privil�gions la s�curit�, la rapidit�. Vous trouverez sur ce service nombre d'options classiques pour ce type de service, mais une premi�re en France, toute personne inscrite se voit cr�dit�e de 15,00� automatiquement (avoir sur cr�dit de commissions de vente finale). Ceci afin de profiter du service sans bourse d�lier, le tester, le faire conna�tre. Et cette offre n'est pas limit�e dans le temps. Nos tarifs ? Les plus bas du march� : Acheteur : AUCUN FRAIS Vendeur : 3,96% du prix de vente final non plafonn� Une photo gratuite. Pour chaque photo suppl�mentaire : 0,25� (maxi : 6 photos). Un forum est � votre disposition pour �changer vos id�es, point de vue, exp�riences. Nous faire conna�tre aussi vos suggestions. Vos num�ros de carte bancaire ne sont pas stock�s sur nos serveurs. Les paiements sont hautement s�curis�s. Ce site est d�clar� � la CNIL ( R�f :735319 en date du 04-01-2001). Nous ne pouvons que vous inciter � vous rendre sur http://www.1001trocs.com Inscrivez vous, vendez, acheter, faites conna�tre � vos amis, contacts, parents, relations ce nouveau service. Les offres de partenariat seront bienvenues et �tudi�es avec le plus grand soin. En attendant de vous rencontrer sur www.1001trocs.com, la petite �quipe (3 personnes) de ce service vous adresse ses plus cordiales amiti�s. Vous �tes une soci�t�, un commerce, un groupe commercial, un groupe �conomique, vous pouvez annoncer sur notre site pour des tarifs comp�titifs. Vous �tes webmaster d'un site de moyenne et grosse importance, nous pouvons conclure des offres de partenariat, d'�changes de liens ou autres. Dans tous ces cas, nous contacter � webmaster at 1001trocs.com GAGNEZ UNE XBOX + jeux jusqu'au 31 ao�t 2002 ********************************************************* Nouveau : Service de petites annonces gratuites � votre disposition... ********************************************************* ********************************************************* WEBMAIL : AVENGER MAIL SYSTEM, la rapidit�, le s�rieux, la confidentialit�, toutes options pour un prix ricule : 25 � pour deux ans ! ********************************************************* Merci pour le temps pris � nous lire. Cordialement � toutes et tous. L'�quipe de 1001trocs Si vous avez d�j� re�u cet E-mail, veuillez recevoir nos excuses, et ne pas nous en tenir rigueur. L'�quipe de 1001trocs.com http://www.1001trocs.com Pour vous d�sinscrire, merci de vous rendre ici: http://www.freesoft4all.com/cgi-bin/pg-mlpro.cgi?A=kfm-devel at kde.org&L=20 From pch at valleeurope.net Thu Jul 25 22:16:29 2002 From: pch at valleeurope.net (Patrick) Date: Thu, 25 Jul 2002 23:16:29 +0200 Subject: smb slave In-Reply-To: <200207232246.43096.alexander.neundorf@gmx.net> References: <200207232246.43096.alexander.neundorf@gmx.net> Message-ID: <200207252316.29559.pch@valleeurope.net> On Tuesday 23 July 2002 22:46, aleXXX wrote: [...] > Hi Patrick, > > on which smb ioslave do you want to work ? > kdebase/kioslave/smb or kdebase/kioslave/smbro ? > What do you want to add ? Ciao Alex, i would like to have add something like "clean network view" I'm working in a large network and when i use the konqueror with lisa for example i get all the server without any logical sort on the other hands the smb protocols just show me the shared folder without any information about the server and also there are no indication about domain (i don't know how to find the PDC or a printer..) My idea is to @ first click have a choice on with angle i want to see my network(let's say for example all http, NFS, or windows domains..) the if i choose the smb get a different icons for servers and workstation...have a way to map shared folder.. About the kioslave can you explain me why we need 2 slaves? (i didn't start looking at code). Patrick From alexander.neundorf at gmx.net Thu Jul 25 23:18:36 2002 From: alexander.neundorf at gmx.net (aleXXX) Date: Fri, 26 Jul 2002 00:18:36 +0200 Subject: smb slave In-Reply-To: <200207252316.29559.pch@valleeurope.net> References: <200207232246.43096.alexander.neundorf@gmx.net> <200207252316.29559.pch@valleeurope.net> Message-ID: <200207260018.36243.alexander.neundorf@gmx.net> On Thursday 25 July 2002 23:16, Patrick wrote: > On Tuesday 23 July 2002 22:46, aleXXX wrote: > [...] > > > Hi Patrick, > > > > on which smb ioslave do you want to work ? > > kdebase/kioslave/smb or kdebase/kioslave/smbro ? > > What do you want to add ? > > Ciao Alex, > i would like to have add something like "clean network view" > I'm working in a large network and when i use the konqueror with lisa for > example i get all the server without any logical sort Yes, known "issue". > on the other hands > the smb protocols just show me the shared folder without any information > about the server and also there are no indication about domain (i don't > know how to find the PDC or a printer..) The smb ioslave (I think both) should in the meantime be able to show you the list of workgroups ( enter smb:/ ), so you will have grouping. At least my smbro (it ain't anymore read-only) is able to do it, if it doesn't work, tell me, then it is a bug. > My idea is to @ first click have a choice on with angle i want to see my > network(let's say for example all http, NFS, or windows domains..) the if i > choose the smb get a different icons for servers and workstation...have a > way to map shared folder.. Not sure I like ot understand what you mean. > About the kioslave can you explain me why we need 2 slaves? (i didn't start > looking at code). Well, depends on which ioslaves you count ;-) If you don't use samba at all, you have the lan:/ and the fish:/ ioslave, works perfectly :-) If you use everything, you have lan, http, ftp, fish and smb ioslave (maybe even nfs), makes 6 ioslaves. The lan:/ ioslave is for listing hosts (creating browse lists, in smb-language), independent whether they have samba servers (or ftp or http servers) running or not. The other ioslaves are put general "file sharing" ioslaves. I think the decision from microsoft to mix file sharing and host browse lists in one protocol is bad design. Bye Alex From pch at valleeurope.net Thu Jul 25 23:51:24 2002 From: pch at valleeurope.net (Patrick) Date: Fri, 26 Jul 2002 00:51:24 +0200 Subject: smb slave In-Reply-To: <200207260018.36243.alexander.neundorf@gmx.net> References: <200207232246.43096.alexander.neundorf@gmx.net> <200207252316.29559.pch@valleeurope.net> <200207260018.36243.alexander.neundorf@gmx.net> Message-ID: <200207260051.24014.pch@valleeurope.net> On Friday 26 July 2002 00:18, aleXXX wrote: > > [...] > Yes, known "issue". > > > on the other hands > > the smb protocols just show me the shared folder without any information > > about the server and also there are no indication about domain (i don't > > know how to find the PDC or a printer..) > > The smb ioslave (I think both) should in the meantime be able to show you > the list of workgroups ( enter smb:/ ), so you will have grouping. > At least my smbro (it ain't anymore read-only) is able to do it, if it > doesn't work, tell me, then it is a bug. Yes they show the workgroups but as Directory...(i understand the network transparency but consider workgroup PDC BDC Workstation and shared folder all the same on my personal option it's to much transparent..) > > My idea is to @ first click have a choice on with angle i want to see my > > network(let's say for example all http, NFS, or windows domains..) the if > > i choose the smb get a different icons for servers and workstation...have > > a way to map shared folder.. > > Not sure I like ot understand what you mean. > > > About the kioslave can you explain me why we need 2 slaves? (i didn't > > start looking at code). > > Well, depends on which ioslaves you count ;-) Sorry my question was why smb and smbpro? > The other ioslaves are put general "file sharing" ioslaves. > I think the decision from microsoft to mix file sharing and host browse > lists in one protocol is bad design. maybe but as i say before we cannot consider all things folders.. there are informations associated to hosts that are diffents from folders....example if i right click on a folder (that is a workgoup) all the actions associated are ..wrong let's say cut-past-copy...preview in .. The propriety tab doesn't give me any right informations ex: i cannot rename a workgroup, nor calculate de size and i cannot change the permissions.. last consideration is about network printers i cannot see any printers for smb slave.. let me know your feeling ciao patrick From david at mandrakesoft.com Fri Jul 26 09:45:37 2002 From: david at mandrakesoft.com (David Faure) Date: Fri, 26 Jul 2002 10:45:37 +0200 Subject: patch for bug 27362 : put redirected URLs in history In-Reply-To: <200207250638.26150.carpdjih@sp.zrz.tu-berlin.de> References: <200207240008.02771.CP.Hennessy@iname.com> <200207250638.26150.carpdjih@sp.zrz.tu-berlin.de> Message-ID: <200207261045.37446.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 25 July 2002 06:38, Carsten Pfeiffer wrote: > On Wednesday 24 July 2002 01:08, Con Hennessy wrote: > > [Konqueror issues are handled on kfm-devel] > > Hi, > > > The bug http://bugs.kde.org/db/27/27362.html is marked as a duplicate > > and is closed. However I could not find any other bug which may be a > > duplicate of it, also the problem itself is not resolved. > > > > Basically the problem is that when a URL is actually redirected, > > this URL is never added to the history, and therefore is never > > marked as being "visited" when you go back to the original page. > > As an example following any news link from http://newshub.com/tech > > or any link from http://www.freshmeat.net/. > > > > The patch files below, are very basic : > > 1) to the class BrowserRun a slotRedirection slot is added and > > connected with the redirection signal from the KIO::TransferJob; > > 2) to the class KonqRun the virtual method defined above (slotRedirection) > > is redefined so that the pending URL ( i.e. the one which we are > > being redirected from ) is confirmed and the new URL ( i.e. the > > one we are being directed to ) is added as "pending". > > > > These changes work for me (on newshub but now I'm not completely sure > > whether they do on freshmeat ?). I am not sure if KonqRun is the right > > class to add the code for the history. > > Thanks for the patch! Unfortunately, it causes a binary incompatibility in > KParts::BrowserRun (we can't add a new virtual method). However, looking at > BrowserRun::scanFile(), the job is assigned to KRun's m_job, so KonqRun could > simply reimplement scanFile(), call BrowserRun::scanFile and then connect() > to the redirected() signal. > > New patch attached. Unfortunately, David Faure is on vacation at the moment, > so it might take a little while to get his comment. Patch looks fine to me, please commit. - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9QQwx72KcVAmwbhARAmKbAJsG1zz1INiD7FJkv6vR8HL6VrTQawCghG8I ayJuOFsGn5kGifCuuUwnrKI= =56wG -----END PGP SIGNATURE----- From germain at ebooksfrance.com Fri Jul 26 16:44:43 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Fri, 26 Jul 2002 16:44:43 +0100 Subject: Crash on "Configure toolbar" ? Message-ID: <200207261644.43174.germain@ebooksfrance.com> Hello, It's been some time since I did a full recompile (poor processor here) so I'm not sure about it, but whenever I edit my toolbars in Konqui (Settings->Configure toolbars), add an item, and confirm with "Ok", I get a crash... Anyone else see that ? G. From david at mandrakesoft.com Fri Jul 26 17:24:18 2002 From: david at mandrakesoft.com (David Faure) Date: Fri, 26 Jul 2002 18:24:18 +0200 Subject: Is someone working on #41620 ? In-Reply-To: <200207200437.19566.germain@ebooksfrance.com> References: <200207181256.42400.germain@ebooksfrance.com> <200207191922.02197.david@mandrakesoft.com> <200207200437.19566.germain@ebooksfrance.com> Message-ID: <200207261824.19961.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 20 July 2002 05:37, Germain Garand wrote: > Works perfectly ... #43393 is gone ! Good, closing. > [....] > It works also very well and crushes #41620 :-) Closing too ;) > Though to nittpick like crazy, the: > > kdDebug(1202) << "Giving focus to new part " << m_pPart << endl; > m_pMainWindow->viewManager()->setActivePart( m_pPart ); > > statements that follows should probably be displaced into the "else" > (otherwise you get a "Warning! part is already active") Ah I see (now I understand your more recent comment by private mail) I added a if ( m_pMainWindow->viewManager()->activePart() != m_pPart ) around it. > Mhhh true... but then you'd have a hard time knowing afterward if the returned > pointer is a new part, the same part or an invalid pointer ? Hmm, same part would work, no? > Konqui's implementation seems cleaner to me: separate the trading from the > actual creation... Yes. I don't feel like changing KHTML though :} - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9QXez72KcVAmwbhARAkI7AJ4yGT5CW8Q94Qx12IxfUaBTCstTvQCfbQ13 j8vN+jiMGF8uWbeKcyOnUoY= =zIIy -----END PGP SIGNATURE----- From paully at myblackhole.net Fri Jul 26 20:35:31 2002 From: paully at myblackhole.net (paul lathrop) Date: Fri, 26 Jul 2002 12:35:31 -0700 Subject: disabling delete Message-ID: <002801c234db$9e1120c0$0501000a@qwest.net> Dear Friends, How would i go about disabling delete in Konqueror file manager? EX: when a user right clicks and Icon and selects disable this can be troublesome for us in our production environment because the user needs to call support then. I can disable the 'right click' action in most of KDE but i am unable to in Konq - FIle manager I am unable to track down this functionality in DCOP as well. Is there a way to restrict this functionality? Thanks! Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at mandrakesoft.com Sat Jul 27 17:04:13 2002 From: david at mandrakesoft.com (David Faure) Date: Sat, 27 Jul 2002 18:04:13 +0200 Subject: disabling delete In-Reply-To: <002801c234db$9e1120c0$0501000a@qwest.net> References: <002801c234db$9e1120c0$0501000a@qwest.net> Message-ID: <200207271804.15032.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 26 July 2002 21:35, paul lathrop wrote: > Dear Friends, > > How would i go about disabling delete in Konqueror file manager? Comment out the del(), trash() and shred() slots in kdebase/konqueror/iconview/konq_iconview.h and kdebase/konqueror/listview/konq_listview.h (well unless you want to keep trash() ;) > EX: when a user right clicks and Icon and selects disable this can be troublesome for us in our production environment because the user needs to call support then. You mean 'delete' instead of 'disable', right? > I can disable the 'right click' action in most of KDE but i am unable to in Konq - FIle manager Hmm, I thought someone added a dcop call to disable RMB. Can't find it though. Just add a "return;" in KonqMainWindow::slotPopupMenu() (like 3359 for me) - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9QsR+72KcVAmwbhARAjgtAJ0dglSvrRLC1vHOni6OSu1MbWWLDwCeNceI 8M5SMFu9qjWlC9BwR59DEjI= =I8Xq -----END PGP SIGNATURE----- From david at mandrakesoft.com Sat Jul 27 17:09:45 2002 From: david at mandrakesoft.com (David Faure) Date: Sat, 27 Jul 2002 18:09:45 +0200 Subject: [Patch] Add icon to 'Copy Link Location' action In-Reply-To: <200207231610.52440.rik@kde.org> References: <200207231610.52440.rik@kde.org> Message-ID: <200207271809.46113.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 23 July 2002 17:10, Rik Hemsley wrote: > I think this makes sense... it's a lot easier to find the menu item when > it has an icon. No objections from me. - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9QsXK72KcVAmwbhARAuMqAKCLB+04n1+icv7D7UHW6KaxicaCEwCdHdvh nApreeuvnwWD41BMI3THzas= =SotP -----END PGP SIGNATURE----- From david at mandrakesoft.com Sat Jul 27 17:11:11 2002 From: david at mandrakesoft.com (David Faure) Date: Sat, 27 Jul 2002 18:11:11 +0200 Subject: Crash on "Configure toolbar" ? In-Reply-To: <200207261644.43174.germain@ebooksfrance.com> References: <200207261644.43174.germain@ebooksfrance.com> Message-ID: <200207271811.11521.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 26 July 2002 17:44, Germain Garand wrote: > Hello, > > It's been some time since I did a full recompile (poor processor here) so I'm > not sure about it, but whenever I edit my toolbars in Konqui > (Settings->Configure toolbars), add an item, and confirm with "Ok", > I get a crash... Backtrace? - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9QsYf72KcVAmwbhARAsxJAKCdHRz/SYuSD9rVsqCRmdnTDiTG5gCfYOkj R3ROWcRIZoWBbbTIraktkg4= =tk9e -----END PGP SIGNATURE----- From germain at ebooksfrance.com Sat Jul 27 17:33:05 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Sat, 27 Jul 2002 17:33:05 +0100 Subject: Crash on "Configure toolbar" ? In-Reply-To: <200207271811.11521.david@mandrakesoft.com> References: <200207261644.43174.germain@ebooksfrance.com> <200207271811.11521.david@mandrakesoft.com> Message-ID: <200207271733.05467.germain@ebooksfrance.com> Le Samedi 27 Juillet 2002 17:11, David Faure a écrit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday 26 July 2002 17:44, Germain Garand wrote: > > Hello, > > > > It's been some time since I did a full recompile (poor processor here) so > > I'm not sure about it, but whenever I edit my toolbars in Konqui > > (Settings->Configure toolbars), add an item, and confirm with "Ok", > > I get a crash... > > Backtrace? > Right... anyway noone confirmed so I'd better recompile the whole... I'm still using the previous qt-copy. [New Thread 1024 (LWP 9656)] 0x410e4409 in wait4 () from /lib/libc.so.6 #0 0x410e4409 in wait4 () from /lib/libc.so.6 #1 0x4116398c in __check_rhosts_file () from /lib/libc.so.6 #2 0x40f72d56 in waitpid (pid=9662, stat_loc=0x0, options=0) at wrapsyscall.c:172 #3 0x40715ef2 in KCrash::defaultCrashHandler () from /opt/kde3-dev/lib/libkdecore.so.4 #4 0x40f705bb in pthread_sighandler (signo=11, ctx= {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, edi = 0, esi = 3221216912, ebp = 3221216824, esp = 3221216816, ebx = 1088616836, edx = 136234680, ecx = 3221215952, eax = 0, trapno = 14, err = 4, eip = 1084941876, cs = 35, __csh = 0, eflags = 66070, esp_at_signal = 3221216816, ss = 43, __ssh = 0, fpstate = 0xbfffdbb0, oldmask = 2147483648, cr2 = 116}) at signals.c:97 #5 0x41057478 in killpg () from /lib/libc.so.6 #6 0x41300af1 in KonqCombo::setTemporary () from /opt/kde3-dev/lib/konqueror.so #7 0x41300aae in KonqCombo::setTemporary () from /opt/kde3-dev/lib/konqueror.so #8 0x412ac91f in KonqMainWindow::slotConfigureToolbars () from /opt/kde3-dev/lib/konqueror.so #9 0x412ca6f0 in KonqMainWindow::qt_invoke () from /opt/kde3-dev/lib/konqueror.so #10 0x40a1fe94 in QObject::activate_signal () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #11 0x40a1fdfe in QObject::activate_signal () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #12 0x40476755 in KAction::activated () from /opt/kde3-dev/lib/libkdeui.so.4 #13 0x40462b19 in KAction::slotActivated () from /opt/kde3-dev/lib/libkdeui.so.4 #14 0x40476991 in KAction::qt_invoke () from /opt/kde3-dev/lib/libkdeui.so.4 #15 0x40a1fe94 in QObject::activate_signal () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #16 0x40cdf89d in QSignal::signal () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #17 0x40a34e97 in QSignal::activate () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #18 0x40b0b753 in QPopupMenu::mouseReleaseEvent () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #19 0x40a4e360 in QWidget::event () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #20 0x409c8603 in QApplication::internalNotify () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #21 0x409c7d53 in QApplication::notify () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #22 0x406664d9 in KApplication::notify () from /opt/kde3-dev/lib/libkdecore.so.4 #23 0x409744b7 in QETWidget::translateMouseEvent () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #24 0x4097193f in QApplication::x11ProcessEvent () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #25 0x409705ba in QApplication::processNextEvent () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #26 0x409c99f1 in QApplication::enter_loop () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #27 0x40970518 in QApplication::exec () from /home/germain/cvs/KDE/qt-copy/lib/libqt-mt.so.3 #28 0x4129bd78 in main () from /opt/kde3-dev/lib/konqueror.so #29 0x0804cd13 in launch () #30 0x0804da38 in handle_launcher_request () #31 0x0804df12 in handle_requests () #32 0x0804f40b in main () #33 0x41045280 in __libc_start_main () from /lib/libc.so.6 From paully at myblackhole.net Sat Jul 27 17:41:33 2002 From: paully at myblackhole.net (paul) Date: Sat, 27 Jul 2002 09:41:33 -0700 Subject: disabling delete In-Reply-To: <200207271804.15032.david@mandrakesoft.com> References: <002801c234db$9e1120c0$0501000a@qwest.net> <200207271804.15032.david@mandrakesoft.com> Message-ID: <02072709413300.01102@localhost.localdomain> On Saturday 27 July 2002 09:04 am, David Faure wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday 26 July 2002 21:35, paul lathrop wrote: > > Dear Friends, > > > > How would i go about disabling delete in Konqueror file manager? > Thank You So Much David! I had a heck of a time trying to find this information! _Paul > Comment out the del(), trash() and shred() slots in > kdebase/konqueror/iconview/konq_iconview.h and > kdebase/konqueror/listview/konq_listview.h > (well unless you want to keep trash() ;) > > > EX: when a user right clicks and Icon and selects disable this can be > > troublesome for us in our production environment because the user needs > > to call support then. > > You mean 'delete' instead of 'disable', right? > > > I can disable the 'right click' action in most of KDE but i am unable to > > in Konq - FIle manager > > Hmm, I thought someone added a dcop call to disable RMB. Can't find it > though. Just add a "return;" in KonqMainWindow::slotPopupMenu() (like 3359 > for me) > > - -- > David FAURE, david at mandrakesoft.com, faure at kde.org > http://people.mandrakesoft.com/~david/ > Contributing to: http://www.konqueror.org/, http://www.koffice.org/ > KOffice 1.2 RC1 is slightly delayed. Stay tuned. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE9QsR+72KcVAmwbhARAjgtAJ0dglSvrRLC1vHOni6OSu1MbWWLDwCeNceI > 8M5SMFu9qjWlC9BwR59DEjI= > =I8Xq > -----END PGP SIGNATURE----- From bastian at kde.org Sat Jul 27 19:02:15 2002 From: bastian at kde.org (Waldo Bastian) Date: Sat, 27 Jul 2002 11:02:15 -0700 Subject: disabling delete In-Reply-To: <200207271804.15032.david@mandrakesoft.com> References: <002801c234db$9e1120c0$0501000a@qwest.net> <200207271804.15032.david@mandrakesoft.com> Message-ID: <200207271102.15322.bastian@kde.org> On Saturday 27 July 2002 09:04 am, David Faure wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday 26 July 2002 21:35, paul lathrop wrote: > > Dear Friends, > > > > How would i go about disabling delete in Konqueror file manager? > > Comment out the del(), trash() and shred() slots in > kdebase/konqueror/iconview/konq_iconview.h and > kdebase/konqueror/listview/konq_listview.h > (well unless you want to keep trash() ;) > > > EX: when a user right clicks and Icon and selects disable this can be > > troublesome for us in our production environment because the user needs > > to call support then. > > You mean 'delete' instead of 'disable', right? > > > I can disable the 'right click' action in most of KDE but i am unable to > > in Konq - FIle manager > > Hmm, I thought someone added a dcop call to disable RMB. Can't find it > though. Just add a "return;" in KonqMainWindow::slotPopupMenu() (like 3359 > for me) I will add some stuff so that you can disable this with the KIOSK framework for KDE 3.1 Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com From david at mandrakesoft.com Sun Jul 28 02:57:55 2002 From: david at mandrakesoft.com (David Faure) Date: Sun, 28 Jul 2002 03:57:55 +0200 Subject: MMB opens in new tab In-Reply-To: <200207221105.13066.hanleyman@adelphia.net> References: <200207141222.19644.hanleyman@adelphia.net> <200207191845.50264.david@mandrakesoft.com> <200207221105.13066.hanleyman@adelphia.net> Message-ID: <200207280357.55546.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 22 July 2002 17:05, Doug Hanley wrote: > On Friday 19 July 2002 12:45 pm, David Faure wrote: > > A much smaller solution (less code changes) would have been to add the > > newTab bool to the KonqOpenURLRequest struct. That's exactly what it's > > there for: to easily add new "do this when opening this URL" data, without > > having to change so much API. Sorry that I didn't think of mentionning this > > earlier. I understand if you don't want to rewrite this patch yet another > > time (but in all theory it would be cleaner to have it in > > KonqOpenURLRequest ;-) Do whichever way you prefer. > > Alright, that wasn't too hard. Well I know you're on vacation right now (hope > you're enjoying it), so I guess I'll just say here's the patch, anyone have > any objections? If not, I'll commit. Very cool patch. Much cleaner. Thanks a lot. - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9Q0+j72KcVAmwbhARAj+zAJ91uqEmM5tmFZhRK5Rw6uqi1gTVOwCgiX37 qhVjcVOty3X+hzl7mYyIqOE= =YgDW -----END PGP SIGNATURE----- From zack at kde.org Sun Jul 28 03:46:52 2002 From: zack at kde.org (Zack Rusin) Date: Sat, 27 Jul 2002 22:46:52 -0400 Subject: MMB opens in new tab In-Reply-To: <200207280357.55546.david@mandrakesoft.com> References: <200207141222.19644.hanleyman@adelphia.net> <200207221105.13066.hanleyman@adelphia.net> <200207280357.55546.david@mandrakesoft.com> Message-ID: <200207272246.52264.zack@kde.org> On Saturday 27 July 2002 21:57, David Faure wrote: > On Monday 22 July 2002 17:05, Doug Hanley wrote: > > On Friday 19 July 2002 12:45 pm, David Faure wrote: > > > A much smaller solution (less code changes) would have been to > > > add the newTab bool to the KonqOpenURLRequest struct. That's > > > exactly what it's there for: to easily add new "do this when > > > opening this URL" data, without having to change so much API. > > > Sorry that I didn't think of mentionning this earlier. I > > > understand if you don't want to rewrite this patch yet another > > > time (but in all theory it would be cleaner to have it in > > > KonqOpenURLRequest ;-) Do whichever way you prefer. > > > > Alright, that wasn't too hard. Well I know you're on vacation > > right now (hope you're enjoying it), so I guess I'll just say > > here's the patch, anyone have any objections? If not, I'll commit. > > Very cool patch. Much cleaner. Thanks a lot. Yeah, it's great but it still doesn't work with some mimetypes. To try it go over to www.kernel.org and click on one of the changelogs, in fact try to open any link containing a reference to a simple txt document in a new tab. I just compiled kdelibs and kdebase and I get an error box when I click on any link referencing anything else than a html page, the error box says "Could not create view for text/plain The diagnostics is:" Doug do you have time to look into it or do you want me to take the honors? :) Oh, and as always on Saturday afternoon, I did something completely useless and added a custom paintEvent to KonqTabBar to add a custom widget to close the tabs since right clicking and picking a menu item was a little cumbersome. For now it looks super corny, since I only cared about getting the basic functionality there, so it's just a plain button, without anything on it (probably it'd be a good idea to draw there the same widget KWin draws for the close window button) and looks like this: http://vortex.bd.psu.edu/~mus11/img/konq1.png Should I add this to 3.2 features list, or does anyone think that there's a better/cleaner way of doing this (close button on every tab? close button somewhere on the frame? something even weirder than the last two?) Zack Rusin -- It's Like This Even the samurai have teddy bears, and even the teddy bears get drunk. From koos.vriezen at xs4all.nl Sun Jul 28 14:15:15 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Sun, 28 Jul 2002 15:15:15 +0200 (CEST) Subject: Small test case for bug in renderer floats Message-ID: Hi, This is rendered wrong
table cell
some text or with a div
div text
div text
some text Seems the float gets an extra left offset if the height is greater than height of surrounding text. Regards, Koos Vriezen From hanleyman at adelphia.net Sun Jul 28 16:42:45 2002 From: hanleyman at adelphia.net (Doug Hanley) Date: Sun, 28 Jul 2002 11:42:45 -0400 Subject: MMB opens in new tab Message-ID: <200207281142.45724.hanleyman@adelphia.net> Zack Rusin wrote: > Yeah, it's great but it still doesn't work with some mimetypes. To try > it go over to www.kernel.org and click on one of the changelogs, in > fact try to open any link containing a reference to a simple txt > document in a new tab. I just compiled kdelibs and kdebase and I get an > error box when I click on any link referencing anything else than a > html page, the error box says > "Could not create view for text/plain > The diagnostics is:" I don't get that over here, for me it works just as excpected. Maybe its something else thats causing the problem. However, I do have a build from about a week and a half a ago (except for konqueror which is new). > Doug do you have time to look into it or do you want me to take the > honors? :) Oh, and as always on Saturday afternoon, I did something > completely useless and added a custom paintEvent to KonqTabBar to add a > custom widget to close the tabs since right clicking and picking a menu > item was a little cumbersome. For now it looks super corny, since I > only cared about getting the basic functionality there, so it's just a > plain button, without anything on it (probably it'd be a good idea to > draw there the same widget KWin draws for the close window button) and > looks like this: > http://vortex.bd.psu.edu/~mus11/img/konq1.png Great work, I think it looks really good personally! And I think having it the same as KWin is a good idea too. One question, what happens when the tab bar gets too wide, does it play well with those little scroll arrow thingies? > Should I add this to 3.2 features list, or does anyone think that > there's a better/cleaner way of doing this (close button on every tab? > close button somewhere on the frame? something even weirder than the > last two?) I think this is the best way to do it. I've used it a lot on mozilla and I've always liked it. From zack at kde.org Sun Jul 28 21:07:14 2002 From: zack at kde.org (Zack Rusin) Date: Sun, 28 Jul 2002 16:07:14 -0400 Subject: MMB opens in new tab In-Reply-To: <200207281142.45724.hanleyman@adelphia.net> References: <200207281142.45724.hanleyman@adelphia.net> Message-ID: <200207281607.15128.zack@kde.org> On Sunday 28 July 2002 11:42, Doug Hanley wrote: > I don't get that over here, for me it works just as excpected. Maybe > its something else thats causing the problem. However, I do have a > build from about a week and a half a ago (except for konqueror which > is new). I'll look into it then :) > Great work, I think it looks really good personally! And I think > having it the same as KWin is a good idea too. One question, what > happens when the tab bar gets too wide, does it play well with those > little scroll arrow thingies? Well, it's repainted (the silly answer) and... looks like shit :) Here's the problem, arrows are drawn internally by QTabBar, they're part of a private pimpl_ idiom inside QTabBar and displayed inside a private method, this all makes it pretty much impossible to change their position. Which is why I'm drawing the button before them It wouldn't be so bad if not the way arrow buttons are drawn inside QTabBar which basically is simple repainting over already drawn tab - meaning the button is also drawn over a tab. I could draw a background over the part where the button is, but it would look very weird. I though that not drawing the tab which is underneath the button and arrows would be a reasonable solution but it's not, the tabbar looked very unfriendly (the tabs looked as if they were cut off). I'm really not sure what would be a good way to do this. Here's how it looks right now: http://vortex.bd.psu.edu/~mus11/img/konq2.png I'd appreciate it, if some UI design people/artists would come up with a reasonable solution. I see three (please keep in mind that in QTabBar the arrow buttons will _always_ be at the end of the tabbar): 1) (the long way) write our own KTabBar (not inheriting from QTabBar), and draw it in whatever way we like it, 2) not draw the last tab (looks horrible), 3) draw a background over the tabs and underneath the close button and arrow buttons, 4) solution I haven't thought about. I looked at Mozilla - they don't have the arrow buttons, but just keep scaling the tabs, and Galeon - (which has close button on every tab), and I'm really not sure which way is the best. Any ideas? Zack Rusin -- 43rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped From hanleyman at adelphia.net Sun Jul 28 23:18:49 2002 From: hanleyman at adelphia.net (Doug Hanley) Date: Sun, 28 Jul 2002 18:18:49 -0400 Subject: MMB opens in new tab In-Reply-To: <200207281607.15128.zack@kde.org> References: <200207281142.45724.hanleyman@adelphia.net> <200207281607.15128.zack@kde.org> Message-ID: <200207281818.49445.hanleyman@adelphia.net> On Sunday 28 July 2002 04:07 pm, Zack Rusin wrote: > On Sunday 28 July 2002 11:42, Doug Hanley wrote: > > Great work, I think it looks really good personally! And I think > > having it the same as KWin is a good idea too. One question, what > > happens when the tab bar gets too wide, does it play well with those > > little scroll arrow thingies? > > Well, it's repainted (the silly answer) and... looks like shit :) Here's > the problem, arrows are drawn internally by QTabBar, they're part of a > private pimpl_ idiom inside QTabBar and displayed inside a private > method, this all makes it pretty much impossible to change their > position. Which is why I'm drawing the button before them It wouldn't > be so bad if not the way arrow buttons are drawn inside QTabBar which > basically is simple repainting over already drawn tab - meaning the > button is also drawn over a tab. I could draw a background over the > part where the button is, but it would look very weird. I though that > not drawing the tab which is underneath the button and arrows would be > a reasonable solution but it's not, the tabbar looked very unfriendly > (the tabs looked as if they were cut off). I'm really not sure what > would be a good way to do this. Here's how it looks right now: > http://vortex.bd.psu.edu/~mus11/img/konq2.png > I'd appreciate it, if some UI design people/artists would come up with a > reasonable solution. I see three (please keep in mind that in QTabBar > the arrow buttons will _always_ be at the end of the tabbar): > 1) (the long way) write our own KTabBar (not inheriting from QTabBar), > and draw it in whatever way we like it, > 2) not draw the last tab (looks horrible), > 3) draw a background over the tabs and underneath the close button and > arrow buttons, > 4) solution I haven't thought about. > I looked at Mozilla - they don't have the arrow buttons, but just keep > scaling the tabs, and Galeon - (which has close button on every tab), > and I'm really not sure which way is the best. Any ideas? Haha, I went through an ordeal very similar to your's :) In my case, I was able to get the close button drawn over the arrows, but that didn't help either. Yeah, that whole private members thing really sucks, I'm thinking we're gonna have to rewrite it ourselves. However, it will give us much more flexibility over the interface so it might turn out better than we think. Maybe we should just go ahead and get started on KTabBar or KonqTabBar, whatever its called... Would you be willing to put some time into that? I was thinking we could make the new tab bar more like opera's too, i find their's to be better for internet browsing. -- Doug Hanley From falk.brettschneider at gmx.de Sun Jul 28 23:34:41 2002 From: falk.brettschneider at gmx.de (F@lk Brettschneider) Date: Mon, 29 Jul 2002 00:34:41 +0200 Subject: konqueror file preview not up-to-date Message-ID: <3D447181.8040908@gmx.de> Hi! Current KDE CVS HEAD and qt-copy. I started Konqueror, edited and saved some HTML files via Kate, LMB-clicked such a file in Konqueror. But the embedded HTML-preview of Konqueror just shows the old version, not the new one. :-( This also happened in KDE-3.0.0 of SuSE-8.0. In this case it makes Konqueror's HTML preview useless. Maybe you can check it. Not sure, but it seems to me it doesn't happen always. Though always today... Thanks in advance, F at lk From zack at kde.org Sun Jul 28 23:39:10 2002 From: zack at kde.org (Zack Rusin) Date: Sun, 28 Jul 2002 18:39:10 -0400 Subject: MMB opens in new tab In-Reply-To: <200207281818.49445.hanleyman@adelphia.net> References: <200207281142.45724.hanleyman@adelphia.net> <200207281607.15128.zack@kde.org> <200207281818.49445.hanleyman@adelphia.net> Message-ID: <200207281839.10689.zack@kde.org> On Sunday 28 July 2002 18:18, Doug Hanley wrote: > Would you be willing to put some time into that? I'd love to! Using QTabBar is hardly any fun, since no matter what we do it's still going to be a hack. > I was thinking we could make the new tab bar more like opera's too, i > find their's to be better for internet browsing. Hmm, I don't know about that, Opera uses workspace to menage its windows and their tabbar is just a detachable toolbar with bunch of 'toggle buttons' on it. But that brings another good question, does tabbed browsing need necessarily QTabBar like widget or should it be be done with an entirely different widget? IMHO, Mozilla is the best of all the tabbed browsers (Skipstone was the first one that was using it, wasn't it?) and would go with a solution similar to theirs. The one thing that I'm not sure is whether placing arrow buttons is a better solution than scaling tabs. What do you think? Zack -- Asking if computers can think is like asking if submarines can swim. From falk.brettschneider at gmx.de Sun Jul 28 23:50:23 2002 From: falk.brettschneider at gmx.de (F@lk Brettschneider) Date: Mon, 29 Jul 2002 00:50:23 +0200 Subject: action for LMB click in Konqueror Message-ID: <3D44752F.6070307@gmx.de> Hi! I think it was better if Konqueror would open the default application on LMB click instead of opening the file in the embedded viewer. For instance a common user just wonders why he cannot edit the opened text file although he wanted to open the file for doing that. The main idea is why do you want to restrict the user to readonly-opening? 90% of the world population are used to Win32's file managers where LMB on a file opens the file in read-write mode. Which is also a more intuitively expected behaviour during a mom-test. ;-) Just my 2 cents Ciao F at lk From falk.brettschneider at gmx.de Sun Jul 28 23:55:51 2002 From: falk.brettschneider at gmx.de (F@lk Brettschneider) Date: Mon, 29 Jul 2002 00:55:51 +0200 Subject: Find File in tree view of Konqueror Message-ID: <3D447677.7030907@gmx.de> Hi! Please, can you add that very useful action 'Find file...' to the context menu of the (left-hand side located) tree view of Konqueror? Sorry, I gave up studying the code for making a little patch since it's too complex for me. Ciao F at lk From till at snafu.de Mon Jul 29 00:47:26 2002 From: till at snafu.de (Till Krech) Date: Mon, 29 Jul 2002 01:47:26 +0200 Subject: action for LMB click in Konqueror In-Reply-To: <3D44752F.6070307@gmx.de> References: <3D44752F.6070307@gmx.de> Message-ID: <200207290147.26909.till@snafu.de> Hi, I think, this is already changed in cvs HEAD. At least, text/plain opens in a separate kwrite here. OTOH, there seems to an incosistency between the filemanager settings and this behaviour. The settings of 'Filemanager=>File Associations' for text/plain, Embedding are here: 'use settings for text group' and the text group says 'show file in embedded viewer' But the file opens in a separate viewer (kwrite). regards, till On Monday 29 July 2002 00:50, falk.brettschneider at gmx.de wrote: > Hi! > I think it was better if Konqueror would open the default application on > LMB click instead of opening the file in the embedded viewer. > For instance a common user just wonders why he cannot edit the opened > text file although he wanted to open the file for doing that. The main > idea is why do you want to restrict the user to readonly-opening? 90% of > the world population are used to Win32's file managers where LMB on a > file opens the file in read-write mode. Which is also a more > intuitively expected behaviour during a mom-test. ;-) > > Just my 2 cents > Ciao > F at lk -- Till Krech from Berlin, Germany is happy with SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP * KDE: 3.0.6 (KDE 3.1 alpha1) Qt: 3.0.6-snapshot-20020712 * gcc version 2.95.3 20010315 (SuSE) From germain at ebooksfrance.com Mon Jul 29 04:44:59 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Mon, 29 Jul 2002 04:44:59 +0100 Subject: MMB opens in new tab In-Reply-To: <200207281142.45724.hanleyman@adelphia.net> References: <200207281142.45724.hanleyman@adelphia.net> Message-ID: <200207290444.59486.germain@ebooksfrance.com> Le Dimanche 28 Juillet 2002 16:42, Doug Hanley a écrit : > Zack Rusin wrote: > > Yeah, it's great but it still doesn't work with some mimetypes. To try > > it go over to www.kernel.org and click on one of the changelogs, in > > fact try to open any link containing a reference to a simple txt > > document in a new tab. I just compiled kdelibs and kdebase and I get an > > error box when I click on any link referencing anything else than a > > html page, the error box says > > "Could not create view for text/plain > > The diagnostics is:" > > I don't get that over here, for me it works just as excpected. Maybe its > something else thats causing the problem. However, I do have a build from > about a week and a half a ago (except for konqueror which is new). > Hi, I've just rebuilt and I'm seeing that too.. konqueror: KonqRun::foundMimeType text/plain konqueror: ------------- KonqViewManager::addTab starting ------------- konqueror: 1Views konqueror: 0x81d9770 konqueror: currentView=0x81d9770 konqueror: docContainer=0x81d5064 konqueror: KonqFrame [KonqFrame pointer (0x81d4ff0) to widget KonqFrame, geometry=700x396+0+83] visble=1 containing view 0x81d9770 visble=1 and part 0x82fc778 whose widget is a KHTMLView konqueror: KonqViewManager::createView konqueror: Trying to create view for "text/plain" konqueror: KonqFMSettings says: don't embed this servicetype It seems caused by the recent decision to open text/plain into kwrite by default... But is it that more generally, each time the preference is to open the link in an external application, the Tab creation will fail ? G. From germain at ebooksfrance.com Mon Jul 29 05:41:33 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Mon, 29 Jul 2002 05:41:33 +0100 Subject: action for LMB click in Konqueror In-Reply-To: <200207290147.26909.till@snafu.de> References: <3D44752F.6070307@gmx.de> <200207290147.26909.till@snafu.de> Message-ID: <200207290541.33755.germain@ebooksfrance.com> Le Lundi 29 Juillet 2002 00:47, Till Krech a écrit : > Hi, > > I think, this is already changed in cvs HEAD. > At least, text/plain opens in a separate kwrite here. > OTOH, there seems to an incosistency between the filemanager settings and > this behaviour. The settings of 'Filemanager=>File Associations' for > text/plain, Embedding are here: 'use settings for text group' and the text > group says 'show file in embedded viewer' > But the file opens in a separate viewer (kwrite). You're right... the setting for mimetype groups is just plain ignored ! It seems that if you first mark a mimetype to be externally or internally viewed, apply the change, and then later switch it to "use settings for XXX group", then it doesn't switch and just uses whatever you choose before... I have also a problem with application/x-shellscript => it should open either in kwrite or in the embedded viewer, but it simply does nothing... G. From hanleyman at adelphia.net Mon Jul 29 07:52:26 2002 From: hanleyman at adelphia.net (Doug Hanley) Date: Mon, 29 Jul 2002 02:52:26 -0400 Subject: MMB opens in new tab In-Reply-To: <200207281839.10689.zack@kde.org> References: <200207281142.45724.hanleyman@adelphia.net> <200207281818.49445.hanleyman@adelphia.net> <200207281839.10689.zack@kde.org> Message-ID: <200207290252.26572.hanleyman@adelphia.net> On Sunday 28 July 2002 06:39 pm, Zack Rusin wrote: > On Sunday 28 July 2002 18:18, Doug Hanley wrote: > > Would you be willing to put some time into that? > > I'd love to! Using QTabBar is hardly any fun, since no matter what we do > it's still going to be a hack. Yeah, I Agree. Just one thing though... before, you said that we would create a new tab bar that doesn't inherit QTabBar. The problem with that is becuase we must use the function QTabWidget::setTabBar( QTabBar * ) it has to inherit QTabBar. Now, that raised another problem, even if we reimplement all the functions, we still can't access the private variables, so we would have to make new variables for our own use (although they would be very similar to the existing ones). That would result in a slight waste of memory, but its very marginal and there is only one of these objects per window at most. > > I was thinking we could make the new tab bar more like opera's too, i > > find their's to be better for internet browsing. > > Hmm, I don't know about that, Opera uses workspace to menage its windows > and their tabbar is just a detachable toolbar with bunch of 'toggle > buttons' on it. But that brings another good question, does tabbed > browsing need necessarily QTabBar like widget or should it be be done > with an entirely different widget? IMHO, Mozilla is the best of all > the tabbed browsers (Skipstone was the first one that was using it, > wasn't it?) and would go with a solution similar to theirs. The one > thing that I'm not sure is whether placing arrow buttons is a better > solution than scaling tabs. What do you think? Hmm... You know what, I've always found those arrow things kind of annoying anyway. I think we should adopt mozilla's policy and scale the tabs. Its much more usable in my opinion. So, do you want to just start with qtabbar.h and qtabbar.cpp and adjust from there? I think maybe i'll start some work on that now. One problem though, I'll be gone for about 3 weeks starting tuesday (I'm seeing going to see The Who in NYC, woohoo!), so I probably wont have much time to work on this then. After that though, I'm ready as I'll ever be. -- Doug Hanley From till at snafu.de Mon Jul 29 08:12:38 2002 From: till at snafu.de (Till Krech) Date: Mon, 29 Jul 2002 09:12:38 +0200 Subject: action for LMB click in Konqueror In-Reply-To: <200207290541.33755.germain@ebooksfrance.com> References: <3D44752F.6070307@gmx.de> <200207290147.26909.till@snafu.de> <200207290541.33755.germain@ebooksfrance.com> Message-ID: <200207290912.39108.till@snafu.de> On Monday 29 July 2002 06:41, Germain Garand wrote: > Le Lundi 29 Juillet 2002 00:47, Till Krech a écrit : > > Hi, > > > > I think, this is already changed in cvs HEAD. > > At least, text/plain opens in a separate kwrite here. > > OTOH, there seems to an incosistency between the filemanager settings and > > this behaviour. The settings of 'Filemanager=>File Associations' for > > text/plain, Embedding are here: 'use settings for text group' and the > > text group says 'show file in embedded viewer' > > But the file opens in a separate viewer (kwrite). > > You're right... the setting for mimetype groups is just plain ignored ! > > It seems that if you first mark a mimetype to be externally or internally > viewed, apply the change, and then later switch it to "use settings for XXX > group", then it doesn't switch and just uses whatever you choose before... > > I have also a problem with application/x-shellscript => it should open > either in kwrite or in the embedded viewer, but it simply does nothing... hmm, if it is executable, it executes. Not very nice because you don't see any output since shell scripts normally have no gui ;) Some installers or launchers are exceptions. I think this is a problem. There is no visual feedback and something happens which you are not aware of. According to the file manager settings, it should open in kwrite. If a shell script executes, it should at least do so in a konsole window, so that you see the output. Even better: ask before. Perhaps it would be good to look into an executable, if it is a native binary, links to libX11 and only then, execute it on click. many of my shell scripts do nasty things like cleaning up whole directories, doing clean on the whole kde src tree to recompile everything etc., I would never like to execute them without seeing what they are doing and where they are doing it ($PWD). regards, till > > G. -- Till Krech from Berlin, Germany is happy with SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP * KDE: 3.0.6 (KDE 3.1 alpha1) Qt: 3.0.6-snapshot-20020712 * gcc version 2.95.3 20010315 (SuSE) From david at mandrakesoft.com Mon Jul 29 08:23:28 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 29 Jul 2002 09:23:28 +0200 Subject: MMB opens in new tab In-Reply-To: <200207281607.15128.zack@kde.org> References: <200207281142.45724.hanleyman@adelphia.net> <200207281607.15128.zack@kde.org> Message-ID: <200207290923.34592.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 28 July 2002 22:07, Zack Rusin wrote: > 1) (the long way) write our own KTabBar (not inheriting from QTabBar), > and draw it in whatever way we like it, > 2) not draw the last tab (looks horrible), > 3) draw a background over the tabs and underneath the close button and > arrow buttons, > 4) solution I haven't thought about. If it helps: QTella has close button on tabs .... maybe you want to look at how they do it? (qtella.sourceforge.net) - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RO1072KcVAmwbhARAuybAJwLAX3o/0JaI2EXOugQC5lKv5OzRQCgl+ia xJRXzy7bNbs7Y8lWYQhYUtg= =+CN+ -----END PGP SIGNATURE----- From david at mandrakesoft.com Mon Jul 29 08:28:17 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 29 Jul 2002 09:28:17 +0200 Subject: action for LMB click in Konqueror In-Reply-To: <200207290541.33755.germain@ebooksfrance.com> References: <3D44752F.6070307@gmx.de> <200207290147.26909.till@snafu.de> <200207290541.33755.germain@ebooksfrance.com> Message-ID: <200207290928.20290.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 29 July 2002 06:41, Germain Garand wrote: > Le Lundi 29 Juillet 2002 00:47, Till Krech a écrit : > > Hi, > > > > I think, this is already changed in cvs HEAD. > > At least, text/plain opens in a separate kwrite here. > > OTOH, there seems to an incosistency between the filemanager settings and > > this behaviour. The settings of 'Filemanager=>File Associations' for > > text/plain, Embedding are here: 'use settings for text group' and the text > > group says 'show file in embedded viewer' > > But the file opens in a separate viewer (kwrite). > > You're right... the setting for mimetype groups is just plain ignored ! > > It seems that if you first mark a mimetype to be externally or internally > viewed, apply the change, and then later switch it to "use settings for XXX > group", then it doesn't switch and just uses whatever you choose before... I forgot to update the kcontrol file associations module after changing the defaults. Thanks for noticing, fixed (please re-test). > I have also a problem with application/x-shellscript => it should open either > in kwrite or in the embedded viewer, but it simply does nothing... Err, clicking on a shell script executes it ... - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RO6T72KcVAmwbhARAvO0AJ93vF29zCrD+mMmM8hmFRrfMdELmgCfQtQX 6H8i3rp65vsrEx6+vVQYvnI= =yevw -----END PGP SIGNATURE----- From david at mandrakesoft.com Mon Jul 29 08:32:15 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 29 Jul 2002 09:32:15 +0200 Subject: MMB opens in new tab In-Reply-To: <200207290444.59486.germain@ebooksfrance.com> References: <200207281142.45724.hanleyman@adelphia.net> <200207290444.59486.germain@ebooksfrance.com> Message-ID: <200207290932.19065.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 29 July 2002 05:44, Germain Garand wrote: > Hi, > I've just rebuilt and I'm seeing that too.. > > konqueror: KonqRun::foundMimeType text/plain > konqueror: ------------- KonqViewManager::addTab starting ------------- > konqueror: 1Views > konqueror: 0x81d9770 > konqueror: currentView=0x81d9770 > konqueror: docContainer=0x81d5064 > konqueror: KonqFrame [KonqFrame pointer (0x81d4ff0) to widget KonqFrame, > geometry=700x396+0+83] visble=1 containing view 0x81d9770 visble=1 and part > 0x82fc778 whose widget is a KHTMLView > konqueror: KonqViewManager::createView > konqueror: Trying to create view for "text/plain" > konqueror: KonqFMSettings says: don't embed this servicetype Seems wrong, that addTab would query the embedding settings, it should always embed ;) Question to Doug: why does addTab() have a bool forceAutoEmbed parameter? I think it should always pass true to createView, instead of that bool, so that embedding always happens. (if anyone wants to test: I'm talking about KonqViewManager::addTab, the createView() call on line 366 in konq_viewmgr.cc) - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RO+C72KcVAmwbhARAp8xAKCM93CV5z6NSAWb9EEIni1xNJkvegCfXwdV xraFC4zBbs/kAHj3J4RkcKM= =kqSQ -----END PGP SIGNATURE----- From lucy-ples at mtu-net.ru Mon Jul 29 11:08:39 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Mon, 29 Jul 2002 14:08:39 +0400 Subject: Small test case for bug in renderer floats In-Reply-To: References: Message-ID: <200207291408.39267.lucy-ples@mtu-net.ru> On Sunday 28 July 2002 5:15 pm, Koos Vriezen wrote: | Hi, | | This is rendered wrong | |
table cell
| some text | | | or with a div | | |
div text
div text
| some text | | | Seems the float gets an extra left offset if the height is greater than | height of surrounding text. Hi, I can't understand what do you mean here. Pls check attached testcase - both and
render (almost) identically. BTW: you forgot to close in your example | | Regards, | | Koos Vriezen -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From koos.vriezen at xs4all.nl Mon Jul 29 11:43:47 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Mon, 29 Jul 2002 12:43:47 +0200 (CEST) Subject: Small test case for bug in renderer floats In-Reply-To: <200207291408.39267.lucy-ples@mtu-net.ru> References: <200207291408.39267.lucy-ples@mtu-net.ru> Message-ID: On Mon, 29 Jul 2002, Vadim Plessky wrote: > On Sunday 28 July 2002 5:15 pm, Koos Vriezen wrote: > | > | This is rendered wrong > | > |
table cell
> | some text > | > | > | or with a div > | > | > |
div text
div text
> | some text > | > | > | Seems the float gets an extra left offset if the height is greater than > | height of surrounding text. > > I can't understand what do you mean here. I mean, if you test one of the above test cases, you see the 'some text' text starts on top of the last letter of 'table cell' or 'div text' text (depending which test case). If I turn on DEBUG_LAYOUT/FLOAT_DEBUG/BOX_DEBUG, I see that the float is rendered twice, one correct and one with an xoffset of 10 too much. If you extend the height of surrounding text, eg. add '
more text..' after 'some text', its rendered correctly. > Pls check attached testcase - both and
render (almost) > identically. So what? > BTW: you forgot to close in your example IMO those close tags are optional, see http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.5 Regards, Koos Vriezen From lucy-ples at mtu-net.ru Mon Jul 29 14:28:59 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Mon, 29 Jul 2002 17:28:59 +0400 Subject: Small test case for bug in renderer floats In-Reply-To: References: Message-ID: <200207291728.59994.lucy-ples@mtu-net.ru> On Monday 29 July 2002 2:43 pm, Koos Vriezen wrote: | On Mon, 29 Jul 2002, Vadim Plessky wrote: | > On Sunday 28 July 2002 5:15 pm, Koos Vriezen wrote: | > | This is rendered wrong | > | | > |
table cell
| > | some text | > | | > | | > | or with a div | > | | > | | > |
div text
div text
| > | some text | > | | > | | > | Seems the float gets an extra left offset if the height is greater | > | than height of surrounding text. | > | > I can't understand what do you mean here. | | I mean, if you test one of the above test cases, you see the 'some text' | text starts on top of the last letter of 'table cell' or 'div text' text | (depending which test case). | If I turn on DEBUG_LAYOUT/FLOAT_DEBUG/BOX_DEBUG, I see that the float is | rendered twice, one correct and one with an xoffset of 10 too much. | If you extend the height of surrounding text, eg. add '
more text..' | after 'some text', its rendered correctly. ok, now I see. This testcase demonstrates that problem is with floating div's offset from left border of
div text
div text
some text Compare rendering with Mozilla and you will see some difference :-) // thanks to dashed border around body and, BTW, problem is related not to the amount of text outside floating DIV, but to the heigh tof body. See another testcase:
div text
div text
some text
more text blah blah
more more more text And now when we have detailed descriptiuon for the bug, I can tell you that I filed bug report aganst this problem 21.04.2002, Bug#41403 CSS1: incorrect rendering for { float:right } block (misplaced right border) [testcase]) You can follow your bug's status at http://bugs.kde.org/db/41/41403.html | | > Pls check attached testcase - both and
render (almost) | > identically. | | So what? I had impresion that you compare differences of using
and
with CSS property 'float: left' And prepared testcase which demonstares that rendering is identical (that's was not visible from your testcase) | | > BTW: you forgot to close in your example | | IMO those close tags are optional, see | http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.5 | They may be optional, but if you write testcase, it's better to use well-written HTML. I would prefer XHTML 1.0/1.1 over HTML x.y, validated by W3C Validator (in case you compare output with, say, Mozilla; rendering by MS IE is different story) | | Regards, | | Koos Vriezen Kind Regards, -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From hanleyman at adelphia.net Mon Jul 29 15:03:10 2002 From: hanleyman at adelphia.net (Doug Hanley) Date: Mon, 29 Jul 2002 10:03:10 -0400 Subject: MMB opens in new tab In-Reply-To: <200207290932.19065.david@mandrakesoft.com> References: <200207281142.45724.hanleyman@adelphia.net> <200207290444.59486.germain@ebooksfrance.com> <200207290932.19065.david@mandrakesoft.com> Message-ID: <200207291003.10287.hanleyman@adelphia.net> On Monday 29 July 2002 03:32 am, David Faure wrote: > Question to Doug: why does addTab() have a bool forceAutoEmbed parameter? > I think it should always pass true to createView, instead of that bool, so > that embedding always happens. Yes, I agree it should. I guess I just sort of missed that. I think when I integrated forceAutoEmbed into my tab code I wasn't really sure what it was, but now I do and I see that a new tab should behave much like a new window in that respect. I suggest you change it in the CVS. > (if anyone wants to test: I'm talking about KonqViewManager::addTab, the > createView() call on line 366 in konq_viewmgr.cc) I'll test it too. -- Doug Hanley From germain at ebooksfrance.com Mon Jul 29 15:05:16 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Mon, 29 Jul 2002 15:05:16 +0100 Subject: action for LMB click in Konqueror In-Reply-To: <200207290912.39108.till@snafu.de> References: <3D44752F.6070307@gmx.de> <200207290541.33755.germain@ebooksfrance.com> <200207290912.39108.till@snafu.de> Message-ID: <200207291505.16830.germain@ebooksfrance.com> Le Lundi 29 Juillet 2002 08:12, Till Krech a écrit : > On Monday 29 July 2002 06:41, Germain Garand wrote: > > Le Lundi 29 Juillet 2002 00:47, Till Krech a écrit : > > > Hi, > > > > > > I think, this is already changed in cvs HEAD. > > > At least, text/plain opens in a separate kwrite here. > > > OTOH, there seems to an incosistency between the filemanager settings > > > and this behaviour. The settings of 'Filemanager=>File Associations' > > > for text/plain, Embedding are here: 'use settings for text group' and > > > the text group says 'show file in embedded viewer' > > > But the file opens in a separate viewer (kwrite). > > > > You're right... the setting for mimetype groups is just plain ignored ! > > > > It seems that if you first mark a mimetype to be externally or internally > > viewed, apply the change, and then later switch it to "use settings for > > XXX group", then it doesn't switch and just uses whatever you choose > > before... > > > > I have also a problem with application/x-shellscript => it should open > > either in kwrite or in the embedded viewer, but it simply does nothing... > > hmm, if it is executable, it executes. Not very nice because you don't see > any output since shell scripts normally have no gui ;) Some installers or > launchers are exceptions. Damn... how dangerous ! After half an hour playing with this, I'd better check my datas :((( Now, wait a minute, among all the shellscripts I tested, only one was actually executable, and all gave the same result... Though my settings are : LMB action: open in Kwrite... And Is one suppposed to check the +x property of a shell script before even thinking about clicking on it ? > I think this is a problem. There is no visual feedback and something > happens which you are not aware of. > According to the file manager settings, it should open in kwrite. > > If a shell script executes, it should at least do so in a konsole window, > so that you see the output. Even better: ask before. Yes !!! I didn't even thought a second a shell script could execute on click ! *strucking horror* > > Perhaps it would be good to look into an executable, if it is a native > binary, links to libX11 and only then, execute it on click. > Sounds good ... or if it's not linked to X11, prompt a confirmation dialog... > many of my shell scripts do nasty things like cleaning up whole > directories, doing clean on the whole kde src tree to recompile everything > etc., I would never like to execute them without seeing what they are doing > and where they are doing it ($PWD). > > regards, till > > > G. From germain at ebooksfrance.com Mon Jul 29 15:10:21 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Mon, 29 Jul 2002 15:10:21 +0100 Subject: action for LMB click in Konqueror In-Reply-To: <200207290928.20290.david@mandrakesoft.com> References: <3D44752F.6070307@gmx.de> <200207290541.33755.germain@ebooksfrance.com> <200207290928.20290.david@mandrakesoft.com> Message-ID: <200207291510.21978.germain@ebooksfrance.com> Le Lundi 29 Juillet 2002 08:28, David Faure a écrit : > > It seems that if you first mark a mimetype to be externally or internally > > viewed, apply the change, and then later switch it to "use settings for > > XXX group", then it doesn't switch and just uses whatever you choose > > before... > > I forgot to update the kcontrol file associations module after changing the > defaults. Thanks for noticing, fixed (please re-test). > I will ASAP ! > > I have also a problem with application/x-shellscript => it should open > > either in kwrite or in the embedded viewer, but it simply does nothing... > > Err, clicking on a shell script executes it ... > That is IMHO, very bad policy... unless my KFM settings displays /usr/bin/sh as the preferred application in "General", I see no good reason why a shell script (which is rather, intrinsically, a document...) should run by itself ? G. > - -- > David FAURE, david at mandrakesoft.com, faure at kde.org > http://people.mandrakesoft.com/~david/ > Contributing to: http://www.konqueror.org/, http://www.koffice.org/ > KOffice 1.2 RC1 is slightly delayed. Stay tuned. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE9RO6T72KcVAmwbhARAvO0AJ93vF29zCrD+mMmM8hmFRrfMdELmgCfQtQX > 6H8i3rp65vsrEx6+vVQYvnI= > =yevw > -----END PGP SIGNATURE----- From neil at qualityassistant.com Mon Jul 29 15:08:28 2002 From: neil at qualityassistant.com (Neil Stevens) Date: Mon, 29 Jul 2002 07:08:28 -0700 Subject: action for LMB click in Konqueror In-Reply-To: <200207290912.39108.till@snafu.de> References: <3D44752F.6070307@gmx.de> <200207290541.33755.germain@ebooksfrance.com> <200207290912.39108.till@snafu.de> Message-ID: <200207290708.36325.neil@qualityassistant.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday July 29, 2002 12:12, Till Krech wrote: > Perhaps it would be good to look into an executable, if it is a native > binary, links to libX11 and only then, execute it on click. That won't work for the not-uncommon case of a script that runs some graphical program. - -- Neil Stevens - neil at qualityassistant.com "I always cheer up immensely if an attack is particularly wounding because I think, well, if they attack one personally, it means they have not a single political argument left." - Margaret Thatcher -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RUxkf7mnligQOmERAhiHAJ9DNFX4GZHlKFsQ5b6hBO1QfqoAiwCfW36D lqTMpq3ognMqJg5F2JGfNno= =7uRM -----END PGP SIGNATURE----- From david at mandrakesoft.com Mon Jul 29 15:19:11 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 29 Jul 2002 16:19:11 +0200 Subject: action for LMB click in Konqueror In-Reply-To: <200207291510.21978.germain@ebooksfrance.com> References: <3D44752F.6070307@gmx.de> <200207290928.20290.david@mandrakesoft.com> <200207291510.21978.germain@ebooksfrance.com> Message-ID: <200207291619.11848.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 29 July 2002 16:10, Germain Garand wrote: > Le Lundi 29 Juillet 2002 08:28, David Faure a écrit : > > Err, clicking on a shell script executes it ... > > > > That is IMHO, very bad policy... unless my KFM settings displays /usr/bin/sh > as the preferred application in "General", I see no good reason why a shell > script (which is rather, intrinsically, a document...) should run by itself ? Well, what happens when clicking on an executable? (in any desktop you can think of, including Mac and Windows?) shellscripts are only one kind of executables. (the other mail about the +x bit sounds like a bug though. We detect the application/x-shellscript from the content, and then test for that... I suggest testing for the file permissions in kdelibs/kio/kio/krun.cpp:86 (sorry, no time for doing all the changes people talk about, so I just give hints ;) - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RU7f72KcVAmwbhARAvZqAJ96xaafUgUNjrtuC9YkHLpGe/sF1gCeInsu tIA+tzqy6nTmZe3s3KV1kqM= =s93i -----END PGP SIGNATURE----- From hetz at kde.org Mon Jul 29 15:31:51 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Mon, 29 Jul 2002 17:31:51 +0300 Subject: style sheet problems? Message-ID: <200207291731.52220.hetz@kde.org> Hi, Over the last few days I have seen a weird look at a page I'm using regulary to read the news. URL: http://news.walla.co.il (user agent should be set to MSIE) Here are 2 screenshots: http://witch.dyndns.org:8001/kong.png - thats how it looks today with konqueror (compiled yesterday - problem appears already few days) http://witch.dyndns.org:8001/galeon.png - thats how it should look and thats how it was looking at konqueror few weeks ago - galeon/mozilla & konqueror rendered the same page exactly with the same look. Thanks, Hetz From david at mandrakesoft.com Mon Jul 29 15:59:33 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 29 Jul 2002 16:59:33 +0200 Subject: Find File in tree view of Konqueror In-Reply-To: <3D447677.7030907@gmx.de> References: <3D447677.7030907@gmx.de> Message-ID: <200207291659.34030.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 29 July 2002 00:55, falk.brettschneider at gmx.de wrote: > Hi! > Please, can you add that very useful action 'Find file...' to the > context menu of the (left-hand side located) tree view of Konqueror? > Sorry, I gave up studying the code for making a little patch since it's > too complex for me. Can't see a relation between the sidebar directory tree, and "find file". I don't see why we should clutter the popupmenu with it - it's in the menus already. - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RVhV72KcVAmwbhARAo2lAJ9qSNBnSsnoD36JJ/FG24PT2GF4WgCfdFRr 2Q0DyG+raOuJ8+NQAAMiSUA= =fudz -----END PGP SIGNATURE----- From hetz at kde.org Mon Jul 29 15:59:28 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Mon, 29 Jul 2002 17:59:28 +0300 Subject: konq. crash Message-ID: <200207291759.28279.hetz@kde.org> Hi, Here are the steps to reproduce a konq. crash: go here: http://gamespot.com/gamespot/filters/products/media/0,11100,561527,00.html - this will take you to Dead or Alive Xtreme Beach Volleyball section in gamespot Now - click on any link from the "streams" section - a popup window will ask you for user/pass or a registration click the "sign up now" link - konq. crashes.. Backtrace: [New Thread 1024 (LWP 1845)] 0x420b4859 in wait4 () from /lib/i686/libc.so.6 #0 0x420b4859 in wait4 () from /lib/i686/libc.so.6 #1 0x4213030c in __DTOR_END__ () from /lib/i686/libc.so.6 #2 0x40fc8ca3 in waitpid () from /lib/i686/libpthread.so.0 #3 0x405af549 in KCrash::defaultCrashHandler () from /opt/kde3/lib/libkdecore.so.4 #4 0x40fc6f75 in pthread_sighandler () from /lib/i686/libpthread.so.0 #5 #6 0x4162de59 in KonqMainWindow::closeEvent () from /opt/kde3/lib/konqueror.so #7 0x409890be in QWidget::event () from /usr/local/qt-copy/lib/libqt-mt.so.3 #8 0x40a3876e in QMainWindow::event () from /usr/local/qt-copy/lib/libqt-mt.so.3 #9 0x408f5c38 in QApplication::internalNotify () from /usr/local/qt-copy/lib/libqt-mt.so.3 #10 0x408f5993 in QApplication::notify () from /usr/local/qt-copy/lib/libqt-mt.so.3 #11 0x4053528a in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4 #12 0x40988760 in QWidget::close () from /usr/local/qt-copy/lib/libqt-mt.so.3 #13 0x416473c4 in KonqViewManager::removePart () from /opt/kde3/lib/konqueror.so #14 0x4002c9c7 in KParts::Part::~Part () from /opt/kde3/lib/libkparts.so.2 #15 0x4002d328 in KParts::ReadOnlyPart::~ReadOnlyPart () from /opt/kde3/lib/libkparts.so.2 #16 0x41a79a3f in KHTMLPart::~KHTMLPart () from /opt/kde3/lib/libkhtml.so.4 #17 0x4221167e in KJS::WindowQObject::timeoutClose () from /opt/kde3/lib/kde3/kjs_html.so #18 0x42216361 in KJS::WindowQObject::qt_invoke () from /opt/kde3/lib/kde3/kjs_html.so #19 0x4094e0fe in QObject::activate_signal () from /usr/local/qt-copy/lib/libqt-mt.so.3 #20 0x40c4d3c8 in QSignal::signal () from /usr/local/qt-copy/lib/libqt-mt.so.3 #21 0x40967774 in QSignal::activate () from /usr/local/qt-copy/lib/libqt-mt.so.3 #22 0x409701ae in QSingleShotTimer::event () from /usr/local/qt-copy/lib/libqt-mt.so.3 #23 0x408f5c38 in QApplication::internalNotify () from /usr/local/qt-copy/lib/libqt-mt.so.3 #24 0x408f5993 in QApplication::notify () from /usr/local/qt-copy/lib/libqt-mt.so.3 #25 0x4053528a in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4 #26 0x408931e2 in qt_activate_timers () from /usr/local/qt-copy/lib/libqt-mt.so.3 #27 0x40890ace in QApplication::processNextEvent () from /usr/local/qt-copy/lib/libqt-mt.so.3 #28 0x408f759c in QApplication::enter_loop () from /usr/local/qt-copy/lib/libqt-mt.so.3 #29 0x4089065c in QApplication::exec () from /usr/local/qt-copy/lib/libqt-mt.so.3 #30 0x4160f089 in main () from /opt/kde3/lib/konqueror.so #31 0x0804c9e8 in launch () #32 0x0804d6a3 in handle_launcher_request () #33 0x0804db52 in handle_requests () #34 0x0804eafe in main () #35 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6 Hetz From zack at kde.org Mon Jul 29 21:07:17 2002 From: zack at kde.org (Zack Rusin) Date: Mon, 29 Jul 2002 16:07:17 -0400 Subject: MMB opens in new tab In-Reply-To: <200207290252.26572.hanleyman@adelphia.net> References: <200207281142.45724.hanleyman@adelphia.net> <200207281839.10689.zack@kde.org> <200207290252.26572.hanleyman@adelphia.net> Message-ID: <200207291607.17731.zack@kde.org> On Monday 29 July 2002 02:52, Doug Hanley wrote: > On Sunday 28 July 2002 06:39 pm, Zack Rusin wrote: > > On Sunday 28 July 2002 18:18, Doug Hanley wrote: > > > Would you be willing to put some time into that? > > > > I'd love to! Using QTabBar is hardly any fun, since no matter what > > we do it's still going to be a hack. > > Yeah, I Agree. Just one thing though... before, you said that we > would create a new tab bar that doesn't inherit QTabBar. The problem > with that is becuase we must use the function QTabWidget::setTabBar( > QTabBar * ) it has to inherit QTabBar. Now, that raised another > problem, even if we reimplement all the functions, we still can't > access the private variables, so we would have to make new variables > for our own use (although they would be very similar to the existing > ones). That would result in a slight waste of memory, but its very > marginal and there is only one of these objects per window at most. Well, I though about writing our QTabWidget, it's not exactly a complicated widget, it only places the tabbar somewhere in the window. I have to say I don't really like the idea of inheriting QTabBar, what we'll have is a widget that 'behaves-like' QTabBar but not 'IS-A' QTabBar, meaning we don't really have a valid ground to be inheriting from QTabBar, especially that in this or other way we have to replace basically _all_ methods in QTabBar in order to prevent it from calling private updateArrowButtons. Not only that we will still get messed up behavior from tooltips - the class handling tooltips in tabbar is internal to it and their placement could be all wrong if we decide to remove the arrow buttons. > Hmm... You know what, I've always found those arrow things kind of > annoying anyway. I think we should adopt mozilla's policy and scale > the tabs. Its much more usable in my opinion. Yes, I like this behavior more too, but it will cause problems if we inherit from QTabBar. > So, do you want to just start with qtabbar.h and qtabbar.cpp and > adjust from there? I think maybe i'll start some work on that now. Let's divide, one of us takes TabBar the other TabWidget and we'll connect. > One problem though, I'll be gone for about 3 weeks starting tuesday > (I'm seeing going to see The Who in NYC, woohoo!), so I probably wont > have much time to work on this then. After that though, I'm ready as > I'll ever be. Oh, cool, email me privately when you'll come to NYC. I lived there for a long time, now I live in Phily but come to NYC every two weeks or so, to see my friends. Maybe we could meet. Zack -- Give me ambiguity or give me something else. From zack at kde.org Mon Jul 29 21:15:46 2002 From: zack at kde.org (Zack Rusin) Date: Mon, 29 Jul 2002 16:15:46 -0400 Subject: MMB opens in new tab In-Reply-To: <200207290923.34592.david@mandrakesoft.com> References: <200207281142.45724.hanleyman@adelphia.net> <200207281607.15128.zack@kde.org> <200207290923.34592.david@mandrakesoft.com> Message-ID: <200207291615.46409.zack@kde.org> On Monday 29 July 2002 03:23, David Faure wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sunday 28 July 2002 22:07, Zack Rusin wrote: > > 1) (the long way) write our own KTabBar (not inheriting from > > QTabBar), and draw it in whatever way we like it, > > 2) not draw the last tab (looks horrible), > > 3) draw a background over the tabs and underneath the close button > > and arrow buttons, > > 4) solution I haven't thought about. > > If it helps: QTella has close button on tabs .... maybe you want to > look at how they do it? (qtella.sourceforge.net) It does? Are you sure? I'm using QTella (to share family pictures of course, and not, god forbid, download music) and haven't seen any close buttons on their tabs. Their tabbar inherits QTabBar and reimplements only mousePressEvent so I don't see how they could have those buttons drawn on it. To be honest this wouldn't be so hard to implement. We would have to reimplement paint(QTab ...), mouseClickedEvent and mouseMoveEvent inside KonqTabBar and that be it. The question is whether close buttons on tabs are better than a close button at the end of the tabbar. Of course by writing our own TabBar we could make it customizable, which I guess would be the 'right way' of doing this. Zack -- Failure is not an option. (It comes bundled with Windows.) From david at mandrakesoft.com Mon Jul 29 21:26:03 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 29 Jul 2002 22:26:03 +0200 Subject: MMB opens in new tab In-Reply-To: <200207291615.46409.zack@kde.org> References: <200207281142.45724.hanleyman@adelphia.net> <200207290923.34592.david@mandrakesoft.com> <200207291615.46409.zack@kde.org> Message-ID: <200207292226.03707.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 29 July 2002 22:15, Zack Rusin wrote: > It does? Are you sure? I'm using QTella (to share family pictures of > course, and not, god forbid, download music) and haven't seen any close > buttons on their tabs. Go to the "Search" tab, there enter 2 or 3 searches. Each one creates a tab, with a close button on it. QTella 0.5.3. - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RaTb72KcVAmwbhARAuDTAKCc5598kkL+M8M1mKwjtO9rkV3QMgCeI1WX I2VIjgxz96PSiIe2FPUcBtg= =ogGO -----END PGP SIGNATURE----- From germain at ebooksfrance.com Mon Jul 29 21:40:22 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Mon, 29 Jul 2002 21:40:22 +0100 Subject: action for LMB click in Konqueror In-Reply-To: <200207291619.11848.david@mandrakesoft.com> References: <3D44752F.6070307@gmx.de> <200207291510.21978.germain@ebooksfrance.com> <200207291619.11848.david@mandrakesoft.com> Message-ID: <200207292140.22569.germain@ebooksfrance.com> Le Lundi 29 Juillet 2002 15:19, David Faure a écrit : > > That is IMHO, very bad policy... unless my KFM settings displays > > /usr/bin/sh as the preferred application in "General", I see no good > > reason why a shell script (which is rather, intrinsically, a document...) > > should run by itself ? > > Well, what happens when clicking on an executable? (in any desktop you can > think of, including Mac and Windows?) > > shellscripts are only one kind of executables. You mean : if they have the +x mode ? The problem is their dual nature turn them into Shröninger's Cat objects... One might not know when one click them wether they are executables or not.. For the moment, the code only checks the service type to see if it belong to the "might be" executable category, but it knows nothing about the actual status of the file. There are some hacks to specifically allow x-shellscript to run, but it does not solve the overall problem of isTextExecutable( services). > > (the other mail about the +x bit sounds like a bug though. We detect the > application/x-shellscript from the content, and then test for that... > I suggest testing for the file permissions in kdelibs/kio/kio/krun.cpp:86 > (sorry, no time for doing all the changes people talk about, so I just give > hints ;) I didn't had much time today, but I'll work on a patch... may I ? G. From zack at kde.org Mon Jul 29 21:42:19 2002 From: zack at kde.org (Zack Rusin) Date: Mon, 29 Jul 2002 16:42:19 -0400 Subject: MMB opens in new tab In-Reply-To: <200207292226.03707.david@mandrakesoft.com> References: <200207281142.45724.hanleyman@adelphia.net> <200207291615.46409.zack@kde.org> <200207292226.03707.david@mandrakesoft.com> Message-ID: <200207291642.19293.zack@kde.org> On Monday 29 July 2002 16:26, David Faure wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Monday 29 July 2002 22:15, Zack Rusin wrote: > > It does? Are you sure? I'm using QTella (to share family pictures > > of course, and not, god forbid, download music) and haven't seen > > any close buttons on their tabs. > > Go to the "Search" tab, there enter 2 or 3 searches. Each one creates > a tab, with a close button on it. That's just a static pixmap, we could add those but would have to eliminate favicons from the tabs. Zack -- A great many people think they are thinking when they are merely rearranging their prejudices. -- William James From koos.vriezen at xs4all.nl Mon Jul 29 21:44:03 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Mon, 29 Jul 2002 22:44:03 +0200 (CEST) Subject: Small test case for bug in renderer floats In-Reply-To: <200207291728.59994.lucy-ples@mtu-net.ru> References: <200207291728.59994.lucy-ples@mtu-net.ru> Message-ID: On Mon, 29 Jul 2002, Vadim Plessky wrote: > On Monday 29 July 2002 2:43 pm, Koos Vriezen wrote: > | On Mon, 29 Jul 2002, Vadim Plessky wrote: > | > On Sunday 28 July 2002 5:15 pm, Koos Vriezen wrote: > | > | This is rendered wrong > | > | > | > |
div text
div text
> | > | some text > | > | > | > | > | > | Seems the float gets an extra left offset if the height is greater > | > | than height of surrounding text. > > and, BTW, problem is related not to the amount of text outside floating DIV, > but to the heigh tof body. Exactly and I think I found the cause. The test in RenderFlow::layoutBlockChildren of RenderHtml 'if ( child->hasOverhangingFloats() )', where hasOverhangingFloats() is defined as 'floatBottom() > m_height', succeeds in this case. The child being the body. Next it calls RenderFlow::addOverHangingFloats with child, -child->xPos(), -child->yPos() and true for flow, xoff, offset and child resp. A new special is created with 'special->left' is set to 'r->left - xoff' (becomes +10). The test 'if (flow != parent())' succeeds and 'special->left += flow->marginLeft()' is executed (becomes +20). The next test 'if ( !child )' fails, but has no effect, since the if clause 'special->left -= marginLeft()' does nothing for a RenderHtml. Not sure what goes wrong here, but this makes the float be indented by the body margin twice. First guess would be call RenderFlow::addOverHangingFloats with child, 0, -child->yPos() and true. Also helps for http://www.linuxplanet.com/linuxplanet/reviews/4315/1 reported by Hetz Ben Hamo on 18 July to this list. > | > | > BTW: you forgot to close in your example > | > | IMO those close tags are optional, see > | http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.5 > | > > They may be optional, but if you write testcase, it's better to use > well-written HTML. I would prefer XHTML 1.0/1.1 over HTML x.y, validated by > W3C Validator (in case you compare output with, say, Mozilla; rendering by MS > IE is different story) Will try to remember it the next time. Koos From david at mandrakesoft.com Mon Jul 29 21:51:31 2002 From: david at mandrakesoft.com (David Faure) Date: Mon, 29 Jul 2002 22:51:31 +0200 Subject: action for LMB click in Konqueror In-Reply-To: <200207292140.22569.germain@ebooksfrance.com> References: <3D44752F.6070307@gmx.de> <200207291619.11848.david@mandrakesoft.com> <200207292140.22569.germain@ebooksfrance.com> Message-ID: <200207292251.31528.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 29 July 2002 22:40, Germain Garand wrote: > Le Lundi 29 Juillet 2002 15:19, David Faure a écrit : > > > That is IMHO, very bad policy... unless my KFM settings displays > > > /usr/bin/sh as the preferred application in "General", I see no good > > > reason why a shell script (which is rather, intrinsically, a document...) > > > should run by itself ? > > > > Well, what happens when clicking on an executable? (in any desktop you can > > think of, including Mac and Windows?) > > > > shellscripts are only one kind of executables. > > You mean : if they have the +x mode ? Yes (you're right). > The problem is their dual nature turn them into Shröninger's Cat objects... > One might not know when one click them wether they are executables or not.. Right... maybe we need a different icon for "executable shellscript" and "non-executable shellscript" ? > For the moment, the code only checks the service type to see if it belong to > the "might be" executable category, but it knows nothing about the actual > status of the file. > There are some hacks to specifically allow x-shellscript to run, but it does > not solve the overall problem of isTextExecutable( services). > > > (the other mail about the +x bit sounds like a bug though. We detect the > > application/x-shellscript from the content, and then test for that... > > I suggest testing for the file permissions in kdelibs/kio/kio/krun.cpp:86 > > (sorry, no time for doing all the changes people talk about, so I just give > > hints ;) > > I didn't had much time today, but I'll work on a patch... may I ? Sure ;-) - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RarT72KcVAmwbhARAnYJAJ9X8VwI+ViwzJBjhxXvtYSXu6M3RACfdihO knP6Om4Lz3Lu9cqeQR1UIxo= =V7GC -----END PGP SIGNATURE----- From germain at ebooksfrance.com Mon Jul 29 22:32:34 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Mon, 29 Jul 2002 22:32:34 +0100 Subject: action for LMB click in Konqueror In-Reply-To: <200207290928.20290.david@mandrakesoft.com> References: <3D44752F.6070307@gmx.de> <200207290541.33755.germain@ebooksfrance.com> <200207290928.20290.david@mandrakesoft.com> Message-ID: <200207292232.34367.germain@ebooksfrance.com> Le Lundi 29 Juillet 2002 08:28, David Faure a écrit : > > It seems that if you first mark a mimetype to be externally or internally > > viewed, apply the change, and then later switch it to "use settings for > > XXX group", then it doesn't switch and just uses whatever you choose > > before... > > I forgot to update the kcontrol file associations module after changing the > defaults. Thanks for noticing, fixed (please re-test). I've just rebuilt kcontrol but as far as I can see, the "use settings for XXX group" checkbox still seems to do nothing. Try this in kcontrol/file associations : - set "text/plain" to "Show file in embedded.." - apply - set root "text" group to "Show file in separate.." - apply -set "text/plain" to "use settings for 'text' group" - try to view a text file in konqui. For me it still displays as embedded. From hetz at kde.org Mon Jul 29 23:50:15 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Tue, 30 Jul 2002 01:50:15 +0300 Subject: smooth scrolling comment Message-ID: <200207300150.15375.hetz@kde.org> Hi, I just noticied that if I press SHIFT and down arrow - the page is smooth scrolling downwards.. I got 2 questions: 1. In order to stop the scrolling - only the up key stops. Why not any key? I'm pretty sure end user would be pissed to find that they can't stop smooth scrolling unless they find that arrow up stops it. 2. Is there going to be also a smooth scrolling upwards and sideways please? it will help a lot with large tables.. Thanks, Hetz From coolo at kde.org Tue Jul 30 09:26:13 2002 From: coolo at kde.org (Stephan Kulow) Date: Tue, 30 Jul 2002 10:26:13 +0200 Subject: SIGPIPE in kio_http Message-ID: <200207301026.17310.coolo@kde.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Since quite some time I get more "Connection to host is broken" than I used to when I fill forms. It seems to me that the slave requests the server to leave the connection alive, but can't handle the fact that the server closes it after some time. When I need some time to fill out the form, I get the error message and can nothing but go back and resubmit til it works. To me it seems, the http slave should handle the fact that sendBody gets a EPIPE in write in reopening the connection and not simply giving an error to the user. But I have no idea how to fix that best in http.cc or slavebase Greetings, Stephan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9Rk2pwFSBhlBjoJYRAjTXAJ9EIPgYz1LBVCnysshaU3hVLdQVLQCgtx0a RsfFz5bovW3H51kTO097sLk= =Y2Bj -----END PGP SIGNATURE----- From cap at capsi.com Tue Jul 30 09:44:45 2002 From: cap at capsi.com (Rob Kaper) Date: Tue, 30 Jul 2002 10:44:45 +0200 Subject: SIGPIPE in kio_http In-Reply-To: <200207301026.17310.coolo@kde.org>; from coolo@kde.org on Tue, Jul 30, 2002 at 10:26:13AM +0200 References: <200207301026.17310.coolo@kde.org> Message-ID: <20020730104445.A10015@capsi.com> On Tue, Jul 30, 2002 at 10:26:13AM +0200, Stephan Kulow wrote: > Since quite some time I get more "Connection to host is broken" > than I used to when I fill forms. It seems to me that the slave requests > the server to leave the connection alive, but can't handle the fact that > the server closes it after some time. When I need some time to fill out > the form, I get the error message and can nothing but go back and resubmit > til it works. > > To me it seems, the http slave should handle the fact that sendBody > gets a EPIPE in write in reopening the connection and not simply giving > an error to the user. But I have no idea how to fix that best in http.cc > or slavebase Oh, I'm not the only one. This seems to happen at some sites more than others.. it seems to happen a lot more frequently at MSDN and also at kdenews.unixcode.org. At first I thought it was a problem with the site but then it also happened at more sites (some camera reviews on dpreview.com for example). Sorry, a testcase would be nicer, but at least I can reproduce with these sites (although it might take a couple of posts). Rob -- Rob Kaper | Gimme some love, gimme some skin, cap at capsi.com | if we ain't got that then we ain't got much www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A From koos.vriezen at xs4all.nl Tue Jul 30 13:32:22 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Tue, 30 Jul 2002 14:32:22 +0200 (CEST) Subject: Small test case for bug in renderer floats In-Reply-To: References: Message-ID: On Mon, 29 Jul 2002, Koos Vriezen wrote: > > On Monday 29 July 2002 2:43 pm, Koos Vriezen wrote: > > | > | This is rendered wrong > > | > | > > | > |
div text
div text
> > | > | some text > > | > | > Not sure what goes wrong here, but this makes the float be indented by the > body margin twice. First guess would be call > RenderFlow::addOverHangingFloats with child, 0, -child->yPos() and true. > Also helps for http://www.linuxplanet.com/linuxplanet/reviews/4315/1 > reported by Hetz Ben Hamo on 18 July to this list. This is the patch I used. diff -u -3 -p -r1.277 render_flow.cpp --- rendering/render_flow.cpp 2002/07/16 19:50:14 1.277 +++ rendering/render_flow.cpp 2002/07/30 12:24:27 @@ -452,7 +452,7 @@ void RenderFlow::layoutBlockChildren( bo if ( child->hasOverhangingFloats() ) { // need to add the float to our special objects - addOverHangingFloats( static_cast(child), -child->xPos(), -child->yPos(), true ); + addOverHangingFloats( static_cast(child), 0, -child->yPos(), true ); } child = child->nextSibling(); It also fixes Bug#41403, that is the alignment with the body right border. But is it correct that a RenderHtml can have a special? Now you have a float that has a height greater than that of the body. Koos From coolo at kde.org Tue Jul 30 13:07:01 2002 From: coolo at kde.org (Stephan Kulow) Date: Tue, 30 Jul 2002 14:07:01 +0200 Subject: SIGPIPE in kio_http In-Reply-To: <20020730104445.A10015@capsi.com> References: <200207301026.17310.coolo@kde.org> <20020730104445.A10015@capsi.com> Message-ID: <200207301407.02226.coolo@kde.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 30 July 2002 10:44, Rob Kaper wrote: > On Tue, Jul 30, 2002 at 10:26:13AM +0200, Stephan Kulow wrote: > > Since quite some time I get more "Connection to host is broken" > > than I used to when I fill forms. It seems to me that the slave requests > > the server to leave the connection alive, but can't handle the fact that > > the server closes it after some time. When I need some time to fill out > > the form, I get the error message and can nothing but go back and > > resubmit til it works. > > > > To me it seems, the http slave should handle the fact that sendBody > > gets a EPIPE in write in reopening the connection and not simply giving > > an error to the user. But I have no idea how to fix that best in http.cc > > or slavebase > > Oh, I'm not the only one. This seems to happen at some sites more than > others.. it seems to happen a lot more frequently at MSDN and also at > kdenews.unixcode.org. At first I thought it was a problem with the site but > then it also happened at more sites (some camera reviews on dpreview.com > for example). > > Sorry, a testcase would be nicer, but at least I can reproduce with these > sites (although it might take a couple of posts). > For me it's very easily reproducable using forms that POST. Open the form, wait say 5 seconds and press submit - bang Greetings, Stephan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RoFlwFSBhlBjoJYRAnmbAJ9AeIOPxL/ffXFHBfi+SGjmxJh5nwCgo6j1 tW60Pc8+AVqF0PmGhDHnqm0= =0Yzz -----END PGP SIGNATURE----- From lucy-ples at mtu-net.ru Tue Jul 30 14:10:23 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Tue, 30 Jul 2002 17:10:23 +0400 Subject: Small test case for bug in renderer floats In-Reply-To: References: Message-ID: <200207301710.23855.lucy-ples@mtu-net.ru> On Tuesday 30 July 2002 4:32 pm, Koos Vriezen wrote: | On Mon, 29 Jul 2002, Koos Vriezen wrote: | > | > Not sure what goes wrong here, but this makes the float be indented by | > the body margin twice. First guess would be call | > RenderFlow::addOverHangingFloats with child, 0, -child->yPos() and true. | > Also helps for http://www.linuxplanet.com/linuxplanet/reviews/4315/1 | > reported by Hetz Ben Hamo on 18 July to this list. | | This is the patch I used. | | diff -u -3 -p -r1.277 render_flow.cpp | --- rendering/render_flow.cpp 2002/07/16 19:50:14 1.277 | +++ rendering/render_flow.cpp 2002/07/30 12:24:27 | @@ -452,7 +452,7 @@ void RenderFlow::layoutBlockChildren( bo | | if ( child->hasOverhangingFloats() ) { | // need to add the float to our special objects | - addOverHangingFloats( static_cast(child), | -child->xPos(), -child->yPos(), true ); + addOverHangingFloats( | static_cast(child), 0, -child->yPos(), true ); } | | child = child->nextSibling(); | | It also fixes Bug#41403, that is the alignment with the body right border. | But is it correct that a RenderHtml can have a special? Now you have a | float that has a height greater than that of the body. I think that element should be auto-expanded in case some child element is bigger than it. Situation with absolutely (and relatively) positioned elements, plus with 'float', is not so clear. IIRC W3C CSS2 specification says nothing about it... May be, you should ask on mailing list what is corrected/expected behaviour? | | Koos -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From cap at capsi.com Tue Jul 30 14:12:36 2002 From: cap at capsi.com (Rob Kaper) Date: Tue, 30 Jul 2002 15:12:36 +0200 Subject: SIGPIPE in kio_http In-Reply-To: <200207301407.02226.coolo@kde.org>; from coolo@kde.org on Tue, Jul 30, 2002 at 02:07:01PM +0200 References: <200207301026.17310.coolo@kde.org> <20020730104445.A10015@capsi.com> <200207301407.02226.coolo@kde.org> Message-ID: <20020730151236.A15020@capsi.com> On Tue, Jul 30, 2002 at 02:07:01PM +0200, Stephan Kulow wrote: > For me it's very easily reproducable using forms that POST. Open the form, > wait say 5 seconds and press submit - bang Well, most of the KDEnews actions are posts (reply buton, login button, vote button).. and I believe the navigation on dpreview.com also worked like that. It does not happen on *all* POST forms though, I've seen plenty that work fine. Rob -- Rob Kaper | Gimme some love, gimme some skin, cap at capsi.com | if we ain't got that then we ain't got much www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A From Ladislav.Strojil at seznam.cz Tue Jul 30 14:48:26 2002 From: Ladislav.Strojil at seznam.cz (Ladislav Strojil) Date: Tue, 30 Jul 2002 15:48:26 +0200 Subject: SIGPIPE in kio_http In-Reply-To: <20020730151236.A15020@capsi.com> References: <200207301026.17310.coolo@kde.org> <200207301407.02226.coolo@kde.org> <20020730151236.A15020@capsi.com> Message-ID: <200207301548.27453.Ladislav.Strojil@seznam.cz> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 30 July 2002 15:12, Rob Kaper wrote: > On Tue, Jul 30, 2002 at 02:07:01PM +0200, Stephan Kulow wrote: > > For me it's very easily reproducable using forms that POST. Open the > > form, wait say 5 seconds and press submit - bang > > Well, most of the KDEnews actions are posts (reply buton, login button, > vote button).. and I believe the navigation on dpreview.com also worked > like that. It does not happen on *all* POST forms though, I've seen plenty > that work fine. It happens here too (CVS few days old). The form is as simple as this:







Nothing unsual. Cheers, Lada - -- ~ Ladislav Strojil, MFF UK ' v ' // \\ /( )\ Powered by Penguin. ^ ' ^ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9RpkqTnMZPFqq4nwRAtFUAJ9NuXjdybk5cYNVdzFnZCJgWNz+QgCgsKBD bme+heYZ0jrJ7bEnxnmHwZ8= =FMAx -----END PGP SIGNATURE----- From germain at ebooksfrance.com Tue Jul 30 16:36:15 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Tue, 30 Jul 2002 16:36:15 +0100 Subject: action for LMB click in Konqueror In-Reply-To: <200207292251.31528.david@mandrakesoft.com> References: <3D44752F.6070307@gmx.de> <200207292140.22569.germain@ebooksfrance.com> <200207292251.31528.david@mandrakesoft.com> Message-ID: <200207301636.15645.germain@ebooksfrance.com> Le Lundi 29 Juillet 2002 21:51, David Faure a écrit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Monday 29 July 2002 22:40, Germain Garand wrote: > > Le Lundi 29 Juillet 2002 15:19, David Faure a écrit : > > > > That is IMHO, very bad policy... unless my KFM settings displays > > > > /usr/bin/sh as the preferred application in "General", I see no good > > > > reason why a shell script (which is rather, intrinsically, a > > > > document...) should run by itself ? > > > > > > Well, what happens when clicking on an executable? (in any desktop you > > > can think of, including Mac and Windows?) > > > > > > shellscripts are only one kind of executables. > > > > You mean : if they have the +x mode ? > > Yes (you're right). > > > The problem is their dual nature turn them into Shröninger's Cat > > objects... One might not know when one click them wether they are > > executables or not.. > > Right... maybe we need a different icon for "executable shellscript" > and "non-executable shellscript" ? That would be good, but wouldn't it be better to have a way to visually identify all +x file ? (e.g : a small x in a corner, in the same way symlink arrow does) Because a +x perl, python, ruby, whatever script should also be executed, if the goal is to be consistent... Now I really need some advices : I've got a fix that says : if( file is local && service type starts with "application/x-" && the file has mode +x ) {execute through shell} else{ use trader offers if any} That works great... but there is ONE problem, always the same : Microsoft... What if a user left click on an application/x-msword on a sucking filesystem that does not support +x ? (that is : with all files set to +x... like on a e.g: FAT32) Only possibilities I see to avoid that is : 1) hardcode all relevant "application/x-XXXX" that are really executable (that's what was done with application/x-shellscript) No need to say this one sucks. 2) have a KMessageBoxWrapper prompt for execution for all "application/x-" that are not mere "application/x-executable" (maybe with a "never show this again")... and use offers if the answer is "no". May be ennoying. Or let "never show this again" identifier be constructed dynamically with servicetype so that it's fine grained ? Then add checkboxes in application/x-... ? What do you think ? G. From koos.vriezen at xs4all.nl Tue Jul 30 17:34:19 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Tue, 30 Jul 2002 18:34:19 +0200 (CEST) Subject: SIGPIPE in kio_http In-Reply-To: <200207301407.02226.coolo@kde.org> References: <200207301407.02226.coolo@kde.org> Message-ID: On Tue, 30 Jul 2002, Stephan Kulow wrote: > For me it's very easily reproducable using forms that POST. Open the form, > wait say 5 seconds and press submit - bang Must be a keepalive connection that closes the socket after a few seconds. Koos From koos.vriezen at xs4all.nl Tue Jul 30 17:36:46 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Tue, 30 Jul 2002 18:36:46 +0200 (CEST) Subject: Small test case for bug in renderer floats In-Reply-To: <200207301710.23855.lucy-ples@mtu-net.ru> References: <200207301710.23855.lucy-ples@mtu-net.ru> Message-ID: On Tue, 30 Jul 2002, Vadim Plessky wrote: > On Tuesday 30 July 2002 4:32 pm, Koos Vriezen wrote: > | > | It also fixes Bug#41403, that is the alignment with the body right border. > | But is it correct that a RenderHtml can have a special? Now you have a > | float that has a height greater than that of the body. > > I think that element should be auto-expanded in case some child element > is bigger than it. > Situation with absolutely (and relatively) positioned elements, plus with > 'float', is not so clear. > IIRC W3C CSS2 specification says nothing about it... > May be, you should ask on mailing list what is corrected/expected > behaviour? OTOH Mozilla also renders the float height greater than the body height. Can't be that wrong after all. Koos From koos.vriezen at xs4all.nl Tue Jul 30 17:44:22 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Tue, 30 Jul 2002 18:44:22 +0200 (CEST) Subject: smooth scrolling comment In-Reply-To: <200207300150.15375.hetz@kde.org> References: <200207300150.15375.hetz@kde.org> Message-ID: On Tue, 30 Jul 2002, Hetz Ben Hamo wrote: > 1. In order to stop the scrolling - only the up key stops. Why not any key? > I'm pretty sure end user would be pissed to find that they can't stop smooth > scrolling unless they find that arrow up stops it. That wouldn't be to difficult to implement. Personaly I like the combination of auto scrolling and PgUp/PgDown to quickly scan news sites. But for other, non-scrolling keys, yes why not. > 2. Is there going to be also a smooth scrolling upwards and sideways please? > it will help a lot with large tables.. Scrolling up, wouldn't be hard to implement. Scrolling right/left needs imo some changes in paintBuffer, an extra vertical or rotation by drawPixmap. However the usefulness, compared to scrolling down, is a lot less. Koos From bastian at kde.org Tue Jul 30 19:57:55 2002 From: bastian at kde.org (Waldo Bastian) Date: Tue, 30 Jul 2002 11:57:55 -0700 Subject: SIGPIPE in kio_http In-Reply-To: <200207301026.17310.coolo@kde.org> References: <200207301026.17310.coolo@kde.org> Message-ID: <200207301157.55440.bastian@kde.org> On Tuesday 30 July 2002 01:26 am, Stephan Kulow wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi! > > Since quite some time I get more "Connection to host is broken" > than I used to when I fill forms. It seems to me that the slave requests > the server to leave the connection alive, but can't handle the fact that > the server closes it after some time. When I need some time to fill out > the form, I get the error message and can nothing but go back and resubmit > til it works. > > To me it seems, the http slave should handle the fact that sendBody > gets a EPIPE in write in reopening the connection and not simply giving > an error to the user. But I have no idea how to fix that best in http.cc > or slavebase Remarkable. We aren't suppoed to use persistent connections at all for anything but GET requests. *check* Oh.. I see.. the check is done _after_ the request, instead of before the request. *duh* Does this patch help? Cheers, Waldo -- bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com -------------- next part -------------- A non-text attachment was scrubbed... Name: http.patch Type: text/x-diff Size: 1131 bytes Desc: not available URL: From falk.brettschneider at gmx.de Tue Jul 30 21:21:36 2002 From: falk.brettschneider at gmx.de (F@lk Brettschneider) Date: Tue, 30 Jul 2002 22:21:36 +0200 Subject: Find File in tree view of Konqueror References: <3D447677.7030907@gmx.de> <200207291659.34030.david@mandrakesoft.com> Message-ID: <3D46F550.7060201@gmx.de> David Faure wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >On Monday 29 July 2002 00:55, falk.brettschneider at gmx.de wrote: > >>Hi! >>Please, can you add that very useful action 'Find file...' to the >>context menu of the (left-hand side located) tree view of Konqueror? >>Sorry, I gave up studying the code for making a little patch since it's >>too complex for me. >> > >Can't see a relation between the sidebar directory tree, and "find file". >I don't see why we should clutter the popupmenu with it - it's in the menus already. > Usually, in MSExplorer, I open a certain subdir in the tree, open the context menu and select 'Find file'. Then the preselected dir in the Find dialog will be that certain selected one. In my opinion very convinient. Ciao F at lk From germain at ebooksfrance.com Tue Jul 30 21:50:14 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Tue, 30 Jul 2002 21:50:14 +0100 Subject: Find File in tree view of Konqueror In-Reply-To: <200207291659.34030.david@mandrakesoft.com> References: <3D447677.7030907@gmx.de> <200207291659.34030.david@mandrakesoft.com> Message-ID: <200207302150.14426.germain@ebooksfrance.com> Le Lundi 29 Juillet 2002 15:59, David Faure a écrit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Monday 29 July 2002 00:55, falk.brettschneider at gmx.de wrote: > > Hi! > > Please, can you add that very useful action 'Find file...' to the > > context menu of the (left-hand side located) tree view of Konqueror? > > Sorry, I gave up studying the code for making a little patch since it's > > too complex for me. > > Can't see a relation between the sidebar directory tree, and "find file". > I don't see why we should clutter the popupmenu with it - it's in the menus > already. Speaking about "Find file...", does it work correctly in CVS ? here I got : konqueror: Trying to create view for "Konqueror/FindPart" konqueror: KonqFMSettings says: don't embed this servicetype and a dialog : "Can't create the find part, check your installation" G. (I swore I didn't hack my kcontrol, yet :o) From germain at ebooksfrance.com Wed Jul 31 00:41:38 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Wed, 31 Jul 2002 00:41:38 +0100 Subject: [Patch] Re: Find File in tree view of Konqueror In-Reply-To: <200207302150.14426.germain@ebooksfrance.com> References: <3D447677.7030907@gmx.de> <200207291659.34030.david@mandrakesoft.com> <200207302150.14426.germain@ebooksfrance.com> Message-ID: <200207310041.38622.germain@ebooksfrance.com> Le Mardi 30 Juillet 2002 21:50, Germain Garand a écrit : > konqueror: Trying to create view for "Konqueror/FindPart" > konqueror: KonqFMSettings says: don't embed this servicetype > > and a dialog : > "Can't create the find part, check your installation" Ok, it's because of the default LMB action change (a.k.a "don't embed anything, Windows users love to edit temp files") Patch attached. G. -------------- next part -------------- A non-text attachment was scrubbed... Name: konq_settings.cc.diff Type: text/x-diff Size: 1189 bytes Desc: not available URL: From adawit at kde.org Wed Jul 31 01:27:50 2002 From: adawit at kde.org (Dawit A.) Date: Tue, 30 Jul 2002 20:27:50 -0400 Subject: SIGPIPE in kio_http In-Reply-To: <200207301157.55440.bastian@kde.org> References: <200207301026.17310.coolo@kde.org> <200207301157.55440.bastian@kde.org> Message-ID: <200207302027.50479.adawit@kde.org> On Tuesday 30 July 2002 14:57, Waldo Bastian wrote: > On Tuesday 30 July 2002 01:26 am, Stephan Kulow wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi! > > > > Since quite some time I get more "Connection to host is broken" > > than I used to when I fill forms. It seems to me that the slave requests > > the server to leave the connection alive, but can't handle the fact that > > the server closes it after some time. When I need some time to fill out > > the form, I get the error message and can nothing but go back and > > resubmit til it works. > > > > To me it seems, the http slave should handle the fact that sendBody > > gets a EPIPE in write in reopening the connection and not simply giving > > an error to the user. But I have no idea how to fix that best in http.cc > > or slavebase > > Remarkable. We aren't suppoed to use persistent connections at all for > anything but GET requests. > > *check* > > Oh.. I see.. the check is done _after_ the request, instead of before the > request. *duh* > > Does this patch help? Even if it does not, that is the "correct" thing to do anyways. You should go ahead and commit it just the same. Regards, Dawit A. From number1 at kde.org Wed Jul 31 03:24:58 2002 From: number1 at kde.org (Christian A =?iso-8859-1?q?Str=F8mmen?= [Number1/NumeroUno]) Date: Wed, 31 Jul 2002 04:24:58 +0200 Subject: Devices Message-ID: <200207310424.58445.number1@kde.org> Two quick questions; 1) How come I can't see devices (floppy, hard disc etc) in the sidebar? 2) Why (when clicked on) do devices open up a new konqueror window instead of just using the one they're clicked on in? I'm trying to make myself a "start dir" for konqueror here, but because of the two things above I've been forced to use symlinks as both the device files created by konqueror and "Link to location" won't act the way that would seem "normal" -- \ Christian A Strømmen / \ Number1/NumeroUno @ Undernet - Email: number1 at kde.org number1 at realityx.net / \ Web: www.realityx.net - Cell: +47 911 43 948 / Live your life by your dreams, not by the limits of reality... From jowenn at kde.org Wed Jul 31 09:02:13 2002 From: jowenn at kde.org (Joseph Wenninger) Date: Wed, 31 Jul 2002 08:02:13 +0000 Subject: Devices In-Reply-To: <200207310424.58445.number1@kde.org> References: <200207310424.58445.number1@kde.org> Message-ID: <200207310802.13449.jowenn@kde.org> Hi On Wednesday 31 July 2002 02:24, Christian A Strømmen \[Number1/NumeroUno\] wrote: > Two quick questions; > > 1) How come I can't see devices (floppy, hard disc etc) in the sidebar? > 2) Why (when clicked on) do devices open up a new konqueror window instead > of just using the one they're cliI'm trying to make myself a "start dir" for konqueror here, but because of the two things above I've been forced to use symlinks as both the device files created by konqueror and "Link to location" won't act the way that would seem "normal" cked on in? > > I'm trying to make myself a "start dir" for konqueror here, but because of > the two things above I've been forced to use symlinks as both the device > files created by konqueror and "Link to location" won't act the way that > would seem "normal" Are you using linux? For all other systems I disabled the devices:/ slave for now, since I don't know enough about those. (eg device node names, fstab/mtab replacements, ...) How old is your konqueror ? david fixed a problem with neelessly opening a new window when an url get's invoked from the sidebar ? Do you see those devices when you enter the url in konqy? If not your fs tab is wrong, or you are not using linux Kind regards Joseph Wenninger From david at mandrakesoft.com Wed Jul 31 08:50:32 2002 From: david at mandrakesoft.com (David Faure) Date: Wed, 31 Jul 2002 09:50:32 +0200 Subject: [Patch] Re: Find File in tree view of Konqueror In-Reply-To: <200207310041.38622.germain@ebooksfrance.com> References: <3D447677.7030907@gmx.de> <200207302150.14426.germain@ebooksfrance.com> <200207310041.38622.germain@ebooksfrance.com> Message-ID: <200207310950.32976.david@mandrakesoft.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 31 July 2002 01:41, Germain Garand wrote: > Le Mardi 30 Juillet 2002 21:50, Germain Garand a écrit : > > > konqueror: Trying to create view for "Konqueror/FindPart" > > konqueror: KonqFMSettings says: don't embed this servicetype > > > > and a dialog : > > "Can't create the find part, check your installation" > > Ok, it's because of the default LMB action change > (a.k.a "don't embed anything, Windows users love to edit temp files") > > Patch attached. Thanks. Please apply. - -- David FAURE, david at mandrakesoft.com, faure at kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice 1.2 RC1 is slightly delayed. Stay tuned. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9R5bI72KcVAmwbhARAueBAKCrfWAMI7hDsqIDW074zNSBgCIhVwCfcJl1 qO4IzINkV/IVA3KRsaRWF5U= =4gVR -----END PGP SIGNATURE----- From coolo at kde.org Wed Jul 31 09:35:15 2002 From: coolo at kde.org (Stephan Kulow) Date: Wed, 31 Jul 2002 10:35:15 +0200 Subject: SIGPIPE in kio_http In-Reply-To: <200207302027.50479.adawit@kde.org> References: <200207301026.17310.coolo@kde.org> <200207301157.55440.bastian@kde.org> <200207302027.50479.adawit@kde.org> Message-ID: <200207311035.16006.coolo@kde.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 31 July 2002 02:27, Dawit A. wrote: > On Tuesday 30 July 2002 14:57, Waldo Bastian wrote: > > On Tuesday 30 July 2002 01:26 am, Stephan Kulow wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > Hi! > > > > > > Since quite some time I get more "Connection to host is broken" > > > than I used to when I fill forms. It seems to me that the slave > > > requests the server to leave the connection alive, but can't handle the > > > fact that the server closes it after some time. When I need some time > > > to fill out the form, I get the error message and can nothing but go > > > back and resubmit til it works. > > > > > > To me it seems, the http slave should handle the fact that sendBody > > > gets a EPIPE in write in reopening the connection and not simply giving > > > an error to the user. But I have no idea how to fix that best in > > > http.cc or slavebase > > > > Remarkable. We aren't suppoed to use persistent connections at all for > > anything but GET requests. > > > > *check* > > > > Oh.. I see.. the check is done _after_ the request, instead of before the > > request. *duh* > > > > Does this patch help? > > Even if it does not, that is the "correct" thing to do anyways. You should > go ahead and commit it just the same. > But it did, so I commit :) Greetings, Stephan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9R6FDwFSBhlBjoJYRAnSaAJwIGFu26sA2juX9c6xrVljZZBg0SwCdEL5c UihDJ5q2V27pB8Ym2kKbo5M= =Lk9c -----END PGP SIGNATURE----- From lucy-ples at mtu-net.ru Wed Jul 31 12:37:30 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Wed, 31 Jul 2002 15:37:30 +0400 Subject: Poll on LinuxJournal - voting will end August 12, 2002 Message-ID: <32675.292742397$1028115369@news.gmane.org> "Linux Journal, ..., is pleased to announce that voting in the 2002 Readers' Choice poll is officially underway. Make your vote count as you tell us your favorite distribution, development tools, LJ column and much more." http://www.linuxjournal.com/rc2002/ Voting Topics: * Favorite Desktop Environment * Favorite Text Editor (they do not include KWrite or Kate, I voted for Other/ KWrite) * Favorite Word Processor (KWord is here!) * Favorite Office Suite (KOffice is listed, too) * Favorite E-mail Client (KMail) * Favorite Web Browser (Konqueror is here!) * Favorite Development Tool (KDevelop?) * Favorite Audio Tool (Noatun is *not* listed!) As voting will end August 12, 2002 - it's time to fire your favourite browser and vote for favourite apps! Cheers, and sorry for cross-posting and partial off-topic. Too many topics, and not everyone subscribed to , mailing list where you always on-topic! -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From l.savernik at aon.at Wed Jul 31 12:50:00 2002 From: l.savernik at aon.at (Leo Savernik) Date: Wed, 31 Jul 2002 13:50:00 +0200 Subject: [PATCH] for bug#45742: border-color:transparent not honoured Message-ID: <200207311350.00088.l.savernik@aon.at> Hello, May I direct the attention of a core KHTML developer to the patch for bug 45742? It inhibits the rendering of transparent borders (but reserves the space). Please review the patch and commit/reject it. The cause why I'm explicitly mentioning that patch in kfm-devel and not simply waiting for it being discovered in konq-bugs is that it might bitrot away and not useable/applicable to the future sources any more. Patch: http://lists.kde.org/?l=konq-bugs&m=102760777106032&q=p3 mfg Leo From lucy-ples at mtu-net.ru Wed Jul 31 13:39:16 2002 From: lucy-ples at mtu-net.ru (Vadim Plessky) Date: Wed, 31 Jul 2002 16:39:16 +0400 Subject: JavaScript's "Same Origin Policy" (XWT Foundation Security Advisory) Message-ID: <200207311639.16220.lucy-ples@mtu-net.ru> I am wondering wether Konqueror is vulnerable to this security flaw? If not - I think we should announce that Konq is safe against this flaw. // It seesm Mozilla project was notified about this flaw, and Konqueror's tem - not. Not very fair! *** XWT Foundation Security Advisory Adam Megacz http://www.xwt.org/sop.txt 29-Jul-2002 [Public Release] ______________________________________________________________________________ Abstract The following exploit constitutes a security flaw in JavaScript's "Same Origin Policy" (SOP) [1]. Please note that this is *not* the IE-specific flaw reported in Februrary [2]. The exploit allows an attacker to use any JavaScript-enabled web browser behind a firewall to retrive content from (HTTP GET) and interact with (HTTP
POST) any HTTP server behind the firewall. If the client in use is Microsoft Internet Explorer 5.0+, Mozilla, or Netscape 6.2+, the attacker can also make calls to SOAP or XML-RPC web services deployed behind the firewall. ... 01-Jul Advisory updated; SOAP/XML-RPC also vulnerable if client is Microsoft Internet Explorer. Microsoft Notified: secure at microsoft.com Apache Foundation Notified: security at apache.org Mozilla Project Notified: security at mozilla.org CERT Notified: cert at cert.org -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/ From koos.vriezen at xs4all.nl Wed Jul 31 13:53:39 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Wed, 31 Jul 2002 14:53:39 +0200 (CEST) Subject: JavaScript's "Same Origin Policy" (XWT Foundation Security Advisory) In-Reply-To: <200207311639.16220.lucy-ples@mtu-net.ru> References: <200207311639.16220.lucy-ples@mtu-net.ru> Message-ID: On Wed, 31 Jul 2002, Vadim Plessky wrote: > ______________________________________________________________________________ > Abstract > > The following exploit constitutes a security flaw in JavaScript's > "Same Origin Policy" (SOP) [1]. Please note that this is *not* the > IE-specific flaw reported in Februrary [2]. > > The exploit allows an attacker to use any JavaScript-enabled web > browser behind a firewall to retrive content from (HTTP GET) and > interact with (HTTP POST) any HTTP server behind the > firewall. If the client in use is Microsoft Internet Explorer 5.0+, > Mozilla, or Netscape 6.2+, the attacker can also make calls to SOAP or > XML-RPC web services deployed behind the firewall. Is this really a JS flaw, or is there something with the DNS lookup wrong? IMHO a DNS server should never respond with a private ip address, after forwarding a request to a non-private DNS server. Don't know if I can configure bind that way... Regards, Koos Vriezen From hetz at kde.org Wed Jul 31 15:10:16 2002 From: hetz at kde.org (Hetz Ben Hamo) Date: Wed, 31 Jul 2002 17:10:16 +0300 Subject: Tabbed Browsing usability issue Message-ID: <47475.6071846516$1028124711@news.gmane.org> Hi People, I've seen something in tabbed browsing which I think is IMHO a wrong thing... When clicking "Open a New Tab" to open a URL in a new tabbed inside Konqueror, the first part of the data is received (html, jpg, etc) and then the tabbed window is open.. Thats wrong. Why? pretty simple. Lets say a user is clicking on a "slashdotted" web site - since the site is slashdotted - he won't see any new tab until something is received or a time-out occures. Since the end user doesn't know about that - he will keep clicking to open a new tab - and by the time something will come up - he'll have tons of new tabs in Konqueror. My suggestion - open a new tab first, and then get the data. Speaking of tabbed browsing - there's still no keyboard shortcuts to switch between the tabbed windows in Konqueror unfortunately, which means - a mouse is a must here, and it's not comfortible at all.. Just my $.02 Thanks, Hetz From koos.vriezen at xs4all.nl Wed Jul 31 16:09:29 2002 From: koos.vriezen at xs4all.nl (Koos Vriezen) Date: Wed, 31 Jul 2002 17:09:29 +0200 (CEST) Subject: smooth scrolling comment In-Reply-To: References: Message-ID: On Tue, 30 Jul 2002, Koos Vriezen wrote: > On Tue, 30 Jul 2002, Hetz Ben Hamo wrote: > > > 1. In order to stop the scrolling - only the up key stops. Why not any key? > > I'm pretty sure end user would be pissed to find that they can't stop smooth > > scrolling unless they find that arrow up stops it. > > That wouldn't be to difficult to implement. Personaly I like the > combination of auto scrolling and PgUp/PgDown to quickly scan news sites. > But for other, non-scrolling keys, yes why not. > > > 2. Is there going to be also a smooth scrolling upwards and sideways please? > > it will help a lot with large tables.. > > Scrolling up, wouldn't be hard to implement. Scrolling right/left needs > imo some changes in paintBuffer, an extra vertical or rotation by > drawPixmap. However the usefulness, compared to scrolling down, is a lot > less. Well for completing this auto scroller thing, here a patch that does the above. I've added a 10 by visualHeight vertical paintBuffer for smooth horizontal scrolling. Besides that, the patch is quite boring. Regards, Koos Vriezen -------------- next part -------------- Index: khtmlview.cpp =================================================================== RCS file: /home/kde/kdelibs/khtml/khtmlview.cpp,v retrieving revision 1.478 diff -u -3 -p -r1.478 khtmlview.cpp --- khtmlview.cpp 2002/07/30 15:36:48 1.478 +++ khtmlview.cpp 2002/07/31 15:10:24 @@ -60,6 +60,10 @@ #define PAINT_BUFFER_HEIGHT 128 +#define NEWSCROLLTIMER(x) \ +{ kdDebug() << "timer event killing timer" << endl; \ + killTimer(d->scrollTimerId); d->scrollTimerId = (x); } + using namespace DOM; using namespace khtml; class KHTMLToolTip; @@ -94,6 +98,7 @@ public: reset(); tp=0; paintBuffer=0; + vertPaintBuffer=0; formCompletions=0; prevScrollbarVisible = true; timerId = 0; @@ -107,6 +112,7 @@ public: delete formCompletions; delete tp; tp = 0; delete paintBuffer; paintBuffer =0; + delete vertPaintBuffer; if (underMouse) underMouse->deref(); delete tooltip; @@ -149,6 +155,7 @@ public: QPainter *tp; QPixmap *paintBuffer; + QPixmap *vertPaintBuffer; NodeImpl *underMouse; // the node that was selected when enter was pressed @@ -179,6 +186,7 @@ public: int scrollTimerId; int scrollTiming; int scrollBy; + enum { ScrollLeft, ScrollRight, ScrollUp, ScrollDown } scrollDirection; bool complete; bool firstRelayout; bool layoutSchedulingEnabled; @@ -249,6 +257,8 @@ KHTMLView::~KHTMLView() void KHTMLView::init() { if(!d->paintBuffer) d->paintBuffer = new QPixmap(PAINT_BUFFER_HEIGHT, PAINT_BUFFER_HEIGHT); + if(!d->vertPaintBuffer) + d->vertPaintBuffer = new QPixmap(10, PAINT_BUFFER_HEIGHT); if(!d->tp) d->tp = new QPainter(); setFocusPolicy(QWidget::StrongFocus); @@ -327,28 +337,40 @@ void KHTMLView::drawContents( QPainter * if(!m_part->xmlDocImpl() || !m_part->xmlDocImpl()->renderer()) { p->fillRect(ex, ey, ew, eh, palette().normal().brush(QColorGroup::Base)); return; + } + if (eh > PAINT_BUFFER_HEIGHT && ew <= 10) { + if ( d->vertPaintBuffer->height() < visibleHeight() ) + d->vertPaintBuffer->resize(10, visibleHeight()); + d->tp->begin(d->vertPaintBuffer); + d->tp->translate(-ex, -ey); + d->tp->fillRect(ex, ey, ew, eh, palette().normal().brush(QColorGroup::Base)); + m_part->xmlDocImpl()->renderer()->print(d->tp, ex, ey, ew, eh, 0, 0); + d->tp->end(); + p->drawPixmap(ex, ey, *d->vertPaintBuffer, 0, 0, ew, eh); } - if ( d->paintBuffer->width() < visibleWidth() ) - d->paintBuffer->resize(visibleWidth(),PAINT_BUFFER_HEIGHT); + else { + if ( d->paintBuffer->width() < visibleWidth() ) + d->paintBuffer->resize(visibleWidth(),PAINT_BUFFER_HEIGHT); - int py=0; - while (py < eh) { - int ph = eh-py < PAINT_BUFFER_HEIGHT ? eh-py : PAINT_BUFFER_HEIGHT; - d->tp->begin(d->paintBuffer); - d->tp->translate(-ex, -ey-py); - d->tp->fillRect(ex, ey+py, ew, ph, palette().normal().brush(QColorGroup::Base)); - m_part->xmlDocImpl()->renderer()->print(d->tp, ex, ey+py, ew, ph, 0, 0); + int py=0; + while (py < eh) { + int ph = eh-py < PAINT_BUFFER_HEIGHT ? eh-py : PAINT_BUFFER_HEIGHT; + d->tp->begin(d->paintBuffer); + d->tp->translate(-ex, -ey-py); + d->tp->fillRect(ex, ey+py, ew, ph, palette().normal().brush(QColorGroup::Base)); + m_part->xmlDocImpl()->renderer()->print(d->tp, ex, ey+py, ew, ph, 0, 0); #ifdef BOX_DEBUG - if (m_part->xmlDocImpl()->focusNode()) - { - d->tp->setBrush(Qt::NoBrush); - d->tp->drawRect(m_part->xmlDocImpl()->focusNode()->getRect()); - } + if (m_part->xmlDocImpl()->focusNode()) + { + d->tp->setBrush(Qt::NoBrush); + d->tp->drawRect(m_part->xmlDocImpl()->focusNode()->getRect()); + } #endif - d->tp->end(); + d->tp->end(); - p->drawPixmap(ex, ey+py, *d->paintBuffer, 0, 0, ew, ph); - py += PAINT_BUFFER_HEIGHT; + p->drawPixmap(ex, ey+py, *d->paintBuffer, 0, 0, ew, ph); + py += PAINT_BUFFER_HEIGHT; + } } khtml::DrawContentsEvent event( p, ex, ey, ew, eh ); QApplication::sendEvent( m_part, &event ); @@ -623,7 +645,9 @@ void KHTMLView::keyPressEvent( QKeyEvent } int offs = (clipper()->height() < 30) ? clipper()->height() : 30; - static int timings [][2] = { {100,1}, {50,1}, {30,1}, {20,1}, {20,2}, {20,4}, {20,6}, {0,0} }; + static const struct { int msec, pixels; } timings [] = { + {100,1}, {50,1}, {30,1}, {20,1}, {20,2}, {20,4}, {20,6}, {0,0} + }; if (_ke->state() & Qt::ShiftButton) switch(_ke->key()) { @@ -636,31 +660,89 @@ void KHTMLView::keyPressEvent( QKeyEvent case Key_Down: case Key_J: - if (!d->scrollTimerId) { + if (!d->scrollTimerId || + d->scrollDirection == KHTMLViewPrivate::ScrollLeft || + d->scrollDirection == KHTMLViewPrivate::ScrollRight) { d->scrollTiming = 2; - d->scrollBy = timings[d->scrollTiming][1]; + d->scrollBy = timings[d->scrollTiming].pixels; + d->scrollDirection = KHTMLViewPrivate::ScrollDown; scrollBy( 0, d->scrollBy ); - d->scrollTimerId = startTimer(timings[d->scrollTiming][0]); - } else if (timings[d->scrollTiming+1][0]) { - d->scrollBy = timings[++d->scrollTiming][1]; + } else if (d->scrollDirection == KHTMLViewPrivate::ScrollDown && + timings[d->scrollTiming+1].msec) { + d->scrollBy = timings[++d->scrollTiming].pixels; scrollBy( 0, d->scrollBy ); - killTimer(d->scrollTimerId); - d->scrollTimerId = startTimer(timings[d->scrollTiming][0]); + } else if (d->scrollDirection == KHTMLViewPrivate::ScrollUp) { + if (d->scrollTiming) + d->scrollBy = timings[--d->scrollTiming].pixels; + else + d->scrollDirection = KHTMLViewPrivate::ScrollDown; } + NEWSCROLLTIMER(startTimer(timings[d->scrollTiming].msec)); break; case Key_Up: case Key_K: - if (d->scrollTimerId) - if (d->scrollTiming) { - d->scrollBy = timings[--d->scrollTiming][1]; - killTimer(d->scrollTimerId); - d->scrollTimerId = startTimer(timings[d->scrollTiming][0]); - } else { - killTimer(d->scrollTimerId); - d->scrollTimerId = 0; - } + if (!d->scrollTimerId || + d->scrollDirection == KHTMLViewPrivate::ScrollLeft || + d->scrollDirection == KHTMLViewPrivate::ScrollRight) { + d->scrollTiming = 2; + d->scrollBy = timings[d->scrollTiming].pixels; + d->scrollDirection = KHTMLViewPrivate::ScrollUp; + } else if (d->scrollDirection == KHTMLViewPrivate::ScrollUp && + timings[d->scrollTiming+1].msec) { + d->scrollBy = timings[++d->scrollTiming].pixels; + scrollBy( 0, -d->scrollBy ); + } else if (d->scrollDirection == KHTMLViewPrivate::ScrollDown) { + if (d->scrollTiming) + d->scrollBy = timings[--d->scrollTiming].pixels; + else + d->scrollDirection = KHTMLViewPrivate::ScrollUp; + } + NEWSCROLLTIMER(startTimer(timings[d->scrollTiming].msec)); + break; + + case Key_Left: + case Key_H: + if (!d->scrollTimerId || + d->scrollDirection == KHTMLViewPrivate::ScrollUp || + d->scrollDirection == KHTMLViewPrivate::ScrollDown) { + d->scrollTiming = 2; + d->scrollBy = timings[d->scrollTiming].pixels; + d->scrollDirection = KHTMLViewPrivate::ScrollLeft; + scrollBy( -d->scrollBy, 0 ); + } else if (d->scrollDirection == KHTMLViewPrivate::ScrollLeft && + timings[d->scrollTiming+1].msec) { + d->scrollBy = timings[++d->scrollTiming].pixels; + scrollBy( -d->scrollBy, 0 ); + } else if (d->scrollDirection == KHTMLViewPrivate::ScrollRight) { + if (d->scrollTiming) + d->scrollBy = timings[--d->scrollTiming].pixels; + else + d->scrollDirection = KHTMLViewPrivate::ScrollLeft; + } + NEWSCROLLTIMER(startTimer(timings[d->scrollTiming].msec)); + break; + case Key_Right: + case Key_L: + if (!d->scrollTimerId || + d->scrollDirection == KHTMLViewPrivate::ScrollUp || + d->scrollDirection == KHTMLViewPrivate::ScrollDown) { + d->scrollTiming = 2; + d->scrollBy = timings[d->scrollTiming].pixels; + d->scrollDirection = KHTMLViewPrivate::ScrollRight; + scrollBy( d->scrollBy, 0 ); + } else if (d->scrollDirection == KHTMLViewPrivate::ScrollRight && + timings[d->scrollTiming+1].msec) { + d->scrollBy = timings[++d->scrollTiming].pixels; + scrollBy( d->scrollBy, 0 ); + } else if (d->scrollDirection == KHTMLViewPrivate::ScrollLeft) { + if (d->scrollTiming) + d->scrollBy = timings[--d->scrollTiming].pixels; + else + d->scrollDirection = KHTMLViewPrivate::ScrollRight; + } + NEWSCROLLTIMER(startTimer(timings[d->scrollTiming].msec)); break; } else @@ -692,10 +774,8 @@ void KHTMLView::keyPressEvent( QKeyEvent if ( d->vmode == QScrollView::AlwaysOff ) _ke->accept(); else { - if (d->scrollTimerId) { - killTimer(d->scrollTimerId); - d->scrollTimerId = 0; - } + if (d->scrollTimerId) + NEWSCROLLTIMER(0); scrollBy( 0, -10 ); } break; @@ -710,15 +790,21 @@ void KHTMLView::keyPressEvent( QKeyEvent case Key_L: if ( d->hmode == QScrollView::AlwaysOff ) _ke->accept(); - else + else { + if (d->scrollTimerId) + NEWSCROLLTIMER(0); scrollBy( 10, 0 ); + } break; case Key_Left: case Key_H: if ( d->hmode == QScrollView::AlwaysOff ) _ke->accept(); - else + else { + if (d->scrollTimerId) + NEWSCROLLTIMER(0); scrollBy( -10, 0 ); + } break; case Key_Enter: case Key_Return: @@ -744,7 +830,15 @@ void KHTMLView::keyPressEvent( QKeyEvent else setContentsPos( 0, contentsHeight() - visibleHeight() ); break; + case Key_Shift: + // what are you doing here? + _ke->ignore(); + return; default: + if (d->scrollTimerId) { + killTimer(d->scrollTimerId); + d->scrollTimerId = 0; + } _ke->ignore(); return; } @@ -1512,12 +1606,32 @@ void KHTMLView::timerEvent ( QTimerEvent { // kdDebug() << "timer event " << e->timerId() << endl; if (e->timerId() == d->scrollTimerId) { - if (contentsY() + visibleHeight () >= contentsHeight()) { - kdDebug() << "timer event killing timer" << endl; - killTimer(d->scrollTimerId); - d->scrollTimerId = 0; - } else - scrollBy( 0, d->scrollBy ); + switch (d->scrollDirection) { + case KHTMLViewPrivate::ScrollDown: + if (contentsY() + visibleHeight () >= contentsHeight()) + NEWSCROLLTIMER(0) + else + scrollBy( 0, d->scrollBy ); + break; + case KHTMLViewPrivate::ScrollUp: + if (contentsY() <= 0) + NEWSCROLLTIMER(0) + else + scrollBy( 0, -d->scrollBy ); + break; + case KHTMLViewPrivate::ScrollRight: + if (contentsX() + visibleWidth () >= contentsWidth()) + NEWSCROLLTIMER(0) + else + scrollBy( d->scrollBy, 0 ); + break; + case KHTMLViewPrivate::ScrollLeft: + if (contentsX() <= 0) + NEWSCROLLTIMER(0) + else + scrollBy( -d->scrollBy, 0 ); + break; + } return; } if (e->timerId()==d->timerId) From germain at ebooksfrance.com Wed Jul 31 17:36:18 2002 From: germain at ebooksfrance.com (Germain Garand) Date: Wed, 31 Jul 2002 17:36:18 +0100 Subject: action for LMB click in Konqueror In-Reply-To: <200207292232.34367.germain@ebooksfrance.com> References: <3D44752F.6070307@gmx.de> <200207290928.20290.david@mandrakesoft.com> <200207292232.34367.germain@ebooksfrance.com> Message-ID: <200207311736.18931.germain@ebooksfrance.com> Le Lundi 29 Juillet 2002 22:32, Germain Garand a écrit : > Le Lundi 29 Juillet 2002 08:28, David Faure a écrit : > > > It seems that if you first mark a mimetype to be externally or > > > internally viewed, apply the change, and then later switch it to "use > > > settings for XXX group", then it doesn't switch and just uses whatever > > > you choose before... > > > > I forgot to update the kcontrol file associations module after changing > > the defaults. Thanks for noticing, fixed (please re-test). > > I've just rebuilt kcontrol but as far as I can see, the "use settings for > XXX group" checkbox still seems to do nothing. Just to close this one. I had a different KDEHOME than the one finally elected by KDE; it seems it messed '.desktop' file monitoring. Hence the bad mimetype refreshing. Cheers, G.