src/dialogs.cpp

changeset 550
d97594e3fc54
parent 540
0334789cb4d7
child 553
2418d5955421
--- a/src/dialogs.cpp	Sat Dec 07 00:01:20 2013 +0200
+++ b/src/dialogs.cpp	Sat Dec 07 01:03:17 2013 +0200
@@ -55,18 +55,18 @@
 	ui->setupUi (this);
 
 	m_cameraArgs =
-	{	{ ui->top,    GL::Top },
-		{ ui->bottom, GL::Bottom },
-		{ ui->front,  GL::Front },
-		{ ui->back,   GL::Back },
-		{ ui->left,   GL::Left },
-		{ ui->right,  GL::Right }
+	{	{ ui->top,    GL::ETopCamera },
+		{ ui->bottom, GL::EBottomCamera },
+		{ ui->front,  GL::EFrontCamera },
+		{ ui->back,   GL::EBackCamera },
+		{ ui->left,   GL::ELeftCamera },
+		{ ui->right,  GL::ERightCamera }
 	};
 
-	GL::Camera cam = g_win->R()->camera();
+	GL::EFixedCamera cam = g_win->R()->camera();
 
-	if (cam == GL::Free)
-		cam = GL::Top;
+	if (cam == GL::EFreeCamera)
+		cam = GL::ETopCamera;
 
 	connect (ui->width, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged()));
 	connect (ui->height, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged()));
@@ -128,7 +128,7 @@
 }
 
 int OverlayDialog::camera() const
-{	return radioSwitch<int> (GL::Top, m_cameraArgs);
+{	return radioSwitch<int> (GL::ETopCamera, m_cameraArgs);
 }
 
 void OverlayDialog::slot_fpath()

mercurial