[Nepomuk] Re: Load/Save queries
Who Knows
who828 at gmail.com
Tue Mar 22 11:20:43 CET 2011
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.
On Tue, Mar 22, 2011 at 12:15 AM, Sebastian Trüg <trueg at kde.org> wrote:
> Right, I did not think about that.
>
> Well, one possibility would be to create another action
> m_openQueryAction and add it to the actionCollection(). But then you
> have to add that to the menu manually by editing nepomukshellui.rc:
> - Increase the version
> - Add the action in the file section
>
> In addition I think it would make sense to also name the current open
> action "Open Resource" and name the save action "Save query". Then only
> activate the save action if the query window is open.
>
> Cheers,
> Sebastian
>
> On 03/21/2011 07:15 PM, Who Knows wrote:
> > 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
> > <mailto: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 <mailto:Nepomuk at kde.org>
> > > https://mail.kde.org/mailman/listinfo/nepomuk
> > _______________________________________________
> > Nepomuk mailing list
> > Nepomuk at kde.org <mailto: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/20110322/0444626d/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 4869 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/nepomuk/attachments/20110322/0444626d/attachment-0001.diff
More information about the Nepomuk
mailing list