khtml scrollbars and bidi

Oliver Stieber Oliver.Stieber at Integralis.com
Mon Jul 26 15:38:21 BST 2004


While you at it:

Have you ever watched s left handed person try to use a pda? 
They cover the screen with there hand reaching over for a right hand scroll bar.

It would be nice if the left-right handedness of the scroll bar could be configured for left handers too, for PDA's tablet PC's and anything you point at with your hand.




-----Original Message-----
From: Diego Iastrubni [mailto:elcuco at kdemail.net]
Sent: 24 July 2004 12:42
To: kde-core-devel at kde.org
Subject: Re: khtml scrollbars and bidi


Ingo Klöcker wrote:

>On Saturday 24 July 2004 03:56, Diego Iastrubni wrote:
>  
>
>>Hi all,
>>
>>I was thinking of moving khtml Vscroll bar according to the html
>>direction. This means that the location of the scrollbar will be
>>determinated by the direction of the body of the html. This way I
>>will see the scrollbar on the right on english sites, and on the left
>>on hebrew sites.
>>
>>khtml is derived from qscrollview, which does not have any method to
>>do this. Does anyone have an idea how can this feature implemented?
>>    
>>
>
>You could use QApplication::setReverseLayout ( bool b ):
>"If b is TRUE, all dialogs and widgets will be laid out in a mirrored 
>fashion, as required by right to left languages such as Arabic and 
>Hebrew. If b is FALSE, dialogs and widgets are laid out left to right.
>  
>
This is what I am trying to avoid. I want this to be specific per HTML, 
not per locale.

>Changing this flag in runtime does not cause a relayout of already 
>instantiated widgets."
>  
>

There is a slot which is called when the layout direction is changed. 
It's a shame you cannot change the direction of the app on the fly (or 
can you?)

>You might want to ask TT to add a QWidget::setReverseLayout( bool b ) to >Qt 4.
>  
>
That's the spirit! ok. I will do this soon.

>FWIW, I don't think that this "feature" makes any sense. But then again, >I'm ltr-only, so what do I know.
>  
>
as you said.. but let me explain:
On english, the screoll bar is on the right, corrent?
On hebrew/arabic it is on the left ok?

It should be done acording to the content of the HTML and not your 
locale, trust me. IE implemnets it, and trust me this is the way to go.

-- 

diego, kde-il translation team

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Free MS-Office replacement for most platforms
http://www.openoffice.org/


Please note that:
 
1. This e-mail may constitute privileged information. If you are not the intended recipient, you have received this confidential email and any attachments transmitted with it in error and you must not disclose, copy, circulate or in any other way use or rely on this information.
2. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices.
3. The contents of this email are those of the individual and do not necessarily represent the views of the company.
4. The company does not conclude contracts by email and all negotiations are subject to contract.
5. The company accepts no responsibility once an e-mail and any attachments is sent.

http://www.integralis.com





More information about the kde-core-devel mailing list