Okay i worked on it and changed according to what you have said , if there is anything else or if i have messed up something just let me know, i will get it fixed ASAP.<br><br><div class="gmail_quote">On Tue, Mar 22, 2011 at 12:15 AM, Sebastian Trüg <span dir="ltr">&lt;<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Right, I did not think about that.<br>
<br>
Well, one possibility would be to create another action<br>
m_openQueryAction and add it to the actionCollection(). But then you<br>
have to add that to the menu manually  by editing nepomukshellui.rc:<br>
- Increase the version<br>
- Add the action in the file section<br>
<br>
In addition I think it would make sense to also name the current open<br>
action &quot;Open Resource&quot; and name the save action &quot;Save query&quot;. Then only<br>
activate the save action if the query window is open.<br>
<br>
Cheers,<br>
Sebastian<br>
<div class="im"><br>
On 03/21/2011 07:15 PM, Who Knows wrote:<br>
&gt; okay i implemented the save feature which wasn&#39;t tough but what about<br>
&gt; the open feature as KStandardAction::open is already being used for<br>
&gt; opening resources so how do i approach this one ?<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Mar 21, 2011 at 9:51 PM, Sebastian Trüg &lt;<a href="mailto:trueg@kde.org">trueg@kde.org</a><br>
</div><div><div></div><div class="h5">&gt; &lt;mailto:<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     well, there are at least 2 solutions to the issue:<br>
&gt;     1. only enable the actions in the query mode<br>
&gt;     2. Switch to the query mode once a query has been opened<br>
&gt;<br>
&gt;     As for the general question: IMHO the open/save actions are something<br>
&gt;     one does not use on each query. Thus, having additional buttons would<br>
&gt;     just further clutter the UI.<br>
&gt;     To be honest I would even prefer to have the query shorten action in the<br>
&gt;     menu (with a shortcut) rather than as an extra button in the query<br>
&gt;     window.<br>
&gt;<br>
&gt;     Cheers,<br>
&gt;     Sebastian<br>
&gt;<br>
&gt;     On 03/21/2011 04:49 PM, Who Knows wrote:<br>
&gt;     &gt;   Hey sorry if i am making a new thread as i had digest mode on by<br>
&gt;     mistake.<br>
&gt;     &gt;<br>
&gt;     &gt;     2. Instead of adding two new buttons to the window you should<br>
&gt;     make use<br>
&gt;     &gt;<br>
&gt;     &gt;     of KDE&#39;s XMLGui stuff. This means that you create two KActions<br>
&gt;     in the<br>
&gt;     &gt;     main window. In this case, since both open and save are<br>
&gt;     standard actions<br>
&gt;     &gt;     used throughout many many KDE applications all you need to do<br>
&gt;     is call<br>
&gt;     &gt;<br>
&gt;     &gt;     KStandardActions::open and ::save. Connect the actions to the<br>
&gt;     slots<br>
&gt;     &gt;     instead of the buttons. KDE should take care of putting the<br>
&gt;     actions into<br>
&gt;     &gt;     the menu automatically.<br>
&gt;     &gt;<br>
&gt;     &gt; but according to junior job &quot;open/save actions which are only<br>
&gt;     enabled in<br>
&gt;     &gt; query mode.&quot; so wouldn&#39;t it be better if we had buttons then adding<br>
&gt;     &gt; KActions in the main window other than that i have sort out the other<br>
&gt;     &gt; issues.<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; Nepomuk mailing list<br>
</div></div>&gt;     &gt; <a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;<br>
<div class="im">&gt;     &gt; <a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
&gt;     _______________________________________________<br>
&gt;     Nepomuk mailing list<br>
</div>&gt;     <a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;<br>
<div><div></div><div class="h5">&gt;     <a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>