rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=4348dd332049a801893f6ee7c49ce19527cc567c
commit 4348dd332049a801893f6ee7c49ce19527cc567c Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Fri Apr 15 17:01:58 2016 +0300 project_export: predefine the name for exported file Change-Id: Ic09decafba61678d5a9de962a3b411e4120a6afb --- src/bin/ui/main_window.h | 3 +++ src/bin/ui/popup.c | 9 +++++++++ src/bin/ui/project_export.c | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/src/bin/ui/main_window.h b/src/bin/ui/main_window.h index fe53793..71c323a 100644 --- a/src/bin/ui/main_window.h +++ b/src/bin/ui/main_window.h @@ -357,6 +357,9 @@ popup_fileselector_sound_helper(const char *title, Evas_Object *follow_up, const Eina_Bool multi, Eina_Bool is_save); void +popup_fileselector_file_set(const char *file); + +void popup_log_message_helper(const char *msg); void diff --git a/src/bin/ui/popup.c b/src/bin/ui/popup.c index 3a89a08..447777d 100644 --- a/src/bin/ui/popup.c +++ b/src/bin/ui/popup.c @@ -429,6 +429,15 @@ popup_fileselector_sound_helper(const char *title, Evas_Object *follow_up, const _fileselector_helper(title, follow_up, path, multi, is_save, func, data, _sounds_filter); } +void +popup_fileselector_file_set(const char *file) +{ + Evas_Object *entry; + + entry = elm_object_part_content_get(fs, "elm.swallow.filename"); + elm_entry_entry_set(entry, file); +} + #define ITEM_WIDTH 100 #define ITEM_HEIGHT 115 #define GROUP_ITEM_WIDTH 36 diff --git a/src/bin/ui/project_export.c b/src/bin/ui/project_export.c index e23c929..dd82e75 100644 --- a/src/bin/ui/project_export.c +++ b/src/bin/ui/project_export.c @@ -73,7 +73,13 @@ _export_dev(void *data __UNUSED__, void project_export_develop(void) { + Eina_Strbuf *buf; + popup_fileselector_edj_helper("Export to develop edj-file", NULL, NULL, _export_dev, NULL, false, true); + buf = eina_strbuf_new(); + eina_strbuf_append_printf(buf, "%s-develop.edj", ap.project->name); + popup_fileselector_file_set(eina_strbuf_string_get(buf)); + eina_strbuf_free(buf); } static Eina_Bool --