22 #ifndef GLPROGRESSBAR_H_
23 #define GLPROGRESSBAR_H_
25 #include <tulip/GlComposite.h>
26 #include <tulip/SimplePluginProgress.h>
28 const std::string SLIDER_TEXTURE_NAME =
"cylinderTexture.png";
34 class TLP_GL_SCOPE GlProgressBar :
public GlComposite,
public SimplePluginProgress {
45 GlProgressBar(
const Coord ¢erPosition,
const unsigned int width,
const unsigned int height,
const Color &color);
52 void setComment(
const std::string& msg) {
56 void progress_handler(
int step,
int max_step);
61 Color color, percentLabelAndFrameColor;
62 float progressBarMaxWidth, progressBarHeight;
63 float commentWidth, commentHeight;
64 Coord progressBarTLCorner;
65 Coord commentLabelCenter;
67 unsigned int currentPercent;