23 #if defined (HAVE_CONFIG_H)
34 #include <QFileDialog>
37 #include <QMessageBox>
40 #if defined (HAVE_QSCINTILLA)
43 # include <QScrollArea>
45 # if defined (HAVE_QSCI_QSCILEXEROCTAVE_H)
46 # define HAVE_LEXER_OCTAVE 1
47 # include <Qsci/qscilexeroctave.h>
48 # elif defined (HAVE_QSCI_QSCILEXERMATLAB_H)
49 # define HAVE_LEXER_MATLAB 1
50 # include <Qsci/qscilexermatlab.h>
53 # include <Qsci/qscilexercpp.h>
54 # include <Qsci/qscilexerbash.h>
55 # include <Qsci/qscilexerperl.h>
56 # include <Qsci/qscilexerbatch.h>
57 # include <Qsci/qscilexerdiff.h>
60 #if defined (HAVE_QSCINTILLA)
70 while (actual_style < MaxStyleNumber && max_style < MaxLexerStyles)
72 if ((lexer->description (actual_style)) !=
"")
73 styles[max_style++] = actual_style;
83 lexer->readSettings (*settings);
87 QGridLayout *style_grid =
new QGridLayout ();
88 QVector<QLabel*> description (max_style);
89 QVector<QFontComboBox*> select_font (max_style);
90 QVector<QSpinBox*> font_size (max_style);
91 QVector<QCheckBox*> attrib_font (3 * max_style);
92 QVector<color_picker*> color (max_style);
93 QVector<color_picker*> bg_color (max_style);
94 int default_size = 10;
95 QFont default_font = QFont ();
97 QColor default_color = QColor ();
98 QColor dummy_color = QColor (255,0,255);
100 for (
int i = 0;
i < max_style;
i++)
102 QString actual_name = lexer->description (styles[
i]);
103 QFont actual_font = lexer->font (styles[i]);
104 description[
i] =
new QLabel (actual_name);
105 description[
i]->setWordWrap (
true);
106 label_width = 24*description[
i]->fontMetrics ().averageCharWidth ();
107 description[
i]->setMaximumSize (label_width,QWIDGETSIZE_MAX);
108 description[
i]->setMinimumSize (label_width,1);
109 select_font[
i] =
new QFontComboBox ();
110 select_font[
i]->setObjectName (actual_name+
"_font");
111 select_font[
i]->setMaximumSize (label_width,QWIDGETSIZE_MAX);
112 select_font[
i]->setMinimumSize (label_width,1);
113 font_size[
i] =
new QSpinBox ();
114 font_size[
i]->setObjectName (actual_name+
"_size");
117 select_font[
i]->setCurrentFont (actual_font);
118 default_font = actual_font;
119 font_size[
i]->setRange (6,24);
120 default_size = actual_font.pointSize ();
121 font_size[
i]->setValue (default_size);
122 default_color = lexer->defaultPaper ();
127 select_font[
i]->setCurrentFont (actual_font);
128 if (actual_font.family () == default_font.family ())
129 select_font[i]->setEditText (lexer->description (0));
130 font_size[
i]->setRange (-4,4);
131 font_size[
i]->setValue (actual_font.pointSize ()-default_size);
132 font_size[
i]->setToolTip (QObject::tr (
"Difference to the default size"));
133 if (lexer->paper (styles[i]) == default_color)
137 bg_color[
i]->setToolTip
138 (QObject::tr (
"Background color, pink (255,0,255) means default"));
140 attrib_font[0+3*
i] =
new QCheckBox (QObject::tr (
"b",
"short form for bold"));
141 attrib_font[1+3*
i] =
new QCheckBox (QObject::tr (
"i",
"short form for italic"));
142 attrib_font[2+3*
i] =
new QCheckBox (QObject::tr (
"u",
"short form for underlined"));
143 attrib_font[0+3*
i]->setChecked (Qt::Checked && actual_font.bold ());
144 attrib_font[0+3*
i]->setObjectName (actual_name+
"_bold");
145 attrib_font[1+3*
i]->setChecked (Qt::Checked && actual_font.italic ());
146 attrib_font[1+3*
i]->setObjectName (actual_name+
"_italic");
147 attrib_font[2+3*
i]->setChecked (Qt::Checked && actual_font.underline ());
148 attrib_font[2+3*
i]->setObjectName (actual_name+
"_underline");
150 color[
i]->setObjectName (actual_name+
"_color");
151 bg_color[
i]->setObjectName (actual_name+
"_bg_color");
153 style_grid->addWidget (description[i], i, column++);
154 style_grid->addWidget (select_font[i], i, column++);
155 style_grid->addWidget (font_size[i], i, column++);
156 style_grid->addWidget (attrib_font[0+3*i], i, column++);
157 style_grid->addWidget (attrib_font[1+3*i], i, column++);
158 style_grid->addWidget (attrib_font[2+3*i], i, column++);
159 style_grid->addWidget (color[i], i, column++);
160 style_grid->addWidget (bg_color[i], i, column++);
163 QScrollArea *scroll_area =
new QScrollArea ();
165 scroll_area_contents->setObjectName (QString (lexer->language ())+
"_styles");
166 scroll_area_contents->setLayout (style_grid);
167 scroll_area->setWidget (scroll_area_contents);
171 settings->value (
"settings/last_editor_styles_tab",0).toInt ());
179 findChild <QWidget *>(QString (lexer->language ())+
"_styles");
183 QFontComboBox *select_font;
185 QCheckBox *attrib_font[3];
188 int default_size = 10;
189 QFont default_font = QFont (
"Courier New",10,-1,0);
190 QColor default_color = QColor ();
191 QColor dummy_color = QColor (255,0,255);
193 for (
int i = 0;
i < max_style;
i++)
195 QString actual_name = lexer->description (styles[
i]);
196 select_font = tab->findChild <QFontComboBox *>(actual_name+
"_font");
197 font_size = tab->findChild <QSpinBox *>(actual_name+
"_size");
198 attrib_font[0] = tab->findChild <QCheckBox *>(actual_name+
"_bold");
199 attrib_font[1] = tab->findChild <QCheckBox *>(actual_name+
"_italic");
200 attrib_font[2] = tab->findChild <QCheckBox *>(actual_name+
"_underline");
201 color = tab->findChild <
color_picker *>(actual_name+
"_color");
202 bg_color = tab->findChild <
color_picker *>(actual_name+
"_bg_color");
203 QFont new_font = default_font;
206 new_font = select_font->currentFont ();
208 default_font = new_font;
209 else if (select_font->currentText () == lexer->description (0))
210 new_font = default_font;
216 default_size = font_size->value ();
217 new_font.setPointSize (font_size->value ());
220 new_font.setPointSize (font_size->value ()+default_size);
223 new_font.setBold (attrib_font[0]->isChecked ());
225 new_font.setItalic (attrib_font[1]->isChecked ());
227 new_font.setUnderline (attrib_font[2]->isChecked ());
228 lexer->setFont (new_font,styles[i]);
230 lexer->setDefaultFont (new_font);
232 lexer->setColor (color->color (),styles[
i]);
237 default_color = bg_color->
color ();
238 lexer->setPaper (default_color,styles[i]);
239 lexer->setDefaultPaper (default_color);
243 if (bg_color->
color () == dummy_color)
244 lexer->setPaper (default_color,styles[i]);
246 lexer->setPaper (bg_color->
color (),styles[
i]);
251 lexer->writeSettings (*settings);
269 QMessageBox msgBox (QMessageBox::Warning, tr (
"Octave Settings"),
270 tr (
"Unable to save settings. Missing settings "
271 "file or unknown directory."));
277 restoreGeometry (settings->value(
"settings/geometry").toByteArray ());
281 QDir qm_dir (qm_dir_name);
282 QFileInfoList qm_files = qm_dir.entryInfoList (QStringList (
"*.qm"),
283 QDir::Files | QDir::Readable,
285 for (
int i = 0;
i < qm_files.length ();
i++)
290 QString language = settings->value (
"language",
"SYSTEM").toString ();
291 if (language ==
"SYSTEM")
292 language = tr (
"System setting");
300 QButtonGroup *icon_size_group =
new QButtonGroup (
this);
304 int icon_size = settings->value (
"toolbar_icon_size", 0).toInt ();
310 QButtonGroup *icon_group =
new QButtonGroup (
this);
314 QString widget_icon_set =
315 settings->value (
"DockWidgets/widget_icon_set",
"NONE").toString ();
322 QVariant default_var = QColor (255,255,255);
323 QColor bg_color = settings->value (
"Dockwidgets/title_bg_color",
324 default_var).value<QColor> ();
326 _widget_title_bg_color->setEnabled (
false);
329 _widget_title_bg_color, SLOT (setEnabled (
bool)));
331 default_var = QColor (192,192,192);
332 QColor bg_color_active = settings->value (
"Dockwidgets/title_bg_color_active",
333 default_var).value<QColor> ();
335 _widget_title_bg_color_active->setEnabled (
false);
338 _widget_title_bg_color_active, SLOT (setEnabled (
bool)));
340 default_var = QColor (0,0,0);
341 QColor fg_color = settings->value (
"Dockwidgets/title_fg_color",
342 default_var).value<QColor> ();
344 _widget_title_fg_color->setEnabled (
false);
347 _widget_title_fg_color, SLOT (setEnabled (
bool)));
349 default_var = QColor (0,0,0);
350 QColor fg_color_active = settings->value (
"Dockwidgets/title_fg_color_active",
351 default_var).value<QColor> ();
353 _widget_title_fg_color_active->setEnabled (
false);
356 _widget_title_fg_color_active, SLOT (setEnabled (
bool)));
359 settings->value (
"DockWidgets/widget_title_3d", 50).toInt ());
361 settings->value (
"DockWidgets/widget_title_custom_style",
false).toBool ());
365 settings->value (
"prompt_to_exit",
false).toBool ());
369 settings->value (
"show_status_bar",
true).toBool ());
373 settings->value (
"restore_octave_dir",
false).toBool ());
375 settings->value (
"octave_startup_dir").toString ());
385 settings->value (
"customFileEditor").toString ());
387 settings->value (
"editor/showLineNumbers",
true).toBool ());
391 default_var = QColor (240, 240, 240);
392 QColor setting_color = settings->value (
"editor/highlight_current_line_color",
393 default_var).value<QColor> ();
396 _editor_current_line_color->setMinimumSize (50,10);
397 _editor_current_line_color->setEnabled (
false);
399 _editor_current_line_color, SLOT (setEnabled (
bool)));
401 settings->value (
"editor/highlightCurrentLine",
true).toBool ());
403 settings->value (
"editor/long_line_marker",
true).toBool ());
405 settings->value (
"editor/long_line_column",80).toInt ());
407 settings->value (
"editor/show_edit_status_bar",
true).toBool ());
409 settings->value (
"editor/show_toolbar",
true).toBool ());
411 settings->value (
"editor/code_folding",
true).toBool ());
414 settings->value (
"editor/codeCompletion",
true).toBool ());
416 settings->value (
"editor/codeCompletion_threshold",2).toInt ());
418 settings->value (
"editor/codeCompletion_keywords",
true).toBool ());
424 settings->value (
"editor/codeCompletion_octave_builtins",
true).toBool ());
426 settings->value (
"editor/codeCompletion_octave_functions",
true).toBool ());
428 settings->value (
"editor/codeCompletion_document",
false).toBool ());
430 settings->value (
"editor/codeCompletion_case",
true).toBool ());
432 settings->value (
"editor/codeCompletion_replace",
false).toBool ());
434 settings->value (
"editor/show_white_space",
false).toBool ());
436 settings->value (
"editor/show_white_space_indent",
false).toBool ());
438 settings->value (
"editor/show_eol_chars",
false).toBool ());
440 settings->value (
"editor/show_hscroll_bar",
true).toBool ());
442 #if defined (HAVE_QSCINTILLA)
443 # if defined (Q_OS_WIN32)
444 int eol_mode = QsciScintilla::EolWindows;
445 #elif defined (Q_OS_MAC)
446 int eol_mode = QsciScintilla::EolMac;
448 int eol_mode = QsciScintilla::EolUnix;
454 settings->value (
"editor/default_eol_mode",eol_mode).toInt ());
456 settings->value (
"editor/auto_indent",
true).toBool ());
458 settings->value (
"editor/tab_indents_line",
false).toBool ());
460 settings->value (
"editor/backspace_unindents_line",
false).toBool ());
462 settings->value (
"editor/show_indent_guides",
false).toBool ());
464 settings->value (
"editor/indent_width", 2).toInt ());
466 settings->value (
"editor/indent_uses_tabs",
false).toBool ());
468 settings->value (
"editor/tab_width", 2).toInt ());
470 settings->value (
"editor/longWindowTitle",
false).toBool ());
472 settings->value (
"editor/notebook_tab_width_min", 160).toInt ());
474 settings->value (
"editor/notebook_tab_width_max", 300).toInt ());
476 settings->value (
"editor/restoreSession",
true).toBool ());
478 settings->value (
"editor/create_new_file",
false).toBool ());
480 settings->value (
"editor/always_reload_changed_files",
false).toBool ());
484 settings->value (
"terminal/fontName",
"Courier New").toString ()));
486 settings->value (
"terminal/fontSize", 10).toInt ());
488 settings->value (
"terminal/history_buffer",1000).toInt ());
490 settings->value (
"terminal/cursorBlinking",
true).toBool ());
492 settings->value (
"terminal/cursorUseForegroundColor",
true).toBool ());
494 settings->value (
"terminal/focus_after_command",
false).toBool ());
496 settings->value (
"terminal/print_debug_location",
false).toBool ());
499 = settings->value (
"terminal/cursorType",
"ibeam").toString ();
502 items << QString (
"0") << QString (
"1") << QString (
"2");
508 if (cursorType ==
"ibeam")
510 else if (cursorType ==
"block")
512 else if (cursorType ==
"underline")
519 settings->value (
"filesdockwidget/sync_octave_directory",
true).toBool ());
521 settings->value (
"filesdockwidget/restore_last_dir",
false).toBool ());
523 settings->value (
"filesdockwidget/startup_dir").toString ());
527 settings->value (
"filesdockwidget/txt_file_extensions",
"m;c;cc;cpp;h;txt")
531 settings->value (
"news/allow_web_connection",
false).toBool ());
533 settings->value (
"useProxyServer",
false).toBool ());
534 ui->
proxyHostName->setText (settings->value (
"proxyHostName").toString ());
536 int currentIndex = 0;
537 QString proxyTypeString = settings->value (
"proxyType").toString ();
538 while ((currentIndex < ui->proxyType->count ())
539 && (
ui->
proxyType->currentText () != proxyTypeString))
545 ui->
proxyPort->setText (settings->value (
"proxyPort").toString ());
546 ui->
proxyUserName->setText (settings->value (
"proxyUserName").toString ());
547 ui->
proxyPassword->setText (settings->value (
"proxyPassword").toString ());
554 settings->value (
"workspaceview/hide_tool_tips",
false).toBool ());
562 settings->value (
"shortcuts/prevent_readline_conflicts",
true).toBool ());
575 #if defined (HAVE_QSCINTILLA)
578 #if defined (HAVE_LEXER_OCTAVE)
579 lexer =
new QsciLexerOctave ();
582 #elif defined (HAVE_LEXER_MATLAB)
583 lexer =
new QsciLexerMatlab ();
587 lexer =
new QsciLexerCPP ();
590 lexer =
new QsciLexerPerl ();
593 lexer =
new QsciLexerBatch ();
596 lexer =
new QsciLexerDiff ();
599 lexer =
new QsciLexerBash ();
611 connect (
ui->
button_box, SIGNAL (clicked (QAbstractButton *)),
627 ui->
tabWidget->setCurrentIndex (settings->value (
"settings/last_tab",
632 QHash <QString, QWidget*> tab_hash;
648 int nr_of_classes = class_chars.length ();
650 QGridLayout *style_grid =
new QGridLayout ();
651 QVector<QLabel*> description (nr_of_classes);
652 QVector<color_picker*> color (nr_of_classes);
656 for (
int i = 0;
i < nr_of_classes;
i++)
658 description[
i] =
new QLabel (
" " + class_names.at (
i));
659 description[
i]->setAlignment (Qt::AlignRight);
660 QVariant default_var = default_colors.at (
i);
661 QColor setting_color = settings->value (
"workspaceview/color_"
662 + class_chars.mid (
i,1),
663 default_var).value<QColor> ();
665 color[
i]->setObjectName (
"color_"+class_chars.mid (
i, 1));
666 color[
i]->setMinimumSize (30, 10);
667 style_grid->addWidget (description[
i], row, 3*column);
668 style_grid->addWidget (color[i], row, 3*column+1);
671 style_grid->setColumnStretch (4*column, 10);
688 int nr_of_classes = class_chars.length ();
690 QGridLayout *style_grid =
new QGridLayout ();
691 QVector<QLabel*> description (nr_of_classes);
692 QVector<color_picker*> color (nr_of_classes);
696 for (
int i = 0;
i < nr_of_classes;
i++)
698 description[
i] =
new QLabel (
" " + class_names.at (
i));
699 description[
i]->setAlignment (Qt::AlignRight);
700 QVariant default_var = default_colors.at (
i);
701 QColor setting_color = settings->value (
"terminal/color_"
702 + class_chars.mid (
i,1),
703 default_var).value<QColor> ();
705 color[
i]->setObjectName (
"terminal_color_"+class_chars.mid (
i, 1));
706 color[
i]->setMinimumSize (30, 10);
707 style_grid->addWidget (description[
i], row, 2*column);
708 style_grid->addWidget (color[i], row, 2*column+1);
711 style_grid->setColumnStretch (3*column, 10);
727 QString widget_icon_set =
"NONE";
729 widget_icon_set =
"LETTER";
731 widget_icon_set =
"GRAPHIC";
732 settings->setValue (
"DockWidgets/widget_icon_set",widget_icon_set);
736 if (language == tr (
"System setting"))
738 settings->setValue (
"language", language);
741 settings->setValue (
"DockWidgets/widget_title_custom_style",
743 settings->setValue (
"DockWidgets/widget_title_3d",
745 settings->setValue (
"Dockwidgets/title_bg_color",
747 settings->setValue (
"Dockwidgets/title_bg_color_active",
749 settings->setValue (
"Dockwidgets/title_fg_color",
751 settings->setValue (
"Dockwidgets/title_fg_color_active",
760 settings->setValue (
"toolbar_icon_size", icon_size);
766 settings->setValue (
"show_status_bar",
ui->
cb_status_bar->isChecked ());
769 settings->setValue (
"restore_octave_dir",
774 settings->setValue (
"useCustomFileEditor",
777 settings->setValue (
"editor/showLineNumbers",
779 settings->setValue (
"editor/highlightCurrentLine",
781 settings->setValue (
"editor/highlight_current_line_color",
783 settings->setValue (
"editor/long_line_marker",
785 settings->setValue (
"editor/long_line_column",
787 settings->setValue (
"editor/code_folding",
789 settings->setValue (
"editor/show_edit_status_bar",
791 settings->setValue (
"editor/show_toolbar",
793 settings->setValue (
"editor/codeCompletion",
795 settings->setValue (
"editor/codeCompletion_threshold",
797 settings->setValue (
"editor/codeCompletion_keywords",
799 settings->setValue (
"editor/codeCompletion_octave_builtins",
801 settings->setValue (
"editor/codeCompletion_octave_functions",
803 settings->setValue (
"editor/codeCompletion_document",
805 settings->setValue (
"editor/codeCompletion_case",
807 settings->setValue (
"editor/codeCompletion_replace",
809 settings->setValue (
"editor/show_white_space",
811 settings->setValue (
"editor/show_white_space_indent",
813 settings->setValue (
"editor/show_eol_chars",
815 settings->setValue (
"editor/show_hscroll_bar",
817 settings->setValue (
"editor/default_eol_mode",
819 settings->setValue (
"editor/default_encoding",
821 settings->setValue (
"editor/auto_indent",
823 settings->setValue (
"editor/tab_indents_line",
825 settings->setValue (
"editor/backspace_unindents_line",
827 settings->setValue (
"editor/show_indent_guides",
829 settings->setValue (
"editor/indent_width",
831 settings->setValue (
"editor/indent_uses_tabs",
833 settings->setValue (
"editor/tab_width",
835 settings->setValue (
"editor/longWindowTitle",
837 settings->setValue (
"editor/notebook_tab_width_min",
839 settings->setValue (
"editor/notebook_tab_width_max",
841 settings->setValue (
"editor/restoreSession",
843 settings->setValue (
"editor/create_new_file",
845 settings->setValue (
"editor/always_reload_changed_files",
848 settings->setValue (
"terminal/fontName",
852 settings->setValue (
"filesdockwidget/sync_octave_directory",
854 settings->setValue (
"filesdockwidget/restore_last_dir",
856 settings->setValue (
"filesdockwidget/startup_dir",
858 settings->setValue (
"filesdockwidget/txt_file_extensions",
861 settings->setValue (
"news/allow_web_connection",
864 settings->setValue (
"proxyType",
ui->
proxyType->currentText ());
866 settings->setValue (
"proxyPort",
ui->
proxyPort->text ());
869 settings->setValue (
"terminal/cursorBlinking",
871 settings->setValue (
"terminal/cursorUseForegroundColor",
873 settings->setValue (
"terminal/focus_after_command",
875 settings->setValue (
"terminal/print_debug_location",
877 settings->setValue (
"terminal/history_buffer",
884 case 0: cursorType =
"ibeam";
break;
885 case 1: cursorType =
"block";
break;
886 case 2: cursorType =
"underline";
break;
888 settings->setValue (
"terminal/cursorType", cursorType);
890 #if defined (HAVE_QSCINTILLA)
893 #if defined (HAVE_LEXER_OCTAVE)
894 lexer =
new QsciLexerOctave ();
897 #elif defined (HAVE_LEXER_MATLAB)
898 lexer =
new QsciLexerMatlab ();
902 lexer =
new QsciLexerCPP ();
905 lexer =
new QsciLexerPerl ();
908 lexer =
new QsciLexerBatch ();
911 lexer =
new QsciLexerDiff ();
914 lexer =
new QsciLexerBash ();
925 settings->setValue (
"workspaceview/hide_tool_tips",
932 settings->setValue (
"shortcuts/prevent_readline_conflicts",
937 settings->setValue (
"settings/last_tab",
ui->
tabWidget->currentIndex ());
938 settings->setValue (
"settings/geometry",saveGeometry ());
950 for (
int i = 0;
i < class_chars.length ();
i++)
953 "color_"+class_chars.mid (
i,1));
955 settings->setValue (
"workspaceview/color_"+class_chars.mid (
i,1),
967 for (
int i = 0;
i < class_chars.length ();
i++)
970 "terminal_color_"+class_chars.mid (
i,1));
972 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
static const int MaxLexerStyles
settings_dialog(QWidget *parent, const QString &desired_tab=QString())
QComboBox * comboBox_language
QLineEdit * proxyUserName
QCheckBox * terminal_cursorBlinking
QLineEdit * le_file_browser_dir
OCTAVE_EXPORT octave_value_list column
static void import_export(int action)
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
static int get_valid_lexer_styles(QsciLexer *lexer, int styles[])
static void write_lexer_settings(Ui::settings_dialog *ui, QsciLexer *lexer, QSettings *settings)
QCheckBox * editor_highlightCurrentLine
QCheckBox * cb_hide_tool_tips
QCheckBox * useCustomFileEditor
QCheckBox * cb_show_hscrollbar
static QString terminal_color_chars(void)
void default_shortcut_set()
void import_shortcut_set()
QCheckBox * cb_restore_octave_dir
QPushButton * btn_import_shortcut_set
QCheckBox * editor_reload_changed_files
void set_disabled_pref_file_browser_dir(bool disable)
static void write_shortcuts(QSettings *settings, bool closing)
static void combo_encoding(QComboBox *combo, QString current=QString())
QCheckBox * cb_widget_custom_style
QCheckBox * editor_checkbox_ac_replace
static QString get_gui_translation_dir(void)
QCheckBox * editor_ws_indent_checkbox
static QStringList terminal_color_names(void)
void get_file_browser_dir()
QRadioButton * general_icon_graphic
void read_terminal_colors(QSettings *settings)
QCheckBox * editor_bs_unind_checkbox
QTreeWidget * shortcuts_treewidget
QCheckBox * editor_auto_ind_checkbox
QCheckBox * editor_checkbox_ac_functions
QCheckBox * editor_showLineNumbers
static void read_lexer_settings(Ui::settings_dialog *ui, QsciLexer *lexer, QSettings *settings)
void export_shortcut_set()
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
QPushButton * btn_export_shortcut_set
color_picker * _widget_title_bg_color
QCheckBox * editor_ind_guides_checkbox
QCheckBox * cb_edit_tool_bar
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
QLineEdit * le_file_browser_extensions
QWidget * tab_editor_styles
QFontComboBox * terminal_fontName
QHBoxLayout * layout_widget_bgtitle
QCheckBox * cb_restore_file_browser_dir
QSpinBox * editor_notebook_tab_width_max
QCheckBox * editor_ws_checkbox
QCheckBox * editor_checkbox_ac_keywords
QSpinBox * editor_tab_width_spinbox
QCheckBox * terminal_focus_command
QCheckBox * cb_status_bar
QPushButton * btn_default_shortcut_set
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
=val(i)}if ode{val(i)}occurs in table i
QComboBox * editor_combo_encoding
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)
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
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every row
static const int MaxStyleNumber
QCheckBox * cb_prompt_to_exit
QCheckBox * cb_code_folding
QCheckBox * cb_edit_status_bar
QSpinBox * editor_notebook_tab_width_min