17 #ifndef PROGRESSBAR_H_ 18 #define PROGRESSBAR_H_ 23 #define _USE_MATH_DEFINES 42 cout<<
"ProgressBar::ProgressBar()"<<endl;
44 widget=gtk_progress_bar_new();
53 cout<<
"ProgressBar::~ProgressBar()"<<endl;
56 g_object_unref(widget);
68 if (fabs(what-last)>0.05) {
70 gtk_progress_bar_pulse (GTK_PROGRESS_BAR(widget));
72 gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR(widget), what);
78 #endif //PROGRESSBAR_H_ ~ProgressBar(void)
Destructor.
ProgressBar(void)
Constructor.
ProgressBar & operator=(float what)
GtkWidget * widget
The progress bar.
Class to show progress This class shows a progress bar which may be initialised at construction or la...