[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: File move dialog
From: dmitry chernov <diman4ik.chernov () gmail ! com>
Date: 2011-02-09 18:27:17
Message-ID: AANLkTinppuhp+YwPfMCc9Va2nXT7_xWq7SXqy1WOvewM () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I actually found it myself, thank you anyway.
On Tue, Feb 8, 2011 at 10:50 PM, David Faure <faure@kde.org> wrote:
> On Wednesday 02 February 2011, Kevin Krammer wrote:
> > On Wednesday, 2011-02-02, dmitry chernov wrote:
> > > On Wed, Feb 2, 2011 at 5:33 PM, Kevin Krammer <kevin.krammer@gmx.at>
> wrote:
> > > > On Wednesday, 2011-02-02, dmitry chernov wrote:
> > > > > In dolphin, when you move file to directory where a file with such
> > > > > name already exists, there appears a dialog titled FileAlready
> > > > > Exists, wuth choces : Rename, Overwrite, Cancel. How I can use this
> > > > > dialog in my application? ( What is the class, which header to
> > > > > include? ). Thanks in advance.
> > > >
> > > > What is your use case?
> > > >
> > > > Wouldn't it be easier to just use KIO::file_move()?
> > > >
> > > > Cheers,
> > > > Kevin
> > > >
> > > > --
> > > > Kevin Krammer, KDE developer, xdg-utils developer
> > > > KDE user support, developer mentoring
> > > >
> > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > > >
> > > > unsubscribe <<
> > > >
> > > > Moving of images, I'd like such a fialog. Simply using
> KIO::file_move()
> > >
> > > simply returns error if a file already exists.
> >
> > I see, I thought the job would do that internally.
>
> KIO::move can move anything (files and dirs), and indeed does this
> internally
> (shows the rename dialog).
>
> KIO::file_move is more low-level and just moves one file, no dialogs.
>
> --
> David Faure, faure@kde.org, http://www.davidfaure.fr
> Sponsored by Nokia to work on KDE, incl. Konqueror (
> http://www.konqueror.org).
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
[Attachment #5 (text/html)]
I actually found it myself, thank you anyway.<br><br><div class="gmail_quote">On Tue, \
Feb 8, 2011 at 10:50 PM, David Faure <span dir="ltr"><<a \
href="mailto:faure@kde.org">faure@kde.org</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> <div class="im">On Wednesday 02 February 2011, Kevin \
Krammer wrote:<br> > On Wednesday, 2011-02-02, dmitry chernov wrote:<br>
> > On Wed, Feb 2, 2011 at 5:33 PM, Kevin Krammer <<a \
href="mailto:kevin.krammer@gmx.at">kevin.krammer@gmx.at</a>><br> wrote:<br>
> > > On Wednesday, 2011-02-02, dmitry chernov wrote:<br>
> > > > In dolphin, when you move file to directory where a file with \
such<br> > > > > name already exists, there appears a dialog titled \
FileAlready<br> > > > > Exists, wuth choces : Rename, Overwrite, Cancel. \
How I can use this<br> > > > > dialog in my application? ( What is the \
class, which header to<br> > > > > include? ). Thanks in advance.<br>
> > ><br>
> > > What is your use case?<br>
> > ><br>
> > > Wouldn't it be easier to just use KIO::file_move()?<br>
> > ><br>
> > > Cheers,<br>
> > > Kevin<br>
> > ><br>
> > > --<br>
> > > Kevin Krammer, KDE developer, xdg-utils developer<br>
> > > KDE user support, developer mentoring<br>
> > ><br>
> > > >> Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to<br> > \
> ><br> > > > unsubscribe <<<br>
> > ><br>
> > > Moving of images, I'd like such a fialog. Simply using \
KIO::file_move()<br> > ><br>
> > simply returns error if a file already exists.<br>
><br>
> I see, I thought the job would do that internally.<br>
<br>
</div>KIO::move can move anything (files and dirs), and indeed does this \
internally<br> (shows the rename dialog).<br>
<br>
KIO::file_move is more low-level and just moves one file, no dialogs.<br>
<font color="#888888"><br>
--<br>
David Faure, <a href="mailto:faure@kde.org">faure@kde.org</a>, <a \
href="http://www.davidfaure.fr" target="_blank">http://www.davidfaure.fr</a><br> \
Sponsored by Nokia to work on KDE, incl. Konqueror (<a \
href="http://www.konqueror.org" target="_blank">http://www.konqueror.org</a>).<br> \
</font><div><div></div><div class="h5"><br> >> Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe <<<br> </div></div></blockquote></div><br>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic