Files
nethack/win/Qt/Qt-issues.txt
PatR 6bfd1c7e62 Qt's window menus
Qt on OSX is inserting "Search [_____]" as the first entry in
the Help dropdown menu (the one in the toolbar at the top of the
desttop).  While trying--and failing--to figure out how to get
rid of that, I cleaned up a little bit of the old menu hackery
(that tries to workaround the fact that Qt on OSX insists that
some menu actions--based solely on their names--should go into
the appication menu rather than whichever menu the program is
trying to insert them into).  The only observeable difference
is that 'About NetHack-Qt' will be at the top (actually second
because of that Search one) of the Help dropdown, where it is on
non-OSX builds, rather than last.

This tries to make the program name consistent too, changing
several instances of "Qt NetHack" to be "NetHack-Qt".  The latter
is the name being set up as ApplicationName in qt_bind.cpp that
gets used when Qt stashes the Qt-specific settings wherever it
stashes them.

It also makes another tweak in formatting of 'About NetHack-Qt',
inserting one explicit line break to avoid some poor looking line
wrapping.  I still haven't figured out how to control that popup's
size.
2020-12-05 19:37:03 -08:00

80 lines
3.8 KiB
Plaintext

Qt-NetHack issues
-----
Urgent: if the program crashes on OSX, a dialog box asking the user
whether to [ignore], [report], or [restart] will eventually appear
(it's slow). That should be repressed even if the report choice could
be directed at nethack.org.
Launching Qt nethack as a synchronous subprocess (ie, no trailing '&')
from a Terminal window, changing focus back to that terminal after
NetHack has started, and typing ^C was sending the program into an
endless loop in qt_nhgetch() with repeated messages to stderr
(the terminal) complaining that the event loop is already running.
Triggered by yn_function("Really quit?") in the core. That situation
has been reduced to a single event loop complaint, do downgraded from
"Urgent", but the prompt is auto-answered with ESC instead of letting
the user respond.
On OSX, if the program is run from nethackdir/nethack rather than from
NetHack.app/Contents/MacOS/nethack (plus having NetHack.app/Contents/
Info.plist containing pertinent information) then the menu bar at the
top of the screen won't accept mouse clicks and the application menu
entry in that menu bar will show as "nethack" (filename) rather than
"NetHack" (intended application name). The click issue can be worked
around by giving focus to some other application (which will put up
its own menu bar) and then back to nethack (thereby reloading nethack's
menu bar).
On OSX, a "Search [______]" action is inserted as the first entry of
the dropdown Help menu on the toolbar. NetHack has no control over
what it does or where it looks, so it should be eliminated somehow.
(It is not releated to nethack's search command, nor the interception
of an attempt to insert "Search" into the dropdown Action menu.)
Sometimes scrolling a menu leaves the displayed text not matching what
nethack thinks is displayed, so making a selection by mouse click may
occasionally pick the wrong item. There's usually a visual clue when
this happens. As long as it's not a pick-one menu, scrolling up and
down or back and worth a few times will usually get things back in
sync, then you can click on the wrong entry to uncheck it and then on
the right entry to check that. Making a selection by typing its
letter doesn't suffer from this, but isn't always possible (ie, long
menu like 'O's where first 52 items have letters but remainder don't).
On OSX, command+Q while a menu (which has its own key event handler)
is popped up gets ignored. It should at least close the popup like
ESC and maybe also initiate quitting.
On the map, ^V is a dead key (at least on OSX; all other ASCII control
characters from ^A through ^U, ^W through ^Z, and ^[, ^\, ^], ^^, ^_
work; no attempt to have ^@ generate NUL has been made).
Map column #0, which the core reserves for its own purposes and isn't
intended to be displayed, is displayed (as blank terrain).
3.7 status conditions haven't been implemented.
3.6 status conditions (Stone, Slime, Strngl, Deaf, Lev, Fly, Ride)
have been implemented but need icon artwork (one 40x40 tile for each).
In a menu window, typing ':' (via shift+something) works to initiate
a search without the need to click on the [Search] button. In a text
window, it does not, despite moving the menu key press interpretation
code into its own routine and calling that for both types of windows.
From the text window code, it sees the initial shift but not the ':'
that should follow.
Clicking on window close button pops up a confirmation dialog with
[ Save and exit ] [__Quit_without_saving__]
with the second one highlighted. Internally they're specified as
"&Save" and "&Quit". Typing <return> or <space> picks Quit, but
typing 'Q' or 'q' picks Save-and-exit because Alt+Q is expected for
the keyboard shortcut.
The status window can't be resized while hitpointbar is active.
Toggling it off, resizing as desired, then toggling it back on is a
viable workaround.
-----