[Nepomuk] Re: Load/Save queries

Who Knows who828 at gmail.com
Mon Mar 21 19:15:25 CET 2011


okay i implemented the save feature which wasn'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 ?


On Mon, Mar 21, 2011 at 9:51 PM, Sebastian Trüg <trueg at kde.org> wrote:

> well, there are at least 2 solutions to the issue:
> 1. only enable the actions in the query mode
> 2. Switch to the query mode once a query has been opened
>
> As for the general question: IMHO the open/save actions are something
> one does not use on each query. Thus, having additional buttons would
> just further clutter the UI.
> To be honest I would even prefer to have the query shorten action in the
> menu (with a shortcut) rather than as an extra button in the query window.
>
> Cheers,
> Sebastian
>
> On 03/21/2011 04:49 PM, Who Knows wrote:
> >   Hey sorry if i am making a new thread as i had digest mode on by
> mistake.
> >
> >     2. Instead of adding two new buttons to the window you should make
> use
> >
> >     of KDE's XMLGui stuff. This means that you create two KActions in the
> >     main window. In this case, since both open and save are standard
> actions
> >     used throughout many many KDE applications all you need to do is call
> >
> >     KStandardActions::open and ::save. Connect the actions to the slots
> >     instead of the buttons. KDE should take care of putting the actions
> into
> >     the menu automatically.
> >
> > but according to junior job "open/save actions which are only enabled in
> > query mode." so wouldn't it be better if we had buttons then adding
> > KActions in the main window other than that i have sort out the other
> > issues.
> >
> >
> >
> >
> > _______________________________________________
> > Nepomuk mailing list
> > Nepomuk at kde.org
> > https://mail.kde.org/mailman/listinfo/nepomuk
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20110321/88b94cf2/attachment.htm 


More information about the Nepomuk mailing list