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"><<a href="mailto:trueg@kde.org">trueg@kde.org</a>></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 "Open Resource" and name the save action "Save query". 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>
> okay i implemented the save feature which wasn't tough but what about<br>
> the open feature as KStandardAction::open is already being used for<br>
> opening resources so how do i approach this one ?<br>
><br>
><br>
> On Mon, Mar 21, 2011 at 9:51 PM, Sebastian Trüg <<a href="mailto:trueg@kde.org">trueg@kde.org</a><br>
</div><div><div></div><div class="h5">> <mailto:<a href="mailto:trueg@kde.org">trueg@kde.org</a>>> wrote:<br>
><br>
> 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<br>
> window.<br>
><br>
> Cheers,<br>
> Sebastian<br>
><br>
> On 03/21/2011 04:49 PM, Who Knows wrote:<br>
> > Hey sorry if i am making a new thread as i had digest mode on by<br>
> mistake.<br>
> ><br>
> > 2. Instead of adding two new buttons to the window you should<br>
> make use<br>
> ><br>
> > of KDE's XMLGui stuff. This means that you create two KActions<br>
> in the<br>
> > main window. In this case, since both open and save are<br>
> standard actions<br>
> > used throughout many many KDE applications all you need to do<br>
> is call<br>
> ><br>
> > KStandardActions::open and ::save. Connect the actions to the<br>
> slots<br>
> > instead of the buttons. KDE should take care of putting the<br>
> actions into<br>
> > the menu automatically.<br>
> ><br>
> > but according to junior job "open/save actions which are only<br>
> enabled in<br>
> > query mode." so wouldn't it be better if we had buttons then adding<br>
> > KActions in the main window other than that i have sort out the other<br>
> > issues.<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Nepomuk mailing list<br>
</div></div>> > <a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> <mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>><br>
<div class="im">> > <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>
</div>> <a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> <mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>><br>
<div><div></div><div class="h5">> <a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
><br>
><br>
</div></div></blockquote></div><br>