24 #ifndef __evGUIProgress_h 25 #define __evGUIProgress_h 28 #include <FL/Fl_Button.H> 29 #include <FL/Fl_Slider.H> 30 #include <FL/Fl_Output.H> 31 #include <FL/Fl_Box.H> 40 const int width,
const int height,
41 const char *label = 0) :
42 Fl_Slider(x, y, width, height, label)
57 evGUIProgress(
const int x,
const int y,
const int width,
const int height);
65 void SetProgress(
const unsigned int progress);
66 void SetProcess(
const char *process);
77 static void CancelCallback(Fl_Widget *widget,
void *data);
83 unsigned int progress2 = QccMathMin(progress, (
unsigned int)100);
84 this->Slider->value((
double)progress2);
85 this->Label.Sprintf(
"%d%%", progress2);
86 this->LabelText->label(this->Label.GetString());
87 this->LabelText->redraw();
93 this->ProcessText->value(process);
evGUIProgressSlider(const int x, const int y, const int width, const int height, const char *label=0)
Definition: evGUIProgress.h:39
void SetProcess(const char *process)
Definition: evGUIProgress.h:91
evGUIProgressSlider * Slider
Definition: evGUIProgress.h:71
int handle(int)
Definition: evGUIProgress.h:47
virtual const evString GetClassName(void) const
Definition: evGUIProgress.h:60
Fl_Output * ProcessText
Definition: evGUIProgress.h:72
Definition: evGUIProgress.h:36
Fl_Button * CancelButton
Definition: evGUIProgress.h:74
Definition: evGUIObject.h:33
Fl_Box * LabelText
Definition: evGUIProgress.h:73
Definition: evGUIProgress.h:54
void SetProgress(const unsigned int progress)
Definition: evGUIProgress.h:81
Definition: evString.h:30
evString Label
Definition: evGUIProgress.h:75
~evGUIProgressSlider(void)
Definition: evGUIProgress.h:44