Delete dialog changes in JuK

I spent 5 hours today fighting with KDialogBase over a new delete dialog for JuK. At first I thought I was having problems because of the use of Qt Designer, but it turned out that hand-coding the widgets into the code resulted in the exact same problem.

Turns out that for whatever reason, you have to add your own layouts in some modes of KDialogBase (namely, the one that actually worked, Plain).

I’m doing this work in the hopes of being able to re-enable the file-deletion feature of JuK. (I’m the kind of guy who is always holding Shift when clicking on Delete in Windows to keep the file out of the Recycle Bin). Scott and I have been discussing how we might do this, but I forgot to write it down, so I’ve pretty much forgotten everything. :-(

I think the conclusion (if we reached one) was that there would be a checkbox in the dialog to delete the files instead of trashing them. There is no checkbox in CVS yet, but that won’t be hard to add. I wanted to commit my current changes before going to bed since they at least have the benefit of changing the default action from Delete to Cancel, which is suprisingly hard to achieve with KMessageBox.