[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">&lt;<a \
href="mailto:faure@kde.org">faure@kde.org</a>&gt;</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> &gt; On Wednesday, 2011-02-02, dmitry chernov wrote:<br>
&gt; &gt; On Wed, Feb 2, 2011 at 5:33 PM, Kevin Krammer &lt;<a \
href="mailto:kevin.krammer@gmx.at">kevin.krammer@gmx.at</a>&gt;<br> wrote:<br>
&gt; &gt; &gt; On Wednesday, 2011-02-02, dmitry chernov wrote:<br>
&gt; &gt; &gt; &gt; In dolphin, when you move file to directory where a file with \
such<br> &gt; &gt; &gt; &gt; name already exists, there appears a dialog titled \
FileAlready<br> &gt; &gt; &gt; &gt; Exists, wuth choces : Rename, Overwrite, Cancel. \
How I can use this<br> &gt; &gt; &gt; &gt; dialog in my application? ( What is the \
class, which header to<br> &gt; &gt; &gt; &gt; include? ). Thanks in advance.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; What is your use case?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Wouldn&#39;t it be easier to just use KIO::file_move()?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Cheers,<br>
&gt; &gt; &gt; Kevin<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Kevin Krammer, KDE developer, xdg-utils developer<br>
&gt; &gt; &gt; KDE user support, developer mentoring<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; 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> &gt; \
&gt; &gt;<br> &gt; &gt; &gt; unsubscribe &lt;&lt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Moving of images, I&#39;d like such a fialog. Simply using \
KIO::file_move()<br> &gt; &gt;<br>
&gt; &gt; simply returns error if a file already exists.<br>
&gt;<br>
&gt; 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> &gt;&gt; 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 &lt;&lt;<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