34 #include <QFileDialog>
38 #ifdef HAVE_QSCINTILLA
41 #include <QScrollArea>
43 #if defined (HAVE_QSCI_QSCILEXEROCTAVE_H)
44 #define HAVE_LEXER_OCTAVE
45 #include <Qsci/qscilexeroctave.h>
46 #elif defined (HAVE_QSCI_QSCILEXERMATLAB_H)
47 #define HAVE_LEXER_MATLAB
48 #include <Qsci/qscilexermatlab.h>
51 #include <Qsci/qscilexercpp.h>
52 #include <Qsci/qscilexerbash.h>
53 #include <Qsci/qscilexerperl.h>
54 #include <Qsci/qscilexerbatch.h>
55 #include <Qsci/qscilexerdiff.h>
66 restoreGeometry (settings->value(
"settings/geometry").toByteArray ());
70 QDir qm_dir (qm_dir_name);
71 QFileInfoList qm_files = qm_dir.entryInfoList (QStringList (
"*.qm"),
72 QDir::Files | QDir::Readable,
74 for (
int i = 0; i < qm_files.length (); i++)
79 QString language = settings->value (
"language",
"SYSTEM").toString ();
80 if (language ==
"SYSTEM")
81 language = tr (
"System setting");
89 QButtonGroup *icon_size_group =
new QButtonGroup (
this);
93 int icon_size = settings->value (
"toolbar_icon_size", 0).toInt ();
99 QButtonGroup *icon_group =
new QButtonGroup (
this);
103 QString widget_icon_set =
104 settings->value (
"DockWidgets/widget_icon_set",
"NONE").toString ();
111 QVariant default_var = QColor (255,255,255);
112 QColor bg_color = settings->value (
"Dockwidgets/title_bg_color",
113 default_var).value<QColor> ();
115 _widget_title_bg_color->setEnabled (
false);
118 _widget_title_bg_color, SLOT (setEnabled (
bool)));
120 default_var = QColor (192,192,192);
121 QColor bg_color_active = settings->value (
"Dockwidgets/title_bg_color_active",
122 default_var).value<QColor> ();
124 _widget_title_bg_color_active->setEnabled (
false);
127 _widget_title_bg_color_active, SLOT (setEnabled (
bool)));
129 default_var = QColor (0,0,0);
130 QColor fg_color = settings->value (
"Dockwidgets/title_fg_color",
131 default_var).value<QColor> ();
133 _widget_title_fg_color->setEnabled (
false);
136 _widget_title_fg_color, SLOT (setEnabled (
bool)));
138 default_var = QColor (0,0,0);
139 QColor fg_color_active = settings->value (
"Dockwidgets/title_fg_color_active",
140 default_var).value<QColor> ();
142 _widget_title_fg_color_active->setEnabled (
false);
145 _widget_title_fg_color_active, SLOT (setEnabled (
bool)));
148 settings->value (
"DockWidgets/widget_title_3d", 50).toInt ());
150 settings->value (
"DockWidgets/widget_title_custom_style",
false).toBool ());
154 settings->value (
"prompt_to_exit",
false).toBool ());
158 settings->value (
"show_status_bar",
true).toBool ());
162 settings->value (
"restore_octave_dir",
false).toBool ());
164 settings->value (
"octave_startup_dir").toString ());
172 settings->value (
"customFileEditor").toString ());
174 settings->value (
"editor/showLineNumbers",
true).toBool ());
176 default_var = QColor (240, 240, 240);
177 QColor setting_color = settings->value (
"editor/highlight_current_line_color",
178 default_var).value<QColor> ();
181 _editor_current_line_color->setMinimumSize (50,10);
182 _editor_current_line_color->setEnabled (
false);
184 _editor_current_line_color, SLOT (setEnabled (
bool)));
186 settings->value (
"editor/highlightCurrentLine",
true).toBool ());
188 settings->value (
"editor/long_line_marker",
true).toBool ());
190 settings->value (
"editor/long_line_column",80).toInt ());
192 settings->value (
"editor/show_edit_status_bar",
true).toBool ());
194 settings->value (
"editor/code_folding",
true).toBool ());
197 settings->value (
"editor/codeCompletion",
true).toBool ());
199 settings->value (
"editor/codeCompletion_threshold",2).toInt ());
201 settings->value (
"editor/codeCompletion_keywords",
true).toBool ());
207 settings->value (
"editor/codeCompletion_octave_builtins",
true).toBool ());
209 settings->value (
"editor/codeCompletion_octave_functions",
true).toBool ());
211 settings->value (
"editor/codeCompletion_document",
false).toBool ());
213 settings->value (
"editor/codeCompletion_case",
true).toBool ());
215 settings->value (
"editor/codeCompletion_replace",
false).toBool ());
217 settings->value (
"editor/show_white_space",
false).toBool ());
219 settings->value (
"editor/show_white_space_indent",
false).toBool ());
221 settings->value (
"editor/show_eol_chars",
false).toBool () );
223 settings->value (
"editor/show_hscroll_bar",
true).toBool ());
225 #ifdef HAVE_QSCINTILLA
226 #if defined (Q_OS_WIN32)
227 int eol_mode = QsciScintilla::EolWindows;
228 #elif defined (Q_OS_MAC)
229 int eol_mode = QsciScintilla::EolMac;
231 int eol_mode = QsciScintilla::EolUnix;
237 settings->value (
"editor/default_eol_mode",eol_mode).toInt () );
239 settings->value (
"editor/auto_indent",
true).toBool ());
241 settings->value (
"editor/tab_indents_line",
false).toBool ());
243 settings->value (
"editor/backspace_unindents_line",
false).toBool ());
245 settings->value (
"editor/show_indent_guides",
false).toBool ());
247 settings->value (
"editor/indent_width", 2).toInt ());
249 settings->value (
"editor/indent_uses_tabs",
false).toBool ());
251 settings->value (
"editor/tab_width", 2).toInt ());
253 settings->value (
"editor/longWindowTitle",
false).toBool ());
255 settings->value (
"editor/notebook_tab_width_min", 160).toInt ());
257 settings->value (
"editor/notebook_tab_width_max", 300).toInt ());
259 settings->value (
"editor/restoreSession",
true).toBool ());
261 settings->value (
"editor/create_new_file",
false).toBool ());
263 settings->value (
"editor/always_reload_changed_files",
false).toBool ());
267 settings->value (
"terminal/fontName",
"Courier New").toString ()));
269 settings->value (
"terminal/fontSize", 10).toInt ());
271 settings->value (
"terminal/history_buffer",1000).toInt ());
273 settings->value (
"terminal/cursorBlinking",
true).toBool ());
275 settings->value (
"terminal/cursorUseForegroundColor",
true).toBool ());
277 settings->value (
"terminal/focus_after_command",
false).toBool ());
279 settings->value (
"terminal/print_debug_location",
false).toBool ());
282 = settings->value (
"terminal/cursorType",
"ibeam").toString ();
285 items << QString (
"0") << QString (
"1") << QString (
"2");
291 if (cursorType ==
"ibeam")
293 else if (cursorType ==
"block")
295 else if (cursorType ==
"underline")
300 settings->value (
"filesdockwidget/showFileSize",
false).toBool ());
302 settings->value (
"filesdockwidget/showFileType",
false).toBool ());
304 settings->value (
"filesdockwidget/showLastModified",
false).toBool ());
306 settings->value (
"filesdockwidget/showHiddenFiles",
false).toBool ());
308 settings->value (
"filesdockwidget/useAlternatingRowColors",
true).toBool ());
312 settings->value (
"filesdockwidget/sync_octave_directory",
true).toBool ());
314 settings->value (
"filesdockwidget/restore_last_dir",
false).toBool ());
316 settings->value (
"filesdockwidget/startup_dir").toString ());
321 settings->value (
"news/allow_web_connection",
false).toBool ());
323 settings->value (
"useProxyServer",
false).toBool ());
324 ui->
proxyHostName->setText (settings->value (
"proxyHostName").toString ());
326 int currentIndex = 0;
327 QString proxyTypeString = settings->value (
"proxyType").toString ();
328 while ((currentIndex < ui->proxyType->count ())
329 && (
ui->
proxyType->currentText () != proxyTypeString))
335 ui->
proxyPort->setText (settings->value (
"proxyPort").toString ());
336 ui->
proxyUserName->setText (settings->value (
"proxyUserName").toString ());
337 ui->
proxyPassword->setText (settings->value (
"proxyPassword").toString ());
344 settings->value (
"workspaceview/hide_tool_tips",
false).toBool ());
352 settings->value (
"shortcuts/prevent_readline_conflicts",
true).toBool ());
353 int set = settings->value (
"shortcuts/set",0).toInt ();
371 #ifdef HAVE_QSCINTILLA
374 #if defined (HAVE_LEXER_OCTAVE)
375 lexer =
new QsciLexerOctave ();
376 read_lexer_settings (lexer,settings);
378 #elif defined (HAVE_LEXER_MATLAB)
379 lexer =
new QsciLexerMatlab ();
380 read_lexer_settings (lexer,settings);
383 lexer =
new QsciLexerCPP ();
384 read_lexer_settings (lexer,settings);
386 lexer =
new QsciLexerPerl ();
387 read_lexer_settings (lexer,settings);
389 lexer =
new QsciLexerBatch ();
390 read_lexer_settings (lexer,settings);
392 lexer =
new QsciLexerDiff ();
393 read_lexer_settings (lexer,settings);
395 lexer =
new QsciLexerBash ();
396 read_lexer_settings (lexer,settings);
399 read_lexer_settings (lexer,settings);
407 connect (
ui->
button_box, SIGNAL (clicked (QAbstractButton *)),
422 ui->
tabWidget->setCurrentIndex (settings->value (
"settings/last_tab",
427 QHash <QString, QWidget*> tab_hash;
435 #ifdef HAVE_QSCINTILLA
437 settings_dialog::get_valid_lexer_styles (
QsciLexer *
lexer,
int styles[])
440 int actual_style = 0;
441 while (actual_style < MaxStyleNumber && max_style < MaxLexerStyles)
443 if ((lexer->description (actual_style)) !=
"")
444 styles[max_style++] = actual_style;
451 settings_dialog::read_lexer_settings (
QsciLexer *lexer, QSettings *settings)
453 lexer->readSettings (*settings);
454 int styles[MaxLexerStyles];
456 int max_style = get_valid_lexer_styles (lexer, styles);
457 QGridLayout *style_grid =
new QGridLayout ();
458 QVector<QLabel*> description (max_style);
459 QVector<QFontComboBox*> select_font (max_style);
460 QVector<QSpinBox*> font_size (max_style);
461 QVector<QCheckBox*> attrib_font (3 * max_style);
462 QVector<color_picker*> color (max_style);
463 QVector<color_picker*> bg_color (max_style);
464 int default_size = 10;
465 QFont default_font = QFont ();
467 QColor default_color = QColor ();
468 QColor dummy_color = QColor (255,0,255);
470 for (
int i = 0; i < max_style; i++)
472 QString actual_name = lexer->description (styles[i]);
473 QFont actual_font = lexer->font (styles[i]);
474 description[i] =
new QLabel (actual_name);
475 description[i]->setWordWrap (
true);
476 label_width = 24*description[i]->fontMetrics ().averageCharWidth ();
477 description[i]->setMaximumSize (label_width,QWIDGETSIZE_MAX);
478 description[i]->setMinimumSize (label_width,1);
479 select_font[i] =
new QFontComboBox ();
480 select_font[i]->setObjectName (actual_name+
"_font");
481 select_font[i]->setMaximumSize (label_width,QWIDGETSIZE_MAX);
482 select_font[i]->setMinimumSize (label_width,1);
483 font_size[i] =
new QSpinBox ();
484 font_size[i]->setObjectName (actual_name+
"_size");
487 select_font[i]->setCurrentFont (actual_font);
488 default_font = actual_font;
489 font_size[i]->setRange (6,24);
490 default_size = actual_font.pointSize ();
491 font_size[i]->setValue (default_size);
492 default_color = lexer->defaultPaper ();
497 select_font[i]->setCurrentFont (actual_font);
498 if (actual_font.family () == default_font.family ())
499 select_font[i]->setEditText (lexer->description (0));
500 font_size[i]->setRange (-4,4);
501 font_size[i]->setValue (actual_font.pointSize ()-default_size);
502 font_size[i]->setToolTip (tr (
"Difference to the default size"));
503 if (lexer->paper (styles[i]) == default_color)
506 bg_color[i] =
new color_picker (lexer->paper (styles[i]));
507 bg_color[i]->setToolTip
508 (tr (
"Background color, pink (255,0,255) means default"));
510 attrib_font[0+3*i] =
new QCheckBox (tr (
"b",
"short form for bold"));
511 attrib_font[1+3*i] =
new QCheckBox (tr (
"i",
"short form for italic"));
512 attrib_font[2+3*i] =
new QCheckBox (tr (
"u",
"short form for underlined"));
513 attrib_font[0+3*i]->setChecked (Qt::Checked && actual_font.bold ());
514 attrib_font[0+3*i]->setObjectName (actual_name+
"_bold");
515 attrib_font[1+3*i]->setChecked (Qt::Checked && actual_font.italic ());
516 attrib_font[1+3*i]->setObjectName (actual_name+
"_italic");
517 attrib_font[2+3*i]->setChecked (Qt::Checked && actual_font.underline ());
518 attrib_font[2+3*i]->setObjectName (actual_name+
"_underline");
520 color[i]->setObjectName (actual_name+
"_color");
521 bg_color[i]->setObjectName (actual_name+
"_bg_color");
523 style_grid->addWidget (description[i], i, column++);
524 style_grid->addWidget (select_font[i], i, column++);
525 style_grid->addWidget (font_size[i], i, column++);
526 style_grid->addWidget (attrib_font[0+3*i], i, column++);
527 style_grid->addWidget (attrib_font[1+3*i], i, column++);
528 style_grid->addWidget (attrib_font[2+3*i], i, column++);
529 style_grid->addWidget (color[i], i, column++);
530 style_grid->addWidget (bg_color[i], i, column++);
533 QScrollArea *scroll_area =
new QScrollArea ();
535 scroll_area_contents->setObjectName (QString (lexer->language ())+
"_styles");
536 scroll_area_contents->setLayout (style_grid);
537 scroll_area->setWidget (scroll_area_contents);
541 settings->value (
"settings/last_editor_styles_tab",0).toInt ());
553 int nr_of_classes = class_chars.length ();
555 QGridLayout *style_grid =
new QGridLayout ();
556 QVector<QLabel*> description (nr_of_classes);
557 QVector<color_picker*> color (nr_of_classes);
561 for (
int i = 0; i < nr_of_classes; i++)
563 description[i] =
new QLabel (
" " + class_names.at (i));
564 description[i]->setAlignment (Qt::AlignRight);
565 QVariant default_var = default_colors.at (i);
566 QColor setting_color = settings->value (
"workspaceview/color_"
567 + class_chars.mid (i,1),
568 default_var).value<QColor> ();
570 color[i]->setObjectName (
"color_"+class_chars.mid (i, 1));
571 color[i]->setMinimumSize (30, 10);
572 style_grid->addWidget (description[i], row, 3*column);
573 style_grid->addWidget (color[i], row, 3*column+1);
576 style_grid->setColumnStretch (4*column, 10);
593 int nr_of_classes = class_chars.length ();
595 QGridLayout *style_grid =
new QGridLayout ();
596 QVector<QLabel*> description (nr_of_classes);
597 QVector<color_picker*> color (nr_of_classes);
601 for (
int i = 0; i < nr_of_classes; i++)
603 description[i] =
new QLabel (
" " + class_names.at (i));
604 description[i]->setAlignment (Qt::AlignRight);
605 QVariant default_var = default_colors.at (i);
606 QColor setting_color = settings->value (
"terminal/color_"
607 + class_chars.mid (i,1),
608 default_var).value<QColor> ();
610 color[i]->setObjectName (
"terminal_color_"+class_chars.mid (i, 1));
611 color[i]->setMinimumSize (30, 10);
612 style_grid->addWidget (description[i], row, 2*column);
613 style_grid->addWidget (color[i], row, 2*column+1);
616 style_grid->setColumnStretch (3*column, 10);
633 QString widget_icon_set =
"NONE";
635 widget_icon_set =
"LETTER";
637 widget_icon_set =
"GRAPHIC";
638 settings->setValue (
"DockWidgets/widget_icon_set",widget_icon_set);
642 if (language == tr (
"System setting"))
644 settings->setValue (
"language", language);
647 settings->setValue (
"DockWidgets/widget_title_custom_style",
649 settings->setValue (
"DockWidgets/widget_title_3d",
651 settings->setValue (
"Dockwidgets/title_bg_color",
653 settings->setValue (
"Dockwidgets/title_bg_color_active",
655 settings->setValue (
"Dockwidgets/title_fg_color",
657 settings->setValue (
"Dockwidgets/title_fg_color_active",
666 settings->setValue (
"toolbar_icon_size", icon_size);
672 settings->setValue (
"show_status_bar",
ui->
cb_status_bar->isChecked ());
675 settings->setValue (
"restore_octave_dir",
680 settings->setValue (
"useCustomFileEditor",
683 settings->setValue (
"editor/showLineNumbers",
685 settings->setValue (
"editor/highlightCurrentLine",
687 settings->setValue (
"editor/highlight_current_line_color",
689 settings->setValue (
"editor/long_line_marker",
691 settings->setValue (
"editor/long_line_column",
693 settings->setValue (
"editor/code_folding",
695 settings->setValue (
"editor/show_edit_status_bar",
697 settings->setValue (
"editor/codeCompletion",
699 settings->setValue (
"editor/codeCompletion_threshold",
701 settings->setValue (
"editor/codeCompletion_keywords",
703 settings->setValue (
"editor/codeCompletion_octave_builtins",
705 settings->setValue (
"editor/codeCompletion_octave_functions",
707 settings->setValue (
"editor/codeCompletion_document",
709 settings->setValue (
"editor/codeCompletion_case",
711 settings->setValue (
"editor/codeCompletion_replace",
713 settings->setValue (
"editor/show_white_space",
715 settings->setValue (
"editor/show_white_space_indent",
717 settings->setValue (
"editor/show_eol_chars",
719 settings->setValue (
"editor/show_hscroll_bar",
721 settings->setValue (
"editor/default_eol_mode",
723 settings->setValue (
"editor/auto_indent",
725 settings->setValue (
"editor/tab_indents_line",
727 settings->setValue (
"editor/backspace_unindents_line",
729 settings->setValue (
"editor/show_indent_guides",
731 settings->setValue (
"editor/indent_width",
733 settings->setValue (
"editor/indent_uses_tabs",
735 settings->setValue (
"editor/tab_width",
737 settings->setValue (
"editor/longWindowTitle",
739 settings->setValue (
"editor/notebook_tab_width_min",
741 settings->setValue (
"editor/notebook_tab_width_max",
743 settings->setValue (
"editor/restoreSession",
745 settings->setValue (
"editor/create_new_file",
747 settings->setValue (
"editor/always_reload_changed_files",
750 settings->setValue (
"terminal/fontName",
753 settings->setValue (
"filesdockwidget/showFileSize",
755 settings->setValue (
"filesdockwidget/showFileType",
757 settings->setValue (
"filesdockwidget/showLastModified",
759 settings->setValue (
"filesdockwidget/showHiddenFiles",
761 settings->setValue (
"filesdockwidget/useAlternatingRowColors",
763 settings->setValue (
"filesdockwidget/sync_octave_directory",
765 settings->setValue (
"filesdockwidget/restore_last_dir",
767 settings->setValue (
"filesdockwidget/startup_dir",
771 settings->setValue (
"news/allow_web_connection",
774 settings->setValue (
"proxyType",
ui->
proxyType->currentText ());
776 settings->setValue (
"proxyPort",
ui->
proxyPort->text ());
779 settings->setValue (
"terminal/cursorBlinking",
781 settings->setValue (
"terminal/cursorUseForegroundColor",
783 settings->setValue (
"terminal/focus_after_command",
785 settings->setValue (
"terminal/print_debug_location",
787 settings->setValue (
"terminal/history_buffer",
794 case 0: cursorType =
"ibeam";
break;
795 case 1: cursorType =
"block";
break;
796 case 2: cursorType =
"underline";
break;
798 settings->setValue (
"terminal/cursorType", cursorType);
800 #ifdef HAVE_QSCINTILLA
803 #if defined (HAVE_LEXER_OCTAVE)
804 lexer =
new QsciLexerOctave ();
805 write_lexer_settings (lexer,settings);
807 #elif defined (HAVE_LEXER_MATLAB)
808 lexer =
new QsciLexerMatlab ();
809 write_lexer_settings (lexer,settings);
812 lexer =
new QsciLexerCPP ();
813 write_lexer_settings (lexer,settings);
815 lexer =
new QsciLexerPerl ();
816 write_lexer_settings (lexer,settings);
818 lexer =
new QsciLexerBatch ();
819 write_lexer_settings (lexer,settings);
821 lexer =
new QsciLexerDiff ();
822 write_lexer_settings (lexer,settings);
824 lexer =
new QsciLexerBash ();
825 write_lexer_settings (lexer,settings);
828 write_lexer_settings (lexer,settings);
835 settings->setValue (
"workspaceview/hide_tool_tips",
842 settings->setValue (
"shortcuts/prevent_readline_conflicts",
847 settings->setValue (
"shortcuts/set",set);
851 settings->setValue (
"settings/last_tab",
ui->
tabWidget->currentIndex ());
852 settings->setValue (
"settings/geometry",saveGeometry ());
857 #ifdef HAVE_QSCINTILLA
859 settings_dialog::write_lexer_settings (
QsciLexer *lexer, QSettings *settings)
862 findChild <QWidget *>(QString (lexer->language ())+
"_styles");
863 int styles[MaxLexerStyles];
865 int max_style = get_valid_lexer_styles (lexer, styles);
866 QFontComboBox *select_font;
868 QCheckBox *attrib_font[3];
871 int default_size = 10;
872 QFont default_font = QFont (
"Courier New",10,-1,0);
873 QColor default_color = QColor ();
874 QColor dummy_color = QColor (255,0,255);
876 for (
int i = 0; i < max_style; i++)
878 QString actual_name = lexer->description (styles[i]);
879 select_font = tab->findChild <QFontComboBox *>(actual_name+
"_font");
880 font_size = tab->findChild <QSpinBox *>(actual_name+
"_size");
881 attrib_font[0] = tab->findChild <QCheckBox *>(actual_name+
"_bold");
882 attrib_font[1] = tab->findChild <QCheckBox *>(actual_name+
"_italic");
883 attrib_font[2] = tab->findChild <QCheckBox *>(actual_name+
"_underline");
884 color = tab->findChild <
color_picker *>(actual_name+
"_color");
885 bg_color = tab->findChild <
color_picker *>(actual_name+
"_bg_color");
886 QFont new_font = default_font;
889 new_font = select_font->currentFont ();
891 default_font = new_font;
892 else if (select_font->currentText () == lexer->description (0))
893 new_font = default_font;
899 default_size = font_size->value ();
900 new_font.setPointSize (font_size->value ());
903 new_font.setPointSize (font_size->value ()+default_size);
906 new_font.setBold (attrib_font[0]->isChecked ());
908 new_font.setItalic (attrib_font[1]->isChecked ());
910 new_font.setUnderline (attrib_font[2]->isChecked ());
911 lexer->setFont (new_font,styles[i]);
913 lexer->setDefaultFont (new_font);
915 lexer->setColor (color->color (),styles[i]);
920 default_color = bg_color->
color ();
921 lexer->setPaper (default_color,styles[i]);
922 lexer->setDefaultPaper (default_color);
926 if (bg_color->
color () == dummy_color)
927 lexer->setPaper (default_color,styles[i]);
929 lexer->setPaper (bg_color->
color (),styles[i]);
934 lexer->writeSettings (*settings);
949 for (
int i = 0; i < class_chars.length (); i++)
952 "color_"+class_chars.mid (i,1));
954 settings->setValue (
"workspaceview/color_"+class_chars.mid (i,1),
966 for (
int i = 0; i < class_chars.length (); i++)
969 "terminal_color_"+class_chars.mid (i,1));
971 settings->setValue (
"terminal/color_"+class_chars.mid (i,1),
983 QDialogButtonBox::ButtonRole button_role =
ui->
button_box->buttonRole (button);
985 if (button_role == QDialogButtonBox::ApplyRole ||
986 button_role == QDialogButtonBox::AcceptRole)
992 if (button_role == QDialogButtonBox::RejectRole ||
993 button_role == QDialogButtonBox::AcceptRole)
1000 QString dir = QFileDialog::getExistingDirectory(
this,
1001 title, line_edit->text (),
1002 QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
1003 line_edit->setText (dir);
QLineEdit * le_octave_dir
QHBoxLayout * layout_widget_fgtitle
settings_dialog(QWidget *parent, const QString &desired_tab=QString())
QComboBox * comboBox_language
QLineEdit * proxyUserName
QCheckBox * terminal_cursorBlinking
QLineEdit * le_file_browser_dir
QCheckBox * cb_prevent_readline_conflicts
QRadioButton * general_icon_octave
void apply_new_settings()
QSpinBox * terminal_history_buffer
QCheckBox * editor_checkbox_ac_document
QCheckBox * editor_tab_ind_checkbox
QSpinBox * editor_ind_width_spinbox
QCheckBox * editor_highlightCurrentLine
QCheckBox * cb_hide_tool_tips
QCheckBox * useCustomFileEditor
QCheckBox * cb_show_hscrollbar
static QString terminal_color_chars(void)
QCheckBox * cb_restore_octave_dir
QCheckBox * editor_reload_changed_files
void set_disabled_pref_file_browser_dir(bool disable)
QPushButton * btn_export_shortcut_set1
QCheckBox * cb_widget_custom_style
QCheckBox * editor_checkbox_ac_replace
static QString get_gui_translation_dir(void)
QPushButton * btn_import_shortcut_set2
QCheckBox * editor_ws_indent_checkbox
static QStringList terminal_color_names(void)
QCheckBox * showLastModified
void get_file_browser_dir()
QRadioButton * general_icon_graphic
void read_terminal_colors(QSettings *settings)
QCheckBox * useAlternatingRowColors
QCheckBox * editor_bs_unind_checkbox
QTreeWidget * shortcuts_treewidget
void import_shortcut_set1()
QCheckBox * editor_auto_ind_checkbox
QCheckBox * editor_checkbox_ac_functions
QCheckBox * editor_showLineNumbers
QCheckBox * editor_create_new_file
color_picker * _widget_title_fg_color
QSpinBox * terminal_fontSize
static QList< QColor > storage_class_default_colors(void)
QCheckBox * editor_longWindowTitle
QHBoxLayout * layout_widget_fgtitle_active
color_picker * _widget_title_bg_color
QCheckBox * editor_ind_guides_checkbox
void export_shortcut_set2()
QLineEdit * proxyHostName
color_picker * _widget_title_fg_color_active
void write_workspace_colors(QSettings *settings)
static void fill_treewidget(QTreeWidget *tree_view)
QCheckBox * editor_long_line_marker
QRadioButton * icon_size_normal
QCheckBox * useProxyServer
QHBoxLayout * layout_widget_bgtitle_active
QPushButton * btn_export_shortcut_set2
QWidget * tab_editor_styles
QFontComboBox * terminal_fontName
QHBoxLayout * layout_widget_bgtitle
static void import_export(bool import, int set)
QCheckBox * cb_restore_file_browser_dir
void import_shortcut_set2()
QSpinBox * editor_notebook_tab_width_max
QCheckBox * editor_ws_checkbox
QRadioButton * rb_sc_set1
QCheckBox * editor_checkbox_ac_keywords
QSpinBox * editor_tab_width_spinbox
QRadioButton * rb_sc_set2
QCheckBox * terminal_focus_command
QCheckBox * cb_status_bar
QSpinBox * editor_spinbox_ac_threshold
QCheckBox * checkbox_allow_web_connect
static QSettings * get_settings(void)
QCheckBox * editor_checkbox_ac_builtins
QCheckBox * terminal_print_dbg_location
void setupUi(QDialog *settings_dialog)
void write_changed_settings(bool closing)
static QList< QColor > terminal_default_colors(void)
QPushButton * pb_octave_dir
QCheckBox * terminal_cursorUseForegroundColor
QTabWidget * tabs_editor_lexers
QCheckBox * editor_restoreSession
void show_tab(const QString &)
QCheckBox * editor_ind_uses_tabs_checkbox
QCheckBox * editor_checkbox_ac_case
static void write_shortcuts(int set, QSettings *settings, bool closing)
void export_shortcut_set1()
color_picker * _widget_title_bg_color_active
color_picker * _editor_current_line_color
QPushButton * pb_file_browser_dir
QSpinBox * editor_long_line_column
QLineEdit * proxyPassword
static QString storage_class_chars(void)
static QStringList storage_class_names(void)
QGroupBox * terminal_colors_box
QComboBox * terminal_cursorType
void write_terminal_colors(QSettings *settings)
QCheckBox * showHiddenFiles
QLineEdit * customFileEditor
void get_dir(QLineEdit *, const QString &)
void button_clicked(QAbstractButton *button)
QRadioButton * icon_size_small
QRadioButton * general_icon_letter
QCheckBox * editor_codeCompletion
QDialogButtonBox * button_box
QComboBox * combo_eol_mode
QCheckBox * sync_octave_directory
void read_workspace_colors(QSettings *settings)
QGridLayout * editor_grid_current_line
QRadioButton * icon_size_large
QGroupBox * workspace_colors_box
QPushButton * btn_import_shortcut_set1
QCheckBox * cb_prompt_to_exit
QCheckBox * cb_code_folding
QCheckBox * cb_edit_status_bar
QSpinBox * editor_notebook_tab_width_min