File: guistat.hpp

package info (click to toggle)
abuse 2.00-12
  • links: PTS
  • area: main
  • in suites: slink
  • size: 12,708 kB
  • ctags: 15,389
  • sloc: ansic: 115,852; cpp: 6,792; lisp: 2,066; sh: 1,734; makefile: 1,601; asm: 264
file content (24 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __GU_STAT_HPP
#define __GU_STAT_HPP
#include "status.hpp"
#include "jwindow.hpp"
#include <string.h>

class gui_status_node;
class gui_status_manager : public status_manager
{
  window_manager *wm;
  char title[40];
  int last_perc;
  public :   
  gui_status_node *first;
  gui_status_manager(window_manager *WM);
  virtual void push(char *name, visual_object *show);
  virtual void update(int percentage);
  virtual void pop();
  void draw_bar(gui_status_node *whom, int perc);
  void set_window_title(char *name) { strncpy(title,name,39); }
  virtual void force_display();
} ;

#endif