guistat.hpp 596 B

12345678910111213141516171819202122232425
  1. #ifndef __GU_STAT_HPP
  2. #define __GU_STAT_HPP
  3. #include "status.hpp"
  4. #include "jwindow.hpp"
  5. #include <string.h>
  6. class gui_status_node;
  7. class gui_status_manager : public status_manager
  8. {
  9. window_manager *wm;
  10. char title[40];
  11. int last_perc;
  12. public :
  13. gui_status_node *first;
  14. gui_status_manager(window_manager *WM);
  15. virtual void push(char *name, visual_object *show);
  16. virtual void update(int percentage);
  17. virtual void pop();
  18. void draw_bar(gui_status_node *whom, int perc);
  19. void set_window_title(char *name) { strncpy(title,name,39); }
  20. virtual void force_display();
  21. } ;
  22. #endif