Bug 26937 - show filename when hovering over the "save" option in the toolbar
Summary: show filename when hovering over the "save" option in the toolbar
Status: RESOLVED FIXED
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KOffice List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-08 19:33 UTC by allabos
Modified: 2005-04-06 15:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Faure 2001-06-08 19:04:59 UTC
On Friday 08 June 2001 21:32 allabos@freeler.nl wrote:
> Package: kword
> Version: KDE 2.2.0 CVS/CVSup/Snapshot
> Severity: wishlist
> Installed from:    Compiled sources
> Compiler:          Not Specified
> OS:                Linux
> OS/Compiler notes: Not Specified
> 
> show filename in a tooltip window (the
> yellow box that pops ups when hovering 
> over a toolbar option) when hovering over 
> the "save" option in the toolbar.
> 
> I saw this in an app and I liked it it's
> short and informative.

Hrm ? The filename is already in the window caption....

Strange idea (IMHO)

-- 
David FAURE david@mandrakesoft.com faure@kde.org
http://perso.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today
Comment 1 allabos 2001-06-08 19:32:12 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kword
Version:           KDE 2.2.0 CVS/CVSup/Snapshot
Severity:          wishlist
Installed from:    Compiled sources
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

show filename in a tooltip window (the
yellow box that pops ups when hovering 
over a toolbar option) when hovering over 
the "save" option in the toolbar.

I saw this in an app and I liked it it's
short and informative.


(Submitted via bugs.kde.org)
Comment 2 allabos 2001-06-08 21:06:27 UTC
On Friday 8 June 2001 21:04 you wrote:
> Hrm ? The filename is already in the window caption....

That's static and one must really lift the eye to the window caption and 
look for the filename.

> Strange idea (IMHO)

Strange or different doesn't matter.  It's differs from the window caption 
as it pops up when the mouse is hovering over the save option.  At that 
moment it attracts the eye and the user is told that the format is not 
anylonger "kwd" but "html" for instance.

It really borthers me that I lost *kwd formatted information as the doc 
became saved as in my case html.  I don't want this to happen to others.
Fortenately I could mouse back the text I "lost" (in the kwd file) back from 
the html file into the kwd file.

-- 
Richard Bos
For those who have no (/)home the journey is endless
Comment 3 Werner Trobin 2002-10-01 12:03:24 UTC
No idea if that makes sense, but if we want to do it we have to do it in the 
koffice libs -> reassigned 
Comment 4 Brad Hards 2004-06-14 13:57:35 UTC
http://bugs.kde.org/show_bug.cgi?id=26937 is long standing and potentially 
dubious wishlist request that basically seeks to use the current filename as 
the tooltip for the save menubar button.

The code that can implement it is trivial (see below) but the usability of 
this needs to be worked. I'd be just as happy to close it as WONTFIX or to 
commit the change (after 3.3, of course).

Any thoughts or suggestions?

Brad

Index: koMainWindow.cc
===================================================================
RCS file: /home/kde/koffice/lib/kofficecore/koMainWindow.cc,v
retrieving revision 1.330
diff -u -4 -p -r1.330 koMainWindow.cc
--- koMainWindow.cc     2 Jun 2004 22:20:15 -0000       1.330
+++ koMainWindow.cc     14 Jun 2004 11:54:06 -0000
@@ -536,15 +536,17 @@ void KoMainWindow::updateCaption()
           caption = rootDocument()->url().prettyURL( 0, 
KURL::StripFileProtocol );
       }

       setCaption( caption, rootDocument()->isModified() );
+      d->m_paSave->setToolTip( caption );
   }
 }

 void KoMainWindow::updateCaption( QString caption, bool mod )
 {
   //kdDebug(30003)<<"KoMainWindow::updateCaption("<<caption<<","<<mod<<")"<<endl;
   setCaption( caption, mod );
+  d->m_paSave->setToolTip( caption );
 }

 KoDocument *KoMainWindow::rootDocument() const
 {

Comment 5 Thomas Zander 2004-06-14 15:07:27 UTC
On Monday 14 June 2004 13:56, Brad Hards wrote:
> http://bugs.kde.org/show_bug.cgi?id=26937 is long standing and potentially
> dubious wishlist request that basically seeks to use the current filename
> as the tooltip for the save menubar button.
>
> The code that can implement it is trivial (see below) but the usability of
> this needs to be worked. I'd be just as happy to close it as WONTFIX or to
> commit the change (after 3.3, of course).

At the very least it should still keep the "Save" string.  So there would be a 
new string "Save %1".

The bugreport said that the filetype was not visible in the window-title and 
that made him loose data.
The extention IS currently present in the window-title, and koffice-libs make 
sure that the extention is changed if a new fileformat is chosen as basic 
fileformat. (The one used on 'save')

IMO the bug is closed with the change a year ago that makes sure the extention 
is changed for a different filetype. And if this problem still needs solving 
then I suggest to rename the save-menu-item and the tooltip for the 
save-toolbar-button to something like:
"Save in format %1" where %1 is taken from the current output-filter and is 
something like: "HTML", or "Plain text"
since that is what the 'Save' button actually does.

Comment 6 Fredrik Edemar 2005-04-06 15:12:12 UTC
CVS commit by fedemar: 

Wish 26937: show filename in a tool tip window when hovering over the "save" icon in the toolbar.

FEATURE: 26937


  M +4 -0      koMainWindow.cc   1.345


--- koffice/lib/kofficecore/koMainWindow.cc  #1.344:1.345
@@ -481,4 +481,8 @@ void KoMainWindow::updateCaption()
 
       setCaption( caption, rootDocument()->isModified() );
+      if ( !rootDocument()->url().fileName(false).isEmpty() )
+        d->m_paSave->setToolTip( i18n("Save as %1").arg(rootDocument()->url().fileName(false)) );
+      else
+        d->m_paSave->setToolTip( i18n("Save") );
   }
 }