summaryrefslogtreecommitdiff
path: root/fluid/Fl_Window_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2021-12-17 21:15:04 +0100
committerMatthias Melcher <github@matthiasm.com>2021-12-17 21:28:23 +0100
commitb490ce3463e9008d03224feb44c8b365a8e21954 (patch)
tree53065e0c5ba4fa19876ff44e3986d66d1b1feef6 /fluid/Fl_Window_Type.cxx
parent6efc997a02e3125290f9b0883a1a880b9e14bd4b (diff)
STR 3355: allow Unicode UTF-8 in source code
This includes changes in the UI in Project Settings.
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
-rw-r--r--fluid/Fl_Window_Type.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index 59ab189aa..81ac5fbb8 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -44,6 +44,7 @@
int include_H_from_C = 1;
int use_FL_COMMAND = 0;
+int utf8_in_src = 0;
extern int i18n_type;
extern const char* i18n_include;
extern const char* i18n_function;
@@ -181,6 +182,7 @@ void show_project_cb(Fl_Widget *, void *) {
if(project_window==0) make_project_window();
include_H_from_C_button->value(include_H_from_C);
use_FL_COMMAND_button->value(use_FL_COMMAND);
+ utf8_in_src_button->value(utf8_in_src);
header_file_input->value(header_file_name);
code_file_input->value(code_file_name);
i18n_type_chooser->value(i18n_type);
@@ -264,6 +266,13 @@ void use_FL_COMMAND_button_cb(Fl_Check_Button* b, void*) {
}
}
+void utf8_in_src_cb(Fl_Check_Button *b, void*) {
+ if (utf8_in_src != b->value()) {
+ set_modflag(1);
+ utf8_in_src = b->value();
+ }
+}
+
////////////////////////////////////////////////////////////////
Fl_Menu_Item window_type_menu[] = {