src/configDialog.cc

changeset 593
108d7d21e155
parent 590
7aec744ce97b
child 600
209e3f1f7b2c
--- a/src/configDialog.cc	Mon Dec 23 16:16:45 2013 +0200
+++ b/src/configDialog.cc	Mon Dec 23 16:29:44 2013 +0200
@@ -59,6 +59,7 @@
 extern_cfg (String, ld_defaultname);
 extern_cfg (String, ld_defaultuser);
 extern_cfg (Int, ld_defaultlicense);
+extern_cfg (String, gl_selectcolor);
 extern_cfg (String, prog_ytruder);
 extern_cfg (String, prog_rectifier);
 extern_cfg (String, prog_intersector);
@@ -97,6 +98,10 @@
 	connect (ui->mainColorButton, SIGNAL (clicked()),
 			 this, SLOT (slot_setGLForeground()));
 
+	setButtonBackground (ui->selColorButton, gl_selectcolor);
+	connect (ui->selColorButton, SIGNAL (clicked()),
+			 this, SLOT (slot_setGLSelectColor()));
+
 	ui->mainColorAlpha->setValue (gl_maincolor_alpha * 10.0f);
 	ui->lineThickness->setValue (gl_linethickness);
 	ui->colorizeObjects->setChecked (lv_colorize);
@@ -532,6 +537,12 @@
 }
 
 // =============================================================================
+// -----------------------------------------------------------------------------
+void ConfigDialog::slot_setGLSelectColor()
+{	pickColor (gl_selectcolor, ui->selColorButton);
+}
+
+// =============================================================================
 // Sets background color of a given button.
 // -----------------------------------------------------------------------------
 void ConfigDialog::setButtonBackground (QPushButton* button, str value)

mercurial