30 #if defined (HAVE_CONFIG_H)
34 #include <QButtonGroup>
36 #include <QFileDialog>
39 #include <QMessageBox>
41 #include <QStyleFactory>
45 #if defined (HAVE_QSCINTILLA)
48 # include <QScrollArea>
50 # if defined (HAVE_QSCI_QSCILEXEROCTAVE_H)
51 # define HAVE_LEXER_OCTAVE 1
52 # include <Qsci/qscilexeroctave.h>
53 # elif defined (HAVE_QSCI_QSCILEXERMATLAB_H)
54 # define HAVE_LEXER_MATLAB 1
55 # include <Qsci/qscilexermatlab.h>
58 # include <Qsci/qscilexercpp.h>
59 # include <Qsci/qscilexerbash.h>
60 # include <Qsci/qscilexerperl.h>
61 # include <Qsci/qscilexerbatch.h>
62 # include <Qsci/qscilexerdiff.h>
73 #if defined (HAVE_QSCINTILLA)
84 if ((
lexer->description (actual_style)) !=
"")
85 styles[max_style++] = actual_style;
94 const QString& desired_tab)
105 (QMessageBox::Warning, tr (
"Octave Preferences"),
106 tr (
"Unable to save preferences. Missing preferences file or unknown directory."));
115 QDir qm_dir (qm_dir_name);
116 QFileInfoList qm_files = qm_dir.entryInfoList (QStringList (
"*.qm"),
117 QDir::Files | QDir::Readable, QDir::Name);
119 for (
int i = 0; i < qm_files.length (); i++)
120 comboBox_language->addItem (qm_files.at (i).baseName ());
122 comboBox_language->insertItem (0, tr (
"System setting"));
123 comboBox_language->insertSeparator (1);
127 language = tr (
"System setting");
128 int selected = comboBox_language->findText (language);
130 comboBox_language->setCurrentIndex (selected);
132 comboBox_language->setCurrentIndex (0);
135 QStringList styles = QStyleFactory::keys();
136 combo_styles->addItems (styles);
138 combo_styles->insertSeparator (1);
142 selected = combo_styles->findText (current_style);
144 combo_styles->setCurrentIndex (selected);
146 combo_styles->setCurrentIndex (0);
149 QButtonGroup *icon_size_group =
new QButtonGroup (
this);
150 icon_size_group->addButton (icon_size_small);
151 icon_size_group->addButton (icon_size_normal);
152 icon_size_group->addButton (icon_size_large);
154 icon_size_normal->setChecked (
true);
155 icon_size_small->setChecked (icon_size < 0);
156 icon_size_large->setChecked (icon_size > 0);
160 QButtonGroup *icon_group =
new QButtonGroup (
this);
161 icon_group->addButton (general_icon_octave);
162 icon_group->addButton (general_icon_graphic);
163 icon_group->addButton (general_icon_letter);
164 QString widget_icon_set =
166 general_icon_octave->setChecked (
true);
167 general_icon_octave->setChecked (widget_icon_set ==
"NONE");
168 general_icon_graphic->setChecked (widget_icon_set ==
"GRAPHIC");
169 general_icon_letter->setChecked (widget_icon_set ==
"LETTER");
177 connect (cb_widget_custom_style, SIGNAL (toggled (
bool)),
185 connect (cb_widget_custom_style, SIGNAL (toggled (
bool)),
193 connect (cb_widget_custom_style, SIGNAL (toggled (
bool)),
201 connect (cb_widget_custom_style, SIGNAL (toggled (
bool)),
220 cb_cursor_blinking->setChecked (
settings->value
226 cb_cursor_blinking->setChecked (
settings->value
231 cb_prompt_to_exit->setChecked (
235 cb_status_bar->setChecked (
239 cb_restore_octave_dir->setChecked (
244 connect (pb_octave_dir, SIGNAL (pressed (
void)),
250 useCustomFileEditor->setChecked (
252 customFileEditor->setText (
265 connect (editor_highlightCurrentLine, SIGNAL (toggled (
bool)),
272 editor_long_line_marker_line->setChecked (long_line);
275 editor_long_line_marker_background->setChecked (long_back);
276 if (! (long_line || long_back))
277 editor_long_line_marker_line->setChecked (
true);
291 editor_checkbox_ac_builtins->setEnabled (editor_checkbox_ac_keywords->isChecked ());
292 editor_checkbox_ac_functions->setEnabled (editor_checkbox_ac_keywords->isChecked ());
304 editor_combox_tab_pos->insertItem (i,
306 editor_combox_tab_pos->setCurrentIndex
309 int selected_comment_string, selected_uncomment_string;
358 terminal_fontName->setCurrentFont (QFont (
settings->value (
cs_font.
key, default_font).toString ()));
369 items << QString (
"0") << QString (
"1") << QString (
"2");
370 terminal_cursorType->addItems (items);
371 terminal_cursorType->setItemText (0, tr (
"IBeam Cursor"));
372 terminal_cursorType->setItemText (1, tr (
"Block Cursor"));
373 terminal_cursorType->setItemText (2, tr (
"Underline Cursor"));
379 terminal_cursorType->setCurrentIndex (i);
385 connect (sync_octave_directory, SIGNAL (toggled (
bool)),
392 connect (pb_file_browser_dir, SIGNAL (pressed (
void)),
398 useProxyServer->setChecked (
402 int currentIndex = 0;
404 while ((currentIndex < proxyType->count ())
405 && (proxyType->currentText () != proxyTypeString))
408 proxyType->setCurrentIndex (currentIndex);
427 connect (varedit_useTerminalFont, SIGNAL (toggled (
bool)),
428 varedit_font, SLOT (setDisabled (
bool)));
429 connect (varedit_useTerminalFont, SIGNAL (toggled (
bool)),
430 varedit_fontSize, SLOT (setDisabled (
bool)));
432 varedit_font->setDisabled (varedit_useTerminalFont->isChecked ());
433 varedit_fontSize->setDisabled (varedit_useTerminalFont->isChecked ());
444 cb_prevent_readline_conflicts->setChecked (
452 connect (btn_import_shortcut_set, SIGNAL (clicked (
void)),
455 connect (btn_export_shortcut_set, SIGNAL (clicked (
void)),
458 connect (btn_default_shortcut_set, SIGNAL (clicked (
void)),
461 #if defined (HAVE_QSCINTILLA)
466 #if defined (HAVE_LEXER_OCTAVE)
468 lexer =
new QsciLexerOctave ();
472 #elif defined (HAVE_LEXER_MATLAB)
474 lexer =
new QsciLexerMatlab ();
480 lexer =
new QsciLexerCPP ();
484 lexer =
new QsciLexerPerl ();
488 lexer =
new QsciLexerBatch ();
492 lexer =
new QsciLexerDiff ();
496 lexer =
new QsciLexerBash ();
510 connect (button_box, SIGNAL (clicked (QAbstractButton *)),
517 setGeometry (QRect (10,50,1000,600));
531 QHash <QString, QWidget*> tab_hash;
532 tab_hash[
"editor"] = tab_editor;
533 tab_hash[
"editor_styles"] = tab_editor;
534 tabWidget->setCurrentIndex (tabWidget->indexOf (tab_hash.value (tab)));
535 if (tab ==
"editor_styles")
536 tab_editor_scroll_area->ensureWidgetVisible (group_box_editor_styles);
542 get_dir (le_octave_dir, tr (
"Set Octave Startup Directory"));
547 get_dir (le_file_browser_dir, tr (
"Set File Browser Startup Directory"));
553 int opts = QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks;
557 opts |= QFileDialog::DontUseNativeDialog;
559 QString dir = QFileDialog::getExistingDirectory
560 (
this, title, line_edit->text (), QFileDialog::Option (opts));
562 line_edit->setText (dir);
567 QDialogButtonBox::ButtonRole button_role = button_box->buttonRole (button);
569 if (button_role == QDialogButtonBox::ApplyRole
570 || button_role == QDialogButtonBox::AcceptRole)
576 if (button_role == QDialogButtonBox::RejectRole
577 || button_role == QDialogButtonBox::AcceptRole)
583 cb_restore_file_browser_dir->setDisabled (disable);
587 le_file_browser_dir->setDisabled (cb_restore_file_browser_dir->isChecked ());
588 pb_file_browser_dir->setDisabled (cb_restore_file_browser_dir->isChecked ());
592 le_file_browser_dir->setDisabled (disable);
593 pb_file_browser_dir->setDisabled (disable);
623 #if defined (HAVE_QSCINTILLA)
629 QGridLayout *style_grid =
new QGridLayout ();
630 QVector<QLabel*> description (max_style);
631 QVector<QFontComboBox*> select_font (max_style);
632 QVector<QSpinBox*> font_size (max_style);
633 QVector<QCheckBox*> attrib_font (3 * max_style);
634 QVector<color_picker*> color (max_style);
635 QVector<color_picker*> bg_color (max_style);
636 int default_size = 10;
637 QFont default_font = QFont ();
639 QColor default_color = QColor ();
640 QColor dummy_color = QColor (255, 0, 255);
642 for (
int i = 0; i < max_style; i++)
644 QString actual_name =
lexer->description (styles[i]);
645 QFont actual_font =
lexer->font (styles[i]);
646 description[i] =
new QLabel (actual_name);
647 description[i]->setWordWrap (
true);
648 label_width = 24*description[i]->fontMetrics ().averageCharWidth ();
649 description[i]->setMaximumSize (label_width, QWIDGETSIZE_MAX);
650 description[i]->setMinimumSize (label_width, 1);
651 select_font[i] =
new QFontComboBox ();
652 select_font[i]->setObjectName (actual_name +
"_font");
653 select_font[i]->setMaximumSize (label_width, QWIDGETSIZE_MAX);
654 select_font[i]->setMinimumSize (label_width, 1);
655 font_size[i] =
new QSpinBox ();
656 font_size[i]->setObjectName (actual_name +
"_size");
659 select_font[i]->setCurrentFont (actual_font);
660 default_font = actual_font;
661 font_size[i]->setRange (6, 24);
662 default_size = actual_font.pointSize ();
663 font_size[i]->setValue (default_size);
664 default_color =
lexer->defaultPaper ();
669 select_font[i]->setCurrentFont (actual_font);
670 if (actual_font.family () == default_font.family ())
671 select_font[i]->setEditText (
lexer->description (0));
672 font_size[i]->setRange (-4, 4);
673 font_size[i]->setValue (actual_font.pointSize ()-default_size);
674 font_size[i]->setToolTip (QObject::tr (
"Difference to the default size"));
675 if (
lexer->paper (styles[i]) == default_color)
679 bg_color[i]->setToolTip
680 (QObject::tr (
"Background color, pink (255, 0, 255) means default"));
682 attrib_font[0+3*i] =
new QCheckBox (QObject::tr (
"b",
"short form for bold"));
683 attrib_font[1+3*i] =
new QCheckBox (QObject::tr (
"i",
"short form for italic"));
684 attrib_font[2+3*i] =
new QCheckBox (QObject::tr (
"u",
"short form for underlined"));
685 attrib_font[0+3*i]->setChecked (actual_font.bold ());
686 attrib_font[0+3*i]->setObjectName (actual_name +
"_bold");
687 attrib_font[1+3*i]->setChecked (actual_font.italic ());
688 attrib_font[1+3*i]->setObjectName (actual_name +
"_italic");
689 attrib_font[2+3*i]->setChecked (actual_font.underline ());
690 attrib_font[2+3*i]->setObjectName (actual_name +
"_underline");
692 color[i]->setObjectName (actual_name +
"_color");
693 bg_color[i]->setObjectName (actual_name +
"_bg_color");
695 style_grid->addWidget (description[i], i, column++);
696 style_grid->addWidget (select_font[i], i, column++);
697 style_grid->addWidget (font_size[i], i, column++);
698 style_grid->addWidget (attrib_font[0+3*i], i, column++);
699 style_grid->addWidget (attrib_font[1+3*i], i, column++);
700 style_grid->addWidget (attrib_font[2+3*i], i, column++);
701 style_grid->addWidget (color[i], i, column++);
702 style_grid->addWidget (bg_color[i], i, column++);
705 QScrollArea *scroll_area =
new QScrollArea ();
707 scroll_area_contents->setObjectName (QString (
lexer->language ()) +
"_styles");
708 scroll_area_contents->setLayout (style_grid);
709 scroll_area->setWidget (scroll_area_contents);
710 tabs_editor_lexers->addTab (scroll_area,
lexer->language ());
716 octave_unused_parameter (
lexer);
725 #if defined (HAVE_QSCINTILLA)
727 QWidget *tab = tabs_editor_lexers->
728 findChild <QWidget *> (QString (
lexer->language ()) +
"_styles");
732 QFontComboBox *select_font;
734 QCheckBox *attrib_font[3];
737 int default_size = 10;
739 QString default_font_name
741 QFont default_font = QFont (default_font_name, 10, -1, 0);
742 QColor default_color = QColor ();
743 QColor dummy_color = QColor (255, 0, 255);
745 for (
int i = 0; i < max_style; i++)
747 QString actual_name =
lexer->description (styles[i]);
748 select_font = tab->findChild <QFontComboBox *> (actual_name +
"_font");
749 font_size = tab->findChild <QSpinBox *> (actual_name +
"_size");
750 attrib_font[0] = tab->findChild <QCheckBox *> (actual_name +
"_bold");
751 attrib_font[1] = tab->findChild <QCheckBox *> (actual_name +
"_italic");
752 attrib_font[2] = tab->findChild <QCheckBox *> (actual_name +
"_underline");
753 color = tab->findChild <
color_picker *> (actual_name +
"_color");
754 bg_color = tab->findChild <
color_picker *> (actual_name +
"_bg_color");
755 QFont new_font = default_font;
758 new_font = select_font->currentFont ();
760 default_font = new_font;
761 else if (select_font->currentText () ==
lexer->description (0))
762 new_font = default_font;
768 default_size = font_size->value ();
769 new_font.setPointSize (font_size->value ());
772 new_font.setPointSize (font_size->value ()+default_size);
775 new_font.setBold (attrib_font[0]->isChecked ());
777 new_font.setItalic (attrib_font[1]->isChecked ());
779 new_font.setUnderline (attrib_font[2]->isChecked ());
780 lexer->setFont (new_font, styles[i]);
782 lexer->setDefaultFont (new_font);
784 lexer->setColor (color->color (), styles[i]);
789 default_color = bg_color->
color ();
790 lexer->setPaper (default_color, styles[i]);
791 lexer->setDefaultPaper (default_color);
795 if (bg_color->
color () == dummy_color)
796 lexer->setPaper (default_color, styles[i]);
798 lexer->setPaper (bg_color->
color (), styles[i]);
806 tabs_editor_lexers->currentIndex ());
811 octave_unused_parameter (
lexer);
823 QString widget_icon_set =
"NONE";
824 if (general_icon_letter->isChecked ())
825 widget_icon_set =
"LETTER";
826 else if (general_icon_graphic->isChecked ())
827 widget_icon_set =
"GRAPHIC";
831 QString language = comboBox_language->currentText ();
832 if (language == tr (
"System setting"))
837 QString selected_style = combo_styles->currentText ();
851 int icon_size = icon_size_large->isChecked () - icon_size_small->isChecked ();
907 int rb_uncomment = 0;
919 rb_uncomment = rb_uncomment + (1 << i);
963 unsigned int cursor_int = terminal_cursorType->currentIndex ();
971 #if defined (HAVE_QSCINTILLA)
975 #if defined (HAVE_LEXER_OCTAVE)
977 lexer =
new QsciLexerOctave ();
981 #elif defined (HAVE_LEXER_MATLAB)
983 lexer =
new QsciLexerMatlab ();
989 lexer =
new QsciLexerCPP ();
993 lexer =
new QsciLexerPerl ();
997 lexer =
new QsciLexerBatch ();
1001 lexer =
new QsciLexerDiff ();
1005 lexer =
new QsciLexerBash ();
1046 QGridLayout *style_grid =
new QGridLayout ();
1065 description[i] =
new QLabel (
" "
1067 description[i]->setAlignment (Qt::AlignRight);
1069 description[i], SLOT(setEnabled (
bool)));
1074 color[i]->setObjectName (
ws_colors[i].key);
1075 color[i]->setMinimumSize (30, 10);
1077 color[i], SLOT(setEnabled (
bool)));
1079 style_grid->addWidget (description[i], row, 3*column);
1080 style_grid->addWidget (color[i], row, 3*column+1);
1083 style_grid->setColumnStretch (4*column, 10);
1090 bool colors_enabled =
1096 workspace_colors_box->setLayout (style_grid);
1117 QGridLayout *style_grid =
new QGridLayout ();
1125 description[i] =
new QLabel (
" "
1127 description[i]->setAlignment (Qt::AlignRight);
1131 color[i]->setObjectName (
cs_colors[i].key);
1132 color[i]->setMinimumSize (30, 10);
1133 style_grid->addWidget (description[i], row, 2*column);
1134 style_grid->addWidget (color[i], row, 2*column+1);
1137 style_grid->setColumnStretch (3*column, 10);
1144 terminal_colors_box->setLayout (style_grid);
1163 QGridLayout *style_grid =
new QGridLayout ();
1171 description[i] =
new QLabel (
" "
1173 description[i]->setAlignment (Qt::AlignRight);
1177 QColor default_color = qApp->palette ().color
1178 (
static_cast<QPalette::ColorRole
> (
ve_colors[i].def.toInt ()));
1182 QColor setting_color =
1186 color[i]->setObjectName (
ve_colors[i].key);
1187 color[i]->setMinimumSize (30, 10);
1188 style_grid->addWidget (description[i], row, 2*column);
1189 style_grid->addWidget (color[i], row, 2*column+1);
1192 style_grid->setColumnStretch (3*column, 10);
1199 varedit_colors_box->setLayout (style_grid);
Base class for Octave interfaces that use Qt.
resource_manager & get_resource_manager(void)
shortcut_manager & get_shortcut_manager(void)
void combo_encoding(QComboBox *combo, const QString ¤t=QString())
gui_settings * get_settings(void) const
QString get_gui_translation_dir(void)
void write_terminal_colors(gui_settings *settings)
QCheckBox * m_rb_uncomment_strings[ed_comment_strings_count]
void button_clicked(QAbstractButton *button)
void write_lexer_settings(QsciLexer *lexer, gui_settings *settings)
QRadioButton * m_rb_comment_strings[ed_comment_strings_count]
QCheckBox * m_ws_enable_colors
color_picker * m_widget_title_fg_color
void get_file_browser_dir(void)
QCheckBox * m_ws_hide_tool_tips
void get_dir(QLineEdit *, const QString &)
void default_shortcut_set(void)
void write_varedit_colors(gui_settings *settings)
void read_lexer_settings(QsciLexer *lexer, gui_settings *settings)
color_picker * m_widget_title_fg_color_active
color_picker * m_widget_title_bg_color
void read_workspace_colors(gui_settings *settings)
void export_shortcut_set(void)
void set_disabled_pref_file_browser_dir(bool disable)
base_qobject & m_octave_qobj
void apply_new_settings(void)
void read_varedit_colors(gui_settings *settings)
color_picker * m_widget_title_bg_color_active
color_picker * m_editor_current_line_color
void write_changed_settings(bool closing)
void read_terminal_colors(gui_settings *settings)
settings_dialog(QWidget *parent, base_qobject &octave_qobj, const QString &desired_tab=QString())
void show_tab(const QString &)
void get_octave_dir(void)
void write_workspace_colors(gui_settings *settings)
void import_shortcut_set(void)
bool import_export(int action)
void fill_treewidget(QTreeWidget *tree_view)
void write_shortcuts(gui_settings *settings, bool closing)
const unsigned int cs_colors_count
const gui_pref cs_focus_cmd("terminal/focus_after_command", QVariant(false))
const gui_pref cs_colors[cs_colors_count]
const gui_pref cs_hist_buffer("terminal/history_buffer", QVariant(1000))
const gui_pref cs_font_size("terminal/fontSize", QVariant(10))
const std::vector< std::string > cs_cursor_types
const gui_pref cs_cursor("terminal/cursorType", QVariant("ibeam"))
const gui_pref cs_dbg_location("terminal/print_debug_location", QVariant(false))
const QStringList cs_color_names(QStringList()<< QT_TRANSLATE_NOOP("octave::settings_dialog", "foreground")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "background")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "selection")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "cursor"))
const gui_pref cs_cursor_use_fgcol("terminal/cursorUseForegroundColor", QVariant(true))
const gui_pref cs_font("terminal/fontName", QVariant())
const gui_pref cs_cursor_blinking("terminal/cursorBlinking", QVariant(true))
const gui_pref dw_title_bg_color("DockWidgets/title_bg_color", QVariant(QColor(255, 255, 255)))
const gui_pref dw_title_fg_color("DockWidgets/title_fg_color", QVariant(QColor(0, 0, 0)))
const gui_pref dw_title_3d("DockWidgets/widget_title_3d", QVariant(50))
const gui_pref dw_title_fg_color_active("DockWidgets/title_fg_color_active", QVariant(QColor(0, 0, 0)))
const gui_pref dw_title_bg_color_active("DockWidgets/title_bg_color_active", QVariant(QColor(192, 192, 192)))
const gui_pref dw_title_custom_style("DockWidgets/widget_title_custom_style", QVariant(false))
const gui_pref dw_icon_set("DockWidgets/widget_icon_set", QVariant("NONE"))
const gui_pref ed_always_reload_changed_files("editor/always_reload_changed_files", QVariant(false))
const gui_pref ed_comment_str_old("editor/octave_comment_string", QVariant(0))
const gui_pref ed_indent_uses_tabs("editor/indent_uses_tabs", QVariant(false))
const gui_pref ed_code_completion("editor/codeCompletion", QVariant(true))
const gui_pref ed_show_hscroll_bar("editor/show_hscroll_bar", QVariant(true))
const gui_pref ed_code_completion_octave_functions("editor/codeCompletion_octave_functions", QVariant(true))
const gui_pref ed_auto_endif("editor/auto_endif", QVariant(1))
const gui_pref ed_highlight_current_line_color("editor/highlight_current_line_color", QVariant(QColor(240, 240, 240)))
const gui_pref ed_show_toolbar("editor/show_toolbar", QVariant(true))
const gui_pref ed_uncomment_str("editor/oct_uncomment_str", QVariant(1+2+4+8))
const gui_pref ed_long_window_title("editor/longWindowTitle", QVariant(false))
const gui_pref ed_show_white_space("editor/show_white_space", QVariant(false))
const gui_pref ed_create_new_file("editor/create_new_file", QVariant(false))
const gui_pref ed_default_enc("editor/default_encoding", QVariant(QString("SYSTEM (")+QString(octave_locale_charset_wrapper()).toUpper()+QString(")")))
const gui_pref ed_line_numbers_size("editor/line_numbers_size", QVariant(0))
const gui_pref ed_wrap_lines("editor/wrap_lines", QVariant(false))
const gui_pref ed_highlight_current_line("editor/highlightCurrentLine", QVariant(true))
const gui_pref ed_notebook_tab_width_min("editor/notebook_tab_width_min", QVariant(160))
const gui_pref ed_code_completion_threshold("editor/codeCompletion_threshold", QVariant(2))
const gui_pref ed_break_lines("editor/break_lines", QVariant(false))
const gui_pref ed_break_lines_comments("editor/break_lines_comments", QVariant(false))
const gui_pref ed_long_line_marker("editor/long_line_marker", QVariant(true))
const gui_pref ed_tab_position("editor/tab_position", QVariant(QTabWidget::North))
const QStringList ed_tab_position_names(QStringList()<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Top")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Bottom")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Left")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Right"))
const gui_pref ed_tab_indents_line("editor/tab_indents_line", QVariant(false))
const gui_pref ed_code_completion_octave_builtins("editor/codeCompletion_octave_builtins", QVariant(true))
const gui_pref ed_show_edit_status_bar("editor/show_edit_status_bar", QVariant(true))
const gui_pref ed_code_completion_document("editor/codeCompletion_document", QVariant(true))
const gui_pref ed_backspace_unindents_line("editor/backspace_unindents_line", QVariant(false))
const gui_pref ed_restore_session("editor/restoreSession", QVariant(true))
const gui_pref ed_code_completion_case("editor/codeCompletion_case", QVariant(true))
const gui_pref ed_long_line_marker_background("editor/long_line_marker_background", QVariant(false))
const QStringList ed_comment_strings(QStringList()<< "##"<< "#"<< "%"<< "%%"<< "%!")
const gui_pref ed_show_dbg_file("editor/show_dbg_file", QVariant(true))
const gui_pref ed_show_white_space_indent("editor/show_white_space_indent", QVariant(false))
const gui_pref ed_show_line_numbers("editor/showLineNumbers", QVariant(true))
const gui_pref ed_notebook_tab_width_max("editor/notebook_tab_width_max", QVariant(300))
const gui_pref ed_highlight_all_occurrences("editor/highlight_all_occurrences", QVariant(true))
const gui_pref ed_show_eol_chars("editor/show_eol_chars", QVariant(false))
const gui_pref ed_show_indent_guides("editor/show_indent_guides", QVariant(false))
const gui_pref ed_code_folding("editor/code_folding", QVariant(true))
const gui_pref ed_indent_width("editor/indent_width", QVariant(2))
const gui_pref ed_tab_width("editor/tab_width", QVariant(2))
const gui_pref ed_comment_str("editor/oct_comment_str", QVariant(0))
const gui_pref ed_hiding_closes_files("editor/hiding_closes_files", QVariant(false))
const gui_pref ed_long_line_column("editor/long_line_column", QVariant(80))
const gui_pref ed_default_eol_mode("editor/default_eol_mode", QVariant(os_eol_mode))
const gui_pref ed_code_completion_replace("editor/codeCompletion_replace", QVariant(false))
const int ed_comment_strings_count
const gui_pref ed_code_completion_keywords("editor/codeCompletion_keywords", QVariant(true))
const gui_pref ed_auto_indent("editor/auto_indent", QVariant(true))
const gui_pref ed_long_line_marker_line("editor/long_line_marker_line", QVariant(true))
const gui_pref fb_sync_octdir("filesdockwidget/sync_octave_directory", QVariant(true))
const gui_pref fb_startup_dir("filesdockwidget/startup_dir", QVariant(QString()))
const gui_pref fb_txt_file_ext("filesdockwidget/txt_file_extensions", QVariant("m;c;cc;cpp;h;txt"))
const gui_pref fb_restore_last_dir("filesdockwidget/restore_last_dir", QVariant(false))
const gui_pref global_use_proxy("useProxyServer", QVariant(false))
const gui_pref global_mono_font("monospace_font", global_font_family)
const gui_pref global_restore_ov_dir("restore_octave_dir", QVariant(false))
const gui_pref global_proxy_pass("proxyPassword", QVariant(QString()))
const gui_pref global_status_bar("show_status_bar", QVariant(true))
const gui_pref global_proxy_host("proxyHostName", QVariant(QString()))
const gui_pref global_prompt_to_exit("prompt_to_exit", QVariant(false))
const gui_pref global_proxy_type("proxyType", QVariant(QString()))
const gui_pref global_use_native_dialogs("use_native_file_dialogs", QVariant(true))
const gui_pref global_proxy_user("proxyUserName", QVariant(QString()))
const gui_pref global_icon_theme("use_system_icon_theme", QVariant(true))
const gui_pref global_use_custom_editor("useCustomFileEditor", QVariant(false))
const gui_pref global_ov_startup_dir("octave_startup_dir", QVariant(QString()))
const gui_pref global_custom_editor("customFileEditor", QVariant("emacs +%l %f"))
const gui_pref global_proxy_port("proxyPort", QVariant(80))
const gui_pref global_icon_size("toolbar_icon_size", QVariant(0))
const gui_pref global_language("language", QVariant("SYSTEM"))
const gui_pref global_cursor_blinking("cursor_blinking", QVariant(true))
const gui_pref global_style("style", QVariant("default"))
const gui_pref nr_allow_connection("news/allow_web_connection", QVariant(false))
const gui_pref sc_prevent_rl_conflicts("shortcuts/prevent_readline_conflicts", QVariant(true))
const gui_pref sd_geometry("settings/geometry", QVariant())
const gui_pref sd_last_editor_styles_tab("settings/last_editor_styles_tab", QVariant(0))
const gui_pref sd_last_tab("settings/last_tab", QVariant(0))
const int ve_colors_count
const gui_pref ve_column_width("variable_editor/column_width", QVariant(100))
const QStringList ve_color_names(QStringList()<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Foreground")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Background")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Selected Foreground")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Selected Background")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "Alternate Background"))
const gui_pref ve_colors[ve_colors_count]
const gui_pref ve_use_terminal_font("variable_editor/use_terminal_font", QVariant(true))
const gui_pref ve_font_size("variable_editor/font_size", QVariant(10))
const gui_pref ve_alternate_rows("variable_editor/alternate_rows", QVariant(false))
const gui_pref ve_font_name("variable_editor/font_name", QVariant())
const gui_pref ve_row_height("variable_editor/row_height", QVariant(10))
const gui_pref ws_colors[ws_colors_count]
const QStringList ws_color_names(QStringList()<< QT_TRANSLATE_NOOP("octave::settings_dialog", "argument")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "global")<< QT_TRANSLATE_NOOP("octave::settings_dialog", "persistent"))
const gui_pref ws_enable_colors("workspaceview/enable_colors", QVariant(false))
const gui_pref ws_hide_tool_tips("workspaceview/hide_tools_tips", QVariant(false))
const int ws_colors_count
static int get_valid_lexer_styles(QsciLexer *lexer, int *styles)
static const int MaxLexerStyles
static const int MaxStyleNumber