src/gui_actions.cpp

changeset 550
d97594e3fc54
parent 542
46a33bdc0b36
child 551
0efe5dbcef07
equal deleted inserted replaced
549:715d9a7f6598 550:d97594e3fc54
510 { OverlayDialog dlg; 510 { OverlayDialog dlg;
511 511
512 if (!dlg.exec()) 512 if (!dlg.exec())
513 return; 513 return;
514 514
515 g_win->R()->setupOverlay ( (GL::Camera) dlg.camera(), dlg.fpath(), dlg.ofsx(), 515 g_win->R()->setupOverlay ((GL::EFixedCamera) dlg.camera(), dlg.fpath(), dlg.ofsx(),
516 dlg.ofsy(), dlg.lwidth(), dlg.lheight()); 516 dlg.ofsy(), dlg.lwidth(), dlg.lheight());
517 } 517 }
518 518
519 // ============================================================================= 519 // =============================================================================
520 // ----------------------------------------------------------------------------- 520 // -----------------------------------------------------------------------------
521 DEFINE_ACTION (ClearOverlay, 0) 521 DEFINE_ACTION (ClearOverlay, 0)
523 } 523 }
524 524
525 // ============================================================================= 525 // =============================================================================
526 // ----------------------------------------------------------------------------- 526 // -----------------------------------------------------------------------------
527 DEFINE_ACTION (ModeSelect, CTRL (1)) 527 DEFINE_ACTION (ModeSelect, CTRL (1))
528 { g_win->R()->setEditMode (Select); 528 { g_win->R()->setEditMode (ESelectMode);
529 } 529 }
530 530
531 // ============================================================================= 531 // =============================================================================
532 // ----------------------------------------------------------------------------- 532 // -----------------------------------------------------------------------------
533 DEFINE_ACTION (ModeDraw, CTRL (2)) 533 DEFINE_ACTION (ModeDraw, CTRL (2))
534 { g_win->R()->setEditMode (Draw); 534 { g_win->R()->setEditMode (EDrawMode);
535 } 535 }
536 536
537 // ============================================================================= 537 // =============================================================================
538 // ----------------------------------------------------------------------------- 538 // -----------------------------------------------------------------------------
539 DEFINE_ACTION (ModeCircle, CTRL (3)) 539 DEFINE_ACTION (ModeCircle, CTRL (3))
540 { g_win->R()->setEditMode (CircleMode); 540 { g_win->R()->setEditMode (ECircleMode);
541 } 541 }
542 542
543 // ============================================================================= 543 // =============================================================================
544 // ----------------------------------------------------------------------------- 544 // -----------------------------------------------------------------------------
545 DEFINE_ACTION (SetDrawDepth, 0) 545 DEFINE_ACTION (SetDrawDepth, 0)
546 { if (g_win->R()->camera() == GL::Free) 546 { if (g_win->R()->camera() == GL::EFreeCamera)
547 return; 547 return;
548 548
549 bool ok; 549 bool ok;
550 double depth = QInputDialog::getDouble (g_win, "Set Draw Depth", 550 double depth = QInputDialog::getDouble (g_win, "Set Draw Depth",
551 fmt ("Depth value for %1 Camera:", g_win->R()->getCameraName()), 551 fmt ("Depth value for %1 Camera:", g_win->R()->getCameraName()),

mercurial