Ignore:
Timestamp:
Mar 15, 2008, 12:55:44 AM (11 years ago)
Author:
Sam Hocevar
Message:
  • Rename the "eh" variable to "wm" because it's a window manager, not an event handler.
  • No longer pass the window manager to functions, there's only one.

Inspired by Win32 Abuse changelog for January 28, 2001:

  • Starting work on singleton code; will get rid of all

references to an arbitrary window_manager* because
there's only going to be one, and it's not ever
going to change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/console.hpp

    r57 r106  
    1919  char *screen;
    2020  jwindow *con_win;
    21   window_manager *wm;
    2221  char *name;
    2322  public :
    2423
    25   console(window_manager *WM, JCFont *font, int width, int height, char const *Name);
     24  console(JCFont *font, int width, int height, char const *Name);
    2625  int showing() { return con_win!=NULL; }
    2726  void show();
     
    4645  char shcmd[300];
    4746  public :
    48   shell_term(window_manager *WM, JCFont *font, int width, int height, char const *Name);
     47  shell_term(JCFont *font, int width, int height, char const *Name);
    4948  virtual ~shell_term() {};
    50   int handle_event(event &ev, window_manager *wm);
     49  int handle_event(event &ev);
    5150  virtual void prompt();
    5251  virtual void execute(char const *st);
Note: See TracChangeset for help on using the changeset viewer.