Bug 62736 - File Already Exists Dialog Flies Off the Screen Due To Long File Names! (makes KDE look very unpolished)
Summary: File Already Exists Dialog Flies Off the Screen Due To Long File Names! (make...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: uiserver (show other bugs)
Version: 3.1.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-15 23:26 UTC by Alex Radu
Modified: 2013-02-02 20:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
here's what I mean (310.24 KB, image/jpeg)
2003-08-15 23:28 UTC, Alex Radu
Details
KDE 3.5: 'File already exists' window too large for certain files (77.96 KB, image/png)
2006-01-05 04:09 UTC, Travis Evans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Radu 2003-08-15 23:26:16 UTC
Version:           3.1.3 (using KDE KDE 3.1.3)
Installed from:    SuSE RPMs
OS:          Linux

How to reproduce:

Go to: http://www.java.com/en/download/manual.jsp
Click download next to Linux RPM.
Download a small amount of time, 1% or whatver than cancel.
Now click download again and save the file in the same directory.

An unbelievably long "File Already Exists" dialog will take up  your screen real estate and you will be forced to move it to the left constantly in order to reach the buttons and finally be able to acess another application.

This happenes because the source file has an extremely long name and the dialog, isntead of making a new row keeps writting this extremely long name in the same row. The same thing would happen if you have a really long similar file and the source file is not so long.

This makes KDE look unpolished and poorly designed so I really hope this si fixed before 3.2.
Comment 1 Alex Radu 2003-08-15 23:28:58 UTC
Created attachment 2247 [details]
here's what I mean

And the weird part is that the dialog is twice as wide as you actually get to
see on screen.
Comment 2 Stephan Kulow 2003-08-16 09:42:09 UTC
Subject: Re:  New: File Already Exists Dialog Flies Off the Screen Due To Long File Names! (makes KDE look very unpolished)

Am Friday 15 August 2003 23:26 schrieb Alex Radu:
> This makes KDE look unpolished and poorly designed so I really hope this si
> fixed before 3.2.

Hmm, to me it makes java.com look silly and stupid me, but oppinions on 
that may differ.

Greetings, Stephan

Comment 3 Alex Radu 2003-08-16 19:00:22 UTC
Well, that's a long link, makes nothing look stupid but KDE. There are lots of servers 
using very long links, but the one you actually type is usually not long. 
 
Now, maybe it would be a little friendlier to the users if the links weren't so long, but 
as I already said many have such long links and the user shouldn't really care or be 
affected by this. KDE, imo should adapt to this by creating new rows, instead of 
expanding one row to the right until it can display the long link. 
 
 
Comment 4 Dawit Alemayehu 2003-10-13 07:21:10 UTC
Subject: kdelibs/kio/kio

CVS commit by adawit: 

- Use a squeezed text label to stop the rename dialog box from getting
  ridiculously large. Fixes BR# 62736.

CCMAIL: 62736-done@bugs.kde.org


  M +21 -17    renamedlg.cpp   1.67


--- kdelibs/kio/kio/renamedlg.cpp  #1.66:1.67
@@ -47,4 +47,5 @@
 #include <kstdguiitem.h>
 #include <kguiitem.h>
+#include <ksqueezedtextlabel.h>
 
 using namespace KIO;
@@ -229,5 +230,6 @@ RenameDlg::RenameDlg(QWidget *parent, co
             else
                 sentence1 = i18n("A newer item named '%1' already exists.");
-            QLabel * lb1 = new QLabel( sentence1.arg(KStringHandler::csqueeze(d->dest,100)), this );
+            
+            QLabel * lb1 = new KSqueezedTextLabel( sentence1.arg(d->dest), this );
             gridLayout->addMultiCellWidget( lb1, 0, 0, 0, 1 ); // takes the complete first line
 
@@ -264,5 +266,5 @@ RenameDlg::RenameDlg(QWidget *parent, co
                 gridLayout->addRowSpacing( 4, 20 );
 
-                QLabel * lb2 = new QLabel( i18n("The source file is '%1'").arg(d->src), this );
+                QLabel * lb2 = new KSqueezedTextLabel( i18n("The source file is '%1'").arg(d->src), this );
                 gridLayout->addMultiCellWidget( lb2, 5, 5, 0, 1 ); // takes the complete first line
 
@@ -303,11 +305,13 @@ RenameDlg::RenameDlg(QWidget *parent, co
         QString sentence1;
         if (mtimeDest < mtimeSrc)
-            sentence1 = i18n("An older item than '%1' already exists.\n").arg(d->src);
+            sentence1 = i18n("An older item than '%1' already exists.\n");
         else if (mtimeDest == mtimeSrc)
-            sentence1 = i18n("A similar file named '%1' already exists.").arg(d->src);
+            sentence1 = i18n("A similar file named '%1' already exists.\n");
         else
-            sentence1 = i18n("A newer item than '%1' already exists.\n").arg(d->src);
+            sentence1 = i18n("A newer item than '%1' already exists.\n");
 
-        QLabel *lb = new QLabel( sentence1 + i18n("Do you want to use another file name?"), this );
+        sentence1 +=  i18n("Do you want to use another file name ?");            
+        
+        QLabel *lb = new KSqueezedTextLabel ( sentence1.arg(d->src), this );
         d->m_pLayout->addWidget(lb);
     }


Comment 5 Alex Radu 2003-10-14 00:48:51 UTC
Thank you fixing it! this was really annoying and unprofessional.
Comment 6 Travis Evans 2006-01-05 03:58:34 UTC
I request that this bug be reopened. I'm seeing this problem in KDE 3.5. If I rename a file with a long name in Konqueror, the File Already Exists dialog is too long and goes off the screen. Spaces in file names appear as '%20', and the dialog looks like the one in the attached screenshot. The buttons are off the right side of the screen and inaccessible.
Comment 7 Travis Evans 2006-01-05 04:06:34 UTC
Okay, it appears that this only happens for certain types of files--in this case, an MP3 file.
Comment 8 Travis Evans 2006-01-05 04:09:22 UTC
Created attachment 14138 [details]
KDE 3.5: 'File already exists' window too large for certain files
Comment 9 Stephan Binner 2006-01-08 10:59:03 UTC
What's the right category for kdeaddons/renamedlgplugins?
Comment 10 Dario Andres 2009-05-06 21:08:40 UTC
Here using:

Qt: 4.5.1 (qt-copy  960517)
KDE: 4.2.71 (KDE 4.2.71 (KDE 4.3 >= 20090428))
kdelibs svn rev. 963904 / kdebase svn rev. 963904
on ArchLinux i686 - Kernel 2.6.29.1

The konqueror web-to-hd file already exists dialog is fixed (bug 51507)
The copy dialog comparing MP3 also uses KSqueezedTextLabel, so long URLs are chopped and an ellipsis is included in the middle ("..."). The dialog is freely resizable.
Comment 11 Dawit Alemayehu 2013-02-02 20:54:16 UTC
KDE 3 is no longer maintained. Additionally, the uiserver and KIO dialogs in general are substantially different in KDE 4 than the ones found in KDE 3. 

As such this bug is deemed no longer applicable. Feel free to reopen this ticket if you feel that is not the correct assessment and the bug is still applicable to the KDE 4.x branch.