New AFFECTALL flag for numinput

When that flag is set, numbers typed when the cursor is on the first position will affect all positions who do not currently have something typed for them.

Enabled Skey, 2, Enter to quickly double the size of something.

All modesty asside, it's coded rather smartly so it shows the cursor in every position that it will affect and lets you tab in undefined position to type in values there.

Thanks to Samadam for reminding me that the old code permitted that.
This commit is contained in:
2005-03-13 21:42:22 +00:00
parent 60b0e67e32
commit fd4ad35d4c
3 changed files with 29 additions and 21 deletions

View File

@@ -293,12 +293,9 @@ void initTransModeFlags(TransInfo *t, int mode)
t->mode = mode;
switch (mode) {
case TFM_TRANSLATION:
break;
case TFM_ROTATION:
break;
case TFM_RESIZE:
t->num.flags |= NULLONE;
t->num.flags |= AFFECTALL;
if (!G.obedit) {
t->flag |= NOZERO;
t->num.flags |= NOZERO;