src/mainWindow.cc

changeset 823
1a2f593f0c02
parent 818
748ba8818af8
child 830
a741a0b9df49
--- a/src/mainWindow.cc	Fri Jul 04 00:09:37 2014 +0300
+++ b/src/mainWindow.cc	Fri Jul 04 22:19:01 2014 +0300
@@ -50,6 +50,7 @@
 #include "configuration.h"
 #include "ui_ldforge.h"
 #include "primitives.h"
+#include "editmodes/abstracteditmode.h"
 
 static bool g_isSelectionLocked = false;
 static QMap<QAction*, QKeySequence> g_defaultShortcuts;
@@ -690,11 +691,11 @@
 //
 void MainWindow::updateEditModeActions()
 {
-	const EditMode mode = R()->editMode();
-	ui->actionModeSelect->setChecked (mode == ESelectMode);
-	ui->actionModeDraw->setChecked (mode == EDrawMode);
-	ui->actionModeCircle->setChecked (mode == ECircleMode);
-	ui->actionModeMagicWand->setChecked (mode == EMagicWandMode);
+	const EditModeType mode = R()->currentEditModeType();
+	ui->actionModeSelect->setChecked (mode == EditModeType::Select);
+	ui->actionModeDraw->setChecked (mode == EditModeType::Draw);
+	ui->actionModeCircle->setChecked (mode == EditModeType::Circle);
+	ui->actionModeMagicWand->setChecked (mode == EditModeType::MagicWand);
 }
 
 // =============================================================================

mercurial