Last change
on this file since 608 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
File size:
596 bytes
|
Rev | Line | |
---|
[49] | 1 | #ifndef __GU_STAT_HPP |
---|
| 2 | #define __GU_STAT_HPP |
---|
| 3 | #include "status.hpp" |
---|
| 4 | #include "jwindow.hpp" |
---|
| 5 | #include <string.h> |
---|
| 6 | |
---|
| 7 | class gui_status_node; |
---|
| 8 | class gui_status_manager : public status_manager |
---|
| 9 | { |
---|
| 10 | window_manager *wm; |
---|
| 11 | char title[40]; |
---|
| 12 | int last_perc; |
---|
| 13 | public : |
---|
| 14 | gui_status_node *first; |
---|
| 15 | gui_status_manager(window_manager *WM); |
---|
| 16 | virtual void push(char *name, visual_object *show); |
---|
| 17 | virtual void update(int percentage); |
---|
| 18 | virtual void pop(); |
---|
| 19 | void draw_bar(gui_status_node *whom, int perc); |
---|
| 20 | void set_window_title(char *name) { strncpy(title,name,39); } |
---|
| 21 | virtual void force_display(); |
---|
| 22 | } ; |
---|
| 23 | |
---|
| 24 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.