diff --git a/data/about/ABOUT b/data/about/ABOUT index 3475339..10e0d79 100644 --- a/data/about/ABOUT +++ b/data/about/ABOUT @@ -1,89 +1,89 @@ -[Enventor v0.7.0] - -This is an EDC editor with some convenient functions. It was started near the begining of June 2013, so expecting it to do everything a mature script editor does is a bit premature. However, considering its young age, it does a lot. - -Please see the following sites for more information. - -http://www.enlightenment.org -https://phab.enlightenment.org/w/projects/enventor/ -http://www.openhub.net/p/enventor - - -[Short Cut Keys] - -Esc - Open/Close Menu -F1 - About -F2 - New -F3 - Save -F4 - Load -F5 - Show/Hide Line Number -F9 - Show/Hide Tools -F10 - Show/Hide Console -F11 - Show/Hide Status -F12 - Settings - -Ctrl+S - Quick Save + Update Live View -Ctrl+I - On/Off Auto Indentation -Ctrl+O - On/Off Auto Completion -Ctrl+W - Show/Hide Dummy Parts -Ctrl+H - On/Off Part Highlighting -Ctrl+T - Insert Defaut Template Code -Ctrl+Mouse Wheel Up - View Zoom In (Only if view size is set) / Font Size Up -Ctrl+Mouse Wheel Down - View Zoom Out (Only if view size is set) / Font Size Down - -Alt+Left - On/Off Full Edit View -Alt+Right - On/Off Full Live View -Alt+Up - On/Off Full Console View -Alt+Down - On/Off Full Editors View - -Ctrl+A - Select Text All -Ctrl+Double Click - Select a word -Ctrl+Z - Undo Text -Ctrl+R - Redo Text -Ctrl+C - Copy Selected Text -Ctrl+V - Paste Copied Text -Ctrl+X - Cut Selected Text -Ctrl+D - Delete a Current line -Ctrl+F - Find/Replace -Ctrl+L - Go to line -Ctrl+Home - Go to the Top line -Ctrl+End - Go to the Bottom line -Ctrl+Space - Search candidate keywords in the context - - -[Command Line Usage] - -enventor --help -enventor [input file] [output file] [-t] [-i image path] [-s sound path] [-f font path] [-d data path] - -input file = EDC file to open. If input file is skipped, Enventor will open a default template code with a temporary file. -output file = EDJ file to store compiled file. If output file is skipped, Enventor will store the binary file to the temporary directory. --t = Open template menu when you launch Enventor --i = path to image resources that the edc includes --s = path to sound resources that the edc includes --f = path to font resources that the edc includes --d = path to data resources that the edc includes - -Examples of Enventor command line usage: -$ enventor -$ enventor -t -$ enventor newfile.edc -t -$ enventor sample.edc output.edj -i ./images -s ./sounds - - -[Developers] - -Many developers have contributed to Enventor project. The following names are dedicated Enventor developers' names but there are more people who've gladly contributed for Enventor. For a complete list of contributors, See AUTHORS file. - -Copyright (C) 2013 - 2016 by: - -Hermet Park -Jaehyun Cho -Mykyta Biliavskyi -Kateryna Fesyna -Yunho Jeong -Mincheol Seo -Raoul Hecky - -And various contributors (See AUTHORS) - +[Enventor v0.7.0]
+
+This is an EDC editor with some convenient functions. It was started near the begining of June 2013, so expecting it to do everything a mature script editor does is a bit premature. However, considering its young age, it does a lot.
+
+Please see the following sites for more information.
+
+http://www.enlightenment.org
+https://phab.enlightenment.org/w/projects/enventor/
+http://www.openhub.net/p/enventor
+
+
+[Short Cut Keys]
+
+Esc - Open/Close Menu
+F1 - About
+F2 - New
+F3 - Save
+F4 - Load
+F5 - Show/Hide Line Number
+F9 - Show/Hide Tools
+F10 - Show/Hide Console
+F11 - Show/Hide Status
+F12 - Settings
+
+Ctrl+S - Quick Save + Update Live View
+Ctrl+I - On/Off Auto Indentation
+Ctrl+O - On/Off Auto Completion
+Ctrl+W - Show/Hide Dummy Parts
+Ctrl+H - On/Off Part Highlighting
+Ctrl+T - Insert Defaut Template Code
+Ctrl+Mouse Wheel Up - View Zoom In (Only if view size is set) / Font Size Up
+Ctrl+Mouse Wheel Down - View Zoom Out (Only if view size is set) / Font Size Down
+
+Alt+Left - On/Off Full Edit View
+Alt+Right - On/Off Full Live View
+Alt+Up - On/Off Full Console View
+Alt+Down - On/Off Full Editors View
+
+Ctrl+A - Select Text All
+Ctrl+Double Click - Select a word
+Ctrl+Z - Undo Text
+Ctrl+R - Redo Text
+Ctrl+C - Copy Selected Text
+Ctrl+V - Paste Copied Text
+Ctrl+X - Cut Selected Text
+Ctrl+D - Delete a Current line
+Ctrl+F - Find/Replace
+Ctrl+L - Go to line
+Ctrl+Home - Go to the Top line
+Ctrl+End - Go to the Bottom line
+Ctrl+Space - Search candidate keywords in the context
+
+
+[Command Line Usage]
+
+enventor --help
+enventor [input file] [output file] [-t] [-i image path] [-s sound path] [-f font path] [-d data path]
+
+input file = EDC file to open. If input file is skipped, Enventor will open a default template code with a temporary file.
+output file = EDJ file to store compiled file. If output file is skipped, Enventor will store the binary file to the temporary directory.
+-t = Open template menu when you launch Enventor
+-i = path to image resources that the edc includes
+-s = path to sound resources that the edc includes
+-f = path to font resources that the edc includes
+-d = path to data resources that the edc includes
+
+Examples of Enventor command line usage:
+$ enventor
+$ enventor -t
+$ enventor newfile.edc -t
+$ enventor sample.edc output.edj -i ./images -s ./sounds
+
+
+[Developers]
+
+Many developers have contributed to Enventor project. The following names are dedicated Enventor developers' names but there are more people who've gladly contributed for Enventor. For a complete list of contributors, See AUTHORS file.
+
+Copyright (C) 2013 - 2016 by:
+
+Hermet Park
+Jaehyun Cho
+Mykyta Biliavskyi
+Kateryna Fesyna
+Yunho Jeong
+Mincheol Seo
+Raoul Hecky
+
+And various contributors (See AUTHORS)
+
diff --git a/src/bin/menu.c b/src/bin/menu.c index f159786..3e3be05 100644 --- a/src/bin/menu.c +++ b/src/bin/menu.c @@ -239,49 +239,15 @@ about_open(menu_data *md) evas_object_show(entry); elm_object_focus_set(entry, EINA_TRUE); elm_object_part_content_set(layout, "elm.swallow.entry", entry); - elm_entry_entry_append(entry, ""); //Read README char buf[PATH_MAX]; snprintf(buf, sizeof(buf), "%s/about/ABOUT", elm_app_data_dir_get()); - - Eina_Strbuf *strbuf = NULL; - Eina_Iterator *itr = NULL; - - Eina_File *file = eina_file_open(buf, EINA_FALSE); - if (!file) goto err; - - itr = eina_file_map_lines(file); - if (!itr) goto err; - - strbuf = eina_strbuf_new(); - if (!strbuf) goto err; - - Eina_File_Line *line; - int line_num = 0; - - EINA_ITERATOR_FOREACH(itr, line) - { - //Append edc ccde - if (line_num > 0) - { - if (!eina_strbuf_append(strbuf, EOL)) goto err; - } - - if (!eina_strbuf_append_length(strbuf, line->start, line->length)) - goto err; - line_num++; - } - elm_entry_entry_append(entry, eina_strbuf_string_get(strbuf)); - elm_entry_entry_append(entry, ""); + elm_entry_autosave_set(entry, EINA_FALSE); + elm_entry_file_set(entry, buf, ELM_TEXT_FORMAT_MARKUP_UTF8); md->about_layout = layout; menu_activate_request(); - -err: - if (strbuf) eina_strbuf_free(strbuf); - if (itr) eina_iterator_free(itr); - if (file) eina_file_close(file); } static void