src/gui_editactions.cpp

changeset 283
c5401af41685
parent 279
86a325a6b7c7
child 286
7a562bf3d829
equal deleted inserted replaced
282:c890f42c8054 283:c5401af41685
340 vector<LDObject*> objs = g_win->sel (); 340 vector<LDObject*> objs = g_win->sel ();
341 LDObject::moveObjects (objs, up); 341 LDObject::moveObjects (objs, up);
342 g_win->buildObjList (); 342 g_win->buildObjList ();
343 } 343 }
344 344
345 MAKE_ACTION (moveUp, "Move Up", "arrow-up", "Move the current selection up.", SHIFT (Up)) { 345 MAKE_ACTION (moveUp, "Move Up", "arrow-up", "Move the current selection up.", KEY (PageUp)) {
346 doMoveSelection (true); 346 doMoveSelection (true);
347 } 347 }
348 348
349 MAKE_ACTION (moveDown, "Move Down", "arrow-down", "Move the current selection down.", SHIFT (Down)) { 349 MAKE_ACTION (moveDown, "Move Down", "arrow-down", "Move the current selection down.", KEY (PageDown)) {
350 doMoveSelection (false); 350 doMoveSelection (false);
351 } 351 }
352 352
353 // ============================================================================= 353 // =============================================================================
354 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 354 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
385 385
386 MAKE_ACTION (moveXNeg, "Move -X", "move-x-neg", "Move selected objects negative on the X axis.", KEY (Left)) { 386 MAKE_ACTION (moveXNeg, "Move -X", "move-x-neg", "Move selected objects negative on the X axis.", KEY (Left)) {
387 doMoveObjects ({-1, 0, 0}); 387 doMoveObjects ({-1, 0, 0});
388 } 388 }
389 389
390 MAKE_ACTION (moveYNeg, "Move -Y", "move-y-neg", "Move selected objects negative on the Y axis.", KEY (PageUp)) { 390 MAKE_ACTION (moveYNeg, "Move -Y", "move-y-neg", "Move selected objects negative on the Y axis.", KEY (Home)) {
391 doMoveObjects ({0, -1, 0}); 391 doMoveObjects ({0, -1, 0});
392 } 392 }
393 393
394 MAKE_ACTION (moveZNeg, "Move -Z", "move-z-neg", "Move selected objects negative on the Z axis.", KEY (Down)) { 394 MAKE_ACTION (moveZNeg, "Move -Z", "move-z-neg", "Move selected objects negative on the Z axis.", KEY (Down)) {
395 doMoveObjects ({0, 0, -1}); 395 doMoveObjects ({0, 0, -1});
397 397
398 MAKE_ACTION (moveXPos, "Move +X", "move-x-pos", "Move selected objects positive on the X axis.", KEY (Right)) { 398 MAKE_ACTION (moveXPos, "Move +X", "move-x-pos", "Move selected objects positive on the X axis.", KEY (Right)) {
399 doMoveObjects ({1, 0, 0}); 399 doMoveObjects ({1, 0, 0});
400 } 400 }
401 401
402 MAKE_ACTION (moveYPos, "Move +Y", "move-y-pos", "Move selected objects positive on the Y axis.", KEY (PageDown)) { 402 MAKE_ACTION (moveYPos, "Move +Y", "move-y-pos", "Move selected objects positive on the Y axis.", KEY (End)) {
403 doMoveObjects ({0, 1, 0}); 403 doMoveObjects ({0, 1, 0});
404 } 404 }
405 405
406 MAKE_ACTION (moveZPos, "Move +Z", "move-z-pos", "Move selected objects positive on the Z axis.", KEY (Up)) { 406 MAKE_ACTION (moveZPos, "Move +Z", "move-z-pos", "Move selected objects positive on the Z axis.", KEY (Up)) {
407 doMoveObjects ({0, 0, 1}); 407 doMoveObjects ({0, 0, 1});
479 479
480 MAKE_ACTION (rotateXPos, "Rotate +X", "rotate-x-pos", "Rotate objects around X axis", CTRL (Right)) { 480 MAKE_ACTION (rotateXPos, "Rotate +X", "rotate-x-pos", "Rotate objects around X axis", CTRL (Right)) {
481 doRotate (1, 0, 0); 481 doRotate (1, 0, 0);
482 } 482 }
483 483
484 MAKE_ACTION (rotateYPos, "Rotate +Y", "rotate-y-pos", "Rotate objects around Y axis", CTRL (PageDown)) { 484 MAKE_ACTION (rotateYPos, "Rotate +Y", "rotate-y-pos", "Rotate objects around Y axis", CTRL (End)) {
485 doRotate (0, 1, 0); 485 doRotate (0, 1, 0);
486 } 486 }
487 487
488 MAKE_ACTION (rotateZPos, "Rotate +Z", "rotate-z-pos", "Rotate objects around Z axis", CTRL (Up)) { 488 MAKE_ACTION (rotateZPos, "Rotate +Z", "rotate-z-pos", "Rotate objects around Z axis", CTRL (Up)) {
489 doRotate (0, 0, 1); 489 doRotate (0, 0, 1);
491 491
492 MAKE_ACTION (rotateXNeg, "Rotate -X", "rotate-x-neg", "Rotate objects around X axis", CTRL (Left)) { 492 MAKE_ACTION (rotateXNeg, "Rotate -X", "rotate-x-neg", "Rotate objects around X axis", CTRL (Left)) {
493 doRotate (-1, 0, 0); 493 doRotate (-1, 0, 0);
494 } 494 }
495 495
496 MAKE_ACTION (rotateYNeg, "Rotate -Y", "rotate-y-neg", "Rotate objects around Y axis", CTRL (PageUp)) { 496 MAKE_ACTION (rotateYNeg, "Rotate -Y", "rotate-y-neg", "Rotate objects around Y axis", CTRL (Home)) {
497 doRotate (0, -1, 0); 497 doRotate (0, -1, 0);
498 } 498 }
499 499
500 MAKE_ACTION (rotateZNeg, "Rotate -Z", "rotate-z-neg", "Rotate objects around Z axis", CTRL (Down)) { 500 MAKE_ACTION (rotateZNeg, "Rotate -Z", "rotate-z-neg", "Rotate objects around Z axis", CTRL (Down)) {
501 doRotate (0, 0, -1); 501 doRotate (0, 0, -1);

mercurial