Ignore:
Timestamp:
Mar 18, 2008, 9:36:56 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of ugly tabs and trailing spaces everywhere.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/input.hpp

    r120 r124  
    2121  image *visual,*pressed,*act_pict;
    2222  int act_id;
    23 public : 
     23public :
    2424  button(int X, int Y, int ID, char const *Text, ifield *Next);
    2525  button(int X, int Y, int ID, image *vis, ifield *Next);
     
    2828  virtual void area(int &x1, int &y1, int &x2, int &y2);
    2929  virtual void draw_first(image *screen);
    30   virtual void draw(int active, image *screen); 
     30  virtual void draw(int active, image *screen);
    3131  virtual void handle_event(event &ev, image *screen, InputManager *im);
    3232  void change_visual(image *new_visual);
     
    5151  virtual void area(int &x1, int &y1, int &x2, int &y2);
    5252  virtual void draw_first(image *screen);
    53   virtual void draw(int active, image *screen); 
    54   virtual void handle_event(event &ev, image *screen, InputManager *im); 
     53  virtual void draw(int active, image *screen);
     54  virtual void handle_event(event &ev, image *screen, InputManager *im);
    5555  virtual ~button_box();
    5656  virtual char *read();   // return pointer to first button which is depressed
     
    7474    wm->font()->put_string(screen,xstart()+1,y+3,data);
    7575  }
    76 public : 
    77   text_field(int X, int Y, int ID, char const *Prompt, char const *Format, 
     76public :
     77  text_field(int X, int Y, int ID, char const *Prompt, char const *Format,
    7878                               char const *Data, ifield *Next);
    79   text_field(int X, int Y, int ID, char const *Prompt, char const *Format, 
     79  text_field(int X, int Y, int ID, char const *Prompt, char const *Format,
    8080                               double Data, ifield *Next);
    8181
    8282  virtual void area(int &x1, int &y1, int &x2, int &y2);
    8383  virtual void draw_first(image *screen);
    84   virtual void draw(int active, image *screen); 
     84  virtual void draw(int active, image *screen);
    8585  virtual void handle_event(event &ev, image *screen, InputManager *im);
    86  
     86
    8787  virtual ~text_field() { jfree(prompt); jfree(format); jfree(data); }
    8888  virtual char *read();
    8989  void change_data(char const *new_data, int new_cursor,       // cursor==-1, does not change it.
    90                    int active, image *screen);
     90           int active, image *screen);
    9191} ;
    9292
     
    9696  char *text;
    9797  int w,h;
    98   void put_para(image *screen, char const *st, int dx, int dy, int xspace, 
    99                 int yspace, JCFont *font, int color);
    100 public : 
     98  void put_para(image *screen, char const *st, int dx, int dy, int xspace,
     99        int yspace, JCFont *font, int color);
     100public :
    101101  info_field(int X, int Y, int ID, char const *info, ifield *Next);
    102102  virtual void area(int &x1, int &y1, int &x2, int &y2);
     
    105105  virtual void handle_event(event &ev, image *screen, InputManager *im) { ; }
    106106  virtual char *read() { return text; }
    107   virtual int selectable() { return 0; } 
     107  virtual int selectable() { return 0; }
    108108  virtual ~info_field() { jfree(text); }
    109109} ;
Note: See TracChangeset for help on using the changeset viewer.