Ignore:
Timestamp:
Mar 16, 2008, 2:17:43 AM (11 years ago)
Author:
Sam Hocevar
Message:
  • Simplified the window creation arguments. Got rid of a lot of macros and hid stuff in private namespaces.

Inspired by Win32 Abuse changelog for January 28, 2001:

  • Well, in the process of adding changes necessary to

handle recovery from alt-tabbing away from Abuse
(which is why I was updating jwindow::redraw()),
the entire windowing system is getting an overhaul.
It's gonna be sweet when I'm done, though.

  • jwindow::redraw() has been changed to a virtual

function requiring no parameters. This'll make
it much easier to implement special specific-
purpose windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/innet.cpp

    r106 r111  
    542542
    543543
    544       jwindow *j=wm->new_window(0,yres/2,-1,-1,new info_field(WINDOW_FRAME_LEFT,
    545                                                                    WINDOW_FRAME_TOP,
    546                                                                    0,symbol_str("resync"),
    547                                               new button(WINDOW_FRAME_LEFT,
    548                                                          WINDOW_FRAME_TOP+wm->font()->height()+5,ID_NET_DISCONNECT,
     544      jwindow *j=wm->new_window(0,yres/2,-1,-1,new info_field(0, 0, 0, symbol_str("resync"),
     545                                              new button(0, wm->font()->height() + 5, ID_NET_DISCONNECT,
    549546                                                         symbol_str("slack"),NULL)),symbol_str("hold!"))
    550547;
     
    652649        {
    653650          abort=wm->new_window(0,yres/2,-1,wm->font()->height()*4,
    654                                new info_field(WINDOW_FRAME_LEFT,
    655                                               WINDOW_FRAME_TOP,
    656                                               0,symbol_str("waiting"),
    657                                               new button(WINDOW_FRAME_LEFT,
    658                                                          WINDOW_FRAME_TOP+wm->font()->height()+5,ID_NET_DISCONNECT,
     651                               new info_field(0, 0, 0, symbol_str("waiting"),
     652                                              new button(0, wm->font()->height() + 5, ID_NET_DISCONNECT,
    659653                                                         symbol_str("slack"),NULL)),symbol_str("Error"));         
    660654          wm->flush_screen();
Note: See TracChangeset for help on using the changeset viewer.