[display percent values in the progress display
Andreas Röver <roever@users.sourceforge.net>**20060202161245] {
hunk ./src/gui/MainWindow.cpp 761
+  progressLabelDigits = 0;
+
hunk ./src/gui/MainWindow.cpp 1533
+      {
+        static char tmp[100];
+        static float oldFinished;
+
+        if (oldFinished != finished) {
+          if ((progressLabelDigits < 1) && (int(finished*1) == int(oldFinished*1))) progressLabelDigits++;
+          if ((progressLabelDigits < 2) && (int(finished*10) == int(oldFinished*10))) progressLabelDigits++;
+          if ((progressLabelDigits < 3) && (int(finished*100) == int(oldFinished*100))) progressLabelDigits++;
+          if ((progressLabelDigits < 4) && (int(finished*1000) == int(oldFinished*1000))) progressLabelDigits++;
+          if ((progressLabelDigits < 5) && (int(finished*10000) == int(oldFinished*10000))) progressLabelDigits++;
+
+          oldFinished = finished;
+        }
+
+        switch(progressLabelDigits) {
+          case 1: snprintf(tmp, 100, "%.1f%%", 100*finished); break;
+          case 2: snprintf(tmp, 100, "%.2f%%", 100*finished); break;
+          case 3: snprintf(tmp, 100, "%.3f%%", 100*finished); break;
+          case 4: snprintf(tmp, 100, "%.4f%%", 100*finished); break;
+          case 5: snprintf(tmp, 100, "%.5f%%", 100*finished); break;
+          case 6: snprintf(tmp, 100, "%.6f%%", 100*finished); break;
+          default: snprintf(tmp, 100, "%.0f%%", 100*finished); break;
+        }
+        SolvingProgress->label(tmp);
+      }
+
hunk ./src/gui/MainWindow.cpp 2509
-    SolvingProgress->align(FL_ALIGN_LEFT | FL_ALIGN_INSIDE);
+    SolvingProgress->align(FL_ALIGN_CENTER | FL_ALIGN_INSIDE);
+    SolvingProgress->labelcolor(fl_rgb_color(128, 128, 255));
hunk ./src/gui/MainWindow.h 113
+
+  int progressLabelDigits;
+
}
