summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b58f3ee)
raw | patch | inline | side by side (parent: b58f3ee)
author | johncoswell <johncoswell@users.sourceforge.net> | |
Sun, 13 Aug 2006 18:48:37 +0000 (18:48 +0000) | ||
committer | johncoswell <johncoswell@users.sourceforge.net> | |
Sun, 13 Aug 2006 18:48:37 +0000 (18:48 +0000) |
src/splivarot.cpp | patch | blob | history |
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 87ad24800c95a4b164e7b895d52078a1c28fae0c..2fd01cb69c7cabb104f084b0d1eb33fb49f882c7 100644 (file)
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
bool simplifyIndividualPaths =
(bool) prefs_get_int_attribute("options.simplifyindividualpaths", "value", 0);
+ gchar *simplificationType;
+ if (simplifyIndividualPaths) {
+ simplificationType = "individual paths";
+ } else {
+ simplificationType = "as a group";
+ }
+
bool didSomething = false;
NR::Rect selectionBbox = selection->bounds();
gdouble simplifySize = selectionSize;
+ int pathsSimplified = 0;
+ int totalPathCount = g_slist_length(items);
+
+ desktop->disableInteraction();
+
for (; items != NULL; items = items->next) {
SPItem *item = (SPItem *) items->data;
simplifySize = L2(itemBbox.dimensions());
}
+
+ pathsSimplified++;
+
+ if (pathsSimplified % 20 == 0) {
+ gchar *message = g_strdup_printf(_("Simplifying %s - <b>%d</b> of <b>%d</b> paths simplified..."), simplificationType, pathsSimplified, totalPathCount);
+ desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, message);
+ desktop->updateCanvasNow();
+ }
+
didSomething |= sp_selected_path_simplify_item(desktop, selection, item,
threshold, justCoalesce, angleLimit, breakableAngles, simplifySize, modifySelection);
}
+ desktop->enableInteraction();
+
+ if (pathsSimplified > 20) {
+ desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, g_strdup_printf(_("Done - <b>%d</b> paths simplified."), pathsSimplified));
+ }
+
return didSomething;
}