diff libgui/src/settings-dialog.cc @ 18343:3df71e1d3b24 gui-release

improve width of editor tabs when showing complete file path * settings-dialog.ui (editor tab): new option for min tab width * settings-dialog.cc (constructor): init new spin box for min tab width; (write-changed-settings): read value from new spin box for min tab width * file-editor.cc (notice-settings): elife mode and style sheet for tabs width new min. and max. option only when displaying complete path
author Torsten <ttl@justmail.de>
date Thu, 23 Jan 2014 19:35:43 +0100
parents 03a8428adef7
children 6eae8ba32e62
line wrap: on
line diff
--- a/libgui/src/settings-dialog.cc	Thu Jan 23 03:43:11 2014 -0500
+++ b/libgui/src/settings-dialog.cc	Thu Jan 23 19:35:43 2014 +0100
@@ -173,8 +173,10 @@
     settings->value ("editor/tab_width", 2).toInt ());
   ui->editor_longWindowTitle->setChecked (
     settings->value ("editor/longWindowTitle",false).toBool ());
-  ui->editor_notebook_tab_width->setValue (
-    settings->value ("editor/notebook_tab_width", 300).toInt ());
+  ui->editor_notebook_tab_width_min->setValue (
+    settings->value ("editor/notebook_tab_width_min", 160).toInt ());
+  ui->editor_notebook_tab_width_max->setValue (
+    settings->value ("editor/notebook_tab_width_max", 300).toInt ());
   ui->editor_restoreSession->setChecked (
     settings->value ("editor/restoreSession", true).toBool ());
   ui->editor_create_new_file->setChecked (
@@ -570,8 +572,10 @@
                       ui->editor_tab_width_spinbox->value ());
   settings->setValue ("editor/longWindowTitle",
                       ui->editor_longWindowTitle->isChecked ());
-  settings->setValue ("editor/notebook_tab_width",
-                      ui->editor_notebook_tab_width->value ());
+  settings->setValue ("editor/notebook_tab_width_min",
+                      ui->editor_notebook_tab_width_min->value ());
+  settings->setValue ("editor/notebook_tab_width_max",
+                      ui->editor_notebook_tab_width_max->value ());
   settings->setValue ("editor/restoreSession",
                       ui->editor_restoreSession->isChecked ());
   settings->setValue ("editor/create_new_file",