summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 57d919e)
raw | patch | inline | side by side (parent: 57d919e)
author | cilix42 <cilix42@users.sourceforge.net> | |
Thu, 3 Jul 2008 09:40:50 +0000 (09:40 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Thu, 3 Jul 2008 09:40:50 +0000 (09:40 +0000) |
src/draw-context.cpp | patch | blob | history |
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index c40ea1991cb1081af179d5a4b2a6e7ef3f4f71a6..c946acabe3c9c49a5e5e408fe7acb3d3b26257a6 100644 (file)
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
switch (shape) {
case 0:
+ // don't apply any shape
break;
case 1:
{
+ // take shape from clipboard; TODO: catch the case where clipboard is empty
Effect::createAndApply(PATTERN_ALONG_PATH, dc->desktop->doc(), item);
Effect* lpe = sp_lpe_item_get_current_lpe(SP_LPE_ITEM(item));
static_cast<LPEPatternAlongPath*>(lpe)->pattern.on_paste_button_click();
}
case 2:
{
+ // "crescendo"
// TODO: this is only for illustration (we create a "crescendo"-shaped path
// manually; eventually we should read the path from a separate file)
SPCurve *c = new SPCurve();
}
case 3:
{
+ // "decrescendo"
// TODO: this is only for illustration (we create a "decrescendo"-shaped path
// manually; eventually we should read the path from a separate file)
SPCurve *c = new SPCurve();