[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: icon overlay question
From:       "Ramazan Girgin" <ramazangirgin () gmail ! com>
Date:       2008-07-29 5:08:51
Message-ID: 4f2df0310807282208ra3265bfn72276c781119f735 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

How can i set icon overlay in KDE3 like .gz files.That's important for me.
Thanks
Ramazan

2008/7/11 John Tapsell <johnflux@gmail.com>

> Hi Ramazan,
>
>  I hope you get this resolved nicely.  I too want something similar
> for adding overlays for an SVN plugin.
>
> JohnFlux
>
> 2008/7/10 Ramazan Girgin <ramazangirgin@gmail.com>:
> > Isn't there any advice for this?
> >
> > 2008/6/16 Ramazan Girgin <ramazangirgin@gmail.com>:
> >>
> >> Where will I put this code in? As a plugin ? How?
> >>
> >> On Sun, Jun 15, 2008 at 11:14 PM, Robert Hogan <lists@roberthogan.net>
> >> wrote:
> >>>
> >>> On Friday 13 June 2008 14:37:51 Ramazan Girgin wrote:
> >>> > Hi all,
> >>> > I want to set overlay icon for some of files like .gz , locked and
> >>> > hidden
> >>> > files. Ex . .gz extension files have small rectangle overlay icon.
> How
> >>> > can
> >>> > i do this for my extension. ýs there any way to writing plugin code
> for
> >>> > this. I want to show orijinal file extension (Ex.open office files)
> and
> >>> > my
> >>> > overlay icon.Files name may be like this ExFile.m4f.doc
> >>> > .   m4f is my extension for overlay. I have looked in source code of
> >>> > kde
> >>> > and i haven't find any solution for this.?
> >>> > On windows we can do this with icon overlay shell extensions . How
> can
> >>> > do
> >>> > this on kde.
> >>> > Thanks in advance
> >>> > Ramazan
> >>>
> >>> Here's the code in minicli that overlays a website's favicon over the
> >>> konqueror
> >>> icon when you type in a web address:
> >>>
> >>>    QPixmap icon = DesktopIcon( m_iconName );
> >>>    QPixmap overlay( locate ( "icon", KMimeType::favIconForURL(
> >>> m_filterData->uri() ) + ".png" ) );
> >>>    if ( !overlay.isNull() )
> >>>    {
> >>>      int x = icon.width() - overlay.width();
> >>>      int y = icon.height() - overlay.height();
> >>>      if ( icon.mask() )
> >>>      {
> >>>        QBitmap mask = *icon.mask();
> >>>        bitBlt( &mask, x, y,
> >>>                overlay.mask() ? const_cast<QBitmap *>(overlay.mask()) :
> >>> &overlay,
> >>>                0, 0, overlay.width(), overlay.height(),
> >>>                overlay.mask() ? OrROP : SetROP );
> >>>        icon.setMask(mask);
> >>>      }
> >>>      bitBlt( &icon, x, y, &overlay );
> >>>    }
> >>>
> >>> This should help you get started.
> >>>
> >>>
> >>> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >>> >> unsubscribe <<
> >>>
> >>
> >
> >
> >
> >>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe
> >>> <<
> >
> >
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>

[Attachment #5 (text/html)]

<div dir="ltr">How can i set icon overlay in KDE3 like .gz files.That&#39;s important \
for me.<br>Thanks<br>Ramazan<br><br><div class="gmail_quote">2008/7/11 John Tapsell \
<span dir="ltr">&lt;<a \
href="mailto:johnflux@gmail.com">johnflux@gmail.com</a>&gt;</span><br> <blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">Hi Ramazan,<br> <br>
 &nbsp;I hope you get this resolved nicely. &nbsp;I too want something similar<br>
for adding overlays for an SVN plugin.<br>
<br>
JohnFlux<br>
<br>
2008/7/10 Ramazan Girgin &lt;<a \
href="mailto:ramazangirgin@gmail.com">ramazangirgin@gmail.com</a>&gt;:<br> \
<div><div></div><div class="Wj3C7c">&gt; Isn&#39;t there any advice for this?<br> \
&gt;<br> &gt; 2008/6/16 Ramazan Girgin &lt;<a \
href="mailto:ramazangirgin@gmail.com">ramazangirgin@gmail.com</a>&gt;:<br> \
&gt;&gt;<br> &gt;&gt; Where will I put this code in? As a plugin ? How?<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Jun 15, 2008 at 11:14 PM, Robert Hogan &lt;<a \
href="mailto:lists@roberthogan.net">lists@roberthogan.net</a>&gt;<br> &gt;&gt; \
wrote:<br> &gt;&gt;&gt;<br>
&gt;&gt;&gt; On Friday 13 June 2008 14:37:51 Ramazan Girgin wrote:<br>
&gt;&gt;&gt; &gt; Hi all,<br>
&gt;&gt;&gt; &gt; I want to set overlay icon for some of files like .gz , locked \
and<br> &gt;&gt;&gt; &gt; hidden<br>
&gt;&gt;&gt; &gt; files. Ex . .gz extension files have small rectangle overlay icon. \
How<br> &gt;&gt;&gt; &gt; can<br>
&gt;&gt;&gt; &gt; i do this for my extension. ýs there any way to writing plugin code \
for<br> &gt;&gt;&gt; &gt; this. I want to show orijinal file extension (Ex.open \
office files) and<br> &gt;&gt;&gt; &gt; my<br>
&gt;&gt;&gt; &gt; overlay icon.Files name may be like this ExFile.m4f.doc<br>
&gt;&gt;&gt; &gt; . &nbsp; m4f is my extension for overlay. I have looked in source \
code of<br> &gt;&gt;&gt; &gt; kde<br>
&gt;&gt;&gt; &gt; and i haven&#39;t find any solution for this.?<br>
&gt;&gt;&gt; &gt; On windows we can do this with icon overlay shell extensions . How \
can<br> &gt;&gt;&gt; &gt; do<br>
&gt;&gt;&gt; &gt; this on kde.<br>
&gt;&gt;&gt; &gt; Thanks in advance<br>
&gt;&gt;&gt; &gt; Ramazan<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Here&#39;s the code in minicli that overlays a website&#39;s favicon \
over the<br> &gt;&gt;&gt; konqueror<br>
&gt;&gt;&gt; icon when you type in a web address:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &nbsp; &nbsp;QPixmap icon = DesktopIcon( m_iconName );<br>
&gt;&gt;&gt; &nbsp; &nbsp;QPixmap overlay( locate ( &quot;icon&quot;, \
KMimeType::favIconForURL(<br> &gt;&gt;&gt; m_filterData-&gt;uri() ) + \
&quot;.png&quot; ) );<br> &gt;&gt;&gt; &nbsp; &nbsp;if ( !overlay.isNull() )<br>
&gt;&gt;&gt; &nbsp; &nbsp;{<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;int x = icon.width() - overlay.width();<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;int y = icon.height() - overlay.height();<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;if ( icon.mask() )<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;{<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;QBitmap mask = *icon.mask();<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;bitBlt( &amp;mask, x, y,<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;overlay.mask() ? \
const_cast&lt;QBitmap *&gt;(overlay.mask()) :<br> &gt;&gt;&gt; &amp;overlay,<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0, 0, \
overlay.width(), overlay.height(),<br> &gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp;overlay.mask() ? OrROP : SetROP );<br> &gt;&gt;&gt; &nbsp; \
&nbsp; &nbsp; &nbsp;icon.setMask(mask);<br> &gt;&gt;&gt; &nbsp; &nbsp; &nbsp;}<br>
&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;bitBlt( &amp;icon, x, y, &amp;overlay );<br>
&gt;&gt;&gt; &nbsp; &nbsp;}<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This should help you get started.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to<br> \
&gt;&gt;&gt; &gt;&gt; unsubscribe &lt;&lt;<br> &gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe<br> &gt;&gt;&gt; &lt;&lt;<br>
&gt;<br>
&gt;<br>
<br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> </div></div></blockquote></div><br></div>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic