Mercurial > octave
diff libgui/src/settings-dialog.h @ 24475:8cb985e362f3
Allow uncommenting with any kind of comment (bug #52695):
* file-editor-tab.cc (do_comment_selected_text): get list of possible strings
for uncommenting and create an according regular expression;
(handle_char_added): comment string is snow a string list
* octave-qscintilla.cc (comment_string), octave-qscintilla.h: boolean
parameter for commenting or uncommenting string, now returns a string list
* module.mk: new file octave-settings.h
* octave-settings.h: new files with constants for the preferences used for
the comment strings
* settings-dialog.cc (settings_dialog): add the required radio buttons for
the comment strings programmatically, read preferences from settings file;
(write_changed_settings): read values from radio buttons and write into
the settings file
* settings-dialog.h: declare the required radio butons
* settings-dialog.ui: add horizontal layouts for the radio buttons
author | Torsten <mttl@mailbox.org> |
---|---|
date | Wed, 27 Dec 2017 20:46:11 +0100 |
parents | 9107bae20480 |
children | 194eb4bd202b |
line wrap: on
line diff
--- a/libgui/src/settings-dialog.h Wed Dec 27 11:22:26 2017 -0800 +++ b/libgui/src/settings-dialog.h Wed Dec 27 20:46:11 2017 +0100 @@ -26,8 +26,10 @@ #include <QDialog> #include <QSettings> #include <QLineEdit> +#include <QRadioButton> #include "color-picker.h" +#include "octave-settings.h" namespace Ui { @@ -83,6 +85,9 @@ color_picker *m_widget_title_fg_color; color_picker *m_widget_title_fg_color_active; color_picker *m_editor_current_line_color; + + QRadioButton *m_rb_comment_strings[oct_comment_strings_count]; + QRadioButton *m_rb_uncomment_strings[oct_comment_strings_count]; }; #endif