summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8dff5da)
raw | patch | inline | side by side (parent: 8dff5da)
author | mental <mental@users.sourceforge.net> | |
Sun, 19 Aug 2007 03:44:51 +0000 (03:44 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Sun, 19 Aug 2007 03:44:51 +0000 (03:44 +0000) |
src/tweak-context.cpp | patch | blob | history | |
src/tweak-context.h | patch | blob | history |
diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp
index 04cad8329c0e7c40ca1bac49e188e068eced856f..677bfe8a3165c05c2ebf1907b2e9950e1c993a87 100644 (file)
--- a/src/tweak-context.cpp
+++ b/src/tweak-context.cpp
case TWEAK_MODE_PUSH:
event_context->cursor_shape = cursor_push_xpm;
break;
- case TWEAK_MODE_SUCK:
+ case TWEAK_MODE_MELT:
event_context->cursor_shape = cursor_thin_xpm;
break;
- case TWEAK_MODE_BLOW:
+ case TWEAK_MODE_INFLATE:
event_context->cursor_shape = cursor_thicken_xpm;
break;
case TWEAK_MODE_ROUGHEN:
@@ -336,9 +336,9 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, NR::Poi
bool did_this = false;
NR::Matrix i2doc(sp_item_i2doc_affine(item));
- if (mode == TWEAK_MODE_SUCK || mode == TWEAK_MODE_BLOW) {
+ if (mode == TWEAK_MODE_MELT || mode == TWEAK_MODE_INFLATE) {
if (theShape->MakeOffset(theRes,
- mode == TWEAK_MODE_BLOW? force : -force,
+ mode == TWEAK_MODE_INFLATE? force : -force,
join_straight, 4.0,
true, p[NR::X], p[NR::Y], radius, &i2doc) == 0) // 0 means the shape was actually changed
did_this = true;
tc->_message_context->setF(Inkscape::NORMAL_MESSAGE,
_("<b>Pushing %d</b> selected object(s)"), num);
break;
- case TWEAK_MODE_SUCK:
+ case TWEAK_MODE_MELT:
tc->_message_context->setF(Inkscape::NORMAL_MESSAGE,
_("<b>Melting %d</b> selected object(s)"), num);
break;
- case TWEAK_MODE_BLOW:
+ case TWEAK_MODE_INFLATE:
tc->_message_context->setF(Inkscape::NORMAL_MESSAGE,
_("<b>Blowing %d</b> selected object(s)"), num);
break;
tc->has_dilated = false;
sp_document_done(sp_desktop_document(SP_EVENT_CONTEXT(tc)->desktop),
SP_VERB_CONTEXT_TWEAK,
- (tc->mode==TWEAK_MODE_BLOW ? _("Blow tweak") : (tc->mode==TWEAK_MODE_SUCK ? _("Melt tweak") : (tc->mode==TWEAK_MODE_PUSH ? _("Push tweak") : _("Roughen tweak")))));
+ (tc->mode==TWEAK_MODE_INFLATE ? _("Blow tweak") : (tc->mode==TWEAK_MODE_MELT ? _("Melt tweak") : (tc->mode==TWEAK_MODE_PUSH ? _("Push tweak") : _("Roughen tweak")))));
ret = TRUE;
}
case GDK_M:
case GDK_2:
if (MOD__SHIFT_ONLY) {
- sp_tweak_switch_mode(tc, TWEAK_MODE_SUCK);
+ sp_tweak_switch_mode(tc, TWEAK_MODE_MELT);
ret = TRUE;
}
break;
case GDK_B:
case GDK_3:
if (MOD__SHIFT_ONLY) {
- sp_tweak_switch_mode(tc, TWEAK_MODE_BLOW);
+ sp_tweak_switch_mode(tc, TWEAK_MODE_INFLATE);
ret = TRUE;
}
break;
case GDK_Control_L:
case GDK_Control_R:
if (MOD__SHIFT) {
- sp_tweak_switch_mode_temporarily(tc, TWEAK_MODE_BLOW);
+ sp_tweak_switch_mode_temporarily(tc, TWEAK_MODE_INFLATE);
} else {
- sp_tweak_switch_mode_temporarily(tc, TWEAK_MODE_SUCK);
+ sp_tweak_switch_mode_temporarily(tc, TWEAK_MODE_MELT);
}
break;
case GDK_Shift_L:
case GDK_Shift_R:
if (MOD__CTRL) {
- sp_tweak_switch_mode_temporarily(tc, TWEAK_MODE_BLOW);
+ sp_tweak_switch_mode_temporarily(tc, TWEAK_MODE_INFLATE);
}
break;
default:
case GDK_Shift_L:
case GDK_Shift_R:
if (MOD__CTRL) {
- sp_tweak_switch_mode_temporarily(tc, TWEAK_MODE_SUCK);
+ sp_tweak_switch_mode_temporarily(tc, TWEAK_MODE_MELT);
}
break;
break;
diff --git a/src/tweak-context.h b/src/tweak-context.h
index 14297b5a24aff4950c2a55a937c0c6f2142b2e36..478fe223f7b17a1a7a3617146f69652e47897ab9 100644 (file)
--- a/src/tweak-context.h
+++ b/src/tweak-context.h
enum {
TWEAK_MODE_PUSH,
- TWEAK_MODE_SUCK,
- TWEAK_MODE_BLOW,
+ TWEAK_MODE_MELT,
+ TWEAK_MODE_INFLATE,
TWEAK_MODE_ROUGHEN
};