Commit Graph
295 Commits
Author SHA1 Message Date
warwick 16b7d4a099 Store plname in save files (and restore it).
Move get_saved_games() functionality to files.c
Use moved get_saved_games() functionality in Qt windowport.
[also some non-enabled perminv code in Qt windowport]
2002-07-22 06:25:52 +00:00
warwick 7dd72e4ac2 Turn "_" into " ", since "Brave_Sir_Robin" looks yucky.
Proper fix is to store name in file.
2002-07-04 06:26:15 +00:00
warwick a495cf38ad Fix focus order for playerselection. 2002-07-01 05:06:56 +00:00
warwick 6fc29fb400 Avoid some key handling problems on Mac.
(will also be fixed another way in Qt/Mac, but I like to
be thorough :-)
2002-07-01 05:05:04 +00:00
warwick 7ca75f5806 Screens are getting bigger... make 64x64 the maximum scaled tile size. 2002-04-03 08:09:47 +00:00
cohrs 2031835cb0 One leftover height use in Qt tile support 2002-03-18 00:02:51 +00:00
cohrs b6189efe2a X11 wide tilemap support
- support X11 tile files (with or without XPM) that are 40 tiles wide
- rearrange some X11 code to share more code between XPM & non-XPM options
- clean out some deprecated X11/winmap.c #ifdefs
- update Qt code minimally to handle such an XPM file
2002-03-17 20:02:47 +00:00
warwick be7145d1a5 Workaround bug in SHARP SL5500 ROM.
(not essential for 3.4.0, since the SL5500 port still needs more work anyway)
2002-03-13 06:04:53 +00:00
warwick afae7f931c Sometimes there is no main widget. 2002-03-11 08:18:47 +00:00
jwalz c7325ee019 Run 'make depend', after fixing up output. 2002-03-09 03:13:18 +00:00
nethack.allison 742e1e8c90 3.3.2 to 3.4.0 2002-02-04 16:11:00 +00:00
warwick 6549930ee2 Qt: Fix default dialog button
In Qt 3, default button is always set to something... it was set to "Cancel"
in this case - not a good thing when you are granted a wish :-(
2002-02-04 10:23:30 +00:00
nethack.allison cb6a93641b Adjust window-port related option processing
to allow common parsing in the core, and direct access to the
results by the window port.

Notes:

o Adds a new field, wincap, to the window_procs
structure for setting bits related to the preference
features that the window port supports.  This allows
run-time determination of whether a particular option
setting is applicable to the running window port.  A
window-port is free to support as many, or as few,
of the available options as it wants.  Ensure that
only the ones supported have their corresponding bit
set in window_proc.wincap. [see chart in
doc/window.doc for help with that.]

o The settings I stuck into wincap for each window
port are almost certainly not accurate, so each port
team should review them.  You should only include
the ones that you will actually react to and make
adjustments for if the user changes that option.
Without the setting in wincap, the option won't even
show up in the 'O'ptions menu.

o preference_update() added to the window-port
interface, so that the window-port can be notified
if an option of interest (an option with its
corresponding bit set in wincap field) is
changed.

o provided a genl_preference_update() routine in
windows.c and used it for all the existing
window ports since they don't have a functional
one of their own yet.

o this messes around heavily with iflags and the options
arrays in options.c

o I hope I didn't break any port's existing code. I
tried not to.  The Mac however, in particular, should
be looked at because it suffered a namespace collision
with what I was working on around fontname.  It had
Mac specific font stuff in options.c. Please test
the Mac.
2002-02-03 05:31:47 +00:00
warwick 769396c648 remove debug message 2002-01-30 03:55:41 +00:00
warwick 654a297052 MacOSX/Qt system tweaks
These changes clean up build warnings and allow the resulting "NetHack"
Application icons to be dragged around freely in the Finder, as is expected
for Mac apps.
2002-01-24 05:49:04 +00:00
warwick dc493d6af2 Enough MacOS X documentation to answer FAQs. 2002-01-23 07:57:11 +00:00
warwick fe5a464dc3 Always use maximized window in Qt windowport. 2002-01-23 03:03:37 +00:00
warwick 93c5ecf3ea Qt GUI cleanup
Use "Alt+X", not "Alt-X".
This is actually *necessary* on MacOSX.
2002-01-23 01:02:37 +00:00
warwick 3c0c8b0516 Fix some crashes in unused tile editor.
tileedit is the program I use to edit tile files (directly).
2002-01-22 08:44:37 +00:00
warwick dab3df306f Remove win/Qt/nethack.png
Obsoleted by nhsplash.xpm (a text format). The binary still has more detail,
but until someone has a use for it, I'll keep it aside.
2002-01-22 08:41:57 +00:00
warwick 5861942805 Doc fix for Install.Qt
(USER_SOUNDS now undeffed automaticaaly for old versions)
2002-01-22 08:39:00 +00:00
warwick 75305dc3b3 Qt compatibility fixes
Fixes for Qt version 2.0 (old).
2002-01-21 05:17:40 +00:00
warwick 58b5454a35 Player selection fix on Qt windowport.
Prompt for player details even if gender or alignment is unspecified.
2002-01-21 05:15:06 +00:00
warwick d2c3d25462 (Qt) Old version support
Workarounds for Qt 2.1.0beta4 (?)
2002-01-18 08:47:28 +00:00
warwick 6ddd18069e Splash-screen fixes:
- change "Warwick Allison + DevTeam" to just "DevTeam".
  - fixes for Qt 3.0.
2002-01-17 06:40:41 +00:00
warwick f86ab80cfb Changes work with Qt 3.0 (basically just use obsoleted QTableView class
until I get around to replacing it properly).
2002-01-17 04:10:23 +00:00
warwick 5bf430c3d3 Ignore Alt-key navigation to menubar, as it's annoying when you
use Alt-Direction to move around.
2002-01-16 03:09:12 +00:00
warwick b31f25cc25 isHidden() is not in Qt 2.1. It's only *really*
needed in Qt 3 (it make multi-head displays work better). This patch make
that explicit.
2002-01-13 01:08:41 +00:00
warwick 15e5fc1a95 Fix YN function in Qt windowport compact mode (wasn't parsing properly).
Often, the yn_function "choices" parameter is not set, so for a non-keyboard
GUI (compact mode is for handheld computers with a stylus), the windowport
has to parse the prompt to find out the posible input choices. I got the
parsing wrong.
2002-01-13 00:33:02 +00:00
cohrs d3765d91e8 re-adding nethack.png correct flags 2002-01-12 17:19:37 +00:00
cohrs 958bb149ec remove nethack.png so it can be re-added with correct flags 2002-01-12 17:18:50 +00:00
cohrs cebf048c50 Qt 2.1 support again
Fix the Qt code so it compiles wth Qt 2.1 again (Install.Qt still claims
the code works on Qt 2.0 and above).  One or more of the changes made this
week broke compilation on my RedHat Linux 6.2 system.  Qt 2.1 is still the
most recent Qt shipped by RedHat for this version.
2002-01-12 07:56:49 +00:00
warwick a7cbd7c9c2 Some more stuff missed for the splash screen in Qt windowport. Sorry! 2002-01-11 08:31:08 +00:00
warwick a3f40cb340 Disables HTML Guidebook until it is available. 2002-01-11 07:13:51 +00:00
warwick df13e93d67 Adds to Qt windowport:
- "Saved game" dialog (could be useful in other ports - plain C code used)
   - "splash screen"
   - compact mode cleanup for 240x320 displays
   - messages-on-map overlay display
   - allows online reading of Guidebook in HTML format (coming soon)
2002-01-11 07:03:12 +00:00
warwick 1bb96586d6 Fix Qt "compact mode" (as used on handhelds or other tiny screens) to work
on normal Qt (not just Qt/Embedded).
2002-01-11 03:02:44 +00:00
cohrs c77073be31 sync changes since last snapshot 2002-01-07 02:12:04 +00:00
jwalz d80bc2ad3f *** empty log message *** 2002-01-05 21:06:02 +00:00
jwalz f752a442be *** empty log message *** 2002-01-05 21:06:02 +00:00
jwalz c389853b09 *** empty log message *** 2002-01-05 21:06:01 +00:00
jwalz 2d89ea0a3a *** empty log message *** 2002-01-05 21:06:01 +00:00
jwalz 0288142885 *** empty log message *** 2002-01-05 21:06:01 +00:00
jwalz 85e7447054 *** empty log message *** 2002-01-05 21:06:01 +00:00
jwalz 5af1e0b842 *** empty log message *** 2002-01-05 21:06:01 +00:00
jwalz 4159aadfb5 *** empty log message *** 2002-01-05 21:06:01 +00:00