Discussion:
[PATCH] Cleaner windows title
(too old to reply)
Jean-Marc Lasgouttes
2011-07-18 18:47:48 UTC
Permalink
It occurred to me that it is better to let Qt make a nice windows title
for us. The following patch does that (Qt >= 4.4).

The main gain is to get the sexy mac os features that are useless and
therefore a must-have

- a black dot in the windows close button to indicate that the file is
modified

- a small icon beside the file name in the title bar. This icon is a
proxy for the file that can be dragged and dropped easily; moreover
Command-click on the icon shows the path up to the file and allows to
open the finder

- "LyX" is not shown anymore in the title bar (the main menu bar does
that already)

For other OSes, one just gets a name "LyX -- file.lyx", along with a
star for dirty documents.

The problem is what we lose to pieces of information:
- version control
- read only

I think these hints should move to small dedicated areas of the status
bar (and I'd prefer SVN/CVS/RCS to Version Control), where theu would be
easier to spot. However, I do not know how to do that, and therefore I
just drop this patch here for whoever knows how to go forward.

JMarc
BH
2011-07-19 03:54:42 UTC
Permalink
On Mon, Jul 18, 2011 at 2:47 PM, Jean-Marc Lasgouttes
It occurred to me that it is better to let Qt make a nice windows title for
us. The following patch does that (Qt >= 4.4).
The main gain is to get the sexy mac os features that are useless and
therefore a must-have
- a black dot in the windows close button to indicate that the file is
 modified
- a small icon beside the file name in the title bar. This icon is a
 proxy for the file that can be dragged and dropped easily; moreover
 Command-click on the icon shows the path up to the file and allows to
 open the finder
- "LyX" is not shown anymore in the title bar (the main menu bar does
 that already)
Works well for me -- I use the title bar icon all the time (which can
also be used to reveal the complete path to the file and navigate to
any folder in the path).
For other OSes, one just gets a name "LyX -- file.lyx", along with a star
for dirty documents.
- version control
- read only
I think these hints should move to small dedicated areas of the status bar
(and I'd prefer SVN/CVS/RCS to Version Control), where theu would be easier
to spot. However, I do not know how to do that, and therefore I just drop
this patch here for whoever knows how to go forward.
I agree: the status bar is underutilized.

BH
Jean-Marc Lasgouttes
2011-07-19 08:19:46 UTC
Permalink
Post by BH
Works well for me -- I use the title bar icon all the time (which can
also be used to reveal the complete path to the file and navigate to
any folder in the path).
Unfortunately, I cannot have only this part, since Qt does not do the
icon thing if I set the windows title by hand. So we need a home for
version control and read only.

JMarc

Loading...