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

List:       kde-devel
Subject:    Re: Hi all
From:       Chakkaradeep C C <chaks.yoper () gmail ! com>
Date:       2005-09-29 5:52:04
Message-ID: a54a308e05092822512f1c3b3b () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Aaron,

> On Wednesday 28 September 2005 00:32, Chakkaradeep C C wrote:
> > Hi all,
> >
> > >> was unable to find where the "Applications" Menu gets added.
> > >
> > >that happens in PanelServiceMenu. KMenu::initialize() makes a call to
> > >PanelServiceMenu::initialize() which calls doInitialize which call
> > > fillMenu
> >
> > i got the above function, but now since i want to place the applications
> in
> > my own custom group name rather than using
> "Application,Development,Games",
> > how should i proceed...does kappfinder plays a role here?..
>
> in that case you won't want to follow the groupings as provided by
> KServiceGroup. you'll just want to get all the applications available and
> store them in your own tree arrangement. you can query sycoca (sycoca ==
> SYstem COnfiguraton CAche) by application name or keywords.
>
> > what does,
> > "KServiceGroup::Ptr g(static_cast<KServiceGroup *>(e));" statement
> > do?
>
> e and e1 are KSycocaEntry objects; KServiceGroup is a KSycocaEntry
> subclass
> that represents a group of "services" (in this case, application entries
> as
> described by .desktop files). so this cast is necessary to change the
> pointer
> type from a KSycocaEntry to a KServiceGroup.
>
> > if ( nbChildCount == 1 && g->allowInline() && g->inlineAlias())
>
> this bit of code just inlines submenus of only one item. so this:
>
> Menu A
> Menu B
> Item 1
> Menu C
> Item 2
> Item 3
> Item 4
> Item 5
> Item 6
>
> becomes:
>
> Menu A
> Menu C
> Item 2
> Item 3
> Item 1
> Item 4
> Item 5
> Item 6

 Thanks a lot for your reply..i will check into it and come back.

with regards,
C.C.Chakkaradeep

[Attachment #5 (text/html)]

<div>Hi Aaron,</div>
<div>&nbsp;</div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; \
BORDER-LEFT: #ccc 1px solid">On Wednesday 28 September 2005 00:32, Chakkaradeep C C \
wrote:<br>&gt; Hi all,<br>&gt;<br>&gt; &gt;&gt; was unable to find where the \
&quot;Applications&quot; Menu gets added. <br>&gt; &gt;<br>&gt; &gt;that happens in \
PanelServiceMenu. KMenu::initialize() makes a call to<br>&gt; \
&gt;PanelServiceMenu::initialize() which calls doInitialize which call<br>&gt; &gt; \
fillMenu<br>&gt;<br>&gt; i got the above function, but now since i want to place the \
applications in <br>&gt; my own custom group name rather than using \
&quot;Application,Development,Games&quot;,<br>&gt; how should i proceed...does \
kappfinder plays a role here?..<br><br>in that case you won't want to follow the \
groupings as provided by <br>KServiceGroup. you'll just want to get all the \
applications available and<br>store them in your own tree arrangement. you can query \
sycoca&nbsp;&nbsp;(sycoca ==<br>SYstem COnfiguraton CAche) by application name or \
keywords.<br> <br>&gt; what does,<br>&gt; &quot;KServiceGroup::Ptr \
g(static_cast&lt;KServiceGroup *&gt;(e));&quot; statement<br>&gt; do?<br><br>e and e1 \
are KSycocaEntry objects; KServiceGroup is a KSycocaEntry subclass<br>that represents \
a group of &quot;services&quot; (in this case, application entries as <br>described \
by .desktop files). so this cast is necessary to change the pointer<br>type from a \
KSycocaEntry to a KServiceGroup.<br><br>&gt; if ( nbChildCount == 1 &amp;&amp; \
g-&gt;allowInline() &amp;&amp; g-&gt;inlineAlias()) <br><br>this bit of code just \
inlines submenus of only one item. so \
this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Menu \
A<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Menu B<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Item 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Item 1 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Item 4<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Item 5<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Item 6</blockquote> <div>&nbsp;</div>
<div>Thanks a lot for your reply..i will check into it and come back.</div><br>with \
regards,</div> <div>C.C.Chakkaradeep</div>



 =

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


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

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