Ignore:
Timestamp:
Mar 18, 2008, 9:36:56 PM (15 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/status.cpp

    r56 r124  
    1818class text_status_node
    1919{
    20   public : 
     20  public :
    2121  char *name;
    2222  text_status_node *next;
    2323  visual_object *show;
    2424  int last_update;
    25   text_status_node(char const *Name, visual_object *Show, text_status_node *Next) 
    26   { name=strcpy((char *)jmalloc(strlen(Name)+1,"status name"),Name); 
     25  text_status_node(char const *Name, visual_object *Show, text_status_node *Next)
     26  { name=strcpy((char *)jmalloc(strlen(Name)+1,"status name"),Name);
    2727    show=Show;
    28     next=Next; 
     28    next=Next;
    2929    last_update=0;
    3030  }
    3131  ~text_status_node() { jfree(name); if (show) delete show; }
    32 } ; 
     32} ;
    3333
    3434
    3535
    3636text_status_manager::text_status_manager()
    37 { 
    38   first=NULL; 
    39   level=0; 
     37{
     38  first=NULL;
     39  level=0;
    4040}
    4141
     
    4343{
    4444  level++;
    45   first=new text_status_node(name,show,first); 
     45  first=new text_status_node(name,show,first);
    4646}
    4747
    4848void text_status_manager::update(int percentage)
    4949{
    50 //      return;
     50//    return;
    5151  if (level==1 && percentage-first->last_update>4)
    5252  {
    53         char s[256], len;
     53      char s[256], len;
    5454    first->last_update=percentage;
    5555    sprintf(s,"\r%s [",first->name);
     
    6060      s[len+i] = '.';
    6161    for (;i<40;i++)
    62         s[len+i] = ' ';
     62        s[len+i] = ' ';
    6363    s[len+i++] = ']';
    6464    s[len+i] = 0;
     
    6868
    6969void text_status_manager::pop()
    70 { 
     70{
    7171  CONDITION(first,"No status's to pop!");
    7272  if (level==1) dprintf("\n");
Note: See TracChangeset for help on using the changeset viewer.