PROGRAM(progress);
INHERIT(widget);
COMPLEX_FUNCTION(set_show_text, int);
NAME_ARGS(textp);
COMPLEX_FUNCTION(set_text_alignment, float, float);
NAME_ARGS(xalign, yalign);

COMPLEX_FUNCTION(set_format_string, string);
NAME_ARGS(format);
// 
// More or less like sprintf.<p>
// %[field width][character]<p>
// 0<=width<=2<p>
// Supported characters:
// <dl><dt><dd><pre>
// %: Insert a %<br>
// p or P: The percentage completed, with 'digits' number of decimals
// v or V: The actual value, with digits decimals.
// l or L: The lower value (from the adjustment)
// u or U: The higer value (from the adjustment)
// %: Insert a %
// </pre></dl>The default format is '%P%%'
COMPLEX_FUNCTION(set_adjustment, Adjustment);
NAME_ARGS(adjustment);
// Sets the adjustment to use. See the adjustment documentation for more info
COMPLEX_FUNCTION(configure, float, float, float);
NAME_ARGS(value, min, max);
// Sets the current value, the minimum value and the maximum value.
// The default min and max are 0.0 and 1.0 respectively.
COMPLEX_FUNCTION(set_percentage, float);
NAME_ARGS(pct);
// Sets the value (as percent). Uses the min and max values.
COMPLEX_FUNCTION(set_activity_mode, int);
NAME_ARGS(modep);
// Mode is:<br>
// 1: active<br>
// 0: inactive<br>
COMPLEX_FUNCTION(set_value,float);
float COMPLEX_FUNCTION(get_value);
string COMPLEX_FUNCTION(get_current_text);
string COMPLEX_FUNCTION(get_text_from_value, float);
float COMPLEX_FUNCTION(get_current_percentage);
float COMPLEX_FUNCTION(get_percentage_from_value, float);
SUBWIDGET(adjustment, adjustment);

CLASSMEMBER(show_text, int);
CLASSMEMBER(activity_mode, int);

CLASSMEMBER(x_align, float);
CLASSMEMBER(y_align, float);

CLASSMEMBER(format, string);
