augment Qt Info menu

Add ^X (as "Attributes (extended status)") to the "Info" drop down
menu, also Overview, and Annotate.

Attributes and Overview work, Annotate results in running southeast.
Existing entries Conduct, Adjust, and Skills execute nethack's '?'
command so I didn't bother holding back on adding Annotate.  Other
existing entries (Inventory, Discoveries, Spells, and Name) work.
If there's any sort of pattern involved, I'm not seeing it.

The Game menu has "Save", which shows up and works, but that's
supposed to be followed by "Quit" which doesn't show up when the
menu is used.  This doesn't attempt to deal with that.

Command+q keystroke, which should close the application, behaves
the same as previously mentioned "quit nethack" in nethack menu:
runs nethack's '?' command and then resumes play.
This commit is contained in:
PatR
2020-08-05 12:48:12 -07:00
parent addebf7090
commit 318a56669d
2 changed files with 7 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.273 $ $NHDT-Date: 1596652492 2020/08/05 18:34:52 $
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.274 $ $NHDT-Date: 1596656886 2020/08/05 19:48:06 $
General Fixes and Modified Features
-----------------------------------
@@ -356,6 +356,8 @@ Qt: clicking on the window's Close button brought up a dialog offering
infinite loop with complaints about Qt's event loop already being
active; change dialog: offer "Save and exit" or "Quit without saving"
with no opportunity to try to back out of the Close operation
Qt: add 3.6 status fields Stone, Slime, Strngl, Deaf, Lev, Fly, Ride
Qt: add Attributes, Overview, and Annotate to the "Info" pull down menu
tiles: add indicator of thonged portion to aklys tile
tty: role and race selection menus weren't filtering out potential choices
which got excluded by OPTIONS=align:!lawful or !neutral or !chaotic

View File

@@ -631,12 +631,15 @@ NetHackQtMainWindow::NetHackQtMainWindow(NetHackQtKeyBuffer& ks) :
{ help, 0, 1},
{ info, "Inventory", 3, ddoinv},
{ info, "Attributes (extended status)", 3, doattributes },
{ info, "Overview", 3, dooverview },
{ info, "Conduct", 3, doconduct},
{ info, "Discoveries", 3, dodiscovered},
{ info, "List/reorder spells", 3, dovspell},
{ info, "Adjust letters", 2, doorganize},
{ info, "Adjust inventory letters", 2, doorganize },
{ info, 0, 3},
{ info, "Name object or creature", 3, docallcmd},
{ info, "Annotate level", 2, donamelevel },
{ info, 0, 3},
{ info, "Skills", 3, enhance_weapon_skill},