Peter Kümmel wrote:
Am Mittwoch, 29. November 2006 11:40 schrieb Enrico Forestieri:
On Wed, Nov 29, 2006 at 09:50:51AM +0100, Peter Kümmel wrote:
The geometry option is a feature of the linux windows
manager/x-server(?), and is not availabale on Windows.
Are you sure? The Qt3 frontend handles it pretty good on Windows, too.
Currently only the geometry option is passed with it's arguments to the
system, but Windows couldn't handle it:
lyx_main.C
if (support::compare(argv[i], "-geometry") == 0)
geometryOption_ = true;
...
if (geometryOption_) {
width = 0;
height = 0;
}
I don't plan to emulate the geometry option on Windows, because
now the restoring of the windows size works fine.
I am not sure it has to be emulated, unless something changed in this
respect in Qt4. I badly miss this option, maybe because I am not a
typical Windows user and expect that it works as it should. I use LyX
through scripts for doing different jobs and in some cases I want that
the LyX window has small dimensions. This was working before and if it
doesn't work anymore, it is a regression, and a bad one from my point
of view... I begin thinking that nuking the Qt3 frontend was not such
a bright idea... Seems Qt4 has severe limitations in some area...
I could continue ranting forever if I can't have back -geometry ;-)
OK, I will have a look at the qt3 sources.
The Qt4.2 doc implicitly says that -geometry option is supported only on
X11:
The X11 version of Qt also supports some traditional X11 command line
options:
-display display, sets the X display (default is $DISPLAY).
-geometry geometry, sets the client geometry of the first window that is
shown.
-fn or -font font, defines the application font. The font should be
specified using an X logical font description.
-bg or -background color, sets the default background color and an
application palette (light and dark shades are calculated).
-fg or -foreground color, sets the default foreground color.
-btn or -button color, sets the default button color.
-name name, sets the application name.
-title title, sets the application title.
-visual TrueColor, forces the application to use a TrueColor visual on
an 8-bit display.
-ncols count, limits the number of colors allocated in the color cube on
an 8-bit display, if the application is using the
QApplication::ManyColor color specification. If count is 216 then a
6x6x6 color cube is used (i.e. 6 levels of red, 6 of green, and 6 of
blue); for other values, a cube approximately proportional to a 2x3x1
cube is used.
-cmap, causes the application to install a private color map on an 8-bit
display.
Abdel.