1 #ifndef _PROGRESSLOG_H
2 #define _PROGRESSLOG_H
3 
4 #include <sys/time.h>
5 #include <gtk/gtk.h>
6 
7 #define PROGRESS_NONE -2.0		// don't update the progress bar value
8 #define PROGRESS_PULSATE -1.0		// pulsate the progress bar
9 #define PROGRESS_RESET 0.0		// reset the progress bar
10 #define PROGRESS_DONE 1.0		// fill the progress bar
11 #define PROGRESS_TEXT_RESET ""		// reset the progress bar's text
12 
13 void initialize_log_tags();
14 void gui_log_message(const char* msg, const char* color);
15 
16 void set_progress_bar_data(const char *text, double percent);
17 
18 void show_time(struct timeval, struct timeval);
19 void show_time_msg(struct timeval t_start, struct timeval t_end, const char *msg);
20 void get_min_sec_from_timevals(struct timeval t_start, struct timeval t_end,
21 		int *min, int *sec);
22 
23 void set_cursor_waiting(gboolean waiting);
24 void set_cursor(const gchar* cursor_name);
25 
26 #endif
27