Review Request: Rename all files or folders and create "apply to all" checkbox in KIO rename dialog

Todd toddrme2178 at gmail.com
Wed Nov 25 17:19:29 GMT 2009



> On 2009-11-25 16:40:43, Parker Coates wrote:
> > Since this feature isn't included in the 4.4 feature plan, it is simply too late for inclusion in KDE SC 4.4.
> > 
> > But for 4.5, this seems like a good idea. I'm not familiar with the KIO code, but I did notice a few general things.

It is in the feature plan.  

Under kdelibs:

IN PROGRESS 	 kio 	 Support for automatically renaming conflicting files during copy and move operations 	 Todd <toddrme2178 at gmail.com>


> On 2009-11-25 16:40:43, Parker Coates wrote:
> > /trunk/KDE/kdelibs/kio/kio/copyjob.cpp, line 889
> > <http://reviewboard.kde.org/r/2281/diff/2/?file=15057#file15057line889>
> >
> >     The usage of curly braces is inconsistent. Looking around, it seems that there were inconsistencies even before your patch. Generally in such cases all new code should follow the kdelibs coding style.

I tried to keep everything as consistent as possible with the surrounding code.


> On 2009-11-25 16:40:43, Parker Coates wrote:
> > /trunk/KDE/kdelibs/kio/kio/renamedialog.cpp, lines 71-73
> > <http://reviewboard.kde.org/r/2281/diff/2/?file=15060#file15060line71>
> >
> >     If the "* All" buttons don't exist anymore, their pointers should be removed.

I'll do that.


> On 2009-11-25 16:40:43, Parker Coates wrote:
> > /trunk/KDE/kdelibs/kio/kio/renamedialog.cpp, lines 529-532
> > <http://reviewboard.kde.org/r/2281/diff/2/?file=15060#file15060line529>
> >
> >     These *AllPressed() slots aren't used anymore either, are they? If that's the case, they should be removed.

Wouldn't that break API compatibility?  Those are public slots, so I didn't want to remove them.


On 2009-11-25 16:40:43, Todd wrote:
> > Some screenshots would also be nice if you want feedback on the UI.
> > 
> >

It is in the feature plan.  

Under kdelibs:

IN PROGRESS 	 kio 	 Support for automatically renaming conflicting files during copy and move operations 	 Todd <toddrme2178 at gmail.com>


- Todd


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2281/#review3264
-----------------------------------------------------------


On 2009-11-25 14:20:36, Todd wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/2281/
> -----------------------------------------------------------
> 
> (Updated 2009-11-25 14:20:36)
> 
> 
> Review request for kdelibs.
> 
> 
> Summary
> -------
> 
> This patch makes two changes to the KIO file rename dialog box (the dialog box that appears when there is a file or folder name conflict when moving or copying files).  First, it adds the ability to automatically rename the files using the default file renaming rules (what you would get if you clicked "Suggest Name" once).  This is useful to avoid data loss, since you will not overwrite duplicate files or folders.
> 
> Second, because there are already a lot of possible buttons in the dialog box (rename, suggest name, overwrite, overwrite all, skip, auto skip, resume, resume all, and cancel), and since this patch would add another button, this patch eliminates "overwrite all", "auto skip", and "resume all" buttons and adds a single "apply to all" check box.  This check box changes each single-file button action to its corresponding multi-file action.  So when checked, "overwrite" behaves as "overwrite all", "skip" behaves as "auto skip", etc.  So despite the increased functionality this leads to a net reduction of up to 2 buttons, depending on the circumstances.
> 
> I know this is very late, but I think it is an important feature since there are several bug reports requesting this.  This is my first submission to KDE, so I apologize beforehand if the patch is not perfect.  I tried to follow KDE style guidelines, but there may be some commonly accepted conventions I am not aware of. 
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdelibs/kio/kio/jobuidelegate.cpp 1053922 
>   /trunk/KDE/kdelibs/kio/kio/renamedialog.h 1053922 
>   /trunk/KDE/kdelibs/kio/kio/renamedialog.cpp 1053922 
>   /trunk/KDE/kdelibs/kio/kio/copyjob.cpp 1053922 
> 
> Diff: http://reviewboard.kde.org/r/2281/diff
> 
> 
> Testing
> -------
> 
> I have used this dialog box under various combinations of file and/or folder conflicts with all of the buttons.  It appears to work fine.
> 
> 
> Thanks,
> 
> Todd
> 
>





More information about the kde-core-devel mailing list