okay i implemented the save feature which wasn&#39;t tough but what about the open feature as KStandardAction::open is already being used for opening resources so how do i approach this one ?<br><br><br><div class="gmail_quote">
On Mon, Mar 21, 2011 at 9:51 PM, 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;">
well, there are at least 2 solutions to the issue:<br>
1. only enable the actions in the query mode<br>
2. Switch to the query mode once a query has been opened<br>
<br>
As for the general question: IMHO the open/save actions are something<br>
one does not use on each query. Thus, having additional buttons would<br>
just further clutter the UI.<br>
To be honest I would even prefer to have the query shorten action in the<br>
menu (with a shortcut) rather than as an extra button in the query window.<br>
<br>
Cheers,<br>
Sebastian<br>
<div><div></div><div class="h5"><br>
On 03/21/2011 04:49 PM, Who Knows wrote:<br>
&gt;   Hey sorry if i am making a new thread as i had digest mode on by mistake.<br>
&gt;<br>
&gt;     2. Instead of adding two new buttons to the window you should make use<br>
&gt;<br>
&gt;     of KDE&#39;s XMLGui stuff. This means that you create two KActions in the<br>
&gt;     main window. In this case, since both open and save are standard actions<br>
&gt;     used throughout many many KDE applications all you need to do is call<br>
&gt;<br>
&gt;     KStandardActions::open and ::save. Connect the actions to the slots<br>
&gt;     instead of the buttons. KDE should take care of putting the actions into<br>
&gt;     the menu automatically.<br>
&gt;<br>
&gt; but according to junior job &quot;open/save actions which are only enabled in<br>
&gt; query mode.&quot; so wouldn&#39;t it be better if we had buttons then adding<br>
&gt; KActions in the main window other than that i have sort out the other<br>
&gt; issues.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Nepomuk mailing list<br>
&gt; <a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a><br>
&gt; <a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
</blockquote></div><br>