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/imlib/filesel.cpp

    r106 r111  
    121121                     int filename_id)
    122122{
    123   int wl=WINDOW_FRAME_LEFT,wh=WINDOW_FRAME_TOP;
    124   int wh2=wh+5+wm->font()->height()+5;
    125   int wh3=wh2+wm->font()->height()+12;
     123  int wh2 = 5 + wm->font()->height() + 5;
     124  int wh3 = wh2 + wm->font()->height() + 12;
    126125  jwindow *j=wm->new_window(0,0,-1,-1,
    127                             new info_field(wl+5,wh+5,0,prompt,
    128                             new text_field(wl,wh2,filename_id,
     126                            new info_field(5, 5, 0, prompt,
     127                            new text_field(0, wh2, filename_id,
    129128                                           ">","****************************************",def,
    130                             new button(wl+50,wh3,ok_id,    ok_name,
    131                             new button(wl+100,wh3,cancel_id,cancel_name,
    132                             new file_picker(wl+15,wh3+wm->font()->height()+10,filename_id,8,
     129                            new button(50, wh3, ok_id, ok_name,
     130                            new button(100, wh3, cancel_id, cancel_name,
     131                            new file_picker(15, wh3 + wm->font()->height() + 10, filename_id, 8,
    133132                                          NULL))))),
    134133
Note: See TracChangeset for help on using the changeset viewer.