src/gui.cpp

changeset 550
d97594e3fc54
parent 542
46a33bdc0b36
child 551
0efe5dbcef07
equal deleted inserted replaced
549:715d9a7f6598 550:d97594e3fc54
595 contextMenu->addAction (ui->actionClearOverlay); 595 contextMenu->addAction (ui->actionClearOverlay);
596 contextMenu->addAction (ui->actionModeSelect); 596 contextMenu->addAction (ui->actionModeSelect);
597 contextMenu->addAction (ui->actionModeDraw); 597 contextMenu->addAction (ui->actionModeDraw);
598 contextMenu->addAction (ui->actionModeCircle); 598 contextMenu->addAction (ui->actionModeCircle);
599 599
600 if (R()->camera() != GL::Free) 600 if (R()->camera() != GL::EFreeCamera)
601 { contextMenu->addSeparator(); 601 { contextMenu->addSeparator();
602 contextMenu->addAction (ui->actionSetDrawDepth); 602 contextMenu->addAction (ui->actionSetDrawDepth);
603 } 603 }
604 604
605 contextMenu->exec (pos); 605 contextMenu->exec (pos);
631 631
632 // ============================================================================= 632 // =============================================================================
633 // ----------------------------------------------------------------------------- 633 // -----------------------------------------------------------------------------
634 void ForgeWindow::updateEditModeActions() 634 void ForgeWindow::updateEditModeActions()
635 { const EditMode mode = R()->getEditMode(); 635 { const EditMode mode = R()->getEditMode();
636 ui->actionModeSelect->setChecked (mode == Select); 636 ui->actionModeSelect->setChecked (mode == ESelectMode);
637 ui->actionModeDraw->setChecked (mode == Draw); 637 ui->actionModeDraw->setChecked (mode == EDrawMode);
638 ui->actionModeCircle->setChecked (mode == CircleMode); 638 ui->actionModeCircle->setChecked (mode == ECircleMode);
639 } 639 }
640 640
641 // ============================================================================= 641 // =============================================================================
642 // ----------------------------------------------------------------------------- 642 // -----------------------------------------------------------------------------
643 void ForgeWindow::slot_editObject (QListWidgetItem* listitem) 643 void ForgeWindow::slot_editObject (QListWidgetItem* listitem)

mercurial