2005-09-15 09:58:31 -04:00
|
|
|
#ifndef EL__DIALOGS_PROGRESS_H
|
|
|
|
#define EL__DIALOGS_PROGRESS_H
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
struct progress;
|
|
|
|
struct terminal;
|
|
|
|
|
2021-01-02 10:20:27 -05:00
|
|
|
char *
|
2005-09-15 09:58:31 -04:00
|
|
|
get_progress_msg(struct progress *progress, struct terminal *term,
|
2022-02-17 15:14:36 -05:00
|
|
|
int wide, int full, const char *separator);
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2008-05-02 18:13:40 -04:00
|
|
|
|
2021-01-02 10:20:27 -05:00
|
|
|
char *
|
2008-05-02 18:13:40 -04:00
|
|
|
get_upload_progress_msg(struct progress *progress, struct terminal *term,
|
2022-02-17 15:14:36 -05:00
|
|
|
int wide, int full, const char *separator);
|
2008-05-02 18:13:40 -04:00
|
|
|
|
2022-03-18 14:22:38 -04:00
|
|
|
#if 0
|
2005-09-15 09:58:31 -04:00
|
|
|
/* Draws a progress bar meter or progress coloured text depending on whether
|
|
|
|
* @text is NULL. If @meter_color is NULL dialog.meter color is used. */
|
|
|
|
void
|
|
|
|
draw_progress_bar(struct progress *progress, struct terminal *term,
|
|
|
|
int x, int y, int width,
|
2021-01-02 10:20:27 -05:00
|
|
|
char *text, struct color_pair *meter_color);
|
2022-03-18 14:22:38 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Draws a progress bar meter or progress coloured text depending on whether
|
|
|
|
* @text is NULL. If @meter_color is NULL dialog.meter color is used. */
|
|
|
|
void
|
|
|
|
draw_progress_bar_node(struct progress *progress, struct terminal *term,
|
|
|
|
int x, int y, int width,
|
|
|
|
char *text, unsigned int meter_color_node);
|
2005-09-15 09:58:31 -04:00
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|