Re: [webkit-dev] disable selection of text and images

2010-10-19 Thread Simon Fraser
Put 
* {
  -webkit-user-select: none;
}

in your user-agent stylesheet?

Simon

On Oct 18, 2010, at 10:12 PM, Efan... wrote:

 Hi
 I am totally new to this group.
 
 I want to disable selection of Text and graphics in my QWebView, it seems 
 that there is no way via Qt i can do this , so only option I am left with is 
 to modify webkit code.
 I am new to webkit code too, but I am willing to put my time and effort to do 
 this, Can any one please suggest what file/function should I be modifying in 
 webkit?? Or does any one has any other solution other than modifying webkit?
 
 I will highly appreciate any input on this.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] disable selection of text and images

2010-10-19 Thread Efan...
Hi All unfortunately I can not use JAVA script or any thing like that cause
my application is totally c++ , QT based.
I need to make the change in webkit src code I guess.

On Tue, Oct 19, 2010 at 8:39 AM, Simon Fraser simon.fra...@apple.comwrote:

 Put
 * {
  -webkit-user-select: none;
 }

 in your user-agent stylesheet?

 Simon

 On Oct 18, 2010, at 10:12 PM, Efan... wrote:

  Hi
  I am totally new to this group.
 
  I want to disable selection of Text and graphics in my QWebView, it seems
 that there is no way via Qt i can do this , so only option I am left with is
 to modify webkit code.
  I am new to webkit code too, but I am willing to put my time and effort
 to do this, Can any one please suggest what file/function should I be
 modifying in webkit?? Or does any one has any other solution other than
 modifying webkit?
 
  I will highly appreciate any input on this.




-- 
Efan Harris
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] disable selection of text and images

2010-10-19 Thread Dan Bernstein

On Oct 19, 2010, at 10:07 AM, Efan... wrote:

 Hi All unfortunately I can not use JAVA script or any thing like that cause 
 my application is totally c++ , QT based.
 I need to make the change in webkit src code I guess.

Note that this is already supported (with no source changes) on Mac OS X via 
the editing delegate method 
-webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:. 
Perhaps Qt WebKit is missing an equivalent to that delegate interface (a 
cursory look in EditorClientQt.cpp suggest that it is).

 
 On Tue, Oct 19, 2010 at 8:39 AM, Simon Fraser simon.fra...@apple.com wrote:
 Put
 * {
  -webkit-user-select: none;
 }
 
 in your user-agent stylesheet?
 
 Simon
 
 On Oct 18, 2010, at 10:12 PM, Efan... wrote:
 
  Hi
  I am totally new to this group.
 
  I want to disable selection of Text and graphics in my QWebView, it seems 
  that there is no way via Qt i can do this , so only option I am left with 
  is to modify webkit code.
  I am new to webkit code too, but I am willing to put my time and effort to 
  do this, Can any one please suggest what file/function should I be 
  modifying in webkit?? Or does any one has any other solution other than 
  modifying webkit?
 
  I will highly appreciate any input on this.
 
 
 
 
 -- 
 Efan Harris
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] disable selection of text and images

2010-10-19 Thread Ryosuke Niwa
Hi,

I think I talked with this person on IRC last night, and I suggested him to
modify EditorClientQt::shouldChangeSelectedRange to always return false.
 FYI, there is a bug to add this feature on Qt ports:
https://bugs.webkit.org/show_bug.cgi?id=38520

- Ryosuke

On Tue, Oct 19, 2010 at 10:17 AM, Dan Bernstein m...@apple.com wrote:


 On Oct 19, 2010, at 10:07 AM, Efan... wrote:

 Hi All unfortunately I can not use JAVA script or any thing like that cause
 my application is totally c++ , QT based.
 I need to make the change in webkit src code I guess.


 Note that this is already supported (with no source changes) on Mac OS X
 via the editing delegate method
 -webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:.
 Perhaps Qt WebKit is missing an equivalent to that delegate interface (a
 cursory look in EditorClientQt.cpp suggest that it is).


 On Tue, Oct 19, 2010 at 8:39 AM, Simon Fraser simon.fra...@apple.comwrote:

 Put
 * {
  -webkit-user-select: none;
 }

 in your user-agent stylesheet?

 Simon

 On Oct 18, 2010, at 10:12 PM, Efan... wrote:

  Hi
  I am totally new to this group.
 
  I want to disable selection of Text and graphics in my QWebView, it
 seems that there is no way via Qt i can do this , so only option I am left
 with is to modify webkit code.
  I am new to webkit code too, but I am willing to put my time and effort
 to do this, Can any one please suggest what file/function should I be
 modifying in webkit?? Or does any one has any other solution other than
 modifying webkit?
 
  I will highly appreciate any input on this.


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] disable selection of text and images

2010-10-19 Thread Ryosuke Niwa
The bug 38520 https://bugs.webkit.org/show_bug.cgi?id=38520 addresses the
exact problem.

- Ryosuke

On Tue, Oct 19, 2010 at 11:28 AM, Efan... efanhar...@gmail.com wrote:

 Ah might be Raving Jason would have had word with you, he is my colleague
 he told me on skype today to do the same, return false from that method,

 But that will permanently disable it I am just looking some way to enable
 disable this when ever developer want using some api at Qt level or
 somewhere else. May be would like to have implementation like
 shouldChangeSelectedDOMRange as in OSX.




 On Tue, Oct 19, 2010 at 10:27 AM, Ryosuke Niwa rn...@webkit.org wrote:

 Hi,

 I think I talked with this person on IRC last night, and I suggested him
 to modify EditorClientQt::shouldChangeSelectedRange to always return false.
  FYI, there is a bug to add this feature on Qt ports:
 https://bugs.webkit.org/show_bug.cgi?id=38520

 - Ryosuke

 On Tue, Oct 19, 2010 at 10:17 AM, Dan Bernstein m...@apple.com wrote:


 On Oct 19, 2010, at 10:07 AM, Efan... wrote:

 Hi All unfortunately I can not use JAVA script or any thing like that
 cause my application is totally c++ , QT based.
 I need to make the change in webkit src code I guess.


 Note that this is already supported (with no source changes) on Mac OS X
 via the editing delegate method
 -webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:.
 Perhaps Qt WebKit is missing an equivalent to that delegate interface (a
 cursory look in EditorClientQt.cpp suggest that it is).


 On Tue, Oct 19, 2010 at 8:39 AM, Simon Fraser simon.fra...@apple.comwrote:

 Put
 * {
  -webkit-user-select: none;
 }

 in your user-agent stylesheet?

 Simon

 On Oct 18, 2010, at 10:12 PM, Efan... wrote:

  Hi
  I am totally new to this group.
 
  I want to disable selection of Text and graphics in my QWebView, it
 seems that there is no way via Qt i can do this , so only option I am left
 with is to modify webkit code.
  I am new to webkit code too, but I am willing to put my time and
 effort to do this, Can any one please suggest what file/function should I 
 be
 modifying in webkit?? Or does any one has any other solution other than
 modifying webkit?
 
  I will highly appreciate any input on this.




 --
 Efan Harris

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] disable selection of text and images

2010-10-19 Thread Efan...
By the way could there be any way like -webkit-user-select = none, where I
can select the element Withought highlighting??

On Tue, Oct 19, 2010 at 12:08 PM, Ryosuke Niwa rn...@webkit.org wrote:

 The bug 38520 https://bugs.webkit.org/show_bug.cgi?id=38520 addresses
 the exact problem.

 - Ryosuke

 On Tue, Oct 19, 2010 at 11:28 AM, Efan... efanhar...@gmail.com wrote:

 Ah might be Raving Jason would have had word with you, he is my colleague
 he told me on skype today to do the same, return false from that method,

 But that will permanently disable it I am just looking some way to enable
 disable this when ever developer want using some api at Qt level or
 somewhere else. May be would like to have implementation like
 shouldChangeSelectedDOMRange as in OSX.




 On Tue, Oct 19, 2010 at 10:27 AM, Ryosuke Niwa rn...@webkit.org wrote:

 Hi,

 I think I talked with this person on IRC last night, and I suggested him
 to modify EditorClientQt::shouldChangeSelectedRange to always return false.
  FYI, there is a bug to add this feature on Qt ports:
 https://bugs.webkit.org/show_bug.cgi?id=38520

 - Ryosuke

 On Tue, Oct 19, 2010 at 10:17 AM, Dan Bernstein m...@apple.com wrote:


  On Oct 19, 2010, at 10:07 AM, Efan... wrote:

 Hi All unfortunately I can not use JAVA script or any thing like that
 cause my application is totally c++ , QT based.
 I need to make the change in webkit src code I guess.


 Note that this is already supported (with no source changes) on Mac OS X
 via the editing delegate method
 -webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:.
 Perhaps Qt WebKit is missing an equivalent to that delegate interface (a
 cursory look in EditorClientQt.cpp suggest that it is).


 On Tue, Oct 19, 2010 at 8:39 AM, Simon Fraser 
 simon.fra...@apple.comwrote:

 Put
 * {
  -webkit-user-select: none;
 }

 in your user-agent stylesheet?

 Simon

 On Oct 18, 2010, at 10:12 PM, Efan... wrote:

  Hi
  I am totally new to this group.
 
  I want to disable selection of Text and graphics in my QWebView, it
 seems that there is no way via Qt i can do this , so only option I am left
 with is to modify webkit code.
  I am new to webkit code too, but I am willing to put my time and
 effort to do this, Can any one please suggest what file/function should I 
 be
 modifying in webkit?? Or does any one has any other solution other than
 modifying webkit?
 
  I will highly appreciate any input on this.




 --
 Efan Harris





-- 
Efan Harris
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev