]> granicus.if.org Git - nethack/commitdiff
status display - port modules (trunk only)
authornethack.allison <nethack.allison>
Sun, 23 Nov 2003 06:47:13 +0000 (06:47 +0000)
committernethack.allison <nethack.allison>
Sun, 23 Nov 2003 06:47:13 +0000 (06:47 +0000)
Introduction of a new set of window port status display
routines.  The new routines are conditional on
STATUS_VIA_WINDOWPORT
being defined in config.h. See the experimental section,
where the #define resides for the time being.

sys/amiga/winami.c
sys/mac/macwin.c
sys/wince/mswproc.c
sys/winnt/Makefile.msc
win/Qt/qt_win.cpp
win/X11/winX.c
win/gem/wingem.c
win/gnome/gnbind.c
win/tty/wintty.c
win/win32/mswproc.c

index e5eccec62ca77d066e0e67deef89ec352f879327..d3a771527230de6a5329a5286bc9c99a6ecaec62 100644 (file)
@@ -81,7 +81,13 @@ struct window_procs amii_procs =
     amii_outrip,
     genl_preference_update,
     genl_getmsghistory,
-    genl_putmsghistory
+    genl_putmsghistory,
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };
 
 /* The view window layout uses the same function names so we can use
@@ -142,7 +148,13 @@ struct window_procs amiv_procs =
     amii_outrip,
     genl_preference_update,
     genl_getmsghistory,
-    genl_putmsghistory
+    genl_putmsghistory,
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };
 
 unsigned short amii_initmap[ AMII_MAXCOLORS ];
index 72ade1731d790e90d42fae88f357d18c28522526..c41e2e96b432c1472fa0199c081c8990c98ca3d7 100644 (file)
@@ -2647,6 +2647,12 @@ struct window_procs mac_procs = {
        genl_preference_update,
        genl_getmsghistory,
        genl_putmsghistory,
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };
 
 /*macwin.c*/
index 53a0f9e7139ee4c9e8fa4f3843070f3167b1c8fa..6c4a7cb9a1146aa8dd8cf4e25a6db40a7a835e93 100644 (file)
@@ -97,6 +97,12 @@ struct window_procs mswin_procs = {
     mswin_preference_update,
     genl_getmsghistory,
     genl_putmsghistory,
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };
 
 /*  
index 03a251728e21cc1aeacf6e509d2f8564ae189804..fe6d64b6637986d2b360b8db84bd2ea6337140ec 100644 (file)
@@ -418,7 +418,7 @@ HACK_H = $(INCL)\hack.h $(CONFIG_H) $(INCL)\align.h $(INCL)\context.h \
                $(INCL)\skills.h $(INCL)\onames.h $(INCL)\timeout.h \
                $(INCL)\trap.h $(INCL)\flag.h $(INCL)\rm.h \
                $(INCL)\vision.h $(INCL)\display.h $(INCL)\engrave.h \
-               $(INCL)\rect.h $(INCL)\region.h $(INCL)\winprocs.h \
+               $(INCL)\rect.h $(INCL)\region.h $(INCL)\winprocs.h $(INCL)\botl.h \
                $(INCL)\wintty.h $(INCL)\trampoli.h
 
 LEV_H       = $(INCL)\lev.h
index 39d47416bec0fd86a1ec979ec8bc334dabef9a7b..8f7fb0ac2d908ef7b62672c471dcbfc6f1b10801 100644 (file)
@@ -5281,6 +5281,12 @@ struct window_procs Qt_procs = {
     genl_preference_update,
     genl_getmsghistory,
     genl_putmsghistory,
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };
 
 extern "C" void play_usersound(const char* filename, int volume)
index e04d04d4cb649dc1141d59944ac8f7a4f420db97..9805b9a4a0985554ffa70413966d17ad2484af18 100644 (file)
@@ -159,6 +159,12 @@ struct window_procs X11_procs = {
     X11_preference_update,
     genl_getmsghistory,
     genl_putmsghistory,
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };
 
 /*
index d5afcb562509e7ff49aa5c460c1cea25040d012d..d987d681b59edc0da55b06887d6d3f608e18e173 100644 (file)
@@ -100,6 +100,12 @@ struct window_procs Gem_procs = {
     Gem_preference_update,
     genl_getmsghistory,
     genl_putmsghistory
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };
 
 #ifdef MAC
index 6527edcb2523bb2cfbf592852cb2978e5e05cb98..108b3574eb230370fd6492fbc5198e12d78a1393 100644 (file)
@@ -76,6 +76,12 @@ struct window_procs Gnome_procs = {
     genl_preference_update,
     genl_getmsghistory,
     genl_putmsghistory,
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };
 
 /*  
index 26ce38882a635d54833853fb82561ca6bee35ab7..7770003c7324812da1e6c630d188cb4b6e39d679 100644 (file)
@@ -40,6 +40,9 @@ extern void msmsg(const char *,...);
 
 extern char mapped_menu_cmds[]; /* from options.c */
 
+/* this is only needed until tty_status_* routines are written */
+extern NEARDATA winid WIN_STATUS;
+
 /* Interface definition, for windows.c */
 struct window_procs tty_procs = {
     "tty",
@@ -111,6 +114,12 @@ struct window_procs tty_procs = {
 #endif
     tty_getmsghistory,
     tty_putmsghistory,
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };
 
 static int maxwin = 0;                 /* number of windows in use */
index 18317a28414e31b810a5c521ea92490bdb203c81..93edd91463d1e5531bc84b6aa476ee374d8aa866 100644 (file)
@@ -123,6 +123,12 @@ struct window_procs mswin_procs = {
     mswin_preference_update,
     mswin_getmsghistory,
     mswin_putmsghistory,
+#ifdef STATUS_VIA_WINDOWPORT
+    genl_status_init,
+    genl_status_finish,
+    genl_status_enablefield,
+    genl_status_update,
+#endif
 };