[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> </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>> Hi all,<br>><br>> >> was unable to find where the \
"Applications" Menu gets added. <br>> ><br>> >that happens in \
PanelServiceMenu. KMenu::initialize() makes a call to<br>> \
>PanelServiceMenu::initialize() which calls doInitialize which call<br>> > \
fillMenu<br>><br>> i got the above function, but now since i want to place the \
applications in <br>> my own custom group name rather than using \
"Application,Development,Games",<br>> 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 (sycoca ==<br>SYstem COnfiguraton CAche) by application name or \
keywords.<br> <br>> what does,<br>> "KServiceGroup::Ptr \
g(static_cast<KServiceGroup *>(e));" statement<br>> do?<br><br>e and e1 \
are KSycocaEntry objects; KServiceGroup is a KSycocaEntry subclass<br>that represents \
a group of "services" (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>> if ( nbChildCount == 1 && \
g->allowInline() && g->inlineAlias()) <br><br>this bit of code just \
inlines submenus of only one item. so \
this:<br><br> Menu \
A<br> \
Menu B<br> \
Item 1<br> \
Menu C<br> \
Item 2<br> \
Item 3 <br> \
Item 4<br> \
Item 5<br> \
Item 6<br><br>becomes:<br><br> Menu \
A<br> \
Menu C<br> \
Item 2<br> \
Item 3<br> \
Item 1 <br> \
Item 4<br> \
Item 5<br> \
Item 6</blockquote> <div> </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