Compare commits
No commits in common. "master" and "enventor-1.0" have entirely different histories.
master
...
enventor-1
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"project_id" : "Enventor",
|
||||||
|
"conduit_uri" : "https://phab.enlightenment.org/"
|
||||||
|
}
|
|
@ -4,7 +4,6 @@
|
||||||
*.edj
|
*.edj
|
||||||
*.swp
|
*.swp
|
||||||
*.eet
|
*.eet
|
||||||
*.exe
|
|
||||||
*~
|
*~
|
||||||
.*
|
.*
|
||||||
*.eo.*
|
*.eo.*
|
||||||
|
|
6
AUTHORS
6
AUTHORS
|
@ -1,4 +1,4 @@
|
||||||
Hermet Park <hermetpark@gmail.com>
|
Hermet Park <hermet@hermet.pe.kr>
|
||||||
Cedric Bail <cedric.bail@free.fr>
|
Cedric Bail <cedric.bail@free.fr>
|
||||||
Raoul Hecky <raoul.hecky@gmail.com>
|
Raoul Hecky <raoul.hecky@gmail.com>
|
||||||
Daniel Juyung Seo <seojuyung2@gmail.com>
|
Daniel Juyung Seo <seojuyung2@gmail.com>
|
||||||
|
@ -28,7 +28,3 @@ Yongheon Shin <yongheon.shin@samsung.com>
|
||||||
Vyacheslav Reutskiy <v.reutskiy@samsung.com>
|
Vyacheslav Reutskiy <v.reutskiy@samsung.com>
|
||||||
Bowon Ryu <bowon.ryu@samsung.com>
|
Bowon Ryu <bowon.ryu@samsung.com>
|
||||||
Jean Guyomarc'h <jean@guyomarch.bzh>
|
Jean Guyomarc'h <jean@guyomarch.bzh>
|
||||||
Thiep Ha <thiep.ha@samsung.com>
|
|
||||||
YeongJong Lee <cleanlyj@naver.com>
|
|
||||||
Massimo Maiurana <maiurana@gmail.com>
|
|
||||||
Amitesh Singh <amitesh.sh@samsung.com>
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
if HAVE_EOLIAN_CXX
|
||||||
|
EOLIAN_CXX = @eolian_cxx@
|
||||||
|
_EOLIAN_CXX_DEP = @eolian_cxx@
|
||||||
|
else
|
||||||
|
EOLIAN_CXX = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian_cxx/eolian_cxx${EXEEXT}
|
||||||
|
_EOLIAN_CXX_DEP = bin/eolian_cxx/eolian_cxx${EXEEXT}
|
||||||
|
endif
|
||||||
|
|
||||||
|
AM_V_EOLCXX = $(am__v_EOLCXX_@AM_V@)
|
||||||
|
am__v_EOLCXX_ = $(am__v_EOLCXX_@AM_DEFAULT_V@)
|
||||||
|
am__v_EOLCXX_0 = @echo " EOLCXX " $@;
|
||||||
|
|
||||||
|
SUFFIXES += .eo.hh
|
||||||
|
|
||||||
|
%.eo.hh: %.eo $(_EOLIAN_CXX_DEP)
|
||||||
|
$(AM_V_EOLCXX)$(EOLIAN_CXX) $(EOLIAN_FLAGS) -o $@ $<
|
||||||
|
|
||||||
|
CLEANFILES += $(BUILT_SOURCES)
|
|
@ -0,0 +1,24 @@
|
||||||
|
if HAVE_EOLIAN_GEN
|
||||||
|
EOLIAN_GEN = @eolian_gen@
|
||||||
|
_EOLIAN_GEN_DEP = @eolian_gen@
|
||||||
|
else
|
||||||
|
EOLIAN_GEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT}
|
||||||
|
_EOLIAN_GEN_DEP = bin/eolian/eolian_gen${EXEEXT}
|
||||||
|
endif
|
||||||
|
|
||||||
|
AM_V_EOL = $(am__v_EOL_@AM_V@)
|
||||||
|
am__v_EOL_ = $(am__v_EOL_@AM_DEFAULT_V@)
|
||||||
|
am__v_EOL_0 = @echo " EOLIAN " $@;
|
||||||
|
|
||||||
|
SUFFIXES = .eo .eo.c .eo.h .eo.legacy.h
|
||||||
|
|
||||||
|
%.eo.c: %.eo ${_EOLIAN_GEN_DEP}
|
||||||
|
$(AM_V_EOL)$(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gc -o $@ $<
|
||||||
|
|
||||||
|
%.eo.h: %.eo ${_EOLIAN_GEN_DEP}
|
||||||
|
$(AM_V_EOL)$(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
|
||||||
|
|
||||||
|
%.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
|
||||||
|
$(AM_V_EOL)$(EOLIAN_GEN) --legacy $(EOLIAN_FLAGS) --gh -o $@ $<
|
||||||
|
|
||||||
|
CLEANFILES += $(BUILT_SOURCES)
|
4
NEWS
4
NEWS
|
@ -96,7 +96,7 @@ Fixes:
|
||||||
* EDC Editor: Compare name elaborately to search the clicked part correctly.
|
* EDC Editor: Compare name elaborately to search the clicked part correctly.
|
||||||
* Live Edit: Fix malfunction of key input on Windows.
|
* Live Edit: Fix malfunction of key input on Windows.
|
||||||
* Live Edit: Fix center guide text positioning problem.
|
* Live Edit: Fix center guide text positioning problem.
|
||||||
* Live View: Update dummy part when removing all source code.
|
* Live View: Update dummpy part when removing all source code.
|
||||||
* RedoUndo: Correct work with unicode symbols.
|
* RedoUndo: Correct work with unicode symbols.
|
||||||
* Template: Fix the error of line position when inserting group template.
|
* Template: Fix the error of line position when inserting group template.
|
||||||
* Template: Fix line count of textblock part inserted in live edit mode.
|
* Template: Fix line count of textblock part inserted in live edit mode.
|
||||||
|
@ -108,7 +108,7 @@ Fixes:
|
||||||
* Ctxpopup: Don't display image previews if the selected image string is in comments.
|
* Ctxpopup: Don't display image previews if the selected image string is in comments.
|
||||||
* Auto Completion: Fix its list moved to selected part name position.
|
* Auto Completion: Fix its list moved to selected part name position.
|
||||||
* Fix a crash issue when removing all code in edc editor.
|
* Fix a crash issue when removing all code in edc editor.
|
||||||
* Fix a compilation issue when new empty file is opened.
|
* Fix a complation issue when new empty file is opened.
|
||||||
* Fix a color selector to scalable.
|
* Fix a color selector to scalable.
|
||||||
|
|
||||||
Changes since Enventor 0.7.0:
|
Changes since Enventor 0.7.0:
|
||||||
|
|
6
README
6
README
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Enventor, which is also known as EDC (Edje Data Collections) Editor, is a EDC script editor tool that supports text editing and previewing functions for the EDC source code.
|
Enventor, which is also known as EDC (Edje Data Collections) Editor, is a EDC script editor tool that supports text editing and previewing functions for the EDC source code.
|
||||||
|
|
||||||
When your application requires real-time changeable layouts like animated ones, then you can write the layout design using EDC script, compile it into EDJ format file, and import it into your application using a UI layout component. You can also write design layouts from simple to complex ones using the EDC script with Enventor. Enventor helps you write EDC script code easier and finish your work faster. If you are not familiar with EDC programming, see Edje Programming Guide - https://www.enlightenment.org/program_guide/edje_pg for more information.
|
When your application requires real-time changeable layouts like animated ones, then you can write the layout design using EDC script, compile it into EDJ format file, and import it into your application using a UI layout component. You can also write design layouts from simple to complex ones using the EDC script with Enventor. Enventor helps you write EDC script code eaiser and finish your work faster. If you are not familiar with EDC programming, see Edje Programming Guide - https://www.enlightenment.org/program_guide/edje_pg for more information.
|
||||||
|
|
||||||
[Requirements]
|
[Requirements]
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ Ctrl+U - Toggle Dummy Parts
|
||||||
Ctrl+H - Toggle Part Highlighting
|
Ctrl+H - Toggle Part Highlighting
|
||||||
Ctrl+M - Toggle Mirror Mode
|
Ctrl+M - Toggle Mirror Mode
|
||||||
Ctrl+W - Toggle Wireframes
|
Ctrl+W - Toggle Wireframes
|
||||||
Ctrl+T - Insert Default Template Code
|
Ctrl+T - Insert Defaut Template Code
|
||||||
Ctrl+Mouse Wheel Up - View Zoom In / Font Size Up
|
Ctrl+Mouse Wheel Up - View Zoom In / Font Size Up
|
||||||
Ctrl+Mouse Wheel Down - View Zoom Out / Font Size Down
|
Ctrl+Mouse Wheel Down - View Zoom Out / Font Size Down
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ Alt+Up - Toggle Full Console View
|
||||||
Alt+Down - Toggle Full Editors View
|
Alt+Down - Toggle Full Editors View
|
||||||
|
|
||||||
Ctrl+A - Select Text All
|
Ctrl+A - Select Text All
|
||||||
Ctrl+Double Click - Select a word without openning candidate popup
|
Ctrl+Double Click - Select a word
|
||||||
Ctrl+Z - Undo Text
|
Ctrl+Z - Undo Text
|
||||||
Ctrl+R - Redo Text
|
Ctrl+R - Redo Text
|
||||||
Ctrl+C - Copy Selected Text
|
Ctrl+C - Copy Selected Text
|
||||||
|
|
22
configure.ac
22
configure.ac
|
@ -2,7 +2,7 @@
|
||||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
m4_define([v_maj], [1])
|
m4_define([v_maj], [1])
|
||||||
m4_define([v_min], [0])
|
m4_define([v_min], [0])
|
||||||
m4_define([v_mic], [99])
|
m4_define([v_mic], [0])
|
||||||
#m4_define([v_rev], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl
|
#m4_define([v_rev], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl
|
||||||
##-- When released, remove the dnl on the below line
|
##-- When released, remove the dnl on the below line
|
||||||
dnl m4_undefine([v_rev])
|
dnl m4_undefine([v_rev])
|
||||||
|
@ -17,7 +17,7 @@ m4_define([lt_age], v_min)
|
||||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||||
|
|
||||||
AC_INIT(enventor, [v_ver], hermetpark@gmail.com)
|
AC_INIT(enventor, [v_ver], hermet@hermet.pe.kr)
|
||||||
AC_PREREQ(2.52)
|
AC_PREREQ(2.52)
|
||||||
AC_CONFIG_SRCDIR(configure.ac)
|
AC_CONFIG_SRCDIR(configure.ac)
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
@ -30,8 +30,6 @@ AM_INIT_AUTOMAKE(1.6 dist-bzip2 dist-xz)
|
||||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
AC_CONFIG_HEADERS(config.h)
|
AC_CONFIG_HEADERS(config.h)
|
||||||
AC_GNU_SOURCE
|
AC_GNU_SOURCE
|
||||||
lt_cv_deplibs_check_method=pass_all
|
|
||||||
LT_INIT([win32-dll])
|
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
||||||
ELM_QUICKLAUNCH
|
ELM_QUICKLAUNCH
|
||||||
|
@ -71,15 +69,14 @@ ENVENTOR_VERSION_MINOR=v_min
|
||||||
AC_SUBST(ENVENTOR_VERSION_MAJOR)
|
AC_SUBST(ENVENTOR_VERSION_MAJOR)
|
||||||
AC_SUBST(ENVENTOR_VERSION_MINOR)
|
AC_SUBST(ENVENTOR_VERSION_MINOR)
|
||||||
|
|
||||||
|
EFL_ENABLE_EO_API_SUPPORT
|
||||||
EFL_ENABLE_BETA_API_SUPPORT
|
EFL_ENABLE_BETA_API_SUPPORT
|
||||||
AC_DEFINE_UNQUOTED(ENVENTOR_WIN32_BUILD_SUPPORT, 1, "Support Win32 dllexport")
|
AC_DEFINE_UNQUOTED(ENVENTOR_WIN32_BUILD_SUPPORT, 1, "Support Win32 dllexport")
|
||||||
AC_DEFINE_UNQUOTED(ENVENTOR_BETA_API_SUPPORT, 1, "Enable access to unstable ENVENTOR API that are still in beta")
|
AC_DEFINE_UNQUOTED(ENVENTOR_BETA_API_SUPPORT, 1, "Enable access to unstable ENVENTOR API that are still in beta")
|
||||||
AC_DEFINE_UNQUOTED(EFL_UI_FOCUS_OBJECT_PROTECTED, 1, "Enable Focus Protected API")
|
|
||||||
|
|
||||||
efl_version="1.18.0"
|
efl_version="1.18.0"
|
||||||
requirement_enventor=" \
|
requirement_enventor=" \
|
||||||
eo >= ${efl_version} \
|
eo >= ${efl_version} \
|
||||||
efl >= ${efl_version} \
|
|
||||||
eina >= ${efl_version} \
|
eina >= ${efl_version} \
|
||||||
eet >= ${efl_version} \
|
eet >= ${efl_version} \
|
||||||
elementary >= ${efl_version} \
|
elementary >= ${efl_version} \
|
||||||
|
@ -96,9 +93,21 @@ PKG_CHECK_MODULES([ENVENTOR], [${requirement_enventor}])
|
||||||
|
|
||||||
### Checks for linker characteristics
|
### Checks for linker characteristics
|
||||||
|
|
||||||
|
# Needs to be moved into a macro, and also, needs a way to automatically fetch from all the dependencies using the Requires.
|
||||||
|
DEPS_EOLIAN_FLAGS=`${PKG_CONFIG} --variable=eolian_flags eo evas edje ecore elementary efl`
|
||||||
|
AC_SUBST([DEPS_EOLIAN_FLAGS])
|
||||||
|
|
||||||
|
EFL_ATTRIBUTE_UNUSED
|
||||||
|
|
||||||
# Check edje_cc
|
# Check edje_cc
|
||||||
EFL_WITH_BIN([eet], [eet-eet], [eet])
|
EFL_WITH_BIN([eet], [eet-eet], [eet])
|
||||||
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
|
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
|
||||||
|
EFL_WITH_BIN([eolian], [eolian-gen], [eolian_gen])
|
||||||
|
EFL_WITH_BIN([eolian-cxx], [eolian-cxx], [eolian_cxx])
|
||||||
|
|
||||||
|
# Force the helper to try external eolian generator
|
||||||
|
AM_CONDITIONAL([HAVE_EOLIAN_GEN], [true])
|
||||||
|
AM_CONDITIONAL([HAVE_EOLIAN_CXX], [true])
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
po/Makefile.in
|
po/Makefile.in
|
||||||
|
@ -106,6 +115,7 @@ Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
src/include/Makefile
|
src/include/Makefile
|
||||||
src/lib/Makefile
|
src/lib/Makefile
|
||||||
|
src/lib/Enventor.h
|
||||||
src/bin/Makefile
|
src/bin/Makefile
|
||||||
data/Makefile
|
data/Makefile
|
||||||
data/desktop/Makefile
|
data/desktop/Makefile
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
|
|
||||||
custom_target('autocomp.eet',
|
|
||||||
input : 'autocomp.src',
|
|
||||||
output : 'autocomp.eet',
|
|
||||||
command : eet_exe + [
|
|
||||||
'-e',
|
|
||||||
join_paths(meson.current_build_dir(), 'autocomp.eet'),
|
|
||||||
'node',
|
|
||||||
join_paths(meson.current_source_dir(), 'autocomp.src'),
|
|
||||||
'1'
|
|
||||||
],
|
|
||||||
install : true,
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'autocomp')
|
|
||||||
)
|
|
|
@ -40,8 +40,6 @@ group "syntax_color_group" struct {
|
||||||
value "key" string: "externals";
|
value "key" string: "externals";
|
||||||
value "key" string: "external";
|
value "key" string: "external";
|
||||||
value "key" string: "fill";
|
value "key" string: "fill";
|
||||||
value "key" string: "filters";
|
|
||||||
value "key" string: "filter";
|
|
||||||
value "key" string: "fonts";
|
value "key" string: "fonts";
|
||||||
value "key" string: "gradient";
|
value "key" string: "gradient";
|
||||||
value "key" string: "group";
|
value "key" string: "group";
|
||||||
|
@ -100,7 +98,6 @@ group "syntax_color_group" struct {
|
||||||
value "key" string: "border";
|
value "key" string: "border";
|
||||||
value "key" string: "center";
|
value "key" string: "center";
|
||||||
value "key" string: "clip_to";
|
value "key" string: "clip_to";
|
||||||
value "key" string: "code";
|
|
||||||
value "key" string: "color2";
|
value "key" string: "color2";
|
||||||
value "key" string: "color3";
|
value "key" string: "color3";
|
||||||
value "key" string: "color_class:";
|
value "key" string: "color_class:";
|
||||||
|
@ -110,11 +107,9 @@ group "syntax_color_group" struct {
|
||||||
value "key" string: "effect";
|
value "key" string: "effect";
|
||||||
value "key" string: "ellipsis";
|
value "key" string: "ellipsis";
|
||||||
value "key" string: "entry_mode";
|
value "key" string: "entry_mode";
|
||||||
value "key" string: "file";
|
|
||||||
value "key" string: "fixed";
|
value "key" string: "fixed";
|
||||||
value "key" string: "focal";
|
value "key" string: "focal";
|
||||||
value "key" string: "font";
|
value "key" string: "font";
|
||||||
value "key" string: "hid";
|
|
||||||
value "key" string: "ignore_flags";
|
value "key" string: "ignore_flags";
|
||||||
value "key" string: "image";
|
value "key" string: "image";
|
||||||
value "key" string: "inherit";
|
value "key" string: "inherit";
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
|
|
||||||
custom_target('color.eet',
|
|
||||||
input : 'edc.src',
|
|
||||||
output : 'edc.eet',
|
|
||||||
command : eet_exe + [
|
|
||||||
'-e',
|
|
||||||
join_paths(meson.current_build_dir(), 'edc.eet'),
|
|
||||||
'color',
|
|
||||||
join_paths(meson.current_source_dir(), 'edc.src'),
|
|
||||||
'1'
|
|
||||||
],
|
|
||||||
install : true,
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'color')
|
|
||||||
)
|
|
||||||
|
|
||||||
install_data(
|
|
||||||
sources : 'syntax_template.dat',
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'color')
|
|
||||||
)
|
|
|
@ -3,8 +3,6 @@ Encoding=UTF-8
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Enventor
|
Name=Enventor
|
||||||
Comment=Enlightenment EDC Editor
|
Comment=Enlightenment EDC Editor
|
||||||
Comment[fr]=Éditeur de fichiers EDC
|
|
||||||
Comment[it]=Editor per i file EDC di Enlightenment
|
|
||||||
Comment[ru]=Редактор EDC-файлов
|
Comment[ru]=Редактор EDC-файлов
|
||||||
Icon=enventor
|
Icon=enventor
|
||||||
Exec=enventor
|
Exec=enventor
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
install_data(
|
|
||||||
sources : 'enventor.desktop',
|
|
||||||
install_dir : join_paths(dir_data, 'applications')
|
|
||||||
)
|
|
|
@ -41,7 +41,7 @@
|
||||||
* EDC Editor: Compare name elaborately to search the clicked part correctly.<br>
|
* EDC Editor: Compare name elaborately to search the clicked part correctly.<br>
|
||||||
* Live Edit: Fix malfunction of key input on Windows.<br>
|
* Live Edit: Fix malfunction of key input on Windows.<br>
|
||||||
* Live Edit: Fix center guide text positioning problem.<br>
|
* Live Edit: Fix center guide text positioning problem.<br>
|
||||||
* Live View: Update dummy part when removing all source code.<br>
|
* Live View: Update dummpy part when removing all source code.<br>
|
||||||
* RedoUndo: Correct work with unicode symbols.<br>
|
* RedoUndo: Correct work with unicode symbols.<br>
|
||||||
* Template: Fix the error of line position when inserting group template.<br>
|
* Template: Fix the error of line position when inserting group template.<br>
|
||||||
* Template: Fix line count of textblock part inserted in live edit mode.<br>
|
* Template: Fix line count of textblock part inserted in live edit mode.<br>
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
* Ctxpopup: Don't display image previews if the selected image string is in comments.<br>
|
* Ctxpopup: Don't display image previews if the selected image string is in comments.<br>
|
||||||
* Auto Completion: Fix its list moved to selected part name position.<br>
|
* Auto Completion: Fix its list moved to selected part name position.<br>
|
||||||
* Fix a crash issue when removing all code in edc editor.<br>
|
* Fix a crash issue when removing all code in edc editor.<br>
|
||||||
* Fix a compilation issue when new empty file is opened.<br>
|
* Fix a complation issue when new empty file is opened.<br>
|
||||||
* Fix a color selector to scalable.<br>
|
* Fix a color selector to scalable.<br>
|
||||||
<br>
|
<br>
|
||||||
Please see NEWS for more information.
|
Please see NEWS for more information.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
</br>
|
</br>
|
||||||
Enventor, which is also known as EDC (Edje Data Collections) Editor, is a EDC script editor tool that supports text editing and previewing functions for the EDC source code.</br>
|
Enventor, which is also known as EDC (Edje Data Collections) Editor, is a EDC script editor tool that supports text editing and previewing functions for the EDC source code.</br>
|
||||||
</br>
|
</br>
|
||||||
When your application requires real-time changeable layouts like animated ones, then you can write the layout design using EDC script, compile it into EDJ format file, and import it into your application using a UI layout component. You can also write design layouts from simple to complex ones using the EDC script with Enventor. Enventor helps you write EDC script code easier and finish your work faster. If you are not familiar with EDC programming, see Edje Programming Guide - https://www.enlightenment.org/program_guide/edje_pg for more information.</br>
|
When your application requires real-time changeable layouts like animated ones, then you can write the layout design using EDC script, compile it into EDJ format file, and import it into your application using a UI layout component. You can also write design layouts from simple to complex ones using the EDC script with Enventor. Enventor helps you write EDC script code eaiser and finish your work faster. If you are not familiar with EDC programming, see Edje Programming Guide - https://www.enlightenment.org/program_guide/edje_pg for more information.</br>
|
||||||
</br>
|
</br>
|
||||||
Please see the following sites for more information.</br>
|
Please see the following sites for more information.</br>
|
||||||
</br>
|
</br>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
Ctrl+H - Toggle Part Highlighting</br>
|
Ctrl+H - Toggle Part Highlighting</br>
|
||||||
Ctrl+M - Toggle Mirror Mode</br>
|
Ctrl+M - Toggle Mirror Mode</br>
|
||||||
Ctrl+W - Toggle Wireframes</br>
|
Ctrl+W - Toggle Wireframes</br>
|
||||||
Ctrl+T - Insert Default Template Code</br>
|
Ctrl+T - Insert Defaut Template Code</br>
|
||||||
Ctrl+Mouse Wheel Up - View Zoom In / Font Size Up</br>
|
Ctrl+Mouse Wheel Up - View Zoom In / Font Size Up</br>
|
||||||
Ctrl+Mouse Wheel Down - View Zoom Out / Font Size Down</br>
|
Ctrl+Mouse Wheel Down - View Zoom Out / Font Size Down</br>
|
||||||
</br>
|
</br>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
</br>
|
</br>
|
||||||
<b>Text Editor:</b></br>
|
<b>Text Editor:</b></br>
|
||||||
Ctrl+A - Select Text All</br>
|
Ctrl+A - Select Text All</br>
|
||||||
Ctrl+Double Click - Select a word without openning candidate popup</br>
|
Ctrl+Double Click - Select a word</br>
|
||||||
Ctrl+Z - Undo Text</br>
|
Ctrl+Z - Undo Text</br>
|
||||||
Ctrl+R - Redo Text</br>
|
Ctrl+R - Redo Text</br>
|
||||||
Ctrl+C - Copy Selected Text</br>
|
Ctrl+C - Copy Selected Text</br>
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
help_files = [
|
|
||||||
'INTRO',
|
|
||||||
'HISTORY',
|
|
||||||
'SHORTCUT',
|
|
||||||
'COMMAND',
|
|
||||||
'DEVEL'
|
|
||||||
]
|
|
||||||
|
|
||||||
install_data(
|
|
||||||
sources : help_files,
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'help')
|
|
||||||
)
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
install_data(
|
|
||||||
sources : 'enventor.png',
|
|
||||||
install_dir : join_paths(dir_data, 'icons')
|
|
||||||
)
|
|
|
@ -1,3 +1,3 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" stroke-linejoin="round" viewBox="50 -100 500 500">
|
<svg xmlns="http://www.w3.org/2000/svg" stroke-linejoin="round" viewBox="50 -100 500 500">
|
||||||
<path fill="none" stroke="black" stroke-width="10" d="M 213,222 C 219,150 165,139 130,183 125,123 171,73.8 247,51.6 205,78 236,108 280,102 281,90.3 282,79 286,68.2 287,72 288,75.8 289,79.7 293,79.7 296,79.7 300,79.7 304,79.7 307,79.7 311,79.7 312,75.8 313,72 314,68.2 318,79 319,90.3 320,102 364,108 395,78 353,51.6 429,73.8 475,123 470,183 435,139 381,150 387,222 364,176 315,172 300,248 285,172 236,176 213,222 Z"/>
|
<path fill="none" stroke="black" stroke-width="10" d="M 213,222 C 219,150 165,139 130,183 125,123 171,73.8 247,51.6 205,78 236,108 280,102 281,90.3 282,79 286,68.2 287,72 288,75.8 289,79.7 293,79.7 296,79.7 300,79.7 304,79.7 307,79.7 311,79.7 312,75.8 313,72 314,68.2 318,79 319,90.3 320,102 364,108 395,78 353,51.6 429,73.8 475,123 470,183 435,139 381,150 387,222 364,176 315,172 300,248 285,172 236,176 213,222 Z">
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 516 B After Width: | Height: | Size: 533 B |
|
@ -1,59 +0,0 @@
|
||||||
|
|
||||||
image_files = [
|
|
||||||
'ENVENTOR_EMBEDDED_BAT1.svg',
|
|
||||||
'ENVENTOR_EMBEDDED_BAT2.svg',
|
|
||||||
'ENVENTOR_EMBEDDED_BG1.png',
|
|
||||||
'ENVENTOR_EMBEDDED_BG2.png',
|
|
||||||
'ENVENTOR_EMBEDDED_BG3.png',
|
|
||||||
'ENVENTOR_EMBEDDED_BUTTON_BG.png',
|
|
||||||
'ENVENTOR_EMBEDDED_BUTTON_BG_DOWN.png',
|
|
||||||
'ENVENTOR_EMBEDDED_BUTTON_BG_HOVER.png',
|
|
||||||
'ENVENTOR_EMBEDDED_CHERRY.png',
|
|
||||||
'ENVENTOR_EMBEDDED_FIELD.png',
|
|
||||||
'ENVENTOR_EMBEDDED_ICON_ARROW.png',
|
|
||||||
'ENVENTOR_EMBEDDED_ICON_BADGE.png',
|
|
||||||
'ENVENTOR_EMBEDDED_ICON_BADGE_DOWN.png',
|
|
||||||
'ENVENTOR_EMBEDDED_ICON_CLIP.png',
|
|
||||||
'ENVENTOR_EMBEDDED_ICON_CLIP_DOWN.png',
|
|
||||||
'ENVENTOR_EMBEDDED_ICON_DOCK.png',
|
|
||||||
'ENVENTOR_EMBEDDED_ICON_DOCK_DOWN.png',
|
|
||||||
'ENVENTOR_EMBEDDED_ICON_LOCK.png',
|
|
||||||
'ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png',
|
|
||||||
'ENVENTOR_EMBEDDED_IMAGE.png',
|
|
||||||
'ENVENTOR_EMBEDDED_LADDER.png',
|
|
||||||
'ENVENTOR_EMBEDDED_MASK.png',
|
|
||||||
'ENVENTOR_EMBEDDED_MELON.png',
|
|
||||||
'ENVENTOR_EMBEDDED_MONTH_STROKE.png',
|
|
||||||
'ENVENTOR_EMBEDDED_MOONPHASE_COVER.png',
|
|
||||||
'ENVENTOR_EMBEDDED_MOONPHASE_MOON.png',
|
|
||||||
'ENVENTOR_EMBEDDED_NEEDLE_HOUR.png',
|
|
||||||
'ENVENTOR_EMBEDDED_NEEDLE_HOUR_RECT.png',
|
|
||||||
'ENVENTOR_EMBEDDED_NEEDLE_MINUTE.png',
|
|
||||||
'ENVENTOR_EMBEDDED_NEEDLE_MINUTE_RECT.png',
|
|
||||||
'ENVENTOR_EMBEDDED_NEEDLE_SECOND.png',
|
|
||||||
'ENVENTOR_EMBEDDED_NEEDLE_SECOND_RECT.png',
|
|
||||||
'ENVENTOR_EMBEDDED_PLATFORM.png',
|
|
||||||
'ENVENTOR_EMBEDDED_SVG.svg',
|
|
||||||
'ENVENTOR_EMBEDDED_TACK.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-01.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-02.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-03.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-04.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-05.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-06.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-07.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-08.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-09.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-10.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-11.png',
|
|
||||||
'ENVENTOR_EMBEDDED_TRIAB-12.png',
|
|
||||||
'ENVENTOR_EMBEDDED_WATCHFACE.png',
|
|
||||||
'ENVENTOR_EMBEDDED_WATCHFACE_RECT.png',
|
|
||||||
'ENVENTOR_EMBEDDED_WATERMELON.png',
|
|
||||||
'enventor_logo.png',
|
|
||||||
]
|
|
||||||
|
|
||||||
install_data(
|
|
||||||
sources : image_files,
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'images')
|
|
||||||
)
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
install_data(
|
|
||||||
sources : 'reference.src',
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'reference')
|
|
||||||
)
|
|
|
@ -256,8 +256,6 @@ collections { "The <hilight>collections</hilight> represents a theme.</br>The <h
|
||||||
text { "The <hilight>text</hilight> block is used to define text properties.";
|
text { "The <hilight>text</hilight> block is used to define text properties.";
|
||||||
align { "Moves the text relatively along both axis inside the part.</br>For horizontal alignment, 0.0 moves the text to touch the left edge of the part and 1.0 moves the text to touch the right edge of the part.</br>For vertical alignment, 0.0 moves the text to touch the top edge of the part and 1.0 moves the text to touch the bottom edge of the part.</br>The default value is 0.5 0.5.";
|
align { "Moves the text relatively along both axis inside the part.</br>For horizontal alignment, 0.0 moves the text to touch the left edge of the part and 1.0 moves the text to touch the right edge of the part.</br>For vertical alignment, 0.0 moves the text to touch the top edge of the part and 1.0 moves the text to touch the bottom edge of the part.</br>The default value is 0.5 0.5.";
|
||||||
}
|
}
|
||||||
domain { "Sets the domain name of the .mo file which has to be checked for translation.";
|
|
||||||
}
|
|
||||||
ellipsis { "Balances the text in a relative point from 0.0 to 1.0, this point is the last section of the string to be cut out in case of a resize that is smaller than the text itself.</br>The default value is 0.0.";
|
ellipsis { "Balances the text in a relative point from 0.0 to 1.0, this point is the last section of the string to be cut out in case of a resize that is smaller than the text itself.</br>The default value is 0.0.";
|
||||||
}
|
}
|
||||||
fit { "Specifies whether resizing the text to fit in the part or not.</br>The default value is 0 0 (disabled).";
|
fit { "Specifies whether resizing the text to fit in the part or not.</br>The default value is 0 0 (disabled).";
|
||||||
|
@ -325,7 +323,7 @@ collections { "The <hilight>collections</hilight> represents a theme.</br>The <h
|
||||||
}
|
}
|
||||||
select_mode { "Sets how the text selection is triggered for textblock parts.</br>The available modes are DEFAULT and EXPLICIT.";
|
select_mode { "Sets how the text selection is triggered for textblock parts.</br>The available modes are DEFAULT and EXPLICIT.";
|
||||||
}
|
}
|
||||||
source { "Sets the given group to the group/textblock parts.</br>Sets the given elementary widget to the external part. (e.g. elm/button)";
|
source { "Sets the given group to the group/textblock parts.";
|
||||||
}
|
}
|
||||||
table { "On a box part, the <hilight>table</hilight> block is used to set other groups as elements of the box.</br>These can be mixed with external objects set by the application through the edje_object_part_box*() functions.";
|
table { "On a box part, the <hilight>table</hilight> block is used to set other groups as elements of the box.</br>These can be mixed with external objects set by the application through the edje_object_part_box*() functions.";
|
||||||
items { "The <hilight>items</hilight> block contains a list of <hilight>item</hilight> blocks.</br>Each <hilight>item</hilight> item block contains other group as an element of the box.";
|
items { "The <hilight>items</hilight> block contains a list of <hilight>item</hilight> blocks.</br>Each <hilight>item</hilight> item block contains other group as an element of the box.";
|
||||||
|
@ -363,7 +361,7 @@ collections { "The <hilight>collections</hilight> represents a theme.</br>The <h
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
type { "Sets the part type.</br>The available types are IMAGE (default), RECT, SWALLOW, TEXT, TEXTBLOCK, SPACER, GROUP, BOX, TABLE, PROXY and EXTERNAL.";
|
type { "Sets the part type.</br>The available types are IMAGE (default), RECT, SWALLOW, TEXT, TEXTBLOCK, SPACER, GROUP, BOX, TABLE, and PROXY.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -371,10 +369,6 @@ collections { "The <hilight>collections</hilight> represents a theme.</br>The <h
|
||||||
#inherit "collections.group.parts.part";
|
#inherit "collections.group.parts.part";
|
||||||
}
|
}
|
||||||
|
|
||||||
external { "The <hilight>external</hilight> represents an external part. The <hilight>external</hilight> part is used to set a widget inside of it.</br>The <hilight>external</hilight> block contains a list of descriptions that defines a state of the external part.";
|
|
||||||
#inherit "collections.group.parts.part";
|
|
||||||
}
|
|
||||||
|
|
||||||
group { "The <hilight>group</hilight> represents a group part. The <hilight>group</hilight> part is used to include other group (widget style) inside of it.</br>The <hilight>group</hilight> block contains a list of descriptions that defines a state of the group part.";
|
group { "The <hilight>group</hilight> represents a group part. The <hilight>group</hilight> part is used to include other group (widget style) inside of it.</br>The <hilight>group</hilight> block contains a list of descriptions that defines a state of the group part.";
|
||||||
#inherit "collections.group.parts.part";
|
#inherit "collections.group.parts.part";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
install_data(
|
|
||||||
sources : 'ENVENTOR_EMBEDDED_TAP.wav',
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'sounds')
|
|
||||||
)
|
|
|
@ -29,7 +29,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "text";
|
text { "text";
|
||||||
scale;
|
scale: 1;
|
||||||
effect: SOFT_OUTLINE;
|
effect: SOFT_OUTLINE;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.relative: 0.0 0.5;
|
rel1.relative: 0.0 0.5;
|
||||||
|
|
|
@ -194,7 +194,7 @@ collections {
|
||||||
}
|
}
|
||||||
text { "sizer.content";
|
text { "sizer.content";
|
||||||
nomouse;
|
nomouse;
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
visible: 0;
|
visible: 0;
|
||||||
text {
|
text {
|
||||||
|
@ -228,7 +228,7 @@ collections {
|
||||||
text { "elm.text";
|
text { "elm.text";
|
||||||
nomouse;
|
nomouse;
|
||||||
effect: SHADOW BOTTOM;
|
effect: SHADOW BOTTOM;
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.offset: 0 5;
|
rel1.offset: 0 5;
|
||||||
rel1.relative: 1.0 0.0;
|
rel1.relative: 1.0 0.0;
|
||||||
|
|
|
@ -21,7 +21,7 @@ collections {
|
||||||
group { "my_group";
|
group { "my_group";
|
||||||
parts {
|
parts {
|
||||||
text { "text";
|
text { "text";
|
||||||
scale;
|
scale: 1;
|
||||||
effect: SOFT_OUTLINE;
|
effect: SOFT_OUTLINE;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 255 255 255 255;
|
color: 255 255 255 255;
|
||||||
|
|
|
@ -14,7 +14,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
rect { "bg";
|
rect { "bg";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 233 242 242 255;
|
color: 233 242 242 255;
|
||||||
align: 0.5 0.5;
|
align: 0.5 0.5;
|
||||||
|
@ -26,7 +26,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "point_rect";
|
rect { "point_rect";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 0 176 137 255;
|
color: 0 176 137 255;
|
||||||
align: 0.0 0.0;
|
align: 0.0 0.0;
|
||||||
|
@ -39,7 +39,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spacer { "padding_left";
|
spacer { "padding_left";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
align: 0.0 0.5;
|
align: 0.0 0.5;
|
||||||
rel1.to: "point_rect";
|
rel1.to: "point_rect";
|
||||||
|
@ -50,7 +50,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "icon_status";
|
image { "icon_status";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_ICON_ARROW.png";
|
image.normal: "ENVENTOR_EMBEDDED_ICON_ARROW.png";
|
||||||
|
@ -65,7 +65,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
swallow { "icon_user";
|
swallow { "icon_user";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
align: 0.0 0.5;
|
align: 0.0 0.5;
|
||||||
rel1.to: "icon_status";
|
rel1.to: "icon_status";
|
||||||
|
@ -76,7 +76,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "user_name";
|
text { "user_name";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 130 130 130 255;
|
color: 130 130 130 255;
|
||||||
text {
|
text {
|
||||||
|
@ -95,7 +95,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "message";
|
text { "message";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 145 145 145 255;
|
color: 145 145 145 255;
|
||||||
text {
|
text {
|
||||||
|
@ -116,7 +116,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spacer { "padding_right";
|
spacer { "padding_right";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
align: 1.0 0.5;
|
align: 1.0 0.5;
|
||||||
rel1.to: "bg";
|
rel1.to: "bg";
|
||||||
|
@ -127,7 +127,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "date";
|
text { "date";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 135 135 135 255;
|
color: 135 135 135 255;
|
||||||
text {
|
text {
|
||||||
|
@ -148,7 +148,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "icon_clip";
|
image { "icon_clip";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_ICON_CLIP.png";
|
image.normal: "ENVENTOR_EMBEDDED_ICON_CLIP.png";
|
||||||
|
@ -167,7 +167,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "icon_badge";
|
image { "icon_badge";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_ICON_BADGE.png";
|
image.normal: "ENVENTOR_EMBEDDED_ICON_BADGE.png";
|
||||||
|
@ -185,7 +185,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "icon_lock";
|
image { "icon_lock";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_ICON_LOCK.png";
|
image.normal: "ENVENTOR_EMBEDDED_ICON_LOCK.png";
|
||||||
|
@ -204,7 +204,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
swallow { "icon_check";
|
swallow { "icon_check";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
align: 1.0 0.5;
|
align: 1.0 0.5;
|
||||||
rel1.to: "padding_right";
|
rel1.to: "padding_right";
|
||||||
|
@ -217,7 +217,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spacer { "padding_icon";
|
spacer { "padding_icon";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
align: 1.0 0.5;
|
align: 1.0 0.5;
|
||||||
rel1.to: "icon_check";
|
rel1.to: "icon_check";
|
||||||
|
|
|
@ -41,7 +41,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "text";
|
text { "text";
|
||||||
scale;
|
scale: 1;
|
||||||
effect: SOFT_OUTLINE;
|
effect: SOFT_OUTLINE;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.relative: 0.0 0.5;
|
rel1.relative: 0.0 0.5;
|
||||||
|
|
|
@ -8,14 +8,14 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
rect { "base";
|
rect { "base";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
min: 200 300;
|
min: 200 300;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Header */
|
/* Header */
|
||||||
rect { "header";
|
rect { "header";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 200 0 0 255;
|
color: 200 0 0 255;
|
||||||
align: 0.0 0.0;
|
align: 0.0 0.0;
|
||||||
|
@ -28,7 +28,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spacer { "header_padding";
|
spacer { "header_padding";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
align: 0.0 0.5;
|
align: 0.0 0.5;
|
||||||
rel1.to: "header";
|
rel1.to: "header";
|
||||||
|
@ -38,7 +38,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "header_button_panel_open";
|
image { "header_button_panel_open";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_ICON_DOCK.png";
|
image.normal: "ENVENTOR_EMBEDDED_ICON_DOCK.png";
|
||||||
|
@ -56,7 +56,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "header_button_panel_close";
|
image { "header_button_panel_close";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_ICON_DOCK_DOWN.png";
|
image.normal: "ENVENTOR_EMBEDDED_ICON_DOCK_DOWN.png";
|
||||||
|
@ -75,7 +75,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "header_title";
|
text { "header_title";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
text {
|
text {
|
||||||
size: 15;
|
size: 15;
|
||||||
|
@ -89,7 +89,7 @@ collections {
|
||||||
}
|
}
|
||||||
/* Content */
|
/* Content */
|
||||||
spacer { "content_padding_top";
|
spacer { "content_padding_top";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
align: 0.0 0.0;
|
align: 0.0 0.0;
|
||||||
rel1.to: "header";
|
rel1.to: "header";
|
||||||
|
@ -100,7 +100,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "content_main";
|
rect { "content_main";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 30 46 93 255;
|
color: 30 46 93 255;
|
||||||
align: 0.5 0.0;
|
align: 0.5 0.0;
|
||||||
|
@ -113,7 +113,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "content_main_text";
|
text { "content_main_text";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
text {
|
text {
|
||||||
size: 15;
|
size: 15;
|
||||||
|
@ -126,7 +126,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spacer { "content_padding_middle";
|
spacer { "content_padding_middle";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
align: 0.0 0.0;
|
align: 0.0 0.0;
|
||||||
rel1.to: "base";
|
rel1.to: "base";
|
||||||
|
@ -136,7 +136,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "content_sub_1";
|
rect { "content_sub_1";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 0 136 170 255;
|
color: 0 136 170 255;
|
||||||
align: 0.0 0.0;
|
align: 0.0 0.0;
|
||||||
|
@ -148,7 +148,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "content_sub_1_text";
|
text { "content_sub_1_text";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
text {
|
text {
|
||||||
size: 15;
|
size: 15;
|
||||||
|
@ -161,7 +161,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "content_sub_2";
|
rect { "content_sub_2";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 66 118 189 255;
|
color: 66 118 189 255;
|
||||||
align: 0.0 0.5;
|
align: 0.0 0.5;
|
||||||
|
@ -175,7 +175,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "content_sub_2_text";
|
text { "content_sub_2_text";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
text {
|
text {
|
||||||
size: 15;
|
size: 15;
|
||||||
|
@ -188,7 +188,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "content_sub_3";
|
rect { "content_sub_3";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 83 66 189 255;
|
color: 83 66 189 255;
|
||||||
align: 0.0 0.5;
|
align: 0.0 0.5;
|
||||||
|
@ -201,7 +201,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "content_sub_3_text";
|
text { "content_sub_3_text";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
text {
|
text {
|
||||||
size: 15;
|
size: 15;
|
||||||
|
@ -214,7 +214,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "content_bottom";
|
rect { "content_bottom";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 95 95 95 255;
|
color: 95 95 95 255;
|
||||||
rel1.to: "content_sub_1";
|
rel1.to: "content_sub_1";
|
||||||
|
@ -225,7 +225,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "content_bottom_text";
|
text { "content_bottom_text";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
text {
|
text {
|
||||||
size: 15;
|
size: 15;
|
||||||
|
@ -240,7 +240,7 @@ collections {
|
||||||
}
|
}
|
||||||
/* Mask */
|
/* Mask */
|
||||||
rect { "mask";
|
rect { "mask";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 0 0 0 155;
|
color: 0 0 0 155;
|
||||||
rel1.to: "header";
|
rel1.to: "header";
|
||||||
|
@ -255,7 +255,7 @@ collections {
|
||||||
}
|
}
|
||||||
/* Panel */
|
/* Panel */
|
||||||
rect { "panel_base";
|
rect { "panel_base";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
align: 0.0 0.0;
|
align: 0.0 0.0;
|
||||||
rel1.to: "header";
|
rel1.to: "header";
|
||||||
|
@ -270,7 +270,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "panel_content_1";
|
rect { "panel_content_1";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 255 94 0 255;
|
color: 255 94 0 255;
|
||||||
rel1.to: "panel_base";
|
rel1.to: "panel_base";
|
||||||
|
@ -286,7 +286,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "panel_content_1_text";
|
text { "panel_content_1_text";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 0 0 0 255;
|
color: 0 0 0 255;
|
||||||
text {
|
text {
|
||||||
|
@ -308,7 +308,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "panel_content_2";
|
rect { "panel_content_2";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 255 130 36 255;
|
color: 255 130 36 255;
|
||||||
rel1.to: "panel_base";
|
rel1.to: "panel_base";
|
||||||
|
@ -325,7 +325,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "panel_content_2_text";
|
text { "panel_content_2_text";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 0 0 0 255;
|
color: 0 0 0 255;
|
||||||
text {
|
text {
|
||||||
|
@ -346,7 +346,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "panel_content_3";
|
rect { "panel_content_3";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 255 166 72 255;
|
color: 255 166 72 255;
|
||||||
rel1.to: "panel_base";
|
rel1.to: "panel_base";
|
||||||
|
@ -363,7 +363,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "panel_content_3_text";
|
text { "panel_content_3_text";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 0 0 0 255;
|
color: 0 0 0 255;
|
||||||
text {
|
text {
|
||||||
|
@ -384,7 +384,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rect { "panel_content_4";
|
rect { "panel_content_4";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 255 202 108 255;
|
color: 255 202 108 255;
|
||||||
rel1.to: "panel_base";
|
rel1.to: "panel_base";
|
||||||
|
@ -401,7 +401,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "panel_content_4_text";
|
text { "panel_content_4_text";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 0 0 0 255;
|
color: 0 0 0 255;
|
||||||
text {
|
text {
|
||||||
|
@ -422,7 +422,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
swallow { "panel_swallow";
|
swallow { "panel_swallow";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
visible: 0;
|
visible: 0;
|
||||||
rel1.to: "panel_base";
|
rel1.to: "panel_base";
|
||||||
|
|
|
@ -9,7 +9,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
rect { "button_shadow";
|
rect { "button_shadow";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 0 0 0 155;
|
color: 0 0 0 155;
|
||||||
rel1.to: "button_bg";
|
rel1.to: "button_bg";
|
||||||
|
@ -19,7 +19,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "button_bg";
|
image { "button_bg";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_BUTTON_BG.png";
|
image.normal: "ENVENTOR_EMBEDDED_BUTTON_BG.png";
|
||||||
|
@ -37,7 +37,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "button_text";
|
text { "button_text";
|
||||||
scale;
|
scale: 1;
|
||||||
nomouse;
|
nomouse;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 70 70 70 255;
|
color: 70 70 70 255;
|
||||||
|
|
|
@ -3,7 +3,7 @@ collections {
|
||||||
group { "main";
|
group { "main";
|
||||||
parts {
|
parts {
|
||||||
spacer { "spacer1";
|
spacer { "spacer1";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
min: 50 50;
|
min: 50 50;
|
||||||
fixed: 1 1;
|
fixed: 1 1;
|
||||||
|
@ -13,7 +13,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spacer { "spacer2";
|
spacer { "spacer2";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
min: 50 50;
|
min: 50 50;
|
||||||
fixed: 1 1;
|
fixed: 1 1;
|
||||||
|
|
|
@ -3,7 +3,7 @@ collections {
|
||||||
group { "main";
|
group { "main";
|
||||||
parts {
|
parts {
|
||||||
text { "text";
|
text { "text";
|
||||||
scale;
|
scale: 1;
|
||||||
effect: SOFT_OUTLINE;
|
effect: SOFT_OUTLINE;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.relative: 0.0 0.0;
|
rel1.relative: 0.0 0.0;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
efl_version: 1 22;
|
|
||||||
|
|
||||||
collections {
|
collections {
|
||||||
base_scale: 1.0;
|
base_scale: 1.0;
|
||||||
styles {
|
styles {
|
||||||
|
@ -28,7 +26,7 @@ collections {
|
||||||
group { "main";
|
group { "main";
|
||||||
parts {
|
parts {
|
||||||
textblock { "text_block";
|
textblock { "text_block";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
text {
|
text {
|
||||||
style: "basic_style";
|
style: "basic_style";
|
||||||
|
@ -42,7 +40,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
textblock { "text_wrap_none";
|
textblock { "text_wrap_none";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "text_block";
|
rel1.to: "text_block";
|
||||||
rel1.relative: 0.0 1.0;
|
rel1.relative: 0.0 1.0;
|
||||||
|
@ -56,7 +54,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
textblock { "text_wrap_char";
|
textblock { "text_wrap_char";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "text_wrap_none";
|
rel1.to: "text_wrap_none";
|
||||||
rel1.relative: 0.0 1.0;
|
rel1.relative: 0.0 1.0;
|
||||||
|
@ -70,7 +68,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
textblock { "text_wrap_word";
|
textblock { "text_wrap_word";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "text_wrap_char";
|
rel1.to: "text_wrap_char";
|
||||||
rel1.relative: 0.0 1.0;
|
rel1.relative: 0.0 1.0;
|
||||||
|
@ -84,7 +82,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
textblock { "text_wrap_mixed";
|
textblock { "text_wrap_mixed";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "text_wrap_word";
|
rel1.to: "text_wrap_word";
|
||||||
rel1.relative: 0.0 1.0;
|
rel1.relative: 0.0 1.0;
|
||||||
|
@ -98,7 +96,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
textblock { "text_ellipsis_1";
|
textblock { "text_ellipsis_1";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "text_wrap_mixed";
|
rel1.to: "text_wrap_mixed";
|
||||||
rel1.relative: 0.0 1.0;
|
rel1.relative: 0.0 1.0;
|
||||||
|
@ -112,7 +110,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
textblock { "text_ellipsis_0";
|
textblock { "text_ellipsis_0";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "text_ellipsis_1";
|
rel1.to: "text_ellipsis_1";
|
||||||
rel1.relative: 0.0 1.0;
|
rel1.relative: 0.0 1.0;
|
||||||
|
|
|
@ -13,7 +13,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
image { "bg";
|
image { "bg";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_WATCHFACE.png";
|
image.normal: "ENVENTOR_EMBEDDED_WATCHFACE.png";
|
||||||
|
@ -24,7 +24,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "moonphase_moon";
|
image { "moonphase_moon";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_MOONPHASE_MOON.png";
|
image.normal: "ENVENTOR_EMBEDDED_MOONPHASE_MOON.png";
|
||||||
|
@ -40,7 +40,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "moonphase_cover";
|
image { "moonphase_cover";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_MOONPHASE_COVER.png";
|
image.normal: "ENVENTOR_EMBEDDED_MOONPHASE_COVER.png";
|
||||||
|
@ -54,7 +54,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "month_stroke";
|
image { "month_stroke";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
image.normal: "ENVENTOR_EMBEDDED_MONTH_STROKE.png";
|
image.normal: "ENVENTOR_EMBEDDED_MONTH_STROKE.png";
|
||||||
|
@ -110,7 +110,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "date";
|
text { "date";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 0 0 0 255;
|
color: 0 0 0 255;
|
||||||
fixed: 1 1;
|
fixed: 1 1;
|
||||||
|
@ -131,7 +131,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "hour";
|
image { "hour";
|
||||||
scale;
|
scale: 1;
|
||||||
nomouse;
|
nomouse;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "bg";
|
rel1.to: "bg";
|
||||||
|
@ -151,7 +151,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "minute";
|
image { "minute";
|
||||||
scale;
|
scale: 1;
|
||||||
nomouse;
|
nomouse;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "bg";
|
rel1.to: "bg";
|
||||||
|
@ -171,7 +171,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "second";
|
image { "second";
|
||||||
scale;
|
scale: 1;
|
||||||
nomouse;
|
nomouse;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "bg";
|
rel1.to: "bg";
|
||||||
|
|
|
@ -10,7 +10,7 @@ collections {
|
||||||
}
|
}
|
||||||
parts {
|
parts {
|
||||||
image { "bg";
|
image { "bg";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
visible: 1;
|
visible: 1;
|
||||||
/* TODO: Please replace embedded image files to your application image files. */
|
/* TODO: Please replace embedded image files to your application image files. */
|
||||||
|
@ -22,7 +22,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "date";
|
text { "date";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 219 219 219 255;
|
color: 219 219 219 255;
|
||||||
fixed: 1 1;
|
fixed: 1 1;
|
||||||
|
@ -43,7 +43,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "meridiem";
|
text { "meridiem";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 255 120 0 255;
|
color: 255 120 0 255;
|
||||||
fixed: 1 1;
|
fixed: 1 1;
|
||||||
|
@ -62,7 +62,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text { "time";
|
text { "time";
|
||||||
scale;
|
scale: 1;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
color: 250 250 250 255;
|
color: 250 250 250 255;
|
||||||
fixed: 1 1;
|
fixed: 1 1;
|
||||||
|
@ -81,7 +81,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "hour";
|
image { "hour";
|
||||||
scale;
|
scale: 1;
|
||||||
nomouse;
|
nomouse;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "bg";
|
rel1.to: "bg";
|
||||||
|
@ -101,7 +101,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "minute";
|
image { "minute";
|
||||||
scale;
|
scale: 1;
|
||||||
nomouse;
|
nomouse;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "bg";
|
rel1.to: "bg";
|
||||||
|
@ -121,7 +121,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
image { "second";
|
image { "second";
|
||||||
scale;
|
scale: 1;
|
||||||
nomouse;
|
nomouse;
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel1.to: "bg";
|
rel1.to: "bg";
|
||||||
|
@ -140,8 +140,20 @@ collections {
|
||||||
map.rotation.z: 360;
|
map.rotation.z: 360;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
programs {
|
programs {
|
||||||
|
program { "load";
|
||||||
|
signal: "load";
|
||||||
|
source: "";
|
||||||
|
action: STATE_SET "rotated";
|
||||||
|
target: "bg";
|
||||||
|
transition: LINEAR 30;
|
||||||
|
after: "reset";
|
||||||
|
}
|
||||||
|
program { "reset";
|
||||||
|
action: STATE_SET "default";
|
||||||
|
target: "bg";
|
||||||
|
after: "load";
|
||||||
|
}
|
||||||
program { "hour_begin";
|
program { "hour_begin";
|
||||||
signal: "load";
|
signal: "load";
|
||||||
source: "";
|
source: "";
|
||||||
|
@ -184,3 +196,4 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
|
|
||||||
edc_template_files = [
|
|
||||||
'Basic.edc',
|
|
||||||
'BgAnimation.edc',
|
|
||||||
'Clip.edc',
|
|
||||||
'CustomButton.edc',
|
|
||||||
'Empty.edc',
|
|
||||||
'GameStage.edc',
|
|
||||||
'Group.edc',
|
|
||||||
'Image.edc',
|
|
||||||
'Interpolation.edc',
|
|
||||||
'Listitem.edc',
|
|
||||||
'Map.edc',
|
|
||||||
'Mask.edc',
|
|
||||||
'MobileLayout.edc',
|
|
||||||
'Morphing.edc',
|
|
||||||
'MouseEvent.edc',
|
|
||||||
'Proxy.edc',
|
|
||||||
'Rect.edc',
|
|
||||||
'Rotation+Zoom.edc',
|
|
||||||
'Sound.edc',
|
|
||||||
'Spacer.edc',
|
|
||||||
'Text.edc',
|
|
||||||
'Textblock.edc',
|
|
||||||
'Transition.edc',
|
|
||||||
'Tween.edc',
|
|
||||||
'Vector.edc',
|
|
||||||
'Watchface.edc',
|
|
||||||
'Watchface2.edc'
|
|
||||||
]
|
|
||||||
|
|
||||||
enventor_templates = []
|
|
||||||
|
|
||||||
foreach edc_file : edc_template_files
|
|
||||||
enventor_templates += custom_target('edje_cc_' + edc_file,
|
|
||||||
input : edc_file,
|
|
||||||
depfile : '@BASENAME@.edj.d',
|
|
||||||
output : '@BASENAME@.edj',
|
|
||||||
command : edje_cc_exe +
|
|
||||||
[
|
|
||||||
'-beta',
|
|
||||||
'-sd', join_paths(meson.source_root(), 'data/sounds'),
|
|
||||||
'-id', join_paths(meson.source_root(), 'data/images'),
|
|
||||||
'@INPUT@', '@OUTPUT@'
|
|
||||||
],
|
|
||||||
install : true,
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'templates'),
|
|
||||||
)
|
|
||||||
endforeach
|
|
||||||
|
|
||||||
install_data(
|
|
||||||
sources : edc_template_files,
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'templates')
|
|
||||||
)
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,25 +0,0 @@
|
||||||
|
|
||||||
edc_theme_files = [
|
|
||||||
'enventor.edc'
|
|
||||||
]
|
|
||||||
|
|
||||||
enventor_themes = []
|
|
||||||
|
|
||||||
_edje_cc = find_program('edje_cc', native: true)
|
|
||||||
edje_cc_exe = [_edje_cc]
|
|
||||||
|
|
||||||
foreach edc_file : edc_theme_files
|
|
||||||
enventor_themes += custom_target('edje_cc_' + edc_file,
|
|
||||||
input : edc_file,
|
|
||||||
depfile : '@BASENAME@.edj.d',
|
|
||||||
output : '@BASENAME@.edj',
|
|
||||||
command : edje_cc_exe +
|
|
||||||
[
|
|
||||||
'-sd', join_paths(meson.current_source_dir(), 'sounds'),
|
|
||||||
'-id', join_paths(meson.current_source_dir(), 'images'),
|
|
||||||
'@INPUT@', '@OUTPUT@'
|
|
||||||
],
|
|
||||||
install : true,
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'themes'),
|
|
||||||
)
|
|
||||||
endforeach
|
|
|
@ -160,14 +160,14 @@ group { name: "elm/list/h_item/enventor";
|
||||||
color: 64 64 64 255;
|
color: 64 64 64 255;
|
||||||
color_class: "list_item_base";
|
color_class: "list_item_base";
|
||||||
}
|
}
|
||||||
description { state: "odd";
|
description { state: "odd" 0.0;
|
||||||
color: 56 56 56 255;
|
color: 56 56 56 255;
|
||||||
color_class: "list_item_base_odd";
|
color_class: "list_item_base_odd";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
signal: "elm,state,odd"; source: "elm";
|
signal: "elm,state,odd"; source: "elm";
|
||||||
action: STATE_SET "odd";
|
action: STATE_SET "odd" 1.0;
|
||||||
target: "base";
|
target: "base";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
@ -603,6 +603,7 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,down,1*"; source: "sb_vbar_a1";
|
signal: "mouse,down,1*"; source: "sb_vbar_a1";
|
||||||
action: STATE_SET "clicked" 0.0;
|
action: STATE_SET "clicked" 0.0;
|
||||||
|
target: "sb_vbar_a1";
|
||||||
target: "arrow1_vbar";
|
target: "arrow1_vbar";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
@ -613,11 +614,13 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,up,1"; source: "sb_vbar_a1";
|
signal: "mouse,up,1"; source: "sb_vbar_a1";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
|
target: "sb_vbar_a1";
|
||||||
target: "arrow1_vbar";
|
target: "arrow1_vbar";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
signal: "mouse,down,1*"; source: "sb_vbar_a2";
|
signal: "mouse,down,1*"; source: "sb_vbar_a2";
|
||||||
action: STATE_SET "clicked" 0.0;
|
action: STATE_SET "clicked" 0.0;
|
||||||
|
target: "sb_vbar_a2";
|
||||||
target: "arrow2_vbar";
|
target: "arrow2_vbar";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
@ -628,6 +631,7 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,up,1"; source: "sb_vbar_a2";
|
signal: "mouse,up,1"; source: "sb_vbar_a2";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
|
target: "sb_vbar_a2";
|
||||||
target: "arrow2_vbar";
|
target: "arrow2_vbar";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
@ -759,6 +763,7 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,down,1*"; source: "sb_hbar_a1";
|
signal: "mouse,down,1*"; source: "sb_hbar_a1";
|
||||||
action: STATE_SET "clicked" 0.0;
|
action: STATE_SET "clicked" 0.0;
|
||||||
|
target: "sb_hbar_a1";
|
||||||
target: "arrow1_hbar";
|
target: "arrow1_hbar";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
@ -769,11 +774,13 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,up,1"; source: "sb_hbar_a1";
|
signal: "mouse,up,1"; source: "sb_hbar_a1";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
|
target: "sb_hbar_a1";
|
||||||
target: "arrow1_hbar";
|
target: "arrow1_hbar";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
signal: "mouse,down,1*"; source: "sb_hbar_a2";
|
signal: "mouse,down,1*"; source: "sb_hbar_a2";
|
||||||
action: STATE_SET "clicked" 0.0;
|
action: STATE_SET "clicked" 0.0;
|
||||||
|
target: "sb_hbar_a2";
|
||||||
target: "arrow2_hbar";
|
target: "arrow2_hbar";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
@ -784,6 +791,7 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,up,1"; source: "sb_hbar_a2";
|
signal: "mouse,up,1"; source: "sb_hbar_a2";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
|
target: "sb_hbar_a2";
|
||||||
target: "arrow2_hbar";
|
target: "arrow2_hbar";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
@ -1138,6 +1146,7 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,down,1*"; source: "elm.dragable.vbar";
|
signal: "mouse,down,1*"; source: "elm.dragable.vbar";
|
||||||
action: STATE_SET "clicked" 0.0;
|
action: STATE_SET "clicked" 0.0;
|
||||||
|
target: "elm.dragable.vbar";
|
||||||
target: "shadow_vbar";
|
target: "shadow_vbar";
|
||||||
target: "glow_vbar";
|
target: "glow_vbar";
|
||||||
target: "center_glow_vbar";
|
target: "center_glow_vbar";
|
||||||
|
@ -1145,6 +1154,7 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,up,1"; source: "elm.dragable.vbar";
|
signal: "mouse,up,1"; source: "elm.dragable.vbar";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
|
target: "elm.dragable.vbar";
|
||||||
target: "shadow_vbar";
|
target: "shadow_vbar";
|
||||||
target: "glow_vbar";
|
target: "glow_vbar";
|
||||||
target: "center_glow_vbar";
|
target: "center_glow_vbar";
|
||||||
|
@ -1152,6 +1162,7 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,down,1*"; source: "elm.dragable.hbar";
|
signal: "mouse,down,1*"; source: "elm.dragable.hbar";
|
||||||
action: STATE_SET "clicked" 0.0;
|
action: STATE_SET "clicked" 0.0;
|
||||||
|
target: "elm.dragable.hbar";
|
||||||
target: "shadow_hbar";
|
target: "shadow_hbar";
|
||||||
target: "glow_hbar";
|
target: "glow_hbar";
|
||||||
target: "center_glow_hbar";
|
target: "center_glow_hbar";
|
||||||
|
@ -1159,6 +1170,7 @@ group { name: "elm/scroller/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "mouse,up,1"; source: "elm.dragable.hbar";
|
signal: "mouse,up,1"; source: "elm.dragable.hbar";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
|
target: "elm.dragable.hbar";
|
||||||
target: "shadow_hbar";
|
target: "shadow_hbar";
|
||||||
target: "glow_hbar";
|
target: "glow_hbar";
|
||||||
target: "center_glow_hbar";
|
target: "center_glow_hbar";
|
||||||
|
@ -1694,12 +1706,14 @@ group { name: "elm/button/base/enventor";
|
||||||
program {
|
program {
|
||||||
signal: "elm,anim,activate"; source: "elm";
|
signal: "elm,anim,activate"; source: "elm";
|
||||||
action: STATE_SET "clicked" 0.0;
|
action: STATE_SET "clicked" 0.0;
|
||||||
|
target: "base";
|
||||||
target: "text2";
|
target: "text2";
|
||||||
after: "button_unpressed_anim";
|
after: "button_unpressed_anim";
|
||||||
}
|
}
|
||||||
program { name: "button_unpressed_anim";
|
program { name: "button_unpressed_anim";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
in: 0.5 0.0;
|
in: 0.5 0.0;
|
||||||
|
target: "base";
|
||||||
target: "text2";
|
target: "text2";
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
|
|
@ -0,0 +1,56 @@
|
||||||
|
dnl Copyright (C) 2011 Vincent Torri <vtorri at univ-evry dot fr>
|
||||||
|
dnl That code is public domain and can be freely used or copied.
|
||||||
|
|
||||||
|
dnl Macros for checking if the compiler supports some __attribute__ uses
|
||||||
|
|
||||||
|
dnl Usage: EFL_ATTRIBUTE_UNUSED
|
||||||
|
dnl call AC_DEFINE for __UNUSED__ if __attribute__((unused)) is available
|
||||||
|
|
||||||
|
AC_DEFUN([EFL_ATTRIBUTE_UNUSED],
|
||||||
|
[
|
||||||
|
AC_MSG_CHECKING([for __attribute__ ((unused))])
|
||||||
|
AC_COMPILE_IFELSE(
|
||||||
|
[AC_LANG_PROGRAM(
|
||||||
|
[[
|
||||||
|
void foo(int x __attribute__ ((unused))) {}
|
||||||
|
]],
|
||||||
|
[[
|
||||||
|
]])],
|
||||||
|
[have_attribute_unused="yes"],
|
||||||
|
[have_attribute_unused="no"])
|
||||||
|
AC_MSG_RESULT([${have_attribute_unused}])
|
||||||
|
|
||||||
|
if test "x${have_attribute_unused}" = "xyes" ; then
|
||||||
|
AC_DEFINE([__UNUSED__], [__attribute__ ((unused))], [Macro declaring a function argument to be unused.])
|
||||||
|
else
|
||||||
|
AC_DEFINE([__UNUSED__], [], [__attribute__ ((unused)) is not supported.])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Usage: EFL_ATTRIBUTE_VECTOR
|
||||||
|
dnl call AC_DEFINE for HAVE_GCC_ATTRIBUTE_VECTOR if __attribute__((vector)) is available
|
||||||
|
|
||||||
|
AC_DEFUN([EFL_ATTRIBUTE_VECTOR],
|
||||||
|
[
|
||||||
|
AC_MSG_CHECKING([for __attribute__ ((vector))])
|
||||||
|
AC_COMPILE_IFELSE(
|
||||||
|
[AC_LANG_PROGRAM(
|
||||||
|
[[
|
||||||
|
typedef int v4si __attribute__ ((vector_size (16)));
|
||||||
|
]],
|
||||||
|
[[
|
||||||
|
if (sizeof(v4si) == 16)
|
||||||
|
return 0;
|
||||||
|
else
|
||||||
|
return -1;
|
||||||
|
]])],
|
||||||
|
[have_attribute_vector="yes"],
|
||||||
|
[have_attribute_vector="no"])
|
||||||
|
AC_MSG_RESULT([${have_attribute_vector}])
|
||||||
|
|
||||||
|
if test "x${have_attribute_vector}" = "xyes" ; then
|
||||||
|
AC_DEFINE([HAVE_GCC_ATTRIBUTE_VECTOR], [1], [Define to 1 if your compiler supports __attribute__ ((vector)).])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl End of efl_attribute.m4
|
150
meson.build
150
meson.build
|
@ -1,150 +0,0 @@
|
||||||
project('enventor', 'c',
|
|
||||||
version : '1.0.99',
|
|
||||||
meson_version : '>= 0.53',
|
|
||||||
default_options : [
|
|
||||||
'warning_level=2',
|
|
||||||
'buildtype=debugoptimized',
|
|
||||||
'c_std=c99'
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
v_array = meson.project_version().split('.')
|
|
||||||
v_maj = v_array[0]
|
|
||||||
v_min = v_array[1]
|
|
||||||
v_mic = v_array[2]
|
|
||||||
|
|
||||||
# install paths
|
|
||||||
|
|
||||||
dir_prefix = get_option('prefix')
|
|
||||||
dir_include = join_paths(dir_prefix, get_option('includedir'))
|
|
||||||
dir_pkginclude = join_paths(dir_include, meson.project_name())
|
|
||||||
dir_bin = join_paths(dir_prefix, get_option('bindir'))
|
|
||||||
dir_lib = join_paths(dir_prefix, get_option('libdir'))
|
|
||||||
dir_data = join_paths(dir_prefix, get_option('datadir'))
|
|
||||||
dir_pkgdata = join_paths(dir_data, meson.project_name())
|
|
||||||
dir_locale = join_paths(dir_prefix, get_option('localedir'))
|
|
||||||
|
|
||||||
# binaries
|
|
||||||
|
|
||||||
cc = meson.get_compiler('c')
|
|
||||||
|
|
||||||
enventor_cflags = []
|
|
||||||
enventor_cflags_try = [
|
|
||||||
'-Wshadow',
|
|
||||||
'-Wstrict-prototypes',
|
|
||||||
'-Werror=missing-prototypes',
|
|
||||||
'-Werror=pointer-arith',
|
|
||||||
'-Wno-missing-field-initializers']
|
|
||||||
|
|
||||||
foreach cf: enventor_cflags_try
|
|
||||||
if cc.has_argument(cf) == true
|
|
||||||
enventor_cflags += cf
|
|
||||||
endif
|
|
||||||
endforeach
|
|
||||||
add_global_arguments(enventor_cflags, language: 'c')
|
|
||||||
|
|
||||||
have_visibility_hidden = cc.has_argument('-fvisibility=hidden')
|
|
||||||
if have_visibility_hidden
|
|
||||||
add_global_arguments('-fvisibility=hidden', language: 'c')
|
|
||||||
endif
|
|
||||||
|
|
||||||
pkgconfig = import('pkgconfig')
|
|
||||||
windows = import('windows')
|
|
||||||
|
|
||||||
eet = find_program('eet', native: true)
|
|
||||||
eet_exe = [ eet ]
|
|
||||||
|
|
||||||
edje_cc = find_program('edje_cc', native: true)
|
|
||||||
edje_cc_exe = [ edje_cc ]
|
|
||||||
|
|
||||||
# libraries
|
|
||||||
|
|
||||||
config_dir = [include_directories('.')]
|
|
||||||
|
|
||||||
efl_req = '>= 1.18.0'
|
|
||||||
enventor_deps = [
|
|
||||||
dependency('eina', version : efl_req),
|
|
||||||
dependency('eo', version : efl_req),
|
|
||||||
dependency('efl', version : efl_req),
|
|
||||||
dependency('eet', version : efl_req),
|
|
||||||
dependency('ecore', version : efl_req),
|
|
||||||
dependency('ecore-file', version : efl_req),
|
|
||||||
dependency('evas', version : efl_req),
|
|
||||||
dependency('eio', version : efl_req),
|
|
||||||
dependency('efreet', version : efl_req),
|
|
||||||
dependency('edje', version : efl_req),
|
|
||||||
dependency('elementary', version : efl_req)
|
|
||||||
]
|
|
||||||
|
|
||||||
requirement_enventor_pc = ' eina ' + efl_req + ' eo ' + efl_req + ' efl ' + efl_req + ' eet ' + efl_req + ' ecore ' + efl_req + ' ecore-file ' + efl_req + ' evas ' + efl_req + ' eio ' + efl_req + ' efreet ' + efl_req + ' edje ' + efl_req + ' elementary ' + efl_req
|
|
||||||
|
|
||||||
enventor_cargs = [
|
|
||||||
'-D_POSIX_C_SOURCE=200809L',
|
|
||||||
'-D_XOPEN_SOURCE=500' ]
|
|
||||||
|
|
||||||
have_nls = false
|
|
||||||
if get_option('nls') == true
|
|
||||||
intl_dep = cc.find_library('intl', required: false)
|
|
||||||
if intl_dep.found() == true and cc.has_header('libintl.h') == true
|
|
||||||
enventor_deps += cc.find_library('intl', required: true)
|
|
||||||
enventor_cargs += '-DENABLE_NLS'
|
|
||||||
have_nls = true
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# configuration
|
|
||||||
|
|
||||||
config_h = configuration_data()
|
|
||||||
config_h.set_quoted('PACKAGE_NAME', meson.project_name())
|
|
||||||
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
|
|
||||||
config_h.set_quoted('PACKAGE_BIN_DIR', dir_bin)
|
|
||||||
config_h.set_quoted('PACKAGE_LIB_DIR', dir_lib)
|
|
||||||
config_h.set_quoted('PACKAGE_DATA_DIR', dir_pkgdata)
|
|
||||||
config_h.set_quoted('LOCALE_DIR', dir_locale)
|
|
||||||
config_h.set('EFL_BETA_API_SUPPORT', '1')
|
|
||||||
config_h.set('EFL_UI_FOCUS_OBJECT_PROTECTED', '1')
|
|
||||||
config_h.set('ENVENTOR_BETA_API_SUPPORT', '1')
|
|
||||||
|
|
||||||
subdir('src/lib')
|
|
||||||
subdir('src/bin')
|
|
||||||
subdir('data/autocomp')
|
|
||||||
subdir('data/color')
|
|
||||||
subdir('data/desktop')
|
|
||||||
subdir('data/help')
|
|
||||||
subdir('data/icon')
|
|
||||||
subdir('data/images')
|
|
||||||
subdir('data/reference')
|
|
||||||
subdir('data/sounds')
|
|
||||||
subdir('data/templates')
|
|
||||||
subdir('data/themes/default')
|
|
||||||
subdir('pc')
|
|
||||||
subdir('po')
|
|
||||||
|
|
||||||
install_data(
|
|
||||||
sources : 'README',
|
|
||||||
install_dir : join_paths(dir_pkgdata, 'docs')
|
|
||||||
)
|
|
||||||
|
|
||||||
# Use config_h after all subdirs have set values
|
|
||||||
|
|
||||||
configure_file(output : 'config.h', configuration : config_h)
|
|
||||||
|
|
||||||
# output
|
|
||||||
|
|
||||||
summary({'OS': host_machine.system(),
|
|
||||||
'NLS': have_nls ? 'yes' : 'no'
|
|
||||||
}, section: 'Configuration Options Summary:')
|
|
||||||
|
|
||||||
summary({'prefix': dir_prefix,
|
|
||||||
'bindir': dir_bin,
|
|
||||||
'libdir': dir_lib,
|
|
||||||
'incdir': dir_include,
|
|
||||||
'pkgincdir': dir_pkginclude,
|
|
||||||
'datadir': dir_data,
|
|
||||||
'pkgdatadir': dir_pkgdata,
|
|
||||||
'localedir': dir_locale,
|
|
||||||
}, section: 'Directories:')
|
|
||||||
|
|
||||||
summary({'compilation': 'ninja',
|
|
||||||
'installation': 'ninja install',
|
|
||||||
}, section: 'Compilation')
|
|
|
@ -1,6 +0,0 @@
|
||||||
|
|
||||||
option('nls',
|
|
||||||
type: 'boolean',
|
|
||||||
value: true,
|
|
||||||
description: 'enable localization: (default=true)'
|
|
||||||
)
|
|
|
@ -1,20 +0,0 @@
|
||||||
|
|
||||||
pkgconf = configuration_data()
|
|
||||||
|
|
||||||
pkgconf.set('prefix', get_option('prefix'))
|
|
||||||
pkgconf.set('exec_prefix', '${prefix}')
|
|
||||||
pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
|
|
||||||
pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
|
|
||||||
pkgconf.set('pkgincludedir', '${prefix}/@0@'.format(get_option('includedir')) + '/enventor')
|
|
||||||
pkgconf.set('ENVENTOR_VERSION_MAJOR', v_maj)
|
|
||||||
pkgconf.set('VERSION', meson.project_version())
|
|
||||||
pkgconf.set('requirement_enventor', requirement_enventor_pc)
|
|
||||||
|
|
||||||
pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
|
|
||||||
|
|
||||||
configure_file(
|
|
||||||
input : join_paths(meson.source_root(), 'pc/enventor.pc.in'),
|
|
||||||
output : 'enventor.pc',
|
|
||||||
configuration : pkgconf,
|
|
||||||
install_dir : pkg_install_dir
|
|
||||||
)
|
|
|
@ -1 +1 @@
|
||||||
en fr it ka sl ru
|
en ru
|
||||||
|
|
107
po/enventor.pot
107
po/enventor.pot
|
@ -1,13 +1,14 @@
|
||||||
# SOME DESCRIPTIVE TITLE.
|
# SOME DESCRIPTIVE TITLE.
|
||||||
# This file is put in the public domain.
|
# Copyright (C) YEAR Enventor development team
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
#
|
#
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: enventor\n"
|
"Project-Id-Version: enventor 1.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
|
||||||
"POT-Creation-Date: 2021-12-05 11:59+0100\n"
|
"POT-Creation-Date: 2016-08-28 01:00+0900\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -21,31 +22,31 @@ msgstr ""
|
||||||
msgid "%s - Enventor"
|
msgid "%s - Enventor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/config_data.c:78
|
#: src/bin/config_data.c:76
|
||||||
msgid "Failed to generate tmp folder!"
|
msgid "Failed to generate tmp folder!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/config_data.c:99
|
#: src/bin/config_data.c:97
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Cannot create a config folder \"%s\""
|
msgid "Cannot create a config folder \"%s\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/config_data.c:113
|
#: src/bin/config_data.c:111
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Cannot create a enventor config folder \"%s\""
|
msgid "Cannot create a enventor config folder \"%s\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/config_data.c:124
|
#: src/bin/config_data.c:122
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Cannot save a config file \"%s\""
|
msgid "Cannot save a config file \"%s\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/config_data.c:163
|
#: src/bin/config_data.c:161
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Cannot load a config file \"%s\""
|
msgid "Cannot load a config file \"%s\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/config_data.c:171
|
#: src/bin/config_data.c:169
|
||||||
msgid "Failed to allocate Memory!"
|
msgid "Failed to allocate Memory!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -61,7 +62,7 @@ msgstr ""
|
||||||
msgid "Save As"
|
msgid "Save As"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:110 src/bin/search.c:427
|
#: src/bin/file_mgr.c:110 src/bin/search.c:421
|
||||||
msgid "Replace"
|
msgid "Replace"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -100,12 +101,12 @@ msgstr ""
|
||||||
msgid "Ok"
|
msgid "Ok"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/goto.c:194 src/bin/search.c:449
|
#: src/bin/goto.c:194 src/bin/search.c:443
|
||||||
msgid "Failed to grab key - Escape"
|
msgid "Failed to grab key - Escape"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2020 src/bin/live_edit.c:2057 src/bin/live_edit.c:2059
|
#: src/bin/live_edit.c:2020 src/bin/live_edit.c:2057 src/bin/live_edit.c:2059
|
||||||
#: src/bin/main.c:872 src/lib/auto_comp.c:410 src/lib/ctxpopup.c:813
|
#: src/bin/main.c:870 src/lib/auto_comp.c:410 src/lib/ctxpopup.c:779
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to grab key - %s"
|
msgid "Failed to grab key - %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -155,12 +156,12 @@ msgstr ""
|
||||||
msgid "Faild to allocate Memory!"
|
msgid "Faild to allocate Memory!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/main.c:212
|
#: src/bin/main.c:208
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Font Size: %1.1fx"
|
msgid "Font Size: %1.1fx"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/main.c:944
|
#: src/bin/main.c:942
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Cannot create temporary diretory \"%s\""
|
msgid "Cannot create temporary diretory \"%s\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -258,28 +259,28 @@ msgstr ""
|
||||||
msgid "%d matches replaced"
|
msgid "%d matches replaced"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/search.c:150 src/bin/search.c:210
|
#: src/bin/search.c:145 src/bin/search.c:205
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "No \"%s\" in the text"
|
msgid "No \"%s\" in the text"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/search.c:248 src/bin/search.c:413
|
#: src/bin/search.c:242 src/bin/search.c:407
|
||||||
msgid "Previous"
|
msgid "Previous"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/search.c:280 src/bin/search.c:420
|
#: src/bin/search.c:274 src/bin/search.c:414
|
||||||
msgid "Next"
|
msgid "Next"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/search.c:364
|
#: src/bin/search.c:358
|
||||||
msgid "Enventor Search"
|
msgid "Enventor Search"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/search.c:367
|
#: src/bin/search.c:361
|
||||||
msgid "Find/Replace"
|
msgid "Find/Replace"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/search.c:434
|
#: src/bin/search.c:428
|
||||||
msgid "Replace All"
|
msgid "Replace All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -334,15 +335,15 @@ msgstr ""
|
||||||
msgid "Failed to open file \"%s\""
|
msgid "Failed to open file \"%s\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/text_setting.c:915
|
#: src/bin/text_setting.c:909
|
||||||
msgid "Double click a keyword to change its color :"
|
msgid "Double click a keyword to change its color :"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/text_setting.c:1010
|
#: src/bin/text_setting.c:1004
|
||||||
msgid "Font Name"
|
msgid "Font Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/text_setting.c:1037
|
#: src/bin/text_setting.c:1031
|
||||||
msgid "Font Style"
|
msgid "Font Style"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -362,135 +363,135 @@ msgstr ""
|
||||||
msgid "No text to be undo."
|
msgid "No text to be undo."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:244
|
#: src/bin/tools.c:209
|
||||||
msgid ""
|
msgid ""
|
||||||
"Part highlighting (Ctrl + H)<br>Show a highlight effect on the selected "
|
"Part highlighting (Ctrl + H)<br>Show a highlight effect on the selected "
|
||||||
"part<br>in the live view."
|
"part<br>in the live view."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:256
|
#: src/bin/tools.c:220
|
||||||
msgid ""
|
msgid ""
|
||||||
"Dummy parts (Ctrl + U)<br>Display virtual images for the swallow "
|
"Dummy parts (Ctrl + U)<br>Display virtual images for the swallow "
|
||||||
"and<br>spacer parts."
|
"and<br>spacer parts."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:268
|
#: src/bin/tools.c:231
|
||||||
msgid ""
|
msgid ""
|
||||||
"Wireframes (Ctrl + W)<br>Display wireframes to identify the "
|
"Wireframes (Ctrl + W)<br>Display wireframes to identify the "
|
||||||
"parts<br>boundaries."
|
"parts<br>boundaries."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:280
|
#: src/bin/tools.c:242
|
||||||
msgid ""
|
msgid ""
|
||||||
"Mirror mode (Ctrl + M)<br>Invert the layout horizontally and review<br>the "
|
"Mirror mode (Ctrl + M)<br>Invert the layout horizontally and review<br>the "
|
||||||
"designed layout in RTL(right-to-left)<br>LTR(left-to-right) settings."
|
"designed layout in RTL(right-to-left)<br>LTR(left-to-right) settings."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:348
|
#: src/bin/tools.c:280
|
||||||
msgid "Save the file (Ctrl + S)<br>Save the current script to a file."
|
msgid "Save the file (Ctrl + S)<br>Save the current script to a file."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:357
|
#: src/bin/tools.c:288
|
||||||
msgid "Undo text (Ctrl + Z)"
|
msgid "Undo text (Ctrl + Z)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:365
|
#: src/bin/tools.c:295
|
||||||
msgid "Redo text (Ctrl + R)"
|
msgid "Redo text (Ctrl + R)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:373
|
#: src/bin/tools.c:302
|
||||||
msgid "Find/Replace (Ctrl + F)<br>Find or replace text."
|
msgid "Find/Replace (Ctrl + F)<br>Find or replace text."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:383
|
#: src/bin/tools.c:311
|
||||||
msgid ""
|
msgid ""
|
||||||
"Go to line (Ctrl + L)<br>Open the Go to window to move the cursor<br>line "
|
"Go to line (Ctrl + L)<br>Open the Go to window to move the cursor<br>line "
|
||||||
"position."
|
"position."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:394
|
#: src/bin/tools.c:321
|
||||||
msgid "Line numbers<br>Display the script line numbers."
|
msgid "Line numbers<br>Display the script line numbers."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:404
|
#: src/bin/tools.c:330
|
||||||
msgid ""
|
msgid ""
|
||||||
"Insert a code snippet (Ctrl + T)<br>Enventor chooses the best code with "
|
"Insert a code snippet (Ctrl + T)<br>Enventor chooses the best code with "
|
||||||
"regards<br>to the current editing context. For instance,<br>if the cursor is "
|
"regards<br>to the current editing context. For instance,<br>if the cursor is "
|
||||||
"inside a part section,<br>description code is generated."
|
"inside a part section,<br>description code is generated."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:418
|
#: src/bin/tools.c:342
|
||||||
msgid ""
|
msgid ""
|
||||||
"Console box (Alt + Down)<br>Display the console box, which shows the "
|
"Console box (Alt + Down)<br>Display the console box, which shows the "
|
||||||
"EDC<br>build logs, such as error messages. It pops<br>up automatically when "
|
"EDC<br>build logs, such as error messages. It pops<br>up automatically when "
|
||||||
"compilation errors occur."
|
"compliation errors occur."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:430
|
#: src/bin/tools.c:353
|
||||||
msgid ""
|
msgid ""
|
||||||
"File browser (F9)<br>Display the file browser, which shows a file list<br>in "
|
"File browser (F9)<br>Display the file browser, which shows a file list<br>in "
|
||||||
"current workspace."
|
"current workspace."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:441
|
#: src/bin/tools.c:363
|
||||||
msgid ""
|
msgid ""
|
||||||
"EDC navigator (F10)<br>Display the EDC navigator, which shows the "
|
"EDC navigator (F10)<br>Display the EDC navigator, which shows the "
|
||||||
"current<br>group hierarchy tree that contains parts,<br>descriptions and "
|
"current<br>group hierarchy tree that contains parts,<br>descriptions and "
|
||||||
"programs lists."
|
"programs lists."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:453
|
#: src/bin/tools.c:375
|
||||||
msgid ""
|
msgid ""
|
||||||
"File tab (F11)<br>Display the file tab in the bottom area<br>It shows an "
|
"File tab (F11)<br>Display the file tab in the bottom area<br>It shows an "
|
||||||
"opened file list to switch<br>files quickly."
|
"opened file list to switch<br>files quickly. to switch files quickly."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:467
|
#: src/bin/tools.c:386
|
||||||
msgid "Enventor menu (Esc)<br>Open the Enventor main menu."
|
msgid "Enventor menu (Esc)<br>Open the Enventor main menu."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:514
|
#: src/bin/tools.c:432
|
||||||
msgid "Part highlighting enabled."
|
msgid "Part highlighting enabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:516
|
#: src/bin/tools.c:434
|
||||||
msgid "Part highlighting disabled."
|
msgid "Part highlighting disabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:601
|
#: src/bin/tools.c:519
|
||||||
msgid "Dummy parts enabled."
|
msgid "Dummy parts enabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:603
|
#: src/bin/tools.c:521
|
||||||
msgid "Dummy parts disabled."
|
msgid "Dummy parts disabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:625
|
#: src/bin/tools.c:543
|
||||||
msgid "Wireframes enabled."
|
msgid "Wireframes enabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:627
|
#: src/bin/tools.c:545
|
||||||
msgid "Wireframes disabled."
|
msgid "Wireframes disabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:650
|
#: src/bin/tools.c:568
|
||||||
msgid "Mirror mode enabled."
|
msgid "Mirror mode enabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:652
|
#: src/bin/tools.c:570
|
||||||
msgid "Mirror mode disabled."
|
msgid "Mirror mode disabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:706
|
#: src/bin/tools.c:624
|
||||||
msgid "Insertion of template code is disabled while in Live Edit mode"
|
msgid "Insertion of template code is disabled while in Live Edit mode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:717
|
#: src/bin/tools.c:635
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Template code inserted, (%s)"
|
msgid "Template code inserted, (%s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/bin/tools.c:723
|
#: src/bin/tools.c:641
|
||||||
msgid ""
|
msgid ""
|
||||||
"Can't insert template code here. Move the cursor inside the \"Collections,"
|
"Can't insert template code here. Move the cursor inside the \"Collections,"
|
||||||
"Images,Parts,Part,Programs\" scope."
|
"Images,Parts,Part,Programs\" scope."
|
||||||
|
|
545
po/fr.po
545
po/fr.po
|
@ -1,545 +0,0 @@
|
||||||
# French translation for Enventor.
|
|
||||||
# This file is distributed under the same license as the enventor package.
|
|
||||||
# similar <similar@orange.fr>, 2020, 2021.
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: enventor\n"
|
|
||||||
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
|
|
||||||
"POT-Creation-Date: 2021-12-05 11:59+0100\n"
|
|
||||||
"PO-Revision-Date: 2021-12-05 13:42+0100\n"
|
|
||||||
"Last-Translator: Philippe Jean Guillaumie <similar@orange.fr>\n"
|
|
||||||
"Language-Team: French\n"
|
|
||||||
"Language: fr\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
||||||
"X-Generator: Poedit 3.0\n"
|
|
||||||
|
|
||||||
#: src/bin/base_gui.c:70
|
|
||||||
#, c-format
|
|
||||||
msgid "%s - Enventor"
|
|
||||||
msgstr "%s - Enventor"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:78
|
|
||||||
msgid "Failed to generate tmp folder!"
|
|
||||||
msgstr "Impossible de générer un dossier temporaire !"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:99
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create a config folder \"%s\""
|
|
||||||
msgstr "Impossible de créer le dossier de configuration « %s »"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:113
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create a enventor config folder \"%s\""
|
|
||||||
msgstr "Impossible de créer le dossier de configuration Enventor « %s »"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:124
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot save a config file \"%s\""
|
|
||||||
msgstr "Échec de l'enregistrement du fichier de configuration « %s »"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:163
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot load a config file \"%s\""
|
|
||||||
msgstr "Échec du chargement du fichier de configuration « %s »"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:171
|
|
||||||
msgid "Failed to allocate Memory!"
|
|
||||||
msgstr "Impossible d'allouer de la mémoire !"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:89
|
|
||||||
msgid "EDC has been changed on the file system."
|
|
||||||
msgstr "EDC a été modifié sur le système de fichiers."
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:91
|
|
||||||
msgid "Do you want to replace the contents?"
|
|
||||||
msgstr "Voulez-vous remplacer le contenu ?"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:102
|
|
||||||
msgid "Save As"
|
|
||||||
msgstr "Enregistrer sous"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:110 src/bin/search.c:427
|
|
||||||
msgid "Replace"
|
|
||||||
msgstr "Remplacer"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:116
|
|
||||||
msgid "Ignore"
|
|
||||||
msgstr "Ignorer"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:197
|
|
||||||
#, c-format
|
|
||||||
msgid "File saved. \"%s\""
|
|
||||||
msgstr "Fichier « %s » enregistré."
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:199
|
|
||||||
#, c-format
|
|
||||||
msgid "Already saved. \"%s\""
|
|
||||||
msgstr "Fichier « %s » déjà enregistré."
|
|
||||||
|
|
||||||
#: src/bin/goto.c:78
|
|
||||||
msgid "Invalid line number"
|
|
||||||
msgstr "Numéro de ligne non valide"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:133
|
|
||||||
msgid "Enventor Goto Line"
|
|
||||||
msgstr "Enventor Se rendre à une ligne"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:137
|
|
||||||
msgid "Go to Line"
|
|
||||||
msgstr "Aller à la ligne"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:158
|
|
||||||
#, c-format
|
|
||||||
msgid "Enter line number [1..%d]:"
|
|
||||||
msgstr "Entrer le numéro de ligne [1..%d] :"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:182 src/bin/menu.c:154
|
|
||||||
msgid "Ok"
|
|
||||||
msgstr "OK"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:194 src/bin/search.c:449
|
|
||||||
msgid "Failed to grab key - Escape"
|
|
||||||
msgstr "Impossible d'accaparer la touche - Échap"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2020 src/bin/live_edit.c:2057 src/bin/live_edit.c:2059
|
|
||||||
#: src/bin/main.c:872 src/lib/auto_comp.c:410 src/lib/ctxpopup.c:813
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to grab key - %s"
|
|
||||||
msgstr "Impossible d'accaparer la touche - %s"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2140
|
|
||||||
msgid ""
|
|
||||||
"Double click part to confirm.(Esc = cancel, Direction Key = move item per "
|
|
||||||
"pixel,Ctrl = disable auto-aligning)"
|
|
||||||
msgstr ""
|
|
||||||
"Double clic sur la partie pour confirmer. (Échap = annuler, touches de "
|
|
||||||
"direction = déplacer d'un pixel à la fois, Ctrl = désactiver l'auto-"
|
|
||||||
"alignement)"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2160
|
|
||||||
msgid ""
|
|
||||||
"Add a Rect part to the live view.<br>A Rect part is used as a solid "
|
|
||||||
"color<br>component or clipping other components."
|
|
||||||
msgstr ""
|
|
||||||
"Ajouter une partie Rect à l'aperçu.<br>Cette partie est utilisée comme un "
|
|
||||||
"élément de couleur<br>unie ou pour cacher d'autres éléments."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2166
|
|
||||||
msgid ""
|
|
||||||
"Add a Text part to the live view.<br>A Text part is used for plain text."
|
|
||||||
msgstr ""
|
|
||||||
"Ajouter une partie Text à l'aperçu.<br>Cette partie est utilisée pour le "
|
|
||||||
"texte ordinaire."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2171
|
|
||||||
msgid ""
|
|
||||||
"Add an Image part to the live view.<br>An Image part contains a single "
|
|
||||||
"image<br>resource, usually an image file."
|
|
||||||
msgstr ""
|
|
||||||
"Ajouter une partie Image à l'aperçu.<br>Cette partie contient une seule "
|
|
||||||
"ressource,<br>généralement un fichier image."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2177
|
|
||||||
msgid ""
|
|
||||||
"Add a Swallow part to the live view.<br>A Swallow part is a placeholder "
|
|
||||||
"for<br>objects that you may want to<br>include in the layout later."
|
|
||||||
msgstr ""
|
|
||||||
"Ajouter une partie Swallow à l'aperçu.<br>Cette partie est un espace réservé "
|
|
||||||
"pour<br>des objets que vous souhaitez inclure <br>plus tard dans votre "
|
|
||||||
"composition."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2184
|
|
||||||
msgid ""
|
|
||||||
"Add a Textblock part to the live view.<br>A Textblock part is a rich-text "
|
|
||||||
"part<br>that can show big chunks of text."
|
|
||||||
msgstr ""
|
|
||||||
"Ajouter une partie Textblock à l'aperçu.<br>Cette partie affiche du texte "
|
|
||||||
"formaté pouvant<br>contenir de gros blocs de texte."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2190
|
|
||||||
msgid ""
|
|
||||||
"Add a Spacer part to the live view.<br>A Spacer part is an anchor to locate "
|
|
||||||
"<br>other parts. It is invisible and<br>normally used for padding."
|
|
||||||
msgstr ""
|
|
||||||
"Ajouter une partie Spacer à l'aperçu.<br>Cette partie est un ancrage pour "
|
|
||||||
"accueillir<br>d'autres éléments. Elle est invisible et<br>sert "
|
|
||||||
"principalement pour le padding."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2350
|
|
||||||
msgid "Faild to allocate Memory!"
|
|
||||||
msgstr "Impossible d'allouer de la mémoire !"
|
|
||||||
|
|
||||||
#: src/bin/main.c:212
|
|
||||||
#, c-format
|
|
||||||
msgid "Font Size: %1.1fx"
|
|
||||||
msgstr "Taille de la police : %1.1fx"
|
|
||||||
|
|
||||||
#: src/bin/main.c:944
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create temporary diretory \"%s\""
|
|
||||||
msgstr "Impossible de créer le dossier temporaire « %s »"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:141
|
|
||||||
msgid "New File: Choose a Template"
|
|
||||||
msgstr "Nouveau fichier : choisir un modèle"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:160 src/bin/menu.c:206 src/bin/setting.c:242
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr "Annuler"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:179
|
|
||||||
msgid "You have unsaved changes."
|
|
||||||
msgstr "Des changements n'ont pas été enregistrés."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:181
|
|
||||||
msgid "Do you want to save the changes?"
|
|
||||||
msgstr "Voulez-vous enregistrer les modifications ?"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:192 src/bin/menu.c:475 src/bin/menu.c:591
|
|
||||||
msgid "Save"
|
|
||||||
msgstr "Enregistrer"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:200
|
|
||||||
msgid "Discard"
|
|
||||||
msgstr "Abandonner"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:328
|
|
||||||
msgid "Choose a file to save"
|
|
||||||
msgstr "Choisir un fichier à enregistrer"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:365
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to save: %s."
|
|
||||||
msgstr "Impossible d'enregistrer : %s."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:419
|
|
||||||
msgid "Support only .edc file."
|
|
||||||
msgstr "Seuls les fichiers .edc sont pris en charge."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:429
|
|
||||||
msgid "Choose a file to load."
|
|
||||||
msgstr "Choisir un fichier à charger."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:440
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to load: %s."
|
|
||||||
msgstr "Impossible de charger : %s."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:467
|
|
||||||
msgid "Save File: Choose a EDC"
|
|
||||||
msgstr "Enregistrer un fichier : choisir un EDC"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:476 src/bin/menu.c:511
|
|
||||||
msgid "Close"
|
|
||||||
msgstr "Fermer"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:501
|
|
||||||
msgid "Load File: Choose a EDC"
|
|
||||||
msgstr "Charger un fichier : choisir un EDC"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:510 src/bin/menu.c:595
|
|
||||||
msgid "Load"
|
|
||||||
msgstr "Charger"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:586
|
|
||||||
msgid "New"
|
|
||||||
msgstr "Nouveau"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:599 src/bin/setting.c:198
|
|
||||||
msgid "Settings"
|
|
||||||
msgstr "Configuration"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:603
|
|
||||||
msgid "Help"
|
|
||||||
msgstr "Aide"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:607
|
|
||||||
msgid "Exit"
|
|
||||||
msgstr "Quitter"
|
|
||||||
|
|
||||||
#: src/bin/newfile.c:79
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot find templates folder! \"%s\""
|
|
||||||
msgstr "Dossier des modèles « %s » introuvable !"
|
|
||||||
|
|
||||||
#: src/bin/newfile.c:124 src/bin/newfile.c:146
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot find file! \"%s\""
|
|
||||||
msgstr "Fichier « %s » introuvable !"
|
|
||||||
|
|
||||||
#: src/bin/search.c:96
|
|
||||||
#, c-format
|
|
||||||
msgid "%d matches replaced"
|
|
||||||
msgstr "%d correspondances remplacées"
|
|
||||||
|
|
||||||
#: src/bin/search.c:150 src/bin/search.c:210
|
|
||||||
#, c-format
|
|
||||||
msgid "No \"%s\" in the text"
|
|
||||||
msgstr "Aucun « %s » dans le texte"
|
|
||||||
|
|
||||||
#: src/bin/search.c:248 src/bin/search.c:413
|
|
||||||
msgid "Previous"
|
|
||||||
msgstr "Précédent"
|
|
||||||
|
|
||||||
#: src/bin/search.c:280 src/bin/search.c:420
|
|
||||||
msgid "Next"
|
|
||||||
msgstr "Suivant"
|
|
||||||
|
|
||||||
#: src/bin/search.c:364
|
|
||||||
msgid "Enventor Search"
|
|
||||||
msgstr "Enventor Rechercher"
|
|
||||||
|
|
||||||
#: src/bin/search.c:367
|
|
||||||
msgid "Find/Replace"
|
|
||||||
msgstr "Rechercher / Remplacer"
|
|
||||||
|
|
||||||
#: src/bin/search.c:434
|
|
||||||
msgid "Replace All"
|
|
||||||
msgstr "Remplacer tout"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:210
|
|
||||||
msgid "Preferences"
|
|
||||||
msgstr "Préférences"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:212
|
|
||||||
msgid "Text Editor"
|
|
||||||
msgstr "Éditeur de texte"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:214
|
|
||||||
msgid "EDC Build"
|
|
||||||
msgstr "Construire EDC"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:228
|
|
||||||
msgid "Apply"
|
|
||||||
msgstr "Appliquer"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:235
|
|
||||||
msgid "Reset"
|
|
||||||
msgstr "Rétablir"
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:319
|
|
||||||
msgid "View zoom level (Ctrl + Mouse Wheel)<br>Zoom the live view in or out."
|
|
||||||
msgstr "Niveau de zoom (Ctrl+molette souris)<br>Agrandir ou réduire l'aperçu."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:325
|
|
||||||
msgid "Resize the width and height of the live view."
|
|
||||||
msgstr "Redimensionner la largeur et la hauteur de l'aperçu."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:330
|
|
||||||
msgid "Swap the width and height of the live view."
|
|
||||||
msgstr "Interchanger la largeur et la hauteur de l'aperçu."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:340
|
|
||||||
msgid ""
|
|
||||||
"Mouse cursor position in live view.<br>Absolute coordinate | Relative "
|
|
||||||
"coordinate."
|
|
||||||
msgstr ""
|
|
||||||
"Position du pointeur de la souris dans l'aperçu.<br>Coordonnée absolue | "
|
|
||||||
"Coordonnée relative."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:351
|
|
||||||
msgid "Name of the current editing group."
|
|
||||||
msgstr "Nom du groupe en cours d'édition."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:361
|
|
||||||
msgid "Cursor line number : Max line number"
|
|
||||||
msgstr "Numéro de ligne du curseur : nombre de lignes max."
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:552
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to open file \"%s\""
|
|
||||||
msgstr "Impossible d'ouvrir le fichier « %s »"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:915
|
|
||||||
msgid "Double click a keyword to change its color :"
|
|
||||||
msgstr "Double clic sur un mot-clé pour changer sa couleur :"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:1010
|
|
||||||
msgid "Font Name"
|
|
||||||
msgstr "Nom de la police"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:1037
|
|
||||||
msgid "Font Style"
|
|
||||||
msgstr "Style de la police"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:142
|
|
||||||
msgid "Redo text."
|
|
||||||
msgstr "Répéter le texte."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:144
|
|
||||||
msgid "No text to be redo."
|
|
||||||
msgstr "Aucun texte à répéter."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:152
|
|
||||||
msgid "Undo text."
|
|
||||||
msgstr "Annuler le texte."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:154
|
|
||||||
msgid "No text to be undo."
|
|
||||||
msgstr "Aucun texte à annuler."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:244
|
|
||||||
msgid ""
|
|
||||||
"Part highlighting (Ctrl + H)<br>Show a highlight effect on the selected "
|
|
||||||
"part<br>in the live view."
|
|
||||||
msgstr ""
|
|
||||||
"Surbrillance (Ctrl+H)<br>Mise en évidence de la partie<br>sélectionnée dans "
|
|
||||||
"l'aperçu."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:256
|
|
||||||
msgid ""
|
|
||||||
"Dummy parts (Ctrl + U)<br>Display virtual images for the swallow "
|
|
||||||
"and<br>spacer parts."
|
|
||||||
msgstr ""
|
|
||||||
"Maquette (Ctrl+U)<br>Affiche des images factices pour les<br>parties Swallow "
|
|
||||||
"et Spacer."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:268
|
|
||||||
msgid ""
|
|
||||||
"Wireframes (Ctrl + W)<br>Display wireframes to identify the "
|
|
||||||
"parts<br>boundaries."
|
|
||||||
msgstr ""
|
|
||||||
"Encadrement (Ctrl+W)<br>Affiche des guides pour délimiter<br>les différentes "
|
|
||||||
"parties."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:280
|
|
||||||
msgid ""
|
|
||||||
"Mirror mode (Ctrl + M)<br>Invert the layout horizontally and review<br>the "
|
|
||||||
"designed layout in RTL(right-to-left)<br>LTR(left-to-right) settings."
|
|
||||||
msgstr ""
|
|
||||||
"Miroir (Ctrl+M)<br>Inverse horizontalement la composition et permet "
|
|
||||||
"de<br>tester les dispositions RTL (de droite à gauche)<br>et LTR (de gauche "
|
|
||||||
"à droite)."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:348
|
|
||||||
msgid "Save the file (Ctrl + S)<br>Save the current script to a file."
|
|
||||||
msgstr ""
|
|
||||||
"Enregistrer le fichier (Ctrl+S)<br>Enregistre le script actuel dans un "
|
|
||||||
"fichier."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:357
|
|
||||||
msgid "Undo text (Ctrl + Z)"
|
|
||||||
msgstr "Annuler texte (Ctrl+Z)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:365
|
|
||||||
msgid "Redo text (Ctrl + R)"
|
|
||||||
msgstr "Répéter texte (Ctrl+R)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:373
|
|
||||||
msgid "Find/Replace (Ctrl + F)<br>Find or replace text."
|
|
||||||
msgstr "Chercher / Remplacer (Ctrl+F)<br>Cherche ou remplace du texte."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:383
|
|
||||||
msgid ""
|
|
||||||
"Go to line (Ctrl + L)<br>Open the Go to window to move the cursor<br>line "
|
|
||||||
"position."
|
|
||||||
msgstr ""
|
|
||||||
"Aller à la ligne (Ctrl+L)<br>Ouvre une boîte de dialogue pour déplacer<br>le "
|
|
||||||
"curseur à la ligne indiquée."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:394
|
|
||||||
msgid "Line numbers<br>Display the script line numbers."
|
|
||||||
msgstr "Numéros de lignes<br>Affiche les numéros de lignes."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:404
|
|
||||||
msgid ""
|
|
||||||
"Insert a code snippet (Ctrl + T)<br>Enventor chooses the best code with "
|
|
||||||
"regards<br>to the current editing context. For instance,<br>if the cursor is "
|
|
||||||
"inside a part section,<br>description code is generated."
|
|
||||||
msgstr ""
|
|
||||||
"Insérer un extrait de code (Ctrl+T)<br>Enventor sélectionne le code le plus "
|
|
||||||
"adapté au contexte<br>actuel. Par exemple, si le curseur se trouve<br>dans "
|
|
||||||
"une section Part, un code de<br>description est généré."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:418
|
|
||||||
msgid ""
|
|
||||||
"Console box (Alt + Down)<br>Display the console box, which shows the "
|
|
||||||
"EDC<br>build logs, such as error messages. It pops<br>up automatically when "
|
|
||||||
"compilation errors occur."
|
|
||||||
msgstr ""
|
|
||||||
"Console (Alt+Flèche bas)<br>Affiche les journaux EDC tels que les messages "
|
|
||||||
"d'erreur.<br>Elle apparaît automatiquement quand des<br>erreurs de "
|
|
||||||
"compilation se produisent."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:430
|
|
||||||
msgid ""
|
|
||||||
"File browser (F9)<br>Display the file browser, which shows a file list<br>in "
|
|
||||||
"current workspace."
|
|
||||||
msgstr ""
|
|
||||||
"Navigateur de fichiers (F9)<br>Affiche le navigateur pour lister les "
|
|
||||||
"fichiers<br>de l'espace de travail actuel."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:441
|
|
||||||
msgid ""
|
|
||||||
"EDC navigator (F10)<br>Display the EDC navigator, which shows the "
|
|
||||||
"current<br>group hierarchy tree that contains parts,<br>descriptions and "
|
|
||||||
"programs lists."
|
|
||||||
msgstr ""
|
|
||||||
"Navigateur EDC (F10)<br>Affiche le navigateur montrant l'arbre hiérarchique "
|
|
||||||
"de<br>l'EDC actuel qui contient les parties, descriptions<br>et listes de "
|
|
||||||
"programmes."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:453
|
|
||||||
msgid ""
|
|
||||||
"File tab (F11)<br>Display the file tab in the bottom area<br>It shows an "
|
|
||||||
"opened file list to switch<br>files quickly."
|
|
||||||
msgstr ""
|
|
||||||
"Onglet (F11)<br>Affiche l'onglet de la zone inférieure qui regroupe<br>les "
|
|
||||||
"fichiers EDC et permet de passer<br>rapidement de l'un à l'autre."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:467
|
|
||||||
msgid "Enventor menu (Esc)<br>Open the Enventor main menu."
|
|
||||||
msgstr "Enventor Menu (Échap)<br>Ouvre le menu principal d'Enventor."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:514
|
|
||||||
msgid "Part highlighting enabled."
|
|
||||||
msgstr "Mode surbrillance activé."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:516
|
|
||||||
msgid "Part highlighting disabled."
|
|
||||||
msgstr "Mode surbrillance désactivé."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:601
|
|
||||||
msgid "Dummy parts enabled."
|
|
||||||
msgstr "Mode maquette activé."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:603
|
|
||||||
msgid "Dummy parts disabled."
|
|
||||||
msgstr "Mode maquette désactivé."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:625
|
|
||||||
msgid "Wireframes enabled."
|
|
||||||
msgstr "Mode encadrement activé."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:627
|
|
||||||
msgid "Wireframes disabled."
|
|
||||||
msgstr "Mode encadrement désactivé."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:650
|
|
||||||
msgid "Mirror mode enabled."
|
|
||||||
msgstr "Mode miroir activé."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:652
|
|
||||||
msgid "Mirror mode disabled."
|
|
||||||
msgstr "Mode miroir désactivé."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:706
|
|
||||||
msgid "Insertion of template code is disabled while in Live Edit mode"
|
|
||||||
msgstr "L'insertion de modèles de code est désactivée en mode Live Edit"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:717
|
|
||||||
#, c-format
|
|
||||||
msgid "Template code inserted, (%s)"
|
|
||||||
msgstr "Insertion du modèle de code, (%s)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:723
|
|
||||||
msgid ""
|
|
||||||
"Can't insert template code here. Move the cursor inside the \"Collections,"
|
|
||||||
"Images,Parts,Part,Programs\" scope."
|
|
||||||
msgstr ""
|
|
||||||
"L'insertion d'un modèle de code n'est pas possible ici. Déplacer le curseur "
|
|
||||||
"dans la section « Collections,Images,Parts,Part,Programs »."
|
|
540
po/it.po
540
po/it.po
|
@ -1,540 +0,0 @@
|
||||||
# Italian translation for enventor.
|
|
||||||
# This file is distributed under the same license as the enventor package.
|
|
||||||
# Massimo Maiurana <maiurana@gmail.com>, 2016.
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: enventor 1.0.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2021-12-05 11:59+0100\n"
|
|
||||||
"PO-Revision-Date: 2021-12-05 12:01+0100\n"
|
|
||||||
"Last-Translator: Massimo Maiurana <maiurana@gmail.com>\n"
|
|
||||||
"Language-Team: none\n"
|
|
||||||
"Language: it\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
|
|
||||||
#: src/bin/base_gui.c:70
|
|
||||||
#, c-format
|
|
||||||
msgid "%s - Enventor"
|
|
||||||
msgstr "%s - Enventor"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:78
|
|
||||||
msgid "Failed to generate tmp folder!"
|
|
||||||
msgstr "Non ho potuto creare la directory temporanea!"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:99
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create a config folder \"%s\""
|
|
||||||
msgstr "Non ho potuto creare una directory di configurazione \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:113
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create a enventor config folder \"%s\""
|
|
||||||
msgstr ""
|
|
||||||
"Non ho potuto creare una directory di configurazione di enventor \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:124
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot save a config file \"%s\""
|
|
||||||
msgstr "Non ho potuto salvare un file di configurazione \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:163
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot load a config file \"%s\""
|
|
||||||
msgstr "Non ho potuto caricare un file di configurazione \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:171
|
|
||||||
msgid "Failed to allocate Memory!"
|
|
||||||
msgstr "Non ho potuto allocare memoria!"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:89
|
|
||||||
msgid "EDC has been changed on the file system."
|
|
||||||
msgstr "Il file EDC è cambiato sul file system."
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:91
|
|
||||||
msgid "Do you want to replace the contents?"
|
|
||||||
msgstr "Vuoi sostituire il contenuto?"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:102
|
|
||||||
msgid "Save As"
|
|
||||||
msgstr "Salva con nome"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:110 src/bin/search.c:427
|
|
||||||
msgid "Replace"
|
|
||||||
msgstr "Sostituisci"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:116
|
|
||||||
msgid "Ignore"
|
|
||||||
msgstr "Ignora"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:197
|
|
||||||
#, c-format
|
|
||||||
msgid "File saved. \"%s\""
|
|
||||||
msgstr "File salvato. \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:199
|
|
||||||
#, c-format
|
|
||||||
msgid "Already saved. \"%s\""
|
|
||||||
msgstr "Già salvato. \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/goto.c:78
|
|
||||||
msgid "Invalid line number"
|
|
||||||
msgstr "Numero di riga non valido"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:133
|
|
||||||
msgid "Enventor Goto Line"
|
|
||||||
msgstr "Enventor va alla riga"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:137
|
|
||||||
msgid "Go to Line"
|
|
||||||
msgstr "Vai alla riga"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:158
|
|
||||||
#, c-format
|
|
||||||
msgid "Enter line number [1..%d]:"
|
|
||||||
msgstr "Inserire il numero della rigar [1..%d]:"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:182 src/bin/menu.c:154
|
|
||||||
msgid "Ok"
|
|
||||||
msgstr "Ok"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:194 src/bin/search.c:449
|
|
||||||
msgid "Failed to grab key - Escape"
|
|
||||||
msgstr "Non ho potuto acquisire il tasto - Escape"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2020 src/bin/live_edit.c:2057 src/bin/live_edit.c:2059
|
|
||||||
#: src/bin/main.c:872 src/lib/auto_comp.c:410 src/lib/ctxpopup.c:813
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to grab key - %s"
|
|
||||||
msgstr "Non ho potuto acquisire il tasto -%s"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2140
|
|
||||||
msgid ""
|
|
||||||
"Double click part to confirm.(Esc = cancel, Direction Key = move item per "
|
|
||||||
"pixel,Ctrl = disable auto-aligning)"
|
|
||||||
msgstr ""
|
|
||||||
"Doppio clic sulla parte per confermare. (Esc = annulla, tasti direzione = "
|
|
||||||
"sposta un pixel per volta, Ctrl = disabilita allineamento automatico)"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2160
|
|
||||||
msgid ""
|
|
||||||
"Add a Rect part to the live view.<br>A Rect part is used as a solid "
|
|
||||||
"color<br>component or clipping other components."
|
|
||||||
msgstr ""
|
|
||||||
"Aggiunge una parte Rect all'anteprima.<br>Una parte Rect viene usata come un "
|
|
||||||
"componente<br>di colore pieno o per il clipping di altri componenti."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2166
|
|
||||||
msgid ""
|
|
||||||
"Add a Text part to the live view.<br>A Text part is used for plain text."
|
|
||||||
msgstr ""
|
|
||||||
"§Aggiunge una parte Text all'anteprima.<br> Una parte Text viene usata per "
|
|
||||||
"il testo semplice."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2171
|
|
||||||
msgid ""
|
|
||||||
"Add an Image part to the live view.<br>An Image part contains a single "
|
|
||||||
"image<br>resource, usually an image file."
|
|
||||||
msgstr ""
|
|
||||||
"Aggiunge una parte Image all'anteprima.<br> Una parte Image contiene solo "
|
|
||||||
"una risorsa immagine,<br> di solito un file"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2177
|
|
||||||
msgid ""
|
|
||||||
"Add a Swallow part to the live view.<br>A Swallow part is a placeholder "
|
|
||||||
"for<br>objects that you may want to<br>include in the layout later."
|
|
||||||
msgstr ""
|
|
||||||
"Aggiunge una parte Swallow all'anteprima.<br>Una parte Swallow è un "
|
|
||||||
"segnaposto per oggetti che<br>possono essere inclusi nel layout "
|
|
||||||
"successivamente."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2184
|
|
||||||
msgid ""
|
|
||||||
"Add a Textblock part to the live view.<br>A Textblock part is a rich-text "
|
|
||||||
"part<br>that can show big chunks of text."
|
|
||||||
msgstr ""
|
|
||||||
"Aggiunge una parte Textblok all'anteprima.<br>Una parte Textblock contiene "
|
|
||||||
"testo formattato e<br>può visualizzare grossi spezzoni di testo."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2190
|
|
||||||
msgid ""
|
|
||||||
"Add a Spacer part to the live view.<br>A Spacer part is an anchor to locate "
|
|
||||||
"<br>other parts. It is invisible and<br>normally used for padding."
|
|
||||||
msgstr ""
|
|
||||||
"Aggiunge una parte Spacer all'anteprima.<br>Una parte Spacer è un'ancora per "
|
|
||||||
"altre parti.<br>È invisibile e viene usata normalmente per il padding."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2350
|
|
||||||
msgid "Faild to allocate Memory!"
|
|
||||||
msgstr "Non ho potuto allocare memoria!"
|
|
||||||
|
|
||||||
#: src/bin/main.c:212
|
|
||||||
#, c-format
|
|
||||||
msgid "Font Size: %1.1fx"
|
|
||||||
msgstr "Dimensione font: %1.1fx"
|
|
||||||
|
|
||||||
#: src/bin/main.c:944
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create temporary diretory \"%s\""
|
|
||||||
msgstr "Non ho potuto creare la directory temporanea \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/menu.c:141
|
|
||||||
msgid "New File: Choose a Template"
|
|
||||||
msgstr "Nuovo file: scegliere un modello"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:160 src/bin/menu.c:206 src/bin/setting.c:242
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr "Annulla"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:179
|
|
||||||
msgid "You have unsaved changes."
|
|
||||||
msgstr "Ci sono modifiche non salvate."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:181
|
|
||||||
msgid "Do you want to save the changes?"
|
|
||||||
msgstr "Volete salvare le modifiche?"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:192 src/bin/menu.c:475 src/bin/menu.c:591
|
|
||||||
msgid "Save"
|
|
||||||
msgstr "Salva"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:200
|
|
||||||
msgid "Discard"
|
|
||||||
msgstr "Scarta"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:328
|
|
||||||
msgid "Choose a file to save"
|
|
||||||
msgstr "Scegliere un file da salvare"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:365
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to save: %s."
|
|
||||||
msgstr "Impossibile salvare: %s."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:419
|
|
||||||
msgid "Support only .edc file."
|
|
||||||
msgstr "Solo i file .edc sono supportati."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:429
|
|
||||||
msgid "Choose a file to load."
|
|
||||||
msgstr "Scegliere un file da aprire."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:440
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to load: %s."
|
|
||||||
msgstr "Impossibile aprire: %s."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:467
|
|
||||||
msgid "Save File: Choose a EDC"
|
|
||||||
msgstr "Salva file: scegliere un EDC"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:476 src/bin/menu.c:511
|
|
||||||
msgid "Close"
|
|
||||||
msgstr "Chiudi"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:501
|
|
||||||
msgid "Load File: Choose a EDC"
|
|
||||||
msgstr "Apri file: scegliere un EDC"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:510 src/bin/menu.c:595
|
|
||||||
msgid "Load"
|
|
||||||
msgstr "Apri"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:586
|
|
||||||
msgid "New"
|
|
||||||
msgstr "Nuovo"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:599 src/bin/setting.c:198
|
|
||||||
msgid "Settings"
|
|
||||||
msgstr "Impostazioni"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:603
|
|
||||||
msgid "Help"
|
|
||||||
msgstr "Aiuto"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:607
|
|
||||||
msgid "Exit"
|
|
||||||
msgstr "Esci"
|
|
||||||
|
|
||||||
#: src/bin/newfile.c:79
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot find templates folder! \"%s\""
|
|
||||||
msgstr "Non riesco a trovare la cartella dei modelli! \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/newfile.c:124 src/bin/newfile.c:146
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot find file! \"%s\""
|
|
||||||
msgstr "Non riesco a trovare il file! \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/search.c:96
|
|
||||||
#, c-format
|
|
||||||
msgid "%d matches replaced"
|
|
||||||
msgstr "%d corrispondenze sostituite"
|
|
||||||
|
|
||||||
#: src/bin/search.c:150 src/bin/search.c:210
|
|
||||||
#, c-format
|
|
||||||
msgid "No \"%s\" in the text"
|
|
||||||
msgstr "Non esiste \"%s\" nel testo"
|
|
||||||
|
|
||||||
#: src/bin/search.c:248 src/bin/search.c:413
|
|
||||||
msgid "Previous"
|
|
||||||
msgstr "Precedente"
|
|
||||||
|
|
||||||
#: src/bin/search.c:280 src/bin/search.c:420
|
|
||||||
msgid "Next"
|
|
||||||
msgstr "Successivo"
|
|
||||||
|
|
||||||
#: src/bin/search.c:364
|
|
||||||
msgid "Enventor Search"
|
|
||||||
msgstr "Ricerca di Enventor"
|
|
||||||
|
|
||||||
#: src/bin/search.c:367
|
|
||||||
msgid "Find/Replace"
|
|
||||||
msgstr "Trova/Sostituisci"
|
|
||||||
|
|
||||||
#: src/bin/search.c:434
|
|
||||||
msgid "Replace All"
|
|
||||||
msgstr "Sostituisci tutto"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:210
|
|
||||||
msgid "Preferences"
|
|
||||||
msgstr "Preferenze"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:212
|
|
||||||
msgid "Text Editor"
|
|
||||||
msgstr "Editor di testo"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:214
|
|
||||||
msgid "EDC Build"
|
|
||||||
msgstr "Compila EDC"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:228
|
|
||||||
msgid "Apply"
|
|
||||||
msgstr "Applica"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:235
|
|
||||||
msgid "Reset"
|
|
||||||
msgstr "Reimposta"
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:319
|
|
||||||
msgid "View zoom level (Ctrl + Mouse Wheel)<br>Zoom the live view in or out."
|
|
||||||
msgstr ""
|
|
||||||
"Livello dello zoom (Ctrl + rotella mouse)<br>Ingrandisce e rimpicciolisce "
|
|
||||||
"l'anteprima"
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:325
|
|
||||||
msgid "Resize the width and height of the live view."
|
|
||||||
msgstr "Ridimensiona larghezza e altezza dell'anteprima"
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:330
|
|
||||||
msgid "Swap the width and height of the live view."
|
|
||||||
msgstr "Scambia larghezza e altezza dell'anteprima"
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:340
|
|
||||||
msgid ""
|
|
||||||
"Mouse cursor position in live view.<br>Absolute coordinate | Relative "
|
|
||||||
"coordinate."
|
|
||||||
msgstr ""
|
|
||||||
"Posizione puntatore nell'anteprima.<br> Coordinate assolute | Coordinate "
|
|
||||||
"relative."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:351
|
|
||||||
msgid "Name of the current editing group."
|
|
||||||
msgstr "Nome del gruppo attualmente in modifica"
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:361
|
|
||||||
msgid "Cursor line number : Max line number"
|
|
||||||
msgstr "Numero riga del cursore : numero massimo di righe"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:552
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to open file \"%s\""
|
|
||||||
msgstr "Non ho potuto aprire il file \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:915
|
|
||||||
msgid "Double click a keyword to change its color :"
|
|
||||||
msgstr "Doppio clic su una keyword per cambiarne il colore"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:1010
|
|
||||||
msgid "Font Name"
|
|
||||||
msgstr "Nome del font"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:1037
|
|
||||||
msgid "Font Style"
|
|
||||||
msgstr "Stile del font"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:142
|
|
||||||
msgid "Redo text."
|
|
||||||
msgstr "Ripeti testo."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:144
|
|
||||||
msgid "No text to be redo."
|
|
||||||
msgstr "Nessun testo da ripetere."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:152
|
|
||||||
msgid "Undo text."
|
|
||||||
msgstr "Annulla testo"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:154
|
|
||||||
msgid "No text to be undo."
|
|
||||||
msgstr "Nessun testo da annullare"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:244
|
|
||||||
msgid ""
|
|
||||||
"Part highlighting (Ctrl + H)<br>Show a highlight effect on the selected "
|
|
||||||
"part<br>in the live view."
|
|
||||||
msgstr ""
|
|
||||||
"Evidenziazione parte (Ctrl + H)<br>Mostra un effetto evidenziazione "
|
|
||||||
"sulla<br>parte selezionata nell'anteprima."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:256
|
|
||||||
msgid ""
|
|
||||||
"Dummy parts (Ctrl + U)<br>Display virtual images for the swallow "
|
|
||||||
"and<br>spacer parts."
|
|
||||||
msgstr ""
|
|
||||||
"Parti fittizie (Ctrl + U)<br>Mostra immagini virtuali per le "
|
|
||||||
"parti<br>Swallow e Spacer."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:268
|
|
||||||
msgid ""
|
|
||||||
"Wireframes (Ctrl + W)<br>Display wireframes to identify the "
|
|
||||||
"parts<br>boundaries."
|
|
||||||
msgstr ""
|
|
||||||
"Incorniciamento (Ctrl + W)<br>Mostra una cornice che identifica i<br>confini "
|
|
||||||
"della parte."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:280
|
|
||||||
msgid ""
|
|
||||||
"Mirror mode (Ctrl + M)<br>Invert the layout horizontally and review<br>the "
|
|
||||||
"designed layout in RTL(right-to-left)<br>LTR(left-to-right) settings."
|
|
||||||
msgstr ""
|
|
||||||
"Modalità specchio (§Ctrl + M)<br>Inverte orizzontalmente il layout e ne "
|
|
||||||
"rivede le<br>impostazioni RTL (da destra a sinistra) e LTR<br>(da sinistra a "
|
|
||||||
"destra)."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:348
|
|
||||||
msgid "Save the file (Ctrl + S)<br>Save the current script to a file."
|
|
||||||
msgstr "Salva il file (Ctrl + S)<br>Salva l'attuale script in un file."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:357
|
|
||||||
msgid "Undo text (Ctrl + Z)"
|
|
||||||
msgstr "Annulla testo (Ctrl + Z)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:365
|
|
||||||
msgid "Redo text (Ctrl + R)"
|
|
||||||
msgstr "Ripeti testo (Ctrl + R)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:373
|
|
||||||
msgid "Find/Replace (Ctrl + F)<br>Find or replace text."
|
|
||||||
msgstr "Trova/Sostituisci (Ctrl + F)<br>Trova o sostituisce il testo."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:383
|
|
||||||
msgid ""
|
|
||||||
"Go to line (Ctrl + L)<br>Open the Go to window to move the cursor<br>line "
|
|
||||||
"position."
|
|
||||||
msgstr ""
|
|
||||||
"Vai alla riga (Ctrl + L)<br>Apre la fienstre \"Vai a\" per spostare "
|
|
||||||
"la<br>riga in cui è posizionato il cursore."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:394
|
|
||||||
msgid "Line numbers<br>Display the script line numbers."
|
|
||||||
msgstr "Numeri di riga<br>Visualizza i numeri di riga dello script."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:404
|
|
||||||
msgid ""
|
|
||||||
"Insert a code snippet (Ctrl + T)<br>Enventor chooses the best code with "
|
|
||||||
"regards<br>to the current editing context. For instance,<br>if the cursor is "
|
|
||||||
"inside a part section,<br>description code is generated."
|
|
||||||
msgstr ""
|
|
||||||
"Inserisci codice (Ctrl + T)<br>Enventor sceglie il codice migliore sulla "
|
|
||||||
"base del<br>contesto attuale. Ad esempio, se il cursore si trova<br>nella "
|
|
||||||
"sezione \"part\" viene generato un codice<br>\"description\"."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:418
|
|
||||||
msgid ""
|
|
||||||
"Console box (Alt + Down)<br>Display the console box, which shows the "
|
|
||||||
"EDC<br>build logs, such as error messages. It pops<br>up automatically when "
|
|
||||||
"compilation errors occur."
|
|
||||||
msgstr "Box console (Alt + Giù)<br>Visualizza il box console che mostra i messaggi del log<br>di compilazione dell'EDC, come quelli di errore. Viene<br>visualizzato automaticamente quando avviene un errore di<br>compilazione."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:430
|
|
||||||
msgid ""
|
|
||||||
"File browser (F9)<br>Display the file browser, which shows a file list<br>in "
|
|
||||||
"current workspace."
|
|
||||||
msgstr ""
|
|
||||||
"Navigatore file (F9)<br>Visualizza un navigatore di file che mostra una "
|
|
||||||
"lista<br>dei file nell'attuale spazio di lavoro."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:441
|
|
||||||
msgid ""
|
|
||||||
"EDC navigator (F10)<br>Display the EDC navigator, which shows the "
|
|
||||||
"current<br>group hierarchy tree that contains parts,<br>descriptions and "
|
|
||||||
"programs lists."
|
|
||||||
msgstr ""
|
|
||||||
"Navigatore EDC (F10)<br>Visualizza un navigatore di EDC che mostra "
|
|
||||||
"l'albero<br>gerarchico dell'attuale EDC che contiene l'elenco di<br>parti, "
|
|
||||||
"descrizioni e programmi."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:453
|
|
||||||
msgid ""
|
|
||||||
"File tab (F11)<br>Display the file tab in the bottom area<br>It shows an "
|
|
||||||
"opened file list to switch<br>files quickly."
|
|
||||||
msgstr ""
|
|
||||||
"Etichette file (F11)<br>Visualizza le etichette dei file nell'area in fondo "
|
|
||||||
"per<br>passare rapidamente da un file aperto all'altro."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:467
|
|
||||||
msgid "Enventor menu (Esc)<br>Open the Enventor main menu."
|
|
||||||
msgstr "Menù di Enventor (Esc)<br>Apre il menù principale di Enventor."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:514
|
|
||||||
msgid "Part highlighting enabled."
|
|
||||||
msgstr "Evidenziazione parte abilitata."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:516
|
|
||||||
msgid "Part highlighting disabled."
|
|
||||||
msgstr "Evidenziazione parte disabilitata."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:601
|
|
||||||
msgid "Dummy parts enabled."
|
|
||||||
msgstr "Parti fittizie abilitate."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:603
|
|
||||||
msgid "Dummy parts disabled."
|
|
||||||
msgstr "Parti fittizie disabilitate."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:625
|
|
||||||
msgid "Wireframes enabled."
|
|
||||||
msgstr "Incorniciamenti abilitati."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:627
|
|
||||||
msgid "Wireframes disabled."
|
|
||||||
msgstr "Incorniciamenti disabilitati."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:650
|
|
||||||
msgid "Mirror mode enabled."
|
|
||||||
msgstr "Modalità specchio abilitata."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:652
|
|
||||||
msgid "Mirror mode disabled."
|
|
||||||
msgstr "Modalità specchio disabilitata."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:706
|
|
||||||
msgid "Insertion of template code is disabled while in Live Edit mode"
|
|
||||||
msgstr ""
|
|
||||||
"L'inserimento di modelli di codice è disabilitata in modalità Live Edit"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:717
|
|
||||||
#, c-format
|
|
||||||
msgid "Template code inserted, (%s)"
|
|
||||||
msgstr "Modello di codice inserito, (%s)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:723
|
|
||||||
msgid ""
|
|
||||||
"Can't insert template code here. Move the cursor inside the \"Collections,"
|
|
||||||
"Images,Parts,Part,Programs\" scope."
|
|
||||||
msgstr ""
|
|
||||||
"Impossibile inserire modelli di codice qui. Spostare il cursore in "
|
|
||||||
"\"Collections,Images,Parts,Part,Programs\\\""
|
|
543
po/ka.po
543
po/ka.po
|
@ -1,543 +0,0 @@
|
||||||
# Georgian translation for enventor.
|
|
||||||
# This file is put in the public domain.
|
|
||||||
# Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023.
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: enventor\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2021-12-05 11:59+0100\n"
|
|
||||||
"PO-Revision-Date: 2023-02-10 18:54+0100\n"
|
|
||||||
"Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>\n"
|
|
||||||
"Language-Team: Georgian <(nothing)>\n"
|
|
||||||
"Language: ka\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
||||||
"X-Generator: Poedit 3.2.2\n"
|
|
||||||
|
|
||||||
#: src/bin/base_gui.c:70
|
|
||||||
#, c-format
|
|
||||||
msgid "%s - Enventor"
|
|
||||||
msgstr "%s - Enventor"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:78
|
|
||||||
msgid "Failed to generate tmp folder!"
|
|
||||||
msgstr "დროებითი საქაღალდის შექმნის შეცდომა!"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:99
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create a config folder \"%s\""
|
|
||||||
msgstr "კონფიგურაციის საქაღალდის (\"%s\") შექმნის შეცდომა"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:113
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create a enventor config folder \"%s\""
|
|
||||||
msgstr "Enventor-ის კონფიგურაციის საქაღალდის (\"%s\") შექმნის შეცდომა"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:124
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot save a config file \"%s\""
|
|
||||||
msgstr "კონფიგურაციის ფაილის (\"%s\") შენახვის შეცდომა"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:163
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot load a config file \"%s\""
|
|
||||||
msgstr "კონფიგურაციის ფაილის (\"%s\") ჩატვირთვის შეცდომა"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:171
|
|
||||||
msgid "Failed to allocate Memory!"
|
|
||||||
msgstr "მეხსიერების გამოყოფის შეცდომა!"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:89
|
|
||||||
msgid "EDC has been changed on the file system."
|
|
||||||
msgstr "ფაილურ სისტემაზე EDC შეიცვალა."
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:91
|
|
||||||
msgid "Do you want to replace the contents?"
|
|
||||||
msgstr "გნებავთ შემცველობის ჩანაცვლება?"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:102
|
|
||||||
msgid "Save As"
|
|
||||||
msgstr "შენახვა, როგორც"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:110 src/bin/search.c:427
|
|
||||||
msgid "Replace"
|
|
||||||
msgstr "ჩანაცვლება"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:116
|
|
||||||
msgid "Ignore"
|
|
||||||
msgstr "იგნორი"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:197
|
|
||||||
#, c-format
|
|
||||||
msgid "File saved. \"%s\""
|
|
||||||
msgstr "ფაილი შენახულია. \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:199
|
|
||||||
#, c-format
|
|
||||||
msgid "Already saved. \"%s\""
|
|
||||||
msgstr "უკვე შენახულია. \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/goto.c:78
|
|
||||||
msgid "Invalid line number"
|
|
||||||
msgstr "ხაზის არასწორი ნომერი"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:133
|
|
||||||
msgid "Enventor Goto Line"
|
|
||||||
msgstr "Enventor ხაზზე გადასვლა"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:137
|
|
||||||
msgid "Go to Line"
|
|
||||||
msgstr "ხაზზე გადასვლა"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:158
|
|
||||||
#, c-format
|
|
||||||
msgid "Enter line number [1..%d]:"
|
|
||||||
msgstr "შეიყვანეთ ხაზის ნომერი [1..%d]:"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:182 src/bin/menu.c:154
|
|
||||||
msgid "Ok"
|
|
||||||
msgstr "დიახ"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:194 src/bin/search.c:449
|
|
||||||
msgid "Failed to grab key - Escape"
|
|
||||||
msgstr "ღილაკის ჩაჭერის შეცდომა - Escape"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2020 src/bin/live_edit.c:2057 src/bin/live_edit.c:2059
|
|
||||||
#: src/bin/main.c:872 src/lib/auto_comp.c:410 src/lib/ctxpopup.c:813
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to grab key - %s"
|
|
||||||
msgstr "ღილაკის ჩაჭერის შეცდომა - %s"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2140
|
|
||||||
msgid ""
|
|
||||||
"Double click part to confirm.(Esc = cancel, Direction Key = move item per "
|
|
||||||
"pixel,Ctrl = disable auto-aligning)"
|
|
||||||
msgstr ""
|
|
||||||
"ორმაგი წკაპი დასადასტურებლად .(Esc = გასაუქმებლად, მიმართულების ისარი = "
|
|
||||||
"ჩანაწერის ერთი პიქსელით გადატანა,Ctrl = ავტომატური სწორების გამორთვა)"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2160
|
|
||||||
msgid ""
|
|
||||||
"Add a Rect part to the live view.<br>A Rect part is used as a solid "
|
|
||||||
"color<br>component or clipping other components."
|
|
||||||
msgstr ""
|
|
||||||
"ცოცხალი ხედისთვის მრავალკუთხედი ნაწილის დამატება.<br>მრავალკუთხედი ნაწილი "
|
|
||||||
"შეგიძლიათ ერთგვარი ფერის<br>კომპონენტის ან სხვა კომპონენტების მისამაგრებლად "
|
|
||||||
"გამოიყენოთ."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2166
|
|
||||||
msgid ""
|
|
||||||
"Add a Text part to the live view.<br>A Text part is used for plain text."
|
|
||||||
msgstr ""
|
|
||||||
"ცოცხალ ხედზე ტექსტის ნაწილის დამატება.<br>ტექსტის ნაწილი უბრალო ტექსტისთვის "
|
|
||||||
"გამოიყენება."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2171
|
|
||||||
msgid ""
|
|
||||||
"Add an Image part to the live view.<br>An Image part contains a single "
|
|
||||||
"image<br>resource, usually an image file."
|
|
||||||
msgstr ""
|
|
||||||
"ცოცხალი ხედისთვის გამოსახულების ნაწილის დამატება.<br>გამოსახულების ნაწილი "
|
|
||||||
"ერთ გამოსახულების<br>რესურსს შეიცავს, ჩვეულებრივ სურათის ფაილს."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2177
|
|
||||||
msgid ""
|
|
||||||
"Add a Swallow part to the live view.<br>A Swallow part is a placeholder "
|
|
||||||
"for<br>objects that you may want to<br>include in the layout later."
|
|
||||||
msgstr ""
|
|
||||||
"ცოცხალი ხედისთვის Swallow ნაწილის დამატება.<br>Swallow ნაწილი ადგილმჭერია "
|
|
||||||
"<br> ობიექტებისთვის, რომლების ჩასმაც შეიძლება<br>მოგვიანებით მოგინდეთ."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2184
|
|
||||||
msgid ""
|
|
||||||
"Add a Textblock part to the live view.<br>A Textblock part is a rich-text "
|
|
||||||
"part<br>that can show big chunks of text."
|
|
||||||
msgstr ""
|
|
||||||
"ცოცხალი ხედისთვის ტექსტური ბლოკის ნაწილის დამატება.<br>ტექსტური ბლოკის ნაწილ "
|
|
||||||
"მდიდარი ტექსტის ნაწილია,<br>რომელსაც დიდი ტექსტების ჩვენება შეუძლია."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2190
|
|
||||||
msgid ""
|
|
||||||
"Add a Spacer part to the live view.<br>A Spacer part is an anchor to locate "
|
|
||||||
"<br>other parts. It is invisible and<br>normally used for padding."
|
|
||||||
msgstr ""
|
|
||||||
"ცოცხალი ხედისთვის Spacer ნაწილის დამატება.<br>ნაწილი Spacer მარყუჟია, "
|
|
||||||
"რითიც<br>სხვა ნაწილებს იპოვით. ის უჩინარია და "
|
|
||||||
"ჩვეულებრივ<br>გამოტოვებებისთვის გამოიყენება."
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2350
|
|
||||||
msgid "Faild to allocate Memory!"
|
|
||||||
msgstr "მეხსიერების გამოყოფის შეცდომა!"
|
|
||||||
|
|
||||||
#: src/bin/main.c:212
|
|
||||||
#, c-format
|
|
||||||
msgid "Font Size: %1.1fx"
|
|
||||||
msgstr "ფონტის ზომა: %1.1fx"
|
|
||||||
|
|
||||||
#: src/bin/main.c:944
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create temporary diretory \"%s\""
|
|
||||||
msgstr "დროებითი საქაღალდის შექმნის შეცდომა (%s)"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:141
|
|
||||||
msgid "New File: Choose a Template"
|
|
||||||
msgstr "ახალი ფაილი: აირჩიეთ ნიმუში"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:160 src/bin/menu.c:206 src/bin/setting.c:242
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr "გაუქმება"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:179
|
|
||||||
msgid "You have unsaved changes."
|
|
||||||
msgstr "გაქვთ შეუნახავი ცვლილებები."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:181
|
|
||||||
msgid "Do you want to save the changes?"
|
|
||||||
msgstr "გსურთ ცვლილებების შენახვა?"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:192 src/bin/menu.c:475 src/bin/menu.c:591
|
|
||||||
msgid "Save"
|
|
||||||
msgstr "შენახვა"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:200
|
|
||||||
msgid "Discard"
|
|
||||||
msgstr "გაუქმება"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:328
|
|
||||||
msgid "Choose a file to save"
|
|
||||||
msgstr "აირჩიეთ შესანახი ფაილი"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:365
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to save: %s."
|
|
||||||
msgstr "შენახვის შეცდომა: %s."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:419
|
|
||||||
msgid "Support only .edc file."
|
|
||||||
msgstr "მხარდაჭერილია მხოლოდ .edc ფაილი."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:429
|
|
||||||
msgid "Choose a file to load."
|
|
||||||
msgstr "აირჩიეთ ჩასატვირთი ფაილი."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:440
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to load: %s."
|
|
||||||
msgstr "ჩატვირთვის შეცდომა: %s."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:467
|
|
||||||
msgid "Save File: Choose a EDC"
|
|
||||||
msgstr "ფაილის შენახვა: აირჩიეთ EDC"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:476 src/bin/menu.c:511
|
|
||||||
msgid "Close"
|
|
||||||
msgstr "დახურვა"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:501
|
|
||||||
msgid "Load File: Choose a EDC"
|
|
||||||
msgstr "ფაილის ჩატვირთვა: აირჩიეთ EDC"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:510 src/bin/menu.c:595
|
|
||||||
msgid "Load"
|
|
||||||
msgstr "ჩატვირთვა"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:586
|
|
||||||
msgid "New"
|
|
||||||
msgstr "ახალი"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:599 src/bin/setting.c:198
|
|
||||||
msgid "Settings"
|
|
||||||
msgstr "მორგება"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:603
|
|
||||||
msgid "Help"
|
|
||||||
msgstr "დახმარება"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:607
|
|
||||||
msgid "Exit"
|
|
||||||
msgstr "გასვლა"
|
|
||||||
|
|
||||||
#: src/bin/newfile.c:79
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot find templates folder! \"%s\""
|
|
||||||
msgstr "ნიმუშების საქაღალდე ვერ ვიპოვე! \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/newfile.c:124 src/bin/newfile.c:146
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot find file! \"%s\""
|
|
||||||
msgstr "ფაილი ვერ ვიპოვე! \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/search.c:96
|
|
||||||
#, c-format
|
|
||||||
msgid "%d matches replaced"
|
|
||||||
msgstr "ჩანაცვლებულია %d დამთხვევა"
|
|
||||||
|
|
||||||
#: src/bin/search.c:150 src/bin/search.c:210
|
|
||||||
#, c-format
|
|
||||||
msgid "No \"%s\" in the text"
|
|
||||||
msgstr "ტექსტში \"%s\" აღმოჩენილი არაა"
|
|
||||||
|
|
||||||
#: src/bin/search.c:248 src/bin/search.c:413
|
|
||||||
msgid "Previous"
|
|
||||||
msgstr "წინა"
|
|
||||||
|
|
||||||
#: src/bin/search.c:280 src/bin/search.c:420
|
|
||||||
msgid "Next"
|
|
||||||
msgstr "შემდეგი"
|
|
||||||
|
|
||||||
#: src/bin/search.c:364
|
|
||||||
msgid "Enventor Search"
|
|
||||||
msgstr "Enventor-ით ძებნა"
|
|
||||||
|
|
||||||
#: src/bin/search.c:367
|
|
||||||
msgid "Find/Replace"
|
|
||||||
msgstr "ძებნა/ჩანაცვლება"
|
|
||||||
|
|
||||||
#: src/bin/search.c:434
|
|
||||||
msgid "Replace All"
|
|
||||||
msgstr "ყველას ჩანაცვლება"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:210
|
|
||||||
msgid "Preferences"
|
|
||||||
msgstr "მორგება"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:212
|
|
||||||
msgid "Text Editor"
|
|
||||||
msgstr "ტექსტური რედაქტორი"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:214
|
|
||||||
msgid "EDC Build"
|
|
||||||
msgstr "EDC-ის აგება"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:228
|
|
||||||
msgid "Apply"
|
|
||||||
msgstr "გადატარება"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:235
|
|
||||||
msgid "Reset"
|
|
||||||
msgstr "საწყისი მნიშვნელობებზე დაბრუნება"
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:319
|
|
||||||
msgid "View zoom level (Ctrl + Mouse Wheel)<br>Zoom the live view in or out."
|
|
||||||
msgstr ""
|
|
||||||
"გადიდების დონის ნახვა (Ctrl + თაგუნას ბორბალი)<br>ცოცხალი ხედის გადიდება/"
|
|
||||||
"დაპატარავება."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:325
|
|
||||||
msgid "Resize the width and height of the live view."
|
|
||||||
msgstr "ცოცხალი ხედის სიგრძისა და სიგანის შეცვლა."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:330
|
|
||||||
msgid "Swap the width and height of the live view."
|
|
||||||
msgstr "ცოცხალი ხედის სიგრძისა და სიგანის მიმოცვლა."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:340
|
|
||||||
msgid ""
|
|
||||||
"Mouse cursor position in live view.<br>Absolute coordinate | Relative "
|
|
||||||
"coordinate."
|
|
||||||
msgstr ""
|
|
||||||
"თაგუნას კურსორის პოზიცია ცოცხალ ხედში.<br>აბსოლუტური კოორდინატები | "
|
|
||||||
"ფარდობითი კოორდინატები."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:351
|
|
||||||
msgid "Name of the current editing group."
|
|
||||||
msgstr "მიმდინარე ჩასწორების ჯგუფის სახელი."
|
|
||||||
|
|
||||||
#: src/bin/statusbar.c:361
|
|
||||||
msgid "Cursor line number : Max line number"
|
|
||||||
msgstr "კურსორის ხაზის სახელი : მაქს ხაზის ნომერი"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:552
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to open file \"%s\""
|
|
||||||
msgstr "ვერ მოხერხდა ფაილის გახსნა \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:915
|
|
||||||
msgid "Double click a keyword to change its color :"
|
|
||||||
msgstr "საკვანძო სიტყვის ფერის შესაცვლელად ორჯერ დააწკაპუნეთ :"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:1010
|
|
||||||
msgid "Font Name"
|
|
||||||
msgstr "ფონტის სახელი"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:1037
|
|
||||||
msgid "Font Style"
|
|
||||||
msgstr "ფონტის სტილი"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:142
|
|
||||||
msgid "Redo text."
|
|
||||||
msgstr "ტექსტის დაბრუნება."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:144
|
|
||||||
msgid "No text to be redo."
|
|
||||||
msgstr "დასაბრუნებელი ტექსტის გარეშე."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:152
|
|
||||||
msgid "Undo text."
|
|
||||||
msgstr "ტექსტის გაუქმება."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:154
|
|
||||||
msgid "No text to be undo."
|
|
||||||
msgstr "გასაუქმებელი ტექსტის გარეშე."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:244
|
|
||||||
msgid ""
|
|
||||||
"Part highlighting (Ctrl + H)<br>Show a highlight effect on the selected "
|
|
||||||
"part<br>in the live view."
|
|
||||||
msgstr ""
|
|
||||||
"ნაწილის გამოკვეთა (Ctrl + H)<br>ცოცხალ ხედში მონიშნული ნაწილის<br>გამოკვეთის "
|
|
||||||
"ეფექტი."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:256
|
|
||||||
msgid ""
|
|
||||||
"Dummy parts (Ctrl + U)<br>Display virtual images for the swallow "
|
|
||||||
"and<br>spacer parts."
|
|
||||||
msgstr ""
|
|
||||||
"ცარიელი ნაწილები (Ctrl + U)<br>აჩვენებს ვირტუალურ გამოსახულებებს Swallow და "
|
|
||||||
"<br>Spacer ნაწილებისთვის."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:268
|
|
||||||
msgid ""
|
|
||||||
"Wireframes (Ctrl + W)<br>Display wireframes to identify the "
|
|
||||||
"parts<br>boundaries."
|
|
||||||
msgstr ""
|
|
||||||
"მოდელები (Ctrl + W)<br>მოდელების ჩვენება ნაწილების<br>საზღვრების საცნობად."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:280
|
|
||||||
msgid ""
|
|
||||||
"Mirror mode (Ctrl + M)<br>Invert the layout horizontally and review<br>the "
|
|
||||||
"designed layout in RTL(right-to-left)<br>LTR(left-to-right) settings."
|
|
||||||
msgstr ""
|
|
||||||
"სარკის რეჟიმი (Ctrl + M)<br>განლაგების ჰორიზონტალური ინვერსია<br>და მიღებული "
|
|
||||||
"განლაგების მიმოხილვა RTL(მარჯვნიდან მარცხნივ)<br>LTR(მარცხნიდან მარჯვნივ) "
|
|
||||||
"პარამეტრებში."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:348
|
|
||||||
msgid "Save the file (Ctrl + S)<br>Save the current script to a file."
|
|
||||||
msgstr "ფაილის შენახვა (Ctrl + S)<br>მიმდინარე სკრიპტის ფაილში შენახვა."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:357
|
|
||||||
msgid "Undo text (Ctrl + Z)"
|
|
||||||
msgstr "ტექსტის გაუქმება (Ctrl + Z)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:365
|
|
||||||
msgid "Redo text (Ctrl + R)"
|
|
||||||
msgstr "ტექსტის დაბრუნება (Ctrl + R)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:373
|
|
||||||
msgid "Find/Replace (Ctrl + F)<br>Find or replace text."
|
|
||||||
msgstr "პოვნა/ჩანაცვლება (Ctrl + F)<br>იპოვეთ ან ჩაანაცვლეთ ტექსტი."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:383
|
|
||||||
msgid ""
|
|
||||||
"Go to line (Ctrl + L)<br>Open the Go to window to move the cursor<br>line "
|
|
||||||
"position."
|
|
||||||
msgstr ""
|
|
||||||
"ხაზზე გადასვლა (Ctrl + L)<br>გადასვლის განჯრის გახსნა კურსორის<br>სასურველ "
|
|
||||||
"ხაზზე გადასატანად."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:394
|
|
||||||
msgid "Line numbers<br>Display the script line numbers."
|
|
||||||
msgstr "ხაზის ნომრები<br>სკრიპტის ხაზის ნომრების ჩვენება."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:404
|
|
||||||
msgid ""
|
|
||||||
"Insert a code snippet (Ctrl + T)<br>Enventor chooses the best code with "
|
|
||||||
"regards<br>to the current editing context. For instance,<br>if the cursor is "
|
|
||||||
"inside a part section,<br>description code is generated."
|
|
||||||
msgstr ""
|
|
||||||
"კოდის ნაწყვეტის ჩასმა (Ctrl + T)<br>Enventor აირჩევს კოდის საუკეთსო ნაწილს "
|
|
||||||
"მიმდინარე ჩასწორების კონტექსტის გათვალისწინებით.<br>მაგალითად, თუ კურსორი,"
|
|
||||||
"<br>ნაწილის კოდის სექციაშია,<br>გენერირდება აღწერის კოდი."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:418
|
|
||||||
msgid ""
|
|
||||||
"Console box (Alt + Down)<br>Display the console box, which shows the "
|
|
||||||
"EDC<br>build logs, such as error messages. It pops<br>up automatically when "
|
|
||||||
"compilation errors occur."
|
|
||||||
msgstr ""
|
|
||||||
"კონსოლის ფანჯარა (Alt + Down)<br>აჩვენებს კონსოლის ფანჯარა, რომელშიც EDC-ის "
|
|
||||||
"ნახვა შეგეძლებათ, როგორიცაა<br>აგების ჟურნალი და შეცდომები.<br>ის აგების "
|
|
||||||
"შეცდომების დროს ავტომატურად ამოხტება."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:430
|
|
||||||
msgid ""
|
|
||||||
"File browser (F9)<br>Display the file browser, which shows a file list<br>in "
|
|
||||||
"current workspace."
|
|
||||||
msgstr ""
|
|
||||||
"ფაილების ბრაუზერი (F9)<br>ფაილების ბრაუზერის ჩვენება. ს მიმდინარე სამუშაო "
|
|
||||||
"სივრცეში<br>არსებულ ფაილებს აჩვენებს."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:441
|
|
||||||
msgid ""
|
|
||||||
"EDC navigator (F10)<br>Display the EDC navigator, which shows the "
|
|
||||||
"current<br>group hierarchy tree that contains parts,<br>descriptions and "
|
|
||||||
"programs lists."
|
|
||||||
msgstr ""
|
|
||||||
"EDC ნავიგატორი (F10)<br>EDC ნავიგატორი, რომელიც აჩვენებს მიმდინარე<br>ჯგუფის "
|
|
||||||
"იერარქიას, რომელიც ნაწილებს,<br>აღწერებს და პროგრამის სიებს შეიძლება "
|
|
||||||
"შეიცავდეს."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:453
|
|
||||||
msgid ""
|
|
||||||
"File tab (F11)<br>Display the file tab in the bottom area<br>It shows an "
|
|
||||||
"opened file list to switch<br>files quickly."
|
|
||||||
msgstr ""
|
|
||||||
"ფაილის ჩანართი (F11)<br>აჩვენებს ფაილის ჩანართს ქვედა მხარეში<br>ის ჩვენებს "
|
|
||||||
"გახსნილი ფაილების სიას<br>მათ შორის ადგილად გადასართველად."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:467
|
|
||||||
msgid "Enventor menu (Esc)<br>Open the Enventor main menu."
|
|
||||||
msgstr "Enventor-ის მენიუ (Esc)<br>Enventor-ის მთავარი მენიუს გახსნა."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:514
|
|
||||||
msgid "Part highlighting enabled."
|
|
||||||
msgstr "ნაწილის გამოკვეთა ჩართულია."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:516
|
|
||||||
msgid "Part highlighting disabled."
|
|
||||||
msgstr "ნაწილის გამოკვეთა გამორთულია."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:601
|
|
||||||
msgid "Dummy parts enabled."
|
|
||||||
msgstr "უაზრო ნაწილები ჩართულია."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:603
|
|
||||||
msgid "Dummy parts disabled."
|
|
||||||
msgstr "უაზრო ნაწილები გამორთულია."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:625
|
|
||||||
msgid "Wireframes enabled."
|
|
||||||
msgstr "მოდელი ჩართულია."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:627
|
|
||||||
msgid "Wireframes disabled."
|
|
||||||
msgstr "მოდელი გამორთულია."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:650
|
|
||||||
msgid "Mirror mode enabled."
|
|
||||||
msgstr "სარკის რეჟიი ჩართულია."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:652
|
|
||||||
msgid "Mirror mode disabled."
|
|
||||||
msgstr "სარკის რეჟიი გამორთულია."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:706
|
|
||||||
msgid "Insertion of template code is disabled while in Live Edit mode"
|
|
||||||
msgstr "ცოცხალი ჩასწორების რეჟიმში ნიმუშის ჩართვა გათიშულია"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:717
|
|
||||||
#, c-format
|
|
||||||
msgid "Template code inserted, (%s)"
|
|
||||||
msgstr "ნიმუშის კოდი ჩასმულია. (%s)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:723
|
|
||||||
msgid ""
|
|
||||||
"Can't insert template code here. Move the cursor inside the \"Collections,"
|
|
||||||
"Images,Parts,Part,Programs\" scope."
|
|
||||||
msgstr ""
|
|
||||||
"აქ ნიმუშის კოდს ვერ ჩასვამთ. გადაიტანეთ კურსორი \"Collections,Images,Parts,"
|
|
||||||
"Part,Programs\" დიაპაზონში."
|
|
|
@ -1,18 +0,0 @@
|
||||||
|
|
||||||
if get_option('nls')
|
|
||||||
i18n = import('i18n')
|
|
||||||
i18n.gettext(meson.project_name(),
|
|
||||||
args: [
|
|
||||||
'--directory=' + meson.source_root(),
|
|
||||||
'--keyword=_',
|
|
||||||
'--keyword=d_:1',
|
|
||||||
'--keyword=P_:1,2',
|
|
||||||
'--keyword=dP_:1,2',
|
|
||||||
'--keyword=N_',
|
|
||||||
'--keyword=NP_:1,2',
|
|
||||||
'--from-code=UTF-8',
|
|
||||||
'--foreign-user'
|
|
||||||
])
|
|
||||||
config_h.set('HAVE_GETTEXT', '1')
|
|
||||||
dep_intl = cc.find_library('intl', required : false)
|
|
||||||
endif
|
|
423
po/sl.po
423
po/sl.po
|
@ -1,423 +0,0 @@
|
||||||
# SOME DESCRIPTIVE TITLE.
|
|
||||||
# Copyright (C) YEAR Enventor development team
|
|
||||||
# This file is distributed under the same license as the PACKAGE package.
|
|
||||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: enventor 0.9.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
|
|
||||||
"POT-Creation-Date: 2016-09-19 14:56+0200\n"
|
|
||||||
"PO-Revision-Date: 2016-09-21 17:09+0200\n"
|
|
||||||
"Language-Team: \n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"X-Generator: Poedit 1.8.9\n"
|
|
||||||
"Last-Translator: Renato Rener <renato.rener@gmail.com>\n"
|
|
||||||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 "
|
|
||||||
"|| n%100==4 ? 2 : 3);\n"
|
|
||||||
"Language: sl_SI\n"
|
|
||||||
|
|
||||||
#: src/bin/base_gui.c:67
|
|
||||||
#, c-format
|
|
||||||
msgid "%s - Enventor"
|
|
||||||
msgstr "%s - Enventor"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:72
|
|
||||||
msgid "Failed to generate tmp folder!"
|
|
||||||
msgstr "Neuspeh pri ustvarjanju začasne mape!"
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:91 src/bin/config_data.c:104
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot create a config folder \"%s\""
|
|
||||||
msgstr "Ne morem ustvariti nastavitvene mape \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:115
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot save a config file \"%s\""
|
|
||||||
msgstr "Ne morem shraniti nastavitvene datoteke \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:157
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot load a config file \"%s\""
|
|
||||||
msgstr "Ne morem naložiti nastavitvene datoteke \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/config_data.c:165 src/bin/file_mgr.c:193 src/bin/goto.c:136
|
|
||||||
#: src/bin/menu.c:613 src/bin/newfile.c:144 src/bin/panes.c:321
|
|
||||||
#: src/bin/search.c:337 src/bin/setting.c:187 src/bin/statusbar.c:312
|
|
||||||
#: src/bin/text_setting.c:405 src/bin/text_setting.c:456
|
|
||||||
#: src/bin/text_setting.c:487 src/bin/text_setting.c:956 src/bin/tools.c:186
|
|
||||||
msgid "Failed to allocate Memory!"
|
|
||||||
msgstr "Dodeljevanje spomina spodletelo!"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:71
|
|
||||||
msgid "EDC has been changed on the file system."
|
|
||||||
msgstr "EDC je bil spremenjen na datotečnem sistemu."
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:73
|
|
||||||
msgid "Do you want to replace the contents?"
|
|
||||||
msgstr "Ali želite zamenjati vsebino?"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:84
|
|
||||||
msgid "Save As"
|
|
||||||
msgstr "Shrani kot"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:92 src/bin/search.c:407
|
|
||||||
msgid "Replace"
|
|
||||||
msgstr "Zamenjaj"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:98
|
|
||||||
msgid "Ignore"
|
|
||||||
msgstr "Spreglej"
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:157
|
|
||||||
#, c-format
|
|
||||||
msgid "File saved. \"%s\""
|
|
||||||
msgstr "Datoteka shranjena. \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/file_mgr.c:159
|
|
||||||
#, c-format
|
|
||||||
msgid "Already saved. \"%s\""
|
|
||||||
msgstr "Že shranjeno. \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/goto.c:93
|
|
||||||
msgid "Invalid line number"
|
|
||||||
msgstr "Napačno število vrstice"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:142
|
|
||||||
msgid "Enventor Goto Line"
|
|
||||||
msgstr "Enventor Skoči na vrstico"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:146
|
|
||||||
msgid "Go to Line"
|
|
||||||
msgstr "Skoči na vrstico"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:168
|
|
||||||
#, c-format
|
|
||||||
msgid "Enter line number [1..%d]:"
|
|
||||||
msgstr "Vnesi vrstico številka [1..%d]:"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:192 src/bin/menu.c:150
|
|
||||||
msgid "Ok"
|
|
||||||
msgstr "V Redu"
|
|
||||||
|
|
||||||
#: src/bin/goto.c:204 src/bin/search.c:429
|
|
||||||
msgid "Failed to grab key - Escape"
|
|
||||||
msgstr "Zajetje tipke Esc spodletelo"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:1983 src/bin/live_edit.c:2028 src/bin/live_edit.c:2030
|
|
||||||
#: src/bin/main.c:851 src/lib/auto_comp.c:369 src/lib/ctxpopup.c:766
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to grab key - %s"
|
|
||||||
msgstr "Zajetje znaka spodletelo - %s"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2091
|
|
||||||
msgid ""
|
|
||||||
"Double click part to confirm. (Esc = cancel, Direction Key = move item per "
|
|
||||||
"pixel, Ctrl = disable auto-aligning)"
|
|
||||||
msgstr ""
|
|
||||||
"Dvoklikni del za potrditev. (Esc = preklic, Smerna tipka = premikanje en "
|
|
||||||
"predmet na piksel, Ctrl = onemogoči samodejno poravnavo)"
|
|
||||||
|
|
||||||
#: src/bin/live_edit.c:2247
|
|
||||||
msgid "Faild to allocate Memory!"
|
|
||||||
msgstr "Dodeljevanje spomina spodletelo!"
|
|
||||||
|
|
||||||
#: src/bin/main.c:24
|
|
||||||
msgid "Auto Completion Enabled."
|
|
||||||
msgstr "Samodokončanje omogočeno."
|
|
||||||
|
|
||||||
#: src/bin/main.c:25
|
|
||||||
msgid "Auto Completion Disabled."
|
|
||||||
msgstr "Samodokončanje onemogočeno."
|
|
||||||
|
|
||||||
#: src/bin/main.c:34
|
|
||||||
msgid "Auto Indentation Enabled."
|
|
||||||
msgstr "Samozamik omogočen."
|
|
||||||
|
|
||||||
#: src/bin/main.c:35
|
|
||||||
msgid "Auto Indentation Disabled."
|
|
||||||
msgstr "Samozamik onemogočen."
|
|
||||||
|
|
||||||
#: src/bin/main.c:207
|
|
||||||
#, c-format
|
|
||||||
msgid "Font Size: %1.1fx"
|
|
||||||
msgstr "Velikost pisave: %1.1fx"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:137
|
|
||||||
msgid "New File: Choose a template"
|
|
||||||
msgstr "Nova datoteka: izberi predlogo"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:156 src/bin/menu.c:202 src/bin/setting.c:245
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr "Prekliči"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:175
|
|
||||||
msgid "Without save, you will lose last changes!"
|
|
||||||
msgstr "Brez shranitve boste izgubili zadnje spremembe!"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:177
|
|
||||||
msgid "Will you save changes?"
|
|
||||||
msgstr "Ali boste shranili spremembe?"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:188 src/bin/menu.c:466 src/bin/menu.c:582
|
|
||||||
msgid "Save"
|
|
||||||
msgstr "Shrani"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:196
|
|
||||||
msgid "Discard"
|
|
||||||
msgstr "Zavrži"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:324
|
|
||||||
msgid "Choose a file to save"
|
|
||||||
msgstr "Izberite datoteko za shranjevanje"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:351
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to save: %s."
|
|
||||||
msgstr "Neuspeh pri shranjevanju: %s."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:406
|
|
||||||
msgid "Support only .edc file."
|
|
||||||
msgstr "Podpora le za .edc datoteke."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:416
|
|
||||||
msgid "Choose a file to load."
|
|
||||||
msgstr "Izberite datoteko za naložitev."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:427
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to load: %s."
|
|
||||||
msgstr "Neuspeh pri nalaganju: %s."
|
|
||||||
|
|
||||||
#: src/bin/menu.c:458
|
|
||||||
msgid "Save File: Choose a EDC"
|
|
||||||
msgstr "Shrani datoteko: Izberi EDC"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:467 src/bin/menu.c:502
|
|
||||||
msgid "Close"
|
|
||||||
msgstr "Zapri"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:492
|
|
||||||
msgid "Load File: Choose a EDC"
|
|
||||||
msgstr "Naloži datoteko : Izberi EDC"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:501 src/bin/menu.c:586
|
|
||||||
msgid "Load"
|
|
||||||
msgstr "Naloži"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:577
|
|
||||||
msgid "New"
|
|
||||||
msgstr "Nov"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:590 src/bin/setting.c:201
|
|
||||||
msgid "Settings"
|
|
||||||
msgstr "Nastavitve"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:594
|
|
||||||
msgid "Help"
|
|
||||||
msgstr "Pomoč"
|
|
||||||
|
|
||||||
#: src/bin/menu.c:598
|
|
||||||
msgid "Exit"
|
|
||||||
msgstr "Izhod"
|
|
||||||
|
|
||||||
#: src/bin/newfile.c:57 src/bin/newfile.c:82
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot find file! \"%s\""
|
|
||||||
msgstr "Ne najdem datoteke! \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/newfile.c:128
|
|
||||||
#, c-format
|
|
||||||
msgid "Cannot find templates folder! \"%s\""
|
|
||||||
msgstr "Ne najdem mape predlog! \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/search.c:82
|
|
||||||
#, c-format
|
|
||||||
msgid "%d matches replaced"
|
|
||||||
msgstr "%d zadetki zamenjani"
|
|
||||||
|
|
||||||
#: src/bin/search.c:132 src/bin/search.c:194
|
|
||||||
#, c-format
|
|
||||||
msgid "No \"%s\" in the text"
|
|
||||||
msgstr "Ni \"%s\" v besedilu"
|
|
||||||
|
|
||||||
#: src/bin/search.c:233 src/bin/search.c:399
|
|
||||||
msgid "Backward"
|
|
||||||
msgstr "Nazaj"
|
|
||||||
|
|
||||||
#: src/bin/search.c:265 src/bin/search.c:392
|
|
||||||
msgid "Forward"
|
|
||||||
msgstr "Naprej"
|
|
||||||
|
|
||||||
#: src/bin/search.c:343
|
|
||||||
msgid "Enventor Search"
|
|
||||||
msgstr "Enventor Iskanje"
|
|
||||||
|
|
||||||
#: src/bin/search.c:346
|
|
||||||
msgid "Find/Replace"
|
|
||||||
msgstr "Najdi/Zamenjaj"
|
|
||||||
|
|
||||||
#: src/bin/search.c:414
|
|
||||||
msgid "Replace All"
|
|
||||||
msgstr "Zamenjaj vse"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:213
|
|
||||||
msgid "Preferences"
|
|
||||||
msgstr "Prednostne nastavitve"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:215
|
|
||||||
msgid "Text Editor"
|
|
||||||
msgstr "Urejevalnik besedil"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:217
|
|
||||||
msgid "EDC Build"
|
|
||||||
msgstr "EDC izgradnja"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:231
|
|
||||||
msgid "Apply"
|
|
||||||
msgstr "Uveljavi"
|
|
||||||
|
|
||||||
#: src/bin/setting.c:238
|
|
||||||
msgid "Reset"
|
|
||||||
msgstr "Obnovi"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:438
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to open file \"%s\""
|
|
||||||
msgstr "Neuspeh pri odpiranju datoteke \"%s\""
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:759
|
|
||||||
msgid "Double click a keyword to change its color :"
|
|
||||||
msgstr "Dvoklikni ključno besedo za spremembo njene barve :"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:796
|
|
||||||
msgid "Font Size "
|
|
||||||
msgstr "Velikost pisave:"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:829
|
|
||||||
msgid "Font Name"
|
|
||||||
msgstr "Ime pisave"
|
|
||||||
|
|
||||||
#: src/bin/text_setting.c:856
|
|
||||||
msgid "Font Style"
|
|
||||||
msgstr "Slog pisave:"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:134
|
|
||||||
msgid "Redo text."
|
|
||||||
msgstr "Ponovno uveljavi besedilo."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:136
|
|
||||||
msgid "No text to be redo."
|
|
||||||
msgstr "Ni besedila za ponovno uveljavitev."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:144
|
|
||||||
msgid "Undo text."
|
|
||||||
msgstr "Razveljavi besedilo."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:146
|
|
||||||
msgid "No text to be undo."
|
|
||||||
msgstr "Ni besedila za razveljavitev."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:201
|
|
||||||
msgid "Part Highlighting (Ctrl + H)"
|
|
||||||
msgstr "Poudarjanje dela (Ctrl + H)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:208
|
|
||||||
msgid "Dummy Parts (Ctrl + W)"
|
|
||||||
msgstr "Butasti deli (Ctrl + W)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:217
|
|
||||||
msgid "Mirror Mode (Ctrl + M)"
|
|
||||||
msgstr "Način ogledala (Ctrl + M)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:251
|
|
||||||
msgid "Save File (Ctrl + S)"
|
|
||||||
msgstr "Shrani datoteko (Ctrl + S)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:257
|
|
||||||
msgid "Undo Text (Ctrl + Z)"
|
|
||||||
msgstr "Razveljavi besedilo (Ctrl + Z)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:263
|
|
||||||
msgid "Redo Text (Ctrl + R)"
|
|
||||||
msgstr "Ponovno uveljavi besedilo (Ctrl + R)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:269
|
|
||||||
msgid "Find/Replace (Ctrl + F)"
|
|
||||||
msgstr "Najdi/Zamenjaj (Ctrl + F)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:276
|
|
||||||
msgid "Goto Lines (Ctrl + L)"
|
|
||||||
msgstr "Pojdi na vrstice (Ctrl + L)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:283
|
|
||||||
msgid "Line Numbers (F5)"
|
|
||||||
msgstr "Številke vrstic (F5)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:291
|
|
||||||
msgid "Insert Template (Ctrl + T)"
|
|
||||||
msgstr "Vstavi predlogo (Ctrl + T)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:298
|
|
||||||
msgid "Console Box (Alt + Down)"
|
|
||||||
msgstr "Konzolna škatla (Alt + Down)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:305
|
|
||||||
msgid "File Browser (F9)"
|
|
||||||
msgstr "Brskalnik datotek (F9)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:312
|
|
||||||
msgid "EDC Navigator (F10)"
|
|
||||||
msgstr "EDC Navigator (F10)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:319
|
|
||||||
msgid "Status (F11)"
|
|
||||||
msgstr "Stanje (F11)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:326
|
|
||||||
msgid "Enventor Menu (Esc)"
|
|
||||||
msgstr "Enventor Meni (Esc)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:371
|
|
||||||
msgid "Part Highlighting Enabled."
|
|
||||||
msgstr "Omogočeno poudarjanje delov."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:373
|
|
||||||
msgid "Part Highlighting Disabled."
|
|
||||||
msgstr "Onemogočeno poudarjanje delov."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:458
|
|
||||||
msgid "Dummy Parts Enabled."
|
|
||||||
msgstr "Omogočeni butasti deli."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:460
|
|
||||||
msgid "Dummy Parts Disabled."
|
|
||||||
msgstr "Onemogočeni butasti deli."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:483
|
|
||||||
msgid "Mirror Mode Enabled."
|
|
||||||
msgstr "Omogočen način ogledala."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:485
|
|
||||||
msgid "Mirror Mode Disabled."
|
|
||||||
msgstr "Onemogočen način ogledala."
|
|
||||||
|
|
||||||
#: src/bin/tools.c:539
|
|
||||||
msgid "Insertion of template code is disabled while in Live Edit mode"
|
|
||||||
msgstr ""
|
|
||||||
"Med načinom urejanja v živo, je vstavljanje kode predloge onemogočeno"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:548
|
|
||||||
#, c-format
|
|
||||||
msgid "Template code inserted, (%s)"
|
|
||||||
msgstr "Vstavljena koda predloge, (%s)"
|
|
||||||
|
|
||||||
#: src/bin/tools.c:554
|
|
||||||
msgid ""
|
|
||||||
"Can't insert template code here. Move the cursor inside the \"Collections,"
|
|
||||||
"Images,Parts,Part,Programs\" scope."
|
|
||||||
msgstr ""
|
|
||||||
"Tukaj ne morem vstaviti kode predloge. Premaknite kurzor znotraj okvirja "
|
|
||||||
"\"Zbirke,Slike,Deli,Del,Programi\"."
|
|
|
@ -105,20 +105,7 @@ base_file_tab_toggle(Eina_Bool toggle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void base_file_browser_toggle(Eina_Bool toggle)
|
||||||
file_browser_hide_done(void *data, Evas_Object *obj EINA_UNUSED,
|
|
||||||
const char *emission EINA_UNUSED,
|
|
||||||
const char *source EINA_UNUSED)
|
|
||||||
{
|
|
||||||
base_data *bd = data;
|
|
||||||
elm_object_signal_callback_del(bd->layout,
|
|
||||||
"elm,state,file_browser_hide,done", "",
|
|
||||||
file_browser_hide_done);
|
|
||||||
file_browser_hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
base_file_browser_toggle(Eina_Bool toggle)
|
|
||||||
{
|
{
|
||||||
base_data *bd = g_bd;
|
base_data *bd = g_bd;
|
||||||
EINA_SAFETY_ON_NULL_RETURN(bd);
|
EINA_SAFETY_ON_NULL_RETURN(bd);
|
||||||
|
@ -126,38 +113,17 @@ base_file_browser_toggle(Eina_Bool toggle)
|
||||||
if (toggle) config_file_browser_set(!config_file_browser_get());
|
if (toggle) config_file_browser_set(!config_file_browser_get());
|
||||||
|
|
||||||
if (config_file_browser_get())
|
if (config_file_browser_get())
|
||||||
{
|
|
||||||
elm_object_signal_emit(bd->layout, "elm,state,file_browser,show", "");
|
elm_object_signal_emit(bd->layout, "elm,state,file_browser,show", "");
|
||||||
file_browser_show();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
elm_object_signal_callback_add(bd->layout,
|
|
||||||
"elm,state,file_browser_hide,done", "",
|
|
||||||
file_browser_hide_done, bd);
|
|
||||||
elm_object_signal_emit(bd->layout, "elm,state,file_browser,hide", "");
|
elm_object_signal_emit(bd->layout, "elm,state,file_browser,hide", "");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void base_edc_navigator_deselect(void)
|
||||||
base_edc_navigator_deselect(void)
|
|
||||||
{
|
{
|
||||||
if (config_edc_navigator_get())
|
if (config_edc_navigator_get())
|
||||||
edc_navigator_deselect();
|
edc_navigator_deselect();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
edc_navigator_hide_done(void *data, Evas_Object *obj EINA_UNUSED,
|
|
||||||
const char *emission EINA_UNUSED,
|
|
||||||
const char *source EINA_UNUSED)
|
|
||||||
{
|
|
||||||
base_data *bd = data;
|
|
||||||
elm_object_signal_callback_del(bd->layout,
|
|
||||||
"elm,state,edc_navigator_hide,done", "",
|
|
||||||
edc_navigator_hide_done);
|
|
||||||
edc_navigator_hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
void base_edc_navigator_toggle(Eina_Bool toggle)
|
void base_edc_navigator_toggle(Eina_Bool toggle)
|
||||||
{
|
{
|
||||||
base_data *bd = g_bd;
|
base_data *bd = g_bd;
|
||||||
|
@ -169,13 +135,9 @@ void base_edc_navigator_toggle(Eina_Bool toggle)
|
||||||
{
|
{
|
||||||
base_edc_navigator_group_update();
|
base_edc_navigator_group_update();
|
||||||
elm_object_signal_emit(bd->layout, "elm,state,edc_navigator,show", "");
|
elm_object_signal_emit(bd->layout, "elm,state,edc_navigator,show", "");
|
||||||
edc_navigator_show();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
elm_object_signal_callback_add(bd->layout,
|
|
||||||
"elm,state,edc_navigator_hide,done", "",
|
|
||||||
edc_navigator_hide_done, bd);
|
|
||||||
elm_object_signal_emit(bd->layout, "elm,state,edc_navigator,hide", "");
|
elm_object_signal_emit(bd->layout, "elm,state,edc_navigator,hide", "");
|
||||||
edc_navigator_deselect();
|
edc_navigator_deselect();
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,6 @@ typedef struct config_s
|
||||||
float font_scale;
|
float font_scale;
|
||||||
double editor_size;
|
double editor_size;
|
||||||
double console_size;
|
double console_size;
|
||||||
double file_browser_size;
|
|
||||||
double edc_navigator_size;
|
|
||||||
|
|
||||||
void (*update_cb)(void *data);
|
void (*update_cb)(void *data);
|
||||||
void *update_cb_data;
|
void *update_cb_data;
|
||||||
|
@ -186,8 +184,6 @@ config_load(void)
|
||||||
cd->win_size_h = WIN_DEFAULT_H;
|
cd->win_size_h = WIN_DEFAULT_H;
|
||||||
cd->editor_size = DEFAULT_EDITOR_SIZE;
|
cd->editor_size = DEFAULT_EDITOR_SIZE;
|
||||||
cd->console_size = DEFAULT_CONSOLE_SIZE;
|
cd->console_size = DEFAULT_CONSOLE_SIZE;
|
||||||
cd->file_browser_size = DEFAULT_FILE_BROWSER_SIZE;
|
|
||||||
cd->edc_navigator_size = DEFAULT_EDC_NAVIGATOR_SIZE;
|
|
||||||
cd->stats_bar = EINA_TRUE;
|
cd->stats_bar = EINA_TRUE;
|
||||||
cd->linenumber = EINA_TRUE;
|
cd->linenumber = EINA_TRUE;
|
||||||
cd->part_highlight = EINA_TRUE;
|
cd->part_highlight = EINA_TRUE;
|
||||||
|
@ -291,10 +287,6 @@ eddc_init(void)
|
||||||
editor_size, EET_T_DOUBLE);
|
editor_size, EET_T_DOUBLE);
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "console_size",
|
EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "console_size",
|
||||||
console_size, EET_T_DOUBLE);
|
console_size, EET_T_DOUBLE);
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "file_browser_size",
|
|
||||||
file_browser_size, EET_T_DOUBLE);
|
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "edc_navigator_size",
|
|
||||||
edc_navigator_size, EET_T_DOUBLE);
|
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "view_size_w",
|
EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "view_size_w",
|
||||||
view_size_w, EET_T_INT);
|
view_size_w, EET_T_INT);
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "view_size_h",
|
EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "view_size_h",
|
||||||
|
@ -1068,24 +1060,6 @@ config_file_browser_get(void)
|
||||||
return cd->file_browser;
|
return cd->file_browser;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
config_file_browser_size_set(double size)
|
|
||||||
{
|
|
||||||
config_data *cd = g_cd;
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN(cd);
|
|
||||||
|
|
||||||
cd->file_browser_size = size;
|
|
||||||
}
|
|
||||||
|
|
||||||
double
|
|
||||||
config_file_browser_size_get(void)
|
|
||||||
{
|
|
||||||
config_data *cd = g_cd;
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(cd, 0.0);
|
|
||||||
|
|
||||||
return cd->file_browser_size;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
config_edc_navigator_set(Eina_Bool enabled)
|
config_edc_navigator_set(Eina_Bool enabled)
|
||||||
{
|
{
|
||||||
|
@ -1103,21 +1077,3 @@ config_edc_navigator_get(void)
|
||||||
|
|
||||||
return cd->edc_navigator;
|
return cd->edc_navigator;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
config_edc_navigator_size_set(double size)
|
|
||||||
{
|
|
||||||
config_data *cd = g_cd;
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN(cd);
|
|
||||||
|
|
||||||
cd->edc_navigator_size = size;
|
|
||||||
}
|
|
||||||
|
|
||||||
double
|
|
||||||
config_edc_navigator_size_get(void)
|
|
||||||
{
|
|
||||||
config_data *cd = g_cd;
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(cd, 0.0);
|
|
||||||
|
|
||||||
return cd->edc_navigator_size;
|
|
||||||
}
|
|
||||||
|
|
|
@ -25,8 +25,6 @@ error_word_select(Evas_Object *console)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (elm_entry_is_empty(console)) return;
|
|
||||||
|
|
||||||
//Convert console text including markup text to the plain text
|
//Convert console text including markup text to the plain text
|
||||||
const char *markup_text = elm_entry_entry_get(console);
|
const char *markup_text = elm_entry_entry_get(console);
|
||||||
if (!markup_text) return;
|
if (!markup_text) return;
|
||||||
|
@ -81,12 +79,6 @@ end:
|
||||||
static void
|
static void
|
||||||
set_console_error_msg(Evas_Object *console, const char *src)
|
set_console_error_msg(Evas_Object *console, const char *src)
|
||||||
{
|
{
|
||||||
if (!src || !strcmp(src, ""))
|
|
||||||
{
|
|
||||||
elm_entry_entry_set(console, NULL);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* We cut error messages since it contains unnecessary information.
|
/* We cut error messages since it contains unnecessary information.
|
||||||
Most of the time, first one line has a practical information. */
|
Most of the time, first one line has a practical information. */
|
||||||
const char *new_line = "<br/>";
|
const char *new_line = "<br/>";
|
||||||
|
|
|
@ -733,7 +733,7 @@ states_update(navi_data *nd, part_it *pit)
|
||||||
sit->tag.idx = idx;
|
sit->tag.idx = idx;
|
||||||
//Parsing "default" "0.00". We don't take care 0.00 in the state name.
|
//Parsing "default" "0.00". We don't take care 0.00 in the state name.
|
||||||
const char *brk = strpbrk(name, " ");
|
const char *brk = strpbrk(name, " ");
|
||||||
if (brk) sit->name = eina_strndup(name, brk - name);
|
if (brk) sit->name = strndup(name, brk - name);
|
||||||
else sit->name = strdup(name);
|
else sit->name = strdup(name);
|
||||||
|
|
||||||
sit->pit = pit;
|
sit->pit = pit;
|
||||||
|
@ -1351,44 +1351,6 @@ gl_contract_request_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
dragable_bar_mouse_up_cb(void *data, Evas *e EINA_UNUSED,
|
|
||||||
Evas_Object *obj EINA_UNUSED,
|
|
||||||
void *event_info EINA_UNUSED)
|
|
||||||
{
|
|
||||||
Evas_Object *main_layout = data;
|
|
||||||
if (!main_layout) return;
|
|
||||||
|
|
||||||
double w;
|
|
||||||
edje_object_part_drag_value_get
|
|
||||||
(elm_layout_edje_get(main_layout), "elm.bar.right", &w, NULL);
|
|
||||||
if (w > 0.99)
|
|
||||||
{
|
|
||||||
config_edc_navigator_set(EINA_FALSE);
|
|
||||||
tools_edc_navigator_update(EINA_FALSE);
|
|
||||||
config_edc_navigator_size_set(0.0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
config_edc_navigator_size_set(w);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
dragable_bar_mouse_down_cb(void *data, Evas *e EINA_UNUSED,
|
|
||||||
Evas_Object *obj EINA_UNUSED,
|
|
||||||
void *event_info EINA_UNUSED)
|
|
||||||
{
|
|
||||||
Evas_Object *main_layout = data;
|
|
||||||
if (!main_layout) return;
|
|
||||||
|
|
||||||
double w;
|
|
||||||
edje_object_part_drag_value_get
|
|
||||||
(elm_layout_edje_get(main_layout), "elm.bar.right", &w, NULL);
|
|
||||||
if (w > 0.99)
|
|
||||||
{
|
|
||||||
config_edc_navigator_set(EINA_TRUE);
|
|
||||||
tools_edc_navigator_update(EINA_FALSE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Externally accessible calls */
|
/* Externally accessible calls */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1574,21 +1536,9 @@ edc_navigator_init(Evas_Object *parent)
|
||||||
|
|
||||||
nd->program_itc = itc;
|
nd->program_itc = itc;
|
||||||
|
|
||||||
//Dragable Bar
|
|
||||||
Evas_Object *bar = evas_object_rectangle_add(evas_object_evas_get(parent));
|
|
||||||
evas_object_color_set(bar, 0, 0, 0, 0);
|
|
||||||
evas_object_event_callback_add(bar, EVAS_CALLBACK_MOUSE_DOWN,
|
|
||||||
dragable_bar_mouse_down_cb, parent);
|
|
||||||
evas_object_event_callback_add(bar, EVAS_CALLBACK_MOUSE_UP,
|
|
||||||
dragable_bar_mouse_up_cb, parent);
|
|
||||||
elm_object_part_content_set(parent, "bar_right", bar);
|
|
||||||
|
|
||||||
nd->base_layout = base_layout;
|
nd->base_layout = base_layout;
|
||||||
nd->genlist = genlist;
|
nd->genlist = genlist;
|
||||||
|
|
||||||
if (config_edc_navigator_get())
|
|
||||||
config_edc_navigator_size_set(config_edc_navigator_size_get());
|
|
||||||
|
|
||||||
return base_layout;
|
return base_layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1635,28 +1585,3 @@ edc_navigator_tools_visible_set(Eina_Bool visible)
|
||||||
else
|
else
|
||||||
elm_object_signal_emit(nd->base_layout, "elm,state,tools,hide", "");
|
elm_object_signal_emit(nd->base_layout, "elm,state,tools,hide", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
edc_navigator_show()
|
|
||||||
{
|
|
||||||
navi_data *nd = g_nd;
|
|
||||||
if (!nd) return;
|
|
||||||
|
|
||||||
Evas_Object *main_layout = evas_object_smart_parent_get(nd->base_layout);
|
|
||||||
if (!main_layout) return;
|
|
||||||
|
|
||||||
double w = config_edc_navigator_size_get();
|
|
||||||
edje_object_part_drag_value_set(main_layout, "elm.bar.right", w, 0.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
edc_navigator_hide()
|
|
||||||
{
|
|
||||||
navi_data *nd = g_nd;
|
|
||||||
if (!nd) return;
|
|
||||||
|
|
||||||
Evas_Object *main_layout = evas_object_smart_parent_get(nd->base_layout);
|
|
||||||
if (!main_layout) return;
|
|
||||||
|
|
||||||
edje_object_part_drag_value_set(main_layout, "elm.bar.right", 1.0, 0.0);
|
|
||||||
}
|
|
||||||
|
|
|
@ -624,44 +624,6 @@ show_all_check_changed_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
dragable_bar_mouse_up_cb(void *data, Evas *e EINA_UNUSED,
|
|
||||||
Evas_Object *obj EINA_UNUSED,
|
|
||||||
void *event_info EINA_UNUSED)
|
|
||||||
{
|
|
||||||
Evas_Object *main_layout = data;
|
|
||||||
if (!main_layout) return;
|
|
||||||
|
|
||||||
double w;
|
|
||||||
edje_object_part_drag_value_get
|
|
||||||
(elm_layout_edje_get(main_layout), "elm.bar.left", &w, NULL);
|
|
||||||
if (w < 0.01)
|
|
||||||
{
|
|
||||||
config_file_browser_set(EINA_FALSE);
|
|
||||||
tools_file_browser_update(EINA_FALSE);
|
|
||||||
config_file_browser_size_set(0.0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
config_file_browser_size_set(w);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
dragable_bar_mouse_down_cb(void *data, Evas *e EINA_UNUSED,
|
|
||||||
Evas_Object *obj EINA_UNUSED,
|
|
||||||
void *event_info EINA_UNUSED)
|
|
||||||
{
|
|
||||||
Evas_Object *main_layout = data;
|
|
||||||
if (!main_layout) return;
|
|
||||||
|
|
||||||
double w;
|
|
||||||
edje_object_part_drag_value_get
|
|
||||||
(elm_layout_edje_get(main_layout), "elm.bar.left", &w, NULL);
|
|
||||||
if (w < 0.01)
|
|
||||||
{
|
|
||||||
config_file_browser_set(EINA_TRUE);
|
|
||||||
tools_file_browser_update(EINA_FALSE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Externally accessible calls */
|
/* Externally accessible calls */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -810,23 +772,11 @@ file_browser_init(Evas_Object *parent)
|
||||||
search_itc->func.content_get = gl_search_content_get_cb;
|
search_itc->func.content_get = gl_search_content_get_cb;
|
||||||
bd->search_itc = search_itc;
|
bd->search_itc = search_itc;
|
||||||
|
|
||||||
//Dragable Bar
|
|
||||||
Evas_Object *bar = evas_object_rectangle_add(evas_object_evas_get(parent));
|
|
||||||
evas_object_color_set(bar, 0, 0, 0, 0);
|
|
||||||
evas_object_event_callback_add(bar, EVAS_CALLBACK_MOUSE_DOWN,
|
|
||||||
dragable_bar_mouse_down_cb, parent);
|
|
||||||
evas_object_event_callback_add(bar, EVAS_CALLBACK_MOUSE_UP,
|
|
||||||
dragable_bar_mouse_up_cb, parent);
|
|
||||||
elm_object_part_content_set(parent, "bar_left", bar);
|
|
||||||
|
|
||||||
bd->base_layout = base_layout;
|
bd->base_layout = base_layout;
|
||||||
bd->search_entry = search_entry;
|
bd->search_entry = search_entry;
|
||||||
bd->genlist = genlist;
|
bd->genlist = genlist;
|
||||||
bd->show_all_check = show_all_check;
|
bd->show_all_check = show_all_check;
|
||||||
|
|
||||||
if (config_file_browser_get())
|
|
||||||
config_file_browser_size_set(config_file_browser_size_get());
|
|
||||||
|
|
||||||
elm_object_disabled_set(base_layout, EINA_TRUE);
|
elm_object_disabled_set(base_layout, EINA_TRUE);
|
||||||
|
|
||||||
return base_layout;
|
return base_layout;
|
||||||
|
@ -973,28 +923,3 @@ file_browser_selected_file_main_set(void)
|
||||||
config_input_path_set(file->path);
|
config_input_path_set(file->path);
|
||||||
elm_genlist_realized_items_update(bd->genlist);
|
elm_genlist_realized_items_update(bd->genlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
file_browser_show()
|
|
||||||
{
|
|
||||||
brows_data *bd = g_bd;
|
|
||||||
if (!bd) return;
|
|
||||||
|
|
||||||
Evas_Object *main_layout = evas_object_smart_parent_get(bd->base_layout);
|
|
||||||
if (!main_layout) return;
|
|
||||||
|
|
||||||
double w = config_file_browser_size_get();
|
|
||||||
edje_object_part_drag_value_set(main_layout, "elm.bar.left", w, 0.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
file_browser_hide()
|
|
||||||
{
|
|
||||||
brows_data *bd = g_bd;
|
|
||||||
if (!bd) return;
|
|
||||||
|
|
||||||
Evas_Object *main_layout = evas_object_smart_parent_get(bd->base_layout);
|
|
||||||
if (!main_layout) return;
|
|
||||||
|
|
||||||
edje_object_part_drag_value_set(main_layout, "elm.bar.left", 0.0, 0.0);
|
|
||||||
}
|
|
||||||
|
|
|
@ -397,7 +397,7 @@ calc_relative_info(live_data *ld)
|
||||||
ld->rel_to_info.align_x = 0.0;
|
ld->rel_to_info.align_x = 0.0;
|
||||||
ld->rel_to_info.rel2_x = ld->rel_to_info.rel1_x;
|
ld->rel_to_info.rel2_x = ld->rel_to_info.rel1_x;
|
||||||
free(ld->rel_to_info.rel2_x_part);
|
free(ld->rel_to_info.rel2_x_part);
|
||||||
ld->rel_to_info.rel2_x_part = eina_strndup(ld->rel_to_info.rel1_x_part,
|
ld->rel_to_info.rel2_x_part = strndup(ld->rel_to_info.rel1_x_part,
|
||||||
strlen(ld->rel_to_info.rel1_x_part));
|
strlen(ld->rel_to_info.rel1_x_part));
|
||||||
}
|
}
|
||||||
else if (ld->rel_to_info.rel2_x_part)
|
else if (ld->rel_to_info.rel2_x_part)
|
||||||
|
@ -405,7 +405,7 @@ calc_relative_info(live_data *ld)
|
||||||
ld->rel_to_info.align_x = 1.0;
|
ld->rel_to_info.align_x = 1.0;
|
||||||
ld->rel_to_info.rel1_x = ld->rel_to_info.rel2_x;
|
ld->rel_to_info.rel1_x = ld->rel_to_info.rel2_x;
|
||||||
free(ld->rel_to_info.rel1_x_part);
|
free(ld->rel_to_info.rel1_x_part);
|
||||||
ld->rel_to_info.rel1_x_part = eina_strndup(ld->rel_to_info.rel2_x_part,
|
ld->rel_to_info.rel1_x_part = strndup(ld->rel_to_info.rel2_x_part,
|
||||||
strlen(ld->rel_to_info.rel2_x_part));
|
strlen(ld->rel_to_info.rel2_x_part));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -433,7 +433,7 @@ calc_relative_info(live_data *ld)
|
||||||
ld->rel_to_info.align_y = 0.0;
|
ld->rel_to_info.align_y = 0.0;
|
||||||
ld->rel_to_info.rel2_y = ld->rel_to_info.rel1_y;
|
ld->rel_to_info.rel2_y = ld->rel_to_info.rel1_y;
|
||||||
free(ld->rel_to_info.rel2_y_part);
|
free(ld->rel_to_info.rel2_y_part);
|
||||||
ld->rel_to_info.rel2_y_part = eina_strndup(ld->rel_to_info.rel1_y_part,
|
ld->rel_to_info.rel2_y_part = strndup(ld->rel_to_info.rel1_y_part,
|
||||||
strlen(ld->rel_to_info.rel1_y_part));
|
strlen(ld->rel_to_info.rel1_y_part));
|
||||||
}
|
}
|
||||||
else if (ld->rel_to_info.rel2_y_part)
|
else if (ld->rel_to_info.rel2_y_part)
|
||||||
|
@ -441,7 +441,7 @@ calc_relative_info(live_data *ld)
|
||||||
ld->rel_to_info.align_y = 1.0;
|
ld->rel_to_info.align_y = 1.0;
|
||||||
ld->rel_to_info.rel1_y = ld->rel_to_info.rel2_y;
|
ld->rel_to_info.rel1_y = ld->rel_to_info.rel2_y;
|
||||||
free(ld->rel_to_info.rel1_y_part);
|
free(ld->rel_to_info.rel1_y_part);
|
||||||
ld->rel_to_info.rel1_y_part = eina_strndup(ld->rel_to_info.rel2_y_part,
|
ld->rel_to_info.rel1_y_part = strndup(ld->rel_to_info.rel2_y_part,
|
||||||
strlen(ld->rel_to_info.rel2_y_part));
|
strlen(ld->rel_to_info.rel2_y_part));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -525,7 +525,7 @@ keygrabber_key_up_cb(void *data, Evas *e EINA_UNUSED,
|
||||||
ld->ctrl_pressed = EINA_FALSE;
|
ld->ctrl_pressed = EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Evas_Coord_Point
|
Evas_Coord_Point
|
||||||
calc_ctrl_pt_auto_align_pos(live_data *ld, int cursor_x, int cursor_y,
|
calc_ctrl_pt_auto_align_pos(live_data *ld, int cursor_x, int cursor_y,
|
||||||
int align_in, int *align_out)
|
int align_in, int *align_out)
|
||||||
{
|
{
|
||||||
|
@ -1249,7 +1249,7 @@ rel_to_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
(ld->last_cp == Ctrl_Pt_Left))
|
(ld->last_cp == Ctrl_Pt_Left))
|
||||||
{
|
{
|
||||||
free(ld->rel_to_info.rel1_x_part);
|
free(ld->rel_to_info.rel1_x_part);
|
||||||
ld->rel_to_info.rel1_x_part = eina_strndup(rel_data->part_name,
|
ld->rel_to_info.rel1_x_part = strndup(rel_data->part_name,
|
||||||
strlen(rel_data->part_name));
|
strlen(rel_data->part_name));
|
||||||
ld->rel_to_info.rel1_x = rel_data->rel_x;
|
ld->rel_to_info.rel1_x = rel_data->rel_x;
|
||||||
}
|
}
|
||||||
|
@ -1259,7 +1259,7 @@ rel_to_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
(ld->last_cp == Ctrl_Pt_Right))
|
(ld->last_cp == Ctrl_Pt_Right))
|
||||||
{
|
{
|
||||||
free(ld->rel_to_info.rel2_x_part);
|
free(ld->rel_to_info.rel2_x_part);
|
||||||
ld->rel_to_info.rel2_x_part = eina_strndup(rel_data->part_name,
|
ld->rel_to_info.rel2_x_part = strndup(rel_data->part_name,
|
||||||
strlen(rel_data->part_name));
|
strlen(rel_data->part_name));
|
||||||
ld->rel_to_info.rel2_x = rel_data->rel_x;
|
ld->rel_to_info.rel2_x = rel_data->rel_x;
|
||||||
}
|
}
|
||||||
|
@ -1284,7 +1284,7 @@ rel_to_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
(ld->last_cp == Ctrl_Pt_Top))
|
(ld->last_cp == Ctrl_Pt_Top))
|
||||||
{
|
{
|
||||||
free(ld->rel_to_info.rel1_y_part);
|
free(ld->rel_to_info.rel1_y_part);
|
||||||
ld->rel_to_info.rel1_y_part = eina_strndup(rel_data->part_name,
|
ld->rel_to_info.rel1_y_part = strndup(rel_data->part_name,
|
||||||
strlen(rel_data->part_name));
|
strlen(rel_data->part_name));
|
||||||
ld->rel_to_info.rel1_y = rel_data->rel_y;
|
ld->rel_to_info.rel1_y = rel_data->rel_y;
|
||||||
}
|
}
|
||||||
|
@ -1294,7 +1294,7 @@ rel_to_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
(ld->last_cp == Ctrl_Pt_Bottom))
|
(ld->last_cp == Ctrl_Pt_Bottom))
|
||||||
{
|
{
|
||||||
free(ld->rel_to_info.rel2_y_part);
|
free(ld->rel_to_info.rel2_y_part);
|
||||||
ld->rel_to_info.rel2_y_part = eina_strndup(rel_data->part_name,
|
ld->rel_to_info.rel2_y_part = strndup(rel_data->part_name,
|
||||||
strlen(rel_data->part_name));
|
strlen(rel_data->part_name));
|
||||||
ld->rel_to_info.rel2_y = rel_data->rel_y;
|
ld->rel_to_info.rel2_y = rel_data->rel_y;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
# include <libintl.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Ecore_Getopt.h>
|
#include <Ecore_Getopt.h>
|
||||||
#include <Eio.h>
|
#include <Eio.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
@ -259,7 +255,7 @@ args_dispatch(int argc, char **argv,
|
||||||
static const Ecore_Getopt optdesc = {
|
static const Ecore_Getopt optdesc = {
|
||||||
PACKAGE_NAME,
|
PACKAGE_NAME,
|
||||||
ENVENTOR_USAGE,
|
ENVENTOR_USAGE,
|
||||||
PACKAGE_VERSION,
|
VERSION,
|
||||||
ENVENTOR_COPYRIGHT,
|
ENVENTOR_COPYRIGHT,
|
||||||
ENVENTOR_LICENSE,
|
ENVENTOR_LICENSE,
|
||||||
ENVENTOR_INFO,
|
ENVENTOR_INFO,
|
||||||
|
@ -399,7 +395,7 @@ config_data_set(int argc, char **argv, Eina_Bool *default_edc,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
elm_setup(void)
|
elm_setup()
|
||||||
{
|
{
|
||||||
elm_need_efreet();
|
elm_need_efreet();
|
||||||
elm_config_profile_set("standard");
|
elm_config_profile_set("standard");
|
||||||
|
@ -635,7 +631,8 @@ enventor_setup(app_data *ad)
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
alt_func(Evas_Event_Key_Down *event)
|
alt_func(Evas_Event_Key_Down *event)
|
||||||
{
|
{
|
||||||
if (!evas_key_modifier_is_set(event->modifiers, "Alt"))
|
if (evas_key_modifier_is_set(event->modifiers, "Shift") ||
|
||||||
|
evas_key_modifier_is_set(event->modifiers, "Ctrl"))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
||||||
//Full Edit View
|
//Full Edit View
|
||||||
|
@ -669,7 +666,8 @@ alt_func(Evas_Event_Key_Down *event)
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
ctrl_func(Evas_Event_Key_Down *event)
|
ctrl_func(Evas_Event_Key_Down *event)
|
||||||
{
|
{
|
||||||
if (!evas_key_modifier_is_set(event->modifiers, "Control"))
|
if (evas_key_modifier_is_set(event->modifiers, "Shift") ||
|
||||||
|
evas_key_modifier_is_set(event->modifiers, "Alt"))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
||||||
//Save
|
//Save
|
||||||
|
@ -853,7 +851,7 @@ keygrabber_key_down_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
statusbar_set(void)
|
statusbar_set()
|
||||||
{
|
{
|
||||||
Evas_Object *obj = stats_init(base_layout_get());
|
Evas_Object *obj = stats_init(base_layout_get());
|
||||||
elm_object_part_content_set(base_layout_get(), "elm.swallow.statusbar", obj);
|
elm_object_part_content_set(base_layout_get(), "elm.swallow.statusbar", obj);
|
||||||
|
@ -864,7 +862,7 @@ static void
|
||||||
keygrabber_init(app_data *ad)
|
keygrabber_init(app_data *ad)
|
||||||
{
|
{
|
||||||
Evas *e = evas_object_evas_get(base_enventor_get());
|
Evas *e = evas_object_evas_get(base_enventor_get());
|
||||||
ad->keygrabber = base_enventor_get();
|
ad->keygrabber = evas_object_rectangle_add(e);
|
||||||
evas_object_event_callback_add(ad->keygrabber, EVAS_CALLBACK_KEY_DOWN,
|
evas_object_event_callback_add(ad->keygrabber, EVAS_CALLBACK_KEY_DOWN,
|
||||||
keygrabber_key_down_cb, NULL);
|
keygrabber_key_down_cb, NULL);
|
||||||
#define GRAB_ADD(key, modifier) \
|
#define GRAB_ADD(key, modifier) \
|
||||||
|
@ -936,7 +934,7 @@ enventor_lock_create(void)
|
||||||
|
|
||||||
//Exception 2
|
//Exception 2
|
||||||
//Create temp directory if it doesn't exist.
|
//Create temp directory if it doesn't exist.
|
||||||
if (!ecore_file_is_dir(tmpdir))
|
if (!ecore_file_path_dir_exists(tmpdir))
|
||||||
{
|
{
|
||||||
Eina_Bool success = ecore_file_mkdir(tmpdir);
|
Eina_Bool success = ecore_file_mkdir(tmpdir);
|
||||||
if (!success)
|
if (!success)
|
||||||
|
@ -973,7 +971,7 @@ enventor_lock_create(void)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
hMutex = CreateMutex(NULL, FALSE, ENVENTOR_NAME);
|
hMutex = CreateMutex(NULL, FALSE, ENVENTOR_NAME);
|
||||||
|
|
||||||
HANDLE handle = CreateFile(buf, GENERIC_READ, 0, NULL, CREATE_NEW,
|
HANDLE handle = CreateFile(buf, GENERIC_READ, NULL, NULL, CREATE_NEW,
|
||||||
FILE_FLAG_DELETE_ON_CLOSE, 0);
|
FILE_FLAG_DELETE_ON_CLOSE, 0);
|
||||||
if (INVALID_HANDLE_VALUE == handle)
|
if (INVALID_HANDLE_VALUE == handle)
|
||||||
{
|
{
|
||||||
|
@ -997,7 +995,7 @@ enventor_lock_create(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
enventor_lock_remove(void)
|
enventor_lock_remove()
|
||||||
{
|
{
|
||||||
//You are not the owner of the lock.
|
//You are not the owner of the lock.
|
||||||
if (!own_lock) return;
|
if (!own_lock) return;
|
||||||
|
@ -1017,7 +1015,7 @@ enventor_lock_remove(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ecore_file_is_dir(tmpdir))
|
if (!ecore_file_path_dir_exists(tmpdir))
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Cannot access to temporary directory?! = %s", tmpdir);
|
EINA_LOG_ERR("Cannot access to temporary directory?! = %s", tmpdir);
|
||||||
return;
|
return;
|
||||||
|
@ -1096,8 +1094,8 @@ init(app_data *ad, int argc, char **argv)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
bindtextdomain(PACKAGE_NAME, LOCALE_DIR);
|
bindtextdomain(PACKAGE, LOCALE_DIR);
|
||||||
textdomain(PACKAGE_NAME);
|
textdomain(PACKAGE);
|
||||||
#endif /* set locale */
|
#endif /* set locale */
|
||||||
|
|
||||||
elm_setup();
|
elm_setup();
|
||||||
|
@ -1159,7 +1157,7 @@ term(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI_MAIN
|
EAPI_MAIN
|
||||||
static int elm_main(int argc, char **argv)
|
int elm_main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
app_data ad;
|
app_data ad;
|
||||||
memset(&ad, 0x00, sizeof(ad));
|
memset(&ad, 0x00, sizeof(ad));
|
||||||
|
|
|
@ -131,7 +131,7 @@ menu_back_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
menu_close(md);
|
menu_close(md);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
newfile_open(menu_data *md)
|
newfile_open(menu_data *md)
|
||||||
{
|
{
|
||||||
if (md->newfile_layout) return;
|
if (md->newfile_layout) return;
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
|
|
||||||
enventor_bin_src = [
|
|
||||||
'base_gui.c',
|
|
||||||
'build_setting.c',
|
|
||||||
'config_data.c',
|
|
||||||
'console.c',
|
|
||||||
'edc_navigator.c',
|
|
||||||
'file_browser.c',
|
|
||||||
'file_mgr.c',
|
|
||||||
'file_tab.c',
|
|
||||||
'goto.c',
|
|
||||||
'help.c',
|
|
||||||
'live_edit.c',
|
|
||||||
'main.c',
|
|
||||||
'menu.c',
|
|
||||||
'newfile.c',
|
|
||||||
'panes.c',
|
|
||||||
'preference_setting.c',
|
|
||||||
'search.c',
|
|
||||||
'setting.c',
|
|
||||||
'statusbar.c',
|
|
||||||
'text_setting.c',
|
|
||||||
'tools.c',
|
|
||||||
'utils.c'
|
|
||||||
]
|
|
||||||
|
|
||||||
enventor_bin = executable('enventor', enventor_bin_src,
|
|
||||||
c_args : [ enventor_cargs,
|
|
||||||
'-DHAVE_CONFIG_H',
|
|
||||||
'-I' + join_paths(meson.source_root(), 'src/include') ],
|
|
||||||
dependencies : [ enventor, dependency('elementary', version : efl_req) ],
|
|
||||||
include_directories : config_dir,
|
|
||||||
install : true
|
|
||||||
)
|
|
|
@ -74,7 +74,7 @@ templates_get(new_data *nd)
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
snprintf(buf, sizeof(buf), "%s/templates", elm_app_data_dir_get());
|
snprintf(buf, sizeof(buf), "%s/templates", elm_app_data_dir_get());
|
||||||
|
|
||||||
if (!ecore_file_is_dir(buf))
|
if (!ecore_file_path_dir_exists(buf))
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR(_("Cannot find templates folder! \"%s\""), buf);
|
EINA_LOG_ERR(_("Cannot find templates folder! \"%s\""), buf);
|
||||||
return;
|
return;
|
||||||
|
|
290
src/bin/panes.c
290
src/bin/panes.c
|
@ -21,8 +21,8 @@ typedef struct _pane_data
|
||||||
|
|
||||||
typedef struct _panes_data
|
typedef struct _panes_data
|
||||||
{
|
{
|
||||||
pane_data horiz; //horizontal pane data (editors, console)
|
pane_data horiz; //horizontal pane data (live view, text editor)
|
||||||
pane_data vert; //vertical pane data (live view, text editor)
|
pane_data vert; //vertical pane data (editors, console)
|
||||||
Evas_Object *text_tool_layout;
|
Evas_Object *text_tool_layout;
|
||||||
Evas_Object *live_tool_layout;
|
Evas_Object *live_tool_layout;
|
||||||
} panes_data;
|
} panes_data;
|
||||||
|
@ -64,7 +64,19 @@ v_unpress_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||||
panes_data *pd = data;
|
panes_data *pd = data;
|
||||||
double size = elm_panes_content_right_size_get(obj);
|
double size = elm_panes_content_right_size_get(obj);
|
||||||
if (pd->vert.last_size[0] != size) pd->vert.last_size[1] = size;
|
if (pd->vert.last_size[0] != size) pd->vert.last_size[1] = size;
|
||||||
config_editor_size_set(size);
|
config_console_size_set(size);
|
||||||
|
|
||||||
|
double origin = elm_panes_content_right_size_get(pd->vert.obj);
|
||||||
|
if (origin == 0.0)
|
||||||
|
{
|
||||||
|
pd->vert.state = PANES_EDITORS_EXPAND;
|
||||||
|
tools_console_update(EINA_FALSE);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pd->vert.state = PANES_SPLIT_VIEW;
|
||||||
|
tools_console_update(EINA_TRUE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -80,19 +92,7 @@ h_unpress_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||||
panes_data *pd = data;
|
panes_data *pd = data;
|
||||||
double size = elm_panes_content_right_size_get(obj);
|
double size = elm_panes_content_right_size_get(obj);
|
||||||
if (pd->horiz.last_size[0] != size) pd->horiz.last_size[1] = size;
|
if (pd->horiz.last_size[0] != size) pd->horiz.last_size[1] = size;
|
||||||
config_console_size_set(size);
|
config_editor_size_set(size);
|
||||||
|
|
||||||
double origin = elm_panes_content_right_size_get(pd->horiz.obj);
|
|
||||||
if (origin == 0.0)
|
|
||||||
{
|
|
||||||
pd->horiz.state = PANES_EDITORS_EXPAND;
|
|
||||||
tools_console_update(EINA_FALSE);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
pd->horiz.state = PANES_SPLIT_VIEW;
|
|
||||||
tools_console_update(EINA_TRUE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -115,13 +115,6 @@ panes_h_full_view_cancel(panes_data *pd)
|
||||||
pd->horiz.origin = elm_panes_content_right_size_get(pd->horiz.obj);
|
pd->horiz.origin = elm_panes_content_right_size_get(pd->horiz.obj);
|
||||||
pd->horiz.delta = pd->horiz.last_size[1] - pd->horiz.origin;
|
pd->horiz.delta = pd->horiz.last_size[1] - pd->horiz.origin;
|
||||||
|
|
||||||
//init console size to default
|
|
||||||
if (pd->horiz.delta == 0.0)
|
|
||||||
{
|
|
||||||
pd->horiz.delta = DEFAULT_CONSOLE_SIZE;
|
|
||||||
config_console_size_set(DEFAULT_CONSOLE_SIZE);
|
|
||||||
}
|
|
||||||
|
|
||||||
elm_transit_del(pd->horiz.transit);
|
elm_transit_del(pd->horiz.transit);
|
||||||
|
|
||||||
Elm_Transit *transit = elm_transit_add();
|
Elm_Transit *transit = elm_transit_add();
|
||||||
|
@ -141,13 +134,20 @@ panes_v_full_view_cancel(panes_data *pd)
|
||||||
pd->vert.origin = elm_panes_content_right_size_get(pd->vert.obj);
|
pd->vert.origin = elm_panes_content_right_size_get(pd->vert.obj);
|
||||||
pd->vert.delta = pd->vert.last_size[1] - pd->vert.origin;
|
pd->vert.delta = pd->vert.last_size[1] - pd->vert.origin;
|
||||||
|
|
||||||
|
//init console size to default
|
||||||
|
if (pd->vert.delta == 0.0)
|
||||||
|
{
|
||||||
|
pd->vert.delta = DEFAULT_CONSOLE_SIZE;
|
||||||
|
config_console_size_set(DEFAULT_CONSOLE_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
elm_transit_del(pd->vert.transit);
|
elm_transit_del(pd->vert.transit);
|
||||||
|
|
||||||
Elm_Transit *transit = elm_transit_add();
|
Elm_Transit *transit = elm_transit_add();
|
||||||
|
elm_transit_del_cb_set(transit, vert_transit_del_cb, pd);
|
||||||
elm_transit_effect_add(transit, transit_op_v, pd, NULL);
|
elm_transit_effect_add(transit, transit_op_v, pd, NULL);
|
||||||
elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
|
elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
|
||||||
elm_transit_duration_set(transit, TRANSIT_TIME);
|
elm_transit_duration_set(transit, TRANSIT_TIME);
|
||||||
elm_transit_del_cb_set(transit, vert_transit_del_cb, pd);
|
|
||||||
elm_transit_go(transit);
|
elm_transit_go(transit);
|
||||||
|
|
||||||
pd->vert.transit = transit;
|
pd->vert.transit = transit;
|
||||||
|
@ -165,29 +165,29 @@ panes_text_editor_full_view(void)
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
//Revert state if the current state is full view right already.
|
//Revert state if the current state is full view right already.
|
||||||
if (pd->vert.state == PANES_TEXT_EDITOR_EXPAND)
|
if (pd->horiz.state == PANES_TEXT_EDITOR_EXPAND)
|
||||||
{
|
{
|
||||||
panes_v_full_view_cancel(pd);
|
panes_h_full_view_cancel(pd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
double origin = elm_panes_content_right_size_get(pd->vert.obj);
|
double origin = elm_panes_content_right_size_get(pd->horiz.obj);
|
||||||
if (origin == 0.0) return;
|
if (origin == 0.0) return;
|
||||||
|
|
||||||
pd->vert.origin = origin;
|
pd->horiz.origin = origin;
|
||||||
pd->vert.delta = 0.0 - pd->vert.origin;
|
pd->horiz.delta = 0.0 - pd->horiz.origin;
|
||||||
|
|
||||||
elm_transit_del(pd->vert.transit);
|
elm_transit_del(pd->horiz.transit);
|
||||||
|
|
||||||
Elm_Transit *transit = elm_transit_add();
|
Elm_Transit *transit = elm_transit_add();
|
||||||
elm_transit_effect_add(transit, transit_op_v, pd, NULL);
|
elm_transit_effect_add(transit, transit_op_h, pd, NULL);
|
||||||
elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
|
elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
|
||||||
elm_transit_duration_set(transit, TRANSIT_TIME);
|
elm_transit_duration_set(transit, TRANSIT_TIME);
|
||||||
elm_transit_del_cb_set(transit, vert_transit_del_cb, pd);
|
elm_transit_del_cb_set(transit, horiz_transit_del_cb, pd);
|
||||||
elm_transit_go(transit);
|
elm_transit_go(transit);
|
||||||
|
|
||||||
pd->vert.transit = transit;
|
pd->horiz.transit = transit;
|
||||||
pd->vert.state = PANES_TEXT_EDITOR_EXPAND;
|
pd->horiz.state = PANES_TEXT_EDITOR_EXPAND;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -197,80 +197,7 @@ panes_live_view_full_view(void)
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
//Revert state if the current state is full view left already.
|
//Revert state if the current state is full view left already.
|
||||||
if (pd->vert.state == PANES_LIVE_VIEW_EXPAND)
|
if (pd->horiz.state == PANES_LIVE_VIEW_EXPAND)
|
||||||
{
|
|
||||||
panes_v_full_view_cancel(pd);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
double origin = elm_panes_content_right_size_get(pd->vert.obj);
|
|
||||||
if (origin == 1.0) return;
|
|
||||||
|
|
||||||
pd->vert.origin = origin;
|
|
||||||
pd->vert.delta = 1.0 - pd->vert.origin;
|
|
||||||
|
|
||||||
elm_transit_del(pd->vert.transit);
|
|
||||||
|
|
||||||
Elm_Transit *transit = elm_transit_add();
|
|
||||||
elm_transit_effect_add(transit, transit_op_v, pd, NULL);
|
|
||||||
elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
|
|
||||||
elm_transit_duration_set(transit, TRANSIT_TIME);
|
|
||||||
elm_transit_del_cb_set(transit, vert_transit_del_cb, pd);
|
|
||||||
elm_transit_go(transit);
|
|
||||||
|
|
||||||
pd->vert.transit = transit;
|
|
||||||
pd->vert.state = PANES_LIVE_VIEW_EXPAND;
|
|
||||||
}
|
|
||||||
|
|
||||||
Eina_Bool
|
|
||||||
panes_editors_full_view_get(void)
|
|
||||||
{
|
|
||||||
panes_data *pd = g_pd;
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(pd, EINA_FALSE);
|
|
||||||
|
|
||||||
if (pd->horiz.state == PANES_EDITORS_EXPAND) return EINA_TRUE;
|
|
||||||
else return EINA_FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
panes_editors_full_view(Eina_Bool full_view)
|
|
||||||
{
|
|
||||||
panes_data *pd = g_pd;
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
|
||||||
|
|
||||||
if (full_view)
|
|
||||||
{
|
|
||||||
if (pd->horiz.state == PANES_EDITORS_EXPAND) return;
|
|
||||||
pd->horiz.origin = elm_panes_content_right_size_get(pd->horiz.obj);
|
|
||||||
pd->horiz.delta = 0.0 - pd->horiz.origin;
|
|
||||||
|
|
||||||
elm_transit_del(pd->horiz.transit);
|
|
||||||
Elm_Transit *transit = elm_transit_add();
|
|
||||||
elm_transit_effect_add(transit, transit_op_h, pd, NULL);
|
|
||||||
elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
|
|
||||||
elm_transit_duration_set(transit, TRANSIT_TIME);
|
|
||||||
elm_transit_del_cb_set(transit, horiz_transit_del_cb, pd);
|
|
||||||
elm_transit_go(transit);
|
|
||||||
|
|
||||||
pd->horiz.transit = transit;
|
|
||||||
pd->horiz.state = PANES_EDITORS_EXPAND;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//Revert state if the current state is full view bottom already.
|
|
||||||
if (pd->horiz.state == PANES_SPLIT_VIEW) return;
|
|
||||||
panes_h_full_view_cancel(pd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
panes_console_full_view(void)
|
|
||||||
{
|
|
||||||
panes_data *pd = g_pd;
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
|
||||||
|
|
||||||
//Revert state if the current state is full view top already.
|
|
||||||
if (pd->horiz.state == PANES_CONSOLE_EXPAND)
|
|
||||||
{
|
{
|
||||||
panes_h_full_view_cancel(pd);
|
panes_h_full_view_cancel(pd);
|
||||||
return;
|
return;
|
||||||
|
@ -292,7 +219,80 @@ panes_console_full_view(void)
|
||||||
elm_transit_go(transit);
|
elm_transit_go(transit);
|
||||||
|
|
||||||
pd->horiz.transit = transit;
|
pd->horiz.transit = transit;
|
||||||
pd->horiz.state = PANES_CONSOLE_EXPAND;
|
pd->horiz.state = PANES_LIVE_VIEW_EXPAND;
|
||||||
|
}
|
||||||
|
|
||||||
|
Eina_Bool
|
||||||
|
panes_editors_full_view_get(void)
|
||||||
|
{
|
||||||
|
panes_data *pd = g_pd;
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(pd, EINA_FALSE);
|
||||||
|
|
||||||
|
if (pd->vert.state == PANES_EDITORS_EXPAND) return EINA_TRUE;
|
||||||
|
else return EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
panes_editors_full_view(Eina_Bool full_view)
|
||||||
|
{
|
||||||
|
panes_data *pd = g_pd;
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
|
if (full_view)
|
||||||
|
{
|
||||||
|
if (pd->vert.state == PANES_EDITORS_EXPAND) return;
|
||||||
|
pd->vert.origin = elm_panes_content_right_size_get(pd->vert.obj);
|
||||||
|
pd->vert.delta = 0.0 - pd->vert.origin;
|
||||||
|
|
||||||
|
elm_transit_del(pd->vert.transit);
|
||||||
|
Elm_Transit *transit = elm_transit_add();
|
||||||
|
elm_transit_effect_add(transit, transit_op_v, pd, NULL);
|
||||||
|
elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
|
||||||
|
elm_transit_duration_set(transit, TRANSIT_TIME);
|
||||||
|
elm_transit_del_cb_set(transit, vert_transit_del_cb, pd);
|
||||||
|
elm_transit_go(transit);
|
||||||
|
|
||||||
|
pd->vert.transit = transit;
|
||||||
|
pd->vert.state = PANES_EDITORS_EXPAND;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//Revert state if the current state is full view bottom already.
|
||||||
|
if (pd->vert.state == PANES_SPLIT_VIEW) return;
|
||||||
|
panes_v_full_view_cancel(pd);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
panes_console_full_view(void)
|
||||||
|
{
|
||||||
|
panes_data *pd = g_pd;
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
|
//Revert state if the current state is full view top already.
|
||||||
|
if (pd->vert.state == PANES_CONSOLE_EXPAND)
|
||||||
|
{
|
||||||
|
panes_v_full_view_cancel(pd);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
double origin = elm_panes_content_right_size_get(pd->vert.obj);
|
||||||
|
if (origin == 1.0) return;
|
||||||
|
|
||||||
|
pd->vert.origin = origin;
|
||||||
|
pd->vert.delta = 1.0 - pd->vert.origin;
|
||||||
|
|
||||||
|
elm_transit_del(pd->vert.transit);
|
||||||
|
|
||||||
|
Elm_Transit *transit = elm_transit_add();
|
||||||
|
elm_transit_effect_add(transit, transit_op_v, pd, NULL);
|
||||||
|
elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
|
||||||
|
elm_transit_duration_set(transit, TRANSIT_TIME);
|
||||||
|
elm_transit_del_cb_set(transit, vert_transit_del_cb, pd);
|
||||||
|
elm_transit_go(transit);
|
||||||
|
|
||||||
|
pd->vert.transit = transit;
|
||||||
|
pd->vert.state = PANES_CONSOLE_EXPAND;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -319,7 +319,7 @@ panes_console_set(Evas_Object *console)
|
||||||
panes_data *pd = g_pd;
|
panes_data *pd = g_pd;
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
elm_object_part_content_set(pd->horiz.obj, "bottom", console);
|
elm_object_part_content_set(pd->vert.obj, "bottom", console);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -328,9 +328,9 @@ panes_term(void)
|
||||||
panes_data *pd = g_pd;
|
panes_data *pd = g_pd;
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
evas_object_del(pd->horiz.obj);
|
evas_object_del(pd->vert.obj);
|
||||||
elm_transit_del(pd->horiz.transit);
|
|
||||||
elm_transit_del(pd->vert.transit);
|
elm_transit_del(pd->vert.transit);
|
||||||
|
elm_transit_del(pd->horiz.transit);
|
||||||
free(pd);
|
free(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -345,64 +345,64 @@ panes_init(Evas_Object *parent)
|
||||||
}
|
}
|
||||||
g_pd = pd;
|
g_pd = pd;
|
||||||
|
|
||||||
//Panes Horizontal
|
|
||||||
Evas_Object *panes_h = elm_panes_add(parent);
|
|
||||||
elm_object_style_set(panes_h, "flush");
|
|
||||||
elm_panes_horizontal_set(panes_h, EINA_TRUE);
|
|
||||||
evas_object_size_hint_weight_set(panes_h, EVAS_HINT_EXPAND,
|
|
||||||
EVAS_HINT_EXPAND);
|
|
||||||
evas_object_smart_callback_add(panes_h, "press", h_press_cb, pd);
|
|
||||||
evas_object_smart_callback_add(panes_h, "unpress", h_unpress_cb, pd);
|
|
||||||
|
|
||||||
pd->horiz.obj = panes_h;
|
|
||||||
pd->horiz.state = PANES_SPLIT_VIEW;
|
|
||||||
pd->horiz.last_size[0] = config_console_size_get();
|
|
||||||
pd->horiz.last_size[1] = config_console_size_get();
|
|
||||||
pd->horiz.transit = NULL;
|
|
||||||
|
|
||||||
//Panes Vertical
|
//Panes Vertical
|
||||||
Evas_Object *panes_v = elm_panes_add(parent);
|
Evas_Object *panes_v = elm_panes_add(parent);
|
||||||
elm_object_style_set(panes_v, ENVENTOR_NAME);
|
elm_object_style_set(panes_v, "flush");
|
||||||
elm_panes_horizontal_set(panes_v, EINA_FALSE);
|
elm_panes_horizontal_set(panes_v, EINA_FALSE);
|
||||||
evas_object_size_hint_weight_set(panes_v, EVAS_HINT_EXPAND,
|
evas_object_size_hint_weight_set(panes_v, EVAS_HINT_EXPAND,
|
||||||
EVAS_HINT_EXPAND);
|
EVAS_HINT_EXPAND);
|
||||||
evas_object_smart_callback_add(panes_v, "press", v_press_cb, pd);
|
evas_object_smart_callback_add(panes_v, "press", v_press_cb, pd);
|
||||||
evas_object_smart_callback_add(panes_v, "unpress", v_unpress_cb, pd);
|
evas_object_smart_callback_add(panes_v, "unpress", v_unpress_cb, pd);
|
||||||
|
|
||||||
elm_object_part_content_set(panes_h, "top", panes_v);
|
|
||||||
|
|
||||||
pd->vert.obj = panes_v;
|
pd->vert.obj = panes_v;
|
||||||
pd->vert.state = PANES_SPLIT_VIEW;
|
pd->vert.state = PANES_SPLIT_VIEW;
|
||||||
pd->vert.last_size[0] = config_editor_size_get();
|
pd->vert.last_size[0] = config_console_size_get();
|
||||||
pd->vert.last_size[1] = config_editor_size_get();
|
pd->vert.last_size[1] = config_console_size_get();
|
||||||
pd->vert.transit = NULL;
|
pd->vert.transit = NULL;
|
||||||
|
|
||||||
elm_panes_content_right_size_set(panes_h, config_console_size_get());
|
//Panes Horizontal
|
||||||
elm_panes_content_right_size_set(panes_v, config_editor_size_get());
|
Evas_Object *panes_h = elm_panes_add(parent);
|
||||||
|
elm_object_style_set(panes_h, ENVENTOR_NAME);
|
||||||
|
elm_panes_horizontal_set(panes_v, EINA_TRUE);
|
||||||
|
evas_object_size_hint_weight_set(panes_h, EVAS_HINT_EXPAND,
|
||||||
|
EVAS_HINT_EXPAND);
|
||||||
|
evas_object_smart_callback_add(panes_h, "press", h_press_cb, pd);
|
||||||
|
evas_object_smart_callback_add(panes_h, "unpress", h_unpress_cb, pd);
|
||||||
|
|
||||||
|
elm_object_part_content_set(panes_v, "top", panes_h);
|
||||||
|
|
||||||
|
pd->horiz.obj = panes_h;
|
||||||
|
pd->horiz.state = PANES_SPLIT_VIEW;
|
||||||
|
pd->horiz.last_size[0] = config_editor_size_get();
|
||||||
|
pd->horiz.last_size[1] = config_editor_size_get();
|
||||||
|
pd->horiz.transit = NULL;
|
||||||
|
|
||||||
|
elm_panes_content_right_size_set(panes_h, config_editor_size_get());
|
||||||
|
elm_panes_content_right_size_set(panes_v, config_console_size_get());
|
||||||
|
|
||||||
//Text Tools
|
//Text Tools
|
||||||
Evas_Object *text_tool_layout = elm_layout_add(pd->vert.obj);
|
Evas_Object *text_tool_layout = elm_layout_add(pd->horiz.obj);
|
||||||
elm_layout_file_set(text_tool_layout, EDJE_PATH, "tools_layout");
|
elm_layout_file_set(text_tool_layout, EDJE_PATH, "tools_layout");
|
||||||
evas_object_size_hint_weight_set(text_tool_layout, EVAS_HINT_EXPAND,
|
evas_object_size_hint_weight_set(text_tool_layout, EVAS_HINT_EXPAND,
|
||||||
EVAS_HINT_EXPAND);
|
EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(text_tool_layout, EVAS_HINT_FILL,
|
evas_object_size_hint_align_set(text_tool_layout, EVAS_HINT_FILL,
|
||||||
EVAS_HINT_FILL);
|
EVAS_HINT_FILL);
|
||||||
elm_object_part_content_set(pd->vert.obj, "right", text_tool_layout);
|
elm_object_part_content_set(pd->horiz.obj, "right", text_tool_layout);
|
||||||
|
|
||||||
pd->text_tool_layout = text_tool_layout;
|
pd->text_tool_layout = text_tool_layout;
|
||||||
|
|
||||||
//Live Edit Tools
|
//Live Edit Tools
|
||||||
Evas_Object *live_tool_layout = elm_layout_add(pd->vert.obj);
|
Evas_Object *live_tool_layout = elm_layout_add(pd->horiz.obj);
|
||||||
elm_layout_file_set(live_tool_layout, EDJE_PATH, "tools_layout");
|
elm_layout_file_set(live_tool_layout, EDJE_PATH, "tools_layout");
|
||||||
evas_object_size_hint_weight_set(live_tool_layout, EVAS_HINT_EXPAND,
|
evas_object_size_hint_weight_set(live_tool_layout, EVAS_HINT_EXPAND,
|
||||||
EVAS_HINT_EXPAND);
|
EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(live_tool_layout, EVAS_HINT_FILL,
|
evas_object_size_hint_align_set(live_tool_layout, EVAS_HINT_FILL,
|
||||||
EVAS_HINT_FILL);
|
EVAS_HINT_FILL);
|
||||||
elm_object_part_content_set(pd->vert.obj, "left", live_tool_layout);
|
elm_object_part_content_set(pd->horiz.obj, "left", live_tool_layout);
|
||||||
|
|
||||||
pd->live_tool_layout = live_tool_layout;
|
pd->live_tool_layout = live_tool_layout;
|
||||||
|
|
||||||
return panes_h;
|
return panes_v;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -411,7 +411,7 @@ panes_live_view_tools_set(Evas_Object *tools)
|
||||||
panes_data *pd = g_pd;
|
panes_data *pd = g_pd;
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
Evas_Object *live_view = elm_object_part_content_get(pd->vert.obj, "left");
|
Evas_Object *live_view = elm_object_part_content_get(pd->horiz.obj, "left");
|
||||||
elm_object_part_content_set(live_view, "elm.swallow.tools", tools);
|
elm_object_part_content_set(live_view, "elm.swallow.tools", tools);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -421,7 +421,7 @@ panes_live_edit_fixed_bar_set(Evas_Object *fixed_bar)
|
||||||
panes_data *pd = g_pd;
|
panes_data *pd = g_pd;
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
Evas_Object *live_view = elm_object_part_content_get(pd->vert.obj, "left");
|
Evas_Object *live_view = elm_object_part_content_get(pd->horiz.obj, "left");
|
||||||
elm_object_part_content_set(live_view, "elm.swallow.fixed_bar", fixed_bar);
|
elm_object_part_content_set(live_view, "elm.swallow.fixed_bar", fixed_bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -431,7 +431,7 @@ panes_text_editor_tools_set(Evas_Object *tools)
|
||||||
panes_data *pd = g_pd;
|
panes_data *pd = g_pd;
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
Evas_Object *text_editor = elm_object_part_content_get(pd->vert.obj,
|
Evas_Object *text_editor = elm_object_part_content_get(pd->horiz.obj,
|
||||||
"right");
|
"right");
|
||||||
elm_object_part_content_set(text_editor, "elm.swallow.tools", tools);
|
elm_object_part_content_set(text_editor, "elm.swallow.tools", tools);
|
||||||
}
|
}
|
||||||
|
@ -442,7 +442,7 @@ panes_live_view_tools_visible_set(Eina_Bool visible)
|
||||||
panes_data *pd = g_pd;
|
panes_data *pd = g_pd;
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
Evas_Object *live_view = elm_object_part_content_get(pd->vert.obj, "left");
|
Evas_Object *live_view = elm_object_part_content_get(pd->horiz.obj, "left");
|
||||||
|
|
||||||
if (visible)
|
if (visible)
|
||||||
elm_object_signal_emit(live_view, "elm,state,tools,show", "");
|
elm_object_signal_emit(live_view, "elm,state,tools,show", "");
|
||||||
|
@ -456,7 +456,7 @@ panes_live_edit_fixed_bar_visible_set(Eina_Bool visible)
|
||||||
panes_data *pd = g_pd;
|
panes_data *pd = g_pd;
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
Evas_Object *live_view = elm_object_part_content_get(pd->vert.obj, "left");
|
Evas_Object *live_view = elm_object_part_content_get(pd->horiz.obj, "left");
|
||||||
|
|
||||||
if (visible)
|
if (visible)
|
||||||
elm_object_signal_emit(live_view, "elm,state,fixed_bar,show", "");
|
elm_object_signal_emit(live_view, "elm,state,fixed_bar,show", "");
|
||||||
|
@ -471,7 +471,7 @@ panes_text_editor_tools_visible_set(Eina_Bool visible)
|
||||||
panes_data *pd = g_pd;
|
panes_data *pd = g_pd;
|
||||||
EINA_SAFETY_ON_NULL_RETURN(pd);
|
EINA_SAFETY_ON_NULL_RETURN(pd);
|
||||||
|
|
||||||
Evas_Object *text_editor = elm_object_part_content_get(pd->vert.obj,
|
Evas_Object *text_editor = elm_object_part_content_get(pd->horiz.obj,
|
||||||
"right");
|
"right");
|
||||||
|
|
||||||
if (visible)
|
if (visible)
|
||||||
|
|
|
@ -239,7 +239,8 @@ preference_setting_content_get(preference_setting_data *psd,
|
||||||
toggle_create(box, _("Status"), config_stats_bar_get(),
|
toggle_create(box, _("Status"), config_stats_bar_get(),
|
||||||
_("Status (F8)<br>"
|
_("Status (F8)<br>"
|
||||||
"Display Status bar, which shows subsidiary<br>"
|
"Display Status bar, which shows subsidiary<br>"
|
||||||
"information for editing in the bottom area."));
|
"information for editing in the bottom area."
|
||||||
|
"editing."));
|
||||||
elm_box_pack_end(box, toggle_status);
|
elm_box_pack_end(box, toggle_status);
|
||||||
|
|
||||||
//Toggle (Console)
|
//Toggle (Console)
|
||||||
|
@ -254,7 +255,8 @@ preference_setting_content_get(preference_setting_data *psd,
|
||||||
//Toggle (Auto Indentation)
|
//Toggle (Auto Indentation)
|
||||||
Evas_Object *toggle_indent =
|
Evas_Object *toggle_indent =
|
||||||
toggle_create(box, _("Auto Indentation"), config_auto_indent_get(),
|
toggle_create(box, _("Auto Indentation"), config_auto_indent_get(),
|
||||||
_("Apply automatic indentation for text editing.<br>"
|
_("Auto indentation (Ctrl + I)<br>"
|
||||||
|
"Apply automatic indentation for text editing.<br>"
|
||||||
"When wrapping the text around, Enventor<br>"
|
"When wrapping the text around, Enventor<br>"
|
||||||
"inserts the line indentation automatically."));
|
"inserts the line indentation automatically."));
|
||||||
elm_box_pack_end(box, toggle_indent);
|
elm_box_pack_end(box, toggle_indent);
|
||||||
|
@ -262,8 +264,9 @@ preference_setting_content_get(preference_setting_data *psd,
|
||||||
//Toggle (Auto Completion)
|
//Toggle (Auto Completion)
|
||||||
Evas_Object *toggle_autocomp =
|
Evas_Object *toggle_autocomp =
|
||||||
toggle_create(box, _("Auto Completion"), config_auto_complete_get(),
|
toggle_create(box, _("Auto Completion"), config_auto_complete_get(),
|
||||||
_("Display the candidate keyword popup with<br>"
|
_("Auto completion (Ctrl + O)<br>"
|
||||||
"regards to the current editing context.<br>"
|
"Display the candidate keyword popup with<br>"
|
||||||
|
"regards to the current editing contxt.<br>"
|
||||||
"When you type texts in the editor, the candidate<br>"
|
"When you type texts in the editor, the candidate<br>"
|
||||||
"popup appears. You can choose an item<br>"
|
"popup appears. You can choose an item<br>"
|
||||||
"from the list, and a code template is inserted."));
|
"from the list, and a code template is inserted."));
|
||||||
|
|
|
@ -107,11 +107,6 @@ selection_region_anim_cb(void *data)
|
||||||
search_data *sd = data;
|
search_data *sd = data;
|
||||||
enventor_item_select_region_set(sd->it, sd->pos,
|
enventor_item_select_region_set(sd->it, sd->pos,
|
||||||
(sd->pos + sd->len));
|
(sd->pos + sd->len));
|
||||||
|
|
||||||
//Move search position to the end of the word if search type is forward
|
|
||||||
if (sd->forward)
|
|
||||||
sd->pos += sd->len;
|
|
||||||
|
|
||||||
return ECORE_CALLBACK_CANCEL;
|
return ECORE_CALLBACK_CANCEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,7 +228,6 @@ replace_proc(search_data *sd)
|
||||||
if (strcmp(find, utf8)) return EINA_FALSE;
|
if (strcmp(find, utf8)) return EINA_FALSE;
|
||||||
const char *replace = elm_entry_entry_get(sd->en_replace);
|
const char *replace = elm_entry_entry_get(sd->en_replace);
|
||||||
enventor_item_text_insert(sd->it, replace);
|
enventor_item_text_insert(sd->it, replace);
|
||||||
enventor_item_select_none(sd->it);
|
|
||||||
free(utf8);
|
free(utf8);
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ ctxpopup_dismissed_cb(void *data, Evas_Object *obj,
|
||||||
void *event_info EINA_UNUSED)
|
void *event_info EINA_UNUSED)
|
||||||
{
|
{
|
||||||
stats_data *sd = data;
|
stats_data *sd = data;
|
||||||
elm_object_focus_set(base_enventor_get(), EINA_TRUE);
|
enventor_object_focus_set(base_enventor_get(), EINA_TRUE);
|
||||||
evas_object_del(obj);
|
evas_object_del(obj);
|
||||||
sd->ctxpopup = NULL;
|
sd->ctxpopup = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -778,10 +778,7 @@ font_name_selected_cb(void *data, Evas_Object *obj,
|
||||||
|
|
||||||
config_font_get(&font_name, &font_style);
|
config_font_get(&font_name, &font_style);
|
||||||
|
|
||||||
//Initialize font style
|
|
||||||
elm_list_clear(tsd->list_font_style);
|
elm_list_clear(tsd->list_font_style);
|
||||||
eina_stringshare_del(tsd->font_style);
|
|
||||||
tsd->font_style = NULL;
|
|
||||||
|
|
||||||
//Append Items of Font Style List
|
//Append Items of Font Style List
|
||||||
Elm_Font_Properties *efp;
|
Elm_Font_Properties *efp;
|
||||||
|
@ -805,7 +802,6 @@ font_name_selected_cb(void *data, Evas_Object *obj,
|
||||||
NULL,
|
NULL,
|
||||||
NULL, font_style_selected_cb,
|
NULL, font_style_selected_cb,
|
||||||
tsd);
|
tsd);
|
||||||
|
|
||||||
if (font_name && !strcmp(font_name, efp->name) &&
|
if (font_name && !strcmp(font_name, efp->name) &&
|
||||||
font_style && !strcmp(font_style, style))
|
font_style && !strcmp(font_style, style))
|
||||||
font_style_it = it;
|
font_style_it = it;
|
||||||
|
@ -815,12 +811,10 @@ font_name_selected_cb(void *data, Evas_Object *obj,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elm_list_go(tsd->list_font_style);
|
elm_list_go(tsd->list_font_style);
|
||||||
|
if (font_style_it) elm_list_item_selected_set(font_style_it, EINA_TRUE);
|
||||||
if (!font_style_it)
|
|
||||||
font_style_it = elm_list_first_item_get(tsd->list_font_style);
|
|
||||||
elm_list_item_selected_set(font_style_it, EINA_TRUE);
|
|
||||||
|
|
||||||
eina_stringshare_replace(&tsd->font_name, sel_font_name);
|
eina_stringshare_replace(&tsd->font_name, sel_font_name);
|
||||||
|
eina_stringshare_replace(&tsd->font_style, NULL);
|
||||||
text_setting_font_apply(tsd);
|
text_setting_font_apply(tsd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
196
src/bin/tools.c
196
src/bin/tools.c
|
@ -154,30 +154,6 @@ undo_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||||
stats_info_msg_update(_("No text to be undo."));
|
stats_info_msg_update(_("No text to be undo."));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
tools_separator_insert(Evas_Object *box)
|
|
||||||
{
|
|
||||||
Evas_Object *separator = evas_object_rectangle_add(evas_object_evas_get(box));
|
|
||||||
evas_object_color_set(separator, 48, 48, 48, 255);
|
|
||||||
evas_object_size_hint_weight_set(separator, 0.0, 0.0);
|
|
||||||
evas_object_size_hint_align_set(separator, 0.0, 0.5);
|
|
||||||
evas_object_size_hint_min_set(separator, 1, 20);
|
|
||||||
elm_box_pack_end(box, separator);
|
|
||||||
evas_object_show(separator);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
tools_space_insert(Evas_Object *box, int size)
|
|
||||||
{
|
|
||||||
Evas_Object *space = evas_object_rectangle_add(evas_object_evas_get(box));
|
|
||||||
evas_object_color_set(space, 0, 0, 0, 0);
|
|
||||||
evas_object_size_hint_weight_set(space, 0.0, EVAS_HINT_EXPAND);
|
|
||||||
evas_object_size_hint_align_set(space, 0.0, EVAS_HINT_FILL);
|
|
||||||
evas_object_size_hint_min_set(space, size, 0);
|
|
||||||
elm_box_pack_end(box, space);
|
|
||||||
evas_object_show(space);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
tools_btn_create(Evas_Object *parent, const char *icon,
|
tools_btn_create(Evas_Object *parent, const char *icon,
|
||||||
const char *tooltip_msg, Evas_Smart_Cb func)
|
const char *tooltip_msg, Evas_Smart_Cb func)
|
||||||
|
@ -221,186 +197,136 @@ tools_init(Evas_Object *parent)
|
||||||
g_td = td;
|
g_td = td;
|
||||||
|
|
||||||
//Live view tools
|
//Live view tools
|
||||||
Evas_Object *live_view_scr = elm_scroller_add(parent);
|
Evas_Object *live_view_ly = elm_layout_add(parent);
|
||||||
evas_object_size_hint_weight_set(live_view_scr, EVAS_HINT_EXPAND,
|
elm_layout_file_set(live_view_ly, EDJE_PATH, "live_view_tools_layout");
|
||||||
|
evas_object_size_hint_weight_set(live_view_ly, EVAS_HINT_EXPAND,
|
||||||
EVAS_HINT_EXPAND);
|
EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(live_view_scr, EVAS_HINT_FILL,
|
evas_object_size_hint_align_set(live_view_ly, EVAS_HINT_FILL,
|
||||||
EVAS_HINT_FILL);
|
EVAS_HINT_FILL);
|
||||||
elm_scroller_bounce_set(live_view_scr, EINA_FALSE, EINA_FALSE);
|
|
||||||
elm_scroller_policy_set(live_view_scr, ELM_SCROLLER_POLICY_OFF,
|
|
||||||
ELM_SCROLLER_POLICY_OFF);
|
|
||||||
evas_object_show(live_view_scr);
|
|
||||||
|
|
||||||
Evas_Object *box = elm_box_add(live_view_scr);
|
|
||||||
elm_box_horizontal_set(box, EINA_TRUE);
|
|
||||||
evas_object_size_hint_weight_set(box, 0.0, EVAS_HINT_EXPAND);
|
|
||||||
evas_object_size_hint_align_set(box, 0.0, EVAS_HINT_FILL);
|
|
||||||
elm_object_content_set(live_view_scr, box);
|
|
||||||
evas_object_show(box);
|
|
||||||
|
|
||||||
tools_space_insert(box, 14);
|
|
||||||
Evas_Object *btn;
|
Evas_Object *btn;
|
||||||
btn = tools_btn_create(box, "highlight",
|
btn = tools_btn_create(live_view_ly, "highlight",
|
||||||
_("Part highlighting (Ctrl + H)<br>"
|
_("Part highlighting (Ctrl + H)<br>"
|
||||||
"Show a highlight effect on the selected part<br>"
|
"Show a highlight effect on the selected part<br>"
|
||||||
"in the live view."),
|
"in the live view."),
|
||||||
highlight_cb);
|
highlight_cb);
|
||||||
elm_object_tooltip_orient_set(btn, ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT);
|
elm_object_tooltip_orient_set(btn, ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT);
|
||||||
evas_object_size_hint_weight_set(btn, 0.0, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, 0.0, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box, btn);
|
elm_object_part_content_set(live_view_ly, "elm.swallow.highlight", btn);
|
||||||
td->highlight_btn = btn;
|
td->highlight_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box, 8);
|
btn = tools_btn_create(live_view_ly, "dummy",
|
||||||
btn = tools_btn_create(box, "dummy",
|
|
||||||
_("Dummy parts (Ctrl + U)<br>"
|
_("Dummy parts (Ctrl + U)<br>"
|
||||||
"Display virtual images for the swallow and<br>"
|
"Display virtual images for the swallow and<br>"
|
||||||
"spacer parts."),
|
"spacer parts."),
|
||||||
dummy_cb);
|
dummy_cb);
|
||||||
elm_object_tooltip_orient_set(btn, ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT);
|
elm_object_tooltip_orient_set(btn, ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT);
|
||||||
evas_object_size_hint_weight_set(btn, 0.0, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, 0.0, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box, btn);
|
elm_object_part_content_set(live_view_ly, "elm.swallow.dummy", btn);
|
||||||
td->swallow_btn = btn;
|
td->swallow_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box, 8);
|
btn = tools_btn_create(live_view_ly, "wireframes_icon",
|
||||||
btn = tools_btn_create(box, "wireframes_icon",
|
|
||||||
_("Wireframes (Ctrl + W)<br>"
|
_("Wireframes (Ctrl + W)<br>"
|
||||||
"Display wireframes to identify the parts<br>"
|
"Display wireframes to identify the parts<br>"
|
||||||
"boundaries."),
|
"boundaries."),
|
||||||
wireframes_cb);
|
wireframes_cb);
|
||||||
elm_object_tooltip_orient_set(btn, ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT);
|
elm_object_tooltip_orient_set(btn, ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT);
|
||||||
evas_object_size_hint_weight_set(btn, 0.0, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, 0.0, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box, btn);
|
elm_object_part_content_set(live_view_ly, "elm.swallow.wireframes", btn);
|
||||||
td->wireframes_btn = btn;
|
td->wireframes_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box, 8);
|
btn = tools_btn_create(live_view_ly, "mirror",
|
||||||
btn = tools_btn_create(box, "mirror",
|
|
||||||
_("Mirror mode (Ctrl + M)<br>"
|
_("Mirror mode (Ctrl + M)<br>"
|
||||||
"Invert the layout horizontally and review<br>"
|
"Invert the layout horizontally and review<br>"
|
||||||
"the designed layout in RTL(right-to-left)<br>"
|
"the designed layout in RTL(right-to-left)<br>"
|
||||||
"LTR(left-to-right) settings."),
|
"LTR(left-to-right) settings."),
|
||||||
mirror_cb);
|
mirror_cb);
|
||||||
evas_object_size_hint_weight_set(btn, 0.0, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, 0.0, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box, btn);
|
elm_object_part_content_set(live_view_ly, "elm.swallow.mirror", btn);
|
||||||
td->mirror_btn = btn;
|
td->mirror_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box, 14);
|
|
||||||
tools_separator_insert(box);
|
|
||||||
tools_space_insert(box, 14);
|
|
||||||
//Live edit tools
|
//Live edit tools
|
||||||
Eina_List *btn_list = live_edit_tools_create(box);
|
Eina_List *btn_list = live_edit_tools_create(live_view_ly);
|
||||||
Eina_List *l = NULL;
|
Eina_List *l = NULL;
|
||||||
int i = 1;
|
int i = 1;
|
||||||
EINA_LIST_FOREACH(btn_list, l, btn)
|
EINA_LIST_FOREACH(btn_list, l, btn)
|
||||||
{
|
{
|
||||||
evas_object_size_hint_weight_set(btn, 0.0, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, 1.0, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
|
|
||||||
char swallow_part[32];
|
char swallow_part[32];
|
||||||
snprintf(swallow_part, sizeof(swallow_part), "elm.swallow.live_edit%d",
|
snprintf(swallow_part, sizeof(swallow_part), "elm.swallow.live_edit%d",
|
||||||
i);
|
i);
|
||||||
elm_box_pack_end(box, btn);
|
elm_object_part_content_set(live_view_ly, swallow_part, btn);
|
||||||
tools_space_insert(box, 8);
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
eina_list_free(btn_list);
|
eina_list_free(btn_list);
|
||||||
|
|
||||||
td->live_view_ly = live_view_scr;
|
td->live_view_ly = live_view_ly;
|
||||||
|
|
||||||
//Text editor tools
|
//Text editor tools
|
||||||
Evas_Object *text_editor_scr = elm_scroller_add(parent);
|
Evas_Object *text_editor_ly = elm_layout_add(parent);
|
||||||
evas_object_size_hint_weight_set(text_editor_scr, EVAS_HINT_EXPAND,
|
elm_layout_file_set(text_editor_ly, EDJE_PATH, "text_editor_tools_layout");
|
||||||
|
evas_object_size_hint_weight_set(text_editor_ly, EVAS_HINT_EXPAND,
|
||||||
EVAS_HINT_EXPAND);
|
EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(text_editor_scr, EVAS_HINT_FILL,
|
evas_object_size_hint_align_set(text_editor_ly, EVAS_HINT_FILL,
|
||||||
EVAS_HINT_FILL);
|
EVAS_HINT_FILL);
|
||||||
elm_scroller_bounce_set(text_editor_scr, EINA_FALSE, EINA_FALSE);
|
|
||||||
elm_scroller_policy_set(text_editor_scr, ELM_SCROLLER_POLICY_OFF,
|
|
||||||
ELM_SCROLLER_POLICY_OFF);
|
|
||||||
evas_object_show(text_editor_scr);
|
|
||||||
|
|
||||||
box = elm_box_add(text_editor_scr);
|
btn = tools_btn_create(text_editor_ly, "save",
|
||||||
elm_box_horizontal_set(box, EINA_TRUE);
|
|
||||||
evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
||||||
evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
|
||||||
elm_object_content_set(text_editor_scr, box);
|
|
||||||
|
|
||||||
Evas_Object *box_left = elm_box_add(box);
|
|
||||||
elm_box_horizontal_set(box_left, EINA_TRUE);
|
|
||||||
evas_object_size_hint_weight_set(box_left, EVAS_HINT_EXPAND,
|
|
||||||
EVAS_HINT_EXPAND);
|
|
||||||
evas_object_size_hint_align_set(box_left, 0.0, EVAS_HINT_FILL);
|
|
||||||
elm_box_pack_end(box, box_left);
|
|
||||||
evas_object_show(box_left);
|
|
||||||
|
|
||||||
Evas_Object *box_right = elm_box_add(box);
|
|
||||||
elm_box_horizontal_set(box_right, EINA_TRUE);
|
|
||||||
evas_object_size_hint_weight_set(box_right, EVAS_HINT_EXPAND,
|
|
||||||
EVAS_HINT_EXPAND);
|
|
||||||
evas_object_size_hint_align_set(box_right, 1.0, EVAS_HINT_FILL);
|
|
||||||
elm_box_pack_end(box, box_right);
|
|
||||||
evas_object_show(box_right);
|
|
||||||
|
|
||||||
tools_space_insert(box_left, 14);
|
|
||||||
btn = tools_btn_create(box_left, "save",
|
|
||||||
_("Save the file (Ctrl + S)<br>"
|
_("Save the file (Ctrl + S)<br>"
|
||||||
"Save the current script to a file."),
|
"Save the current script to a file."),
|
||||||
save_cb);
|
save_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_left, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.save", btn);
|
||||||
|
|
||||||
tools_space_insert(box_left, 8);
|
btn = tools_btn_create(text_editor_ly, "undo",
|
||||||
btn = tools_btn_create(box_left, "undo",
|
|
||||||
_("Undo text (Ctrl + Z)"),
|
_("Undo text (Ctrl + Z)"),
|
||||||
undo_cb);
|
undo_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_left, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.undo", btn);
|
||||||
|
|
||||||
tools_space_insert(box_left, 8);
|
btn = tools_btn_create(text_editor_ly, "redo",
|
||||||
btn = tools_btn_create(box_left, "redo",
|
|
||||||
_("Redo text (Ctrl + R)"),
|
_("Redo text (Ctrl + R)"),
|
||||||
redo_cb);
|
redo_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_left, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.redo", btn);
|
||||||
|
|
||||||
tools_space_insert(box_left, 8);
|
btn = tools_btn_create(text_editor_ly, "find",
|
||||||
btn = tools_btn_create(box_left, "find",
|
|
||||||
_("Find/Replace (Ctrl + F)<br>"
|
_("Find/Replace (Ctrl + F)<br>"
|
||||||
"Find or replace text."),
|
"Find or replace text."),
|
||||||
find_cb);
|
find_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_left, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.find", btn);
|
||||||
td->find_btn = btn;
|
td->find_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box_left, 8);
|
btn = tools_btn_create(text_editor_ly, "goto",
|
||||||
btn = tools_btn_create(box_left, "goto",
|
|
||||||
_("Go to line (Ctrl + L)<br>"
|
_("Go to line (Ctrl + L)<br>"
|
||||||
"Open the Go to window to move the cursor<br>"
|
"Open the Go to window to move the cursor<br>"
|
||||||
"line position."),
|
"line position."),
|
||||||
goto_cb);
|
goto_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_left, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.goto", btn);
|
||||||
td->goto_btn = btn;
|
td->goto_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box_left, 8);
|
btn = tools_btn_create(text_editor_ly, "lines",
|
||||||
btn = tools_btn_create(box_left, "lines",
|
|
||||||
_("Line numbers<br>"
|
_("Line numbers<br>"
|
||||||
"Display the script line numbers."),
|
"Display the script line numbers."),
|
||||||
lines_cb);
|
lines_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_left, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.lines", btn);
|
||||||
td->lines_btn = btn;
|
td->lines_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box_left, 8);
|
btn = tools_btn_create(text_editor_ly, "template",
|
||||||
btn = tools_btn_create(box_left, "template",
|
|
||||||
_("Insert a code snippet (Ctrl + T)<br>"
|
_("Insert a code snippet (Ctrl + T)<br>"
|
||||||
"Enventor chooses the best code with regards<br>"
|
"Enventor chooses the best code with regards<br>"
|
||||||
"to the current editing context. For instance,<br>"
|
"to the current editing context. For instance,<br>"
|
||||||
|
@ -409,35 +335,31 @@ tools_init(Evas_Object *parent)
|
||||||
template_cb);
|
template_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_left, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.template", btn);
|
||||||
td->template_btn = btn;
|
td->template_btn = btn;
|
||||||
|
|
||||||
tools_separator_insert(box_right);
|
btn = tools_btn_create(text_editor_ly, "console",
|
||||||
tools_space_insert(box_right, 8);
|
|
||||||
btn = tools_btn_create(box_right, "console",
|
|
||||||
_("Console box (Alt + Down)<br>"
|
_("Console box (Alt + Down)<br>"
|
||||||
"Display the console box, which shows the EDC<br>"
|
"Display the console box, which shows the EDC<br>"
|
||||||
"build logs, such as error messages. It pops<br>"
|
"build logs, such as error messages. It pops<br>"
|
||||||
"up automatically when compilation errors occur."),
|
"up automatically when compliation errors occur."),
|
||||||
console_cb);
|
console_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_right, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.console", btn);
|
||||||
td->console_btn = btn;
|
td->console_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box_right, 8);
|
btn = tools_btn_create(text_editor_ly, "file_browser",
|
||||||
btn = tools_btn_create(box_right, "file_browser",
|
|
||||||
_("File browser (F9)<br>"
|
_("File browser (F9)<br>"
|
||||||
"Display the file browser, which shows a file list<br>"
|
"Display the file browser, which shows a file list<br>"
|
||||||
"in current workspace."),
|
"in current workspace."),
|
||||||
file_browser_cb);
|
file_browser_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_right, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.file_browser", btn);
|
||||||
td->file_browser_btn = btn;
|
td->file_browser_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box_right, 8);
|
btn = tools_btn_create(text_editor_ly, "edc_navigator",
|
||||||
btn = tools_btn_create(box_right, "edc_navigator",
|
|
||||||
_("EDC navigator (F10)<br>"
|
_("EDC navigator (F10)<br>"
|
||||||
"Display the EDC navigator, which shows the current<br>"
|
"Display the EDC navigator, which shows the current<br>"
|
||||||
"group hierarchy tree that contains parts,<br>"
|
"group hierarchy tree that contains parts,<br>"
|
||||||
|
@ -445,36 +367,32 @@ tools_init(Evas_Object *parent)
|
||||||
edc_navigator_cb);
|
edc_navigator_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_right, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.edc_navigator",
|
||||||
|
btn);
|
||||||
td->edc_navigator_btn = btn;
|
td->edc_navigator_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box_right, 8);
|
btn = tools_btn_create(text_editor_ly, "filetab",
|
||||||
btn = tools_btn_create(box_right, "filetab",
|
|
||||||
_("File tab (F11)<br>"
|
_("File tab (F11)<br>"
|
||||||
"Display the file tab in the bottom area<br>"
|
"Display the file tab in the bottom area<br>"
|
||||||
"It shows an opened file list to switch<br>"
|
"It shows an opened file list to switch<br>"
|
||||||
"files quickly."),
|
"files quickly. to switch files quickly."),
|
||||||
file_tab_cb);
|
file_tab_cb);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_right, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.file_tab", btn);
|
||||||
td->file_tab = btn;
|
td->file_tab = btn;
|
||||||
|
|
||||||
tools_space_insert(box_right, 8);
|
btn = tools_btn_create(text_editor_ly, "menu",
|
||||||
tools_separator_insert(box_right);
|
|
||||||
tools_space_insert(box_right, 14);
|
|
||||||
btn = tools_btn_create(box_right, "menu",
|
|
||||||
_("Enventor menu (Esc)<br>"
|
_("Enventor menu (Esc)<br>"
|
||||||
"Open the Enventor main menu."),
|
"Open the Enventor main menu."),
|
||||||
menu_cb);
|
menu_cb);
|
||||||
elm_object_tooltip_orient_set(btn, ELM_TOOLTIP_ORIENT_BOTTOM_LEFT);
|
elm_object_tooltip_orient_set(btn, ELM_TOOLTIP_ORIENT_BOTTOM_LEFT);
|
||||||
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_box_pack_end(box_right, btn);
|
elm_object_part_content_set(text_editor_ly, "elm.swallow.menu", btn);
|
||||||
td->menu_btn = btn;
|
td->menu_btn = btn;
|
||||||
|
|
||||||
tools_space_insert(box_right, 14);
|
td->text_editor_ly = text_editor_ly;
|
||||||
td->text_editor_ly = text_editor_scr;
|
|
||||||
|
|
||||||
//Turn on if console is valid size.
|
//Turn on if console is valid size.
|
||||||
if (!config_console_get() && (config_console_size_get() > 0))
|
if (!config_console_get() && (config_console_size_get() > 0))
|
||||||
|
|
|
@ -9,8 +9,7 @@ char EDJE_PATH[PATH_MAX];
|
||||||
const char *ENVENTOR_NAME = "enventor";
|
const char *ENVENTOR_NAME = "enventor";
|
||||||
Enventor_Item *active_item = NULL;
|
Enventor_Item *active_item = NULL;
|
||||||
|
|
||||||
void
|
void mem_fail_msg(void)
|
||||||
mem_fail_msg(void)
|
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Failed to allocate Memory!");
|
EINA_LOG_ERR("Failed to allocate Memory!");
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
|
||||||
|
|
||||||
#define ROUNDING(x, dig) (floor((x) * pow(10, dig) + 0.5) / pow(10, dig))
|
#define ROUNDING(x, dig) (floor((x) * pow(10, dig) + 0.5) / pow(10, dig))
|
||||||
|
|
||||||
#define ENVENTOR_CONFIG_VERSION 15
|
#define ENVENTOR_CONFIG_VERSION 13
|
||||||
|
|
||||||
#define EVENT_KEY_MODIFIER_CHECK(NAME, MASK) \
|
#define EVENT_KEY_MODIFIER_CHECK(NAME, MASK) \
|
||||||
((MASK & ECORE_EVENT_MODIFIER_##NAME) && \
|
((MASK & ECORE_EVENT_MODIFIER_##NAME) && \
|
||||||
|
@ -86,7 +86,6 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
|
||||||
#include "file_mgr.h"
|
#include "file_mgr.h"
|
||||||
#include "build_setting.h"
|
#include "build_setting.h"
|
||||||
#include "preference_setting.h"
|
#include "preference_setting.h"
|
||||||
#include "text_setting.h"
|
|
||||||
#include "help.h"
|
#include "help.h"
|
||||||
#include "file_tab.h"
|
#include "file_tab.h"
|
||||||
|
|
||||||
|
|
|
@ -63,12 +63,8 @@ void config_smart_undo_redo_set(Eina_Bool smart_undo_redo);
|
||||||
Eina_Bool config_smart_undo_redo_get(void);
|
Eina_Bool config_smart_undo_redo_get(void);
|
||||||
void config_file_browser_set(Eina_Bool enabled);
|
void config_file_browser_set(Eina_Bool enabled);
|
||||||
Eina_Bool config_file_browser_get(void);
|
Eina_Bool config_file_browser_get(void);
|
||||||
void config_file_browser_size_set(double size);
|
|
||||||
double config_file_browser_size_get(void);
|
|
||||||
void config_edc_navigator_set(Eina_Bool enabled);
|
void config_edc_navigator_set(Eina_Bool enabled);
|
||||||
Eina_Bool config_edc_navigator_get(void);
|
Eina_Bool config_edc_navigator_get(void);
|
||||||
void config_edc_navigator_size_set(double size);
|
|
||||||
double config_edc_navigator_size_get(void);
|
|
||||||
Eina_Bool config_mirror_mode_get(void);
|
Eina_Bool config_mirror_mode_get(void);
|
||||||
void config_mirror_mode_set(Eina_Bool mirror_mode);
|
void config_mirror_mode_set(Eina_Bool mirror_mode);
|
||||||
void config_red_alert_set(Eina_Bool enabled);
|
void config_red_alert_set(Eina_Bool enabled);
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
#define DEFAULT_EDC_NAVIGATOR_SIZE 0.3
|
|
||||||
|
|
||||||
Evas_Object *edc_navigator_init(Evas_Object *parent);
|
Evas_Object *edc_navigator_init(Evas_Object *parent);
|
||||||
void edc_navigator_term(void);
|
void edc_navigator_term(void);
|
||||||
void edc_navigator_group_update(const char *cur_group);
|
void edc_navigator_group_update(const char *cur_group);
|
||||||
void edc_navigator_deselect(void);
|
void edc_navigator_deselect(void);
|
||||||
void edc_navigator_tools_set(void);
|
void edc_navigator_tools_set(void);
|
||||||
void edc_navigator_tools_visible_set(Eina_Bool visible);
|
void edc_navigator_tools_visible_set(Eina_Bool visible);
|
||||||
void edc_navigator_show(void);
|
|
||||||
void edc_navigator_hide(void);
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#define DEFAULT_FILE_BROWSER_SIZE 0.3
|
|
||||||
|
|
||||||
Evas_Object *file_browser_init(Evas_Object *parent);
|
Evas_Object *file_browser_init(Evas_Object *parent);
|
||||||
void file_browser_term(void);
|
void file_browser_term(void);
|
||||||
void file_browser_workspace_set(const char *workspace_dir);
|
void file_browser_workspace_set(const char *workspace_dir);
|
||||||
|
@ -9,5 +7,3 @@ void file_browser_refresh(void);
|
||||||
void file_browser_selected_file_main_set(void);
|
void file_browser_selected_file_main_set(void);
|
||||||
void file_brwser_refresh(void);
|
void file_brwser_refresh(void);
|
||||||
void file_browser_main_file_unset(void);
|
void file_browser_main_file_unset(void);
|
||||||
void file_browser_show(void);
|
|
||||||
void file_browser_hide(void);
|
|
||||||
|
|
|
@ -11,4 +11,4 @@ Eina_Bool live_edit_cancel(Eina_Bool phase_in);
|
||||||
Eina_Bool live_edit_get(void);
|
Eina_Bool live_edit_get(void);
|
||||||
void live_edit_update(void);
|
void live_edit_update(void);
|
||||||
Eina_List *live_edit_tools_create(Evas_Object *parent);
|
Eina_List *live_edit_tools_create(Evas_Object *parent);
|
||||||
Evas_Object *live_edit_fixed_bar_get(void);
|
Evas_Object *live_edit_fixed_bar_get();
|
||||||
|
|
|
@ -1,208 +0,0 @@
|
||||||
#ifndef ENVENTOR_H
|
|
||||||
#define ENVENTOR_H
|
|
||||||
|
|
||||||
#ifndef ENVENTOR_BETA_API_SUPPORT
|
|
||||||
#error "Enventor APIs still unstable. It's under BETA and changeable!! If you really want to use the APIs, Please define ENVENTOR_BETA_API_SUPPORT"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define EFL_UI_FOCUS_OBJECT_PROTECTED 1
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Efl_Config.h>
|
|
||||||
#include <Elementary.h>
|
|
||||||
|
|
||||||
/***
|
|
||||||
* Compatible ABI for Win32
|
|
||||||
***/
|
|
||||||
#ifdef _WIN32
|
|
||||||
# ifdef EAPI
|
|
||||||
# undef EAPI
|
|
||||||
# endif
|
|
||||||
# ifdef ENVENTOR_WIN32_BUILD_SUPPORT
|
|
||||||
# define EAPI __declspec(dllexport)
|
|
||||||
# else
|
|
||||||
# define EAPI __declspec(dllimport)
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# ifdef __GNUC__
|
|
||||||
# if __GNUC__ >= 4
|
|
||||||
# define EAPI __attribute__ ((visibility("default")))
|
|
||||||
# else
|
|
||||||
# define EAPI
|
|
||||||
# endif
|
|
||||||
# else
|
|
||||||
# define EAPI
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Enventor emits the following signals
|
|
||||||
* @li "cursor,line,changed":
|
|
||||||
* @li "cursor,group,changed":
|
|
||||||
* @li "live_view,updated":
|
|
||||||
* @li "live_view,loaded":
|
|
||||||
* @li "live_view,cursor,moved":
|
|
||||||
* @li "live_view,resized":
|
|
||||||
* @li "max_line,changed":
|
|
||||||
* @li "compile,error":
|
|
||||||
* @li "ctxpopup,activated":
|
|
||||||
* @li "ctxpopup,changed":
|
|
||||||
* @li "ctxpopup,dismissed":
|
|
||||||
* @li "edc,modified":
|
|
||||||
* @li "focused":
|
|
||||||
* @li "file,open,requested":
|
|
||||||
*/
|
|
||||||
|
|
||||||
typedef Eo Enventor_Object;
|
|
||||||
typedef struct _Enventor_Item_Data Enventor_Item;
|
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
ENVENTOR_CTXPOPUP_TYPE_SLIDER = 0,
|
|
||||||
ENVENTOR_CTXPOPUP_TYPE_LIST,
|
|
||||||
ENVENTOR_CTXPOPUP_TYPE_TOGGLE,
|
|
||||||
ENVENTOR_CTXPOPUP_TYPE_IMAGE
|
|
||||||
} Enventor_Ctxpopup_Type;
|
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
ENVENTOR_PATH_TYPE_EDJ = 0,
|
|
||||||
ENVENTOR_PATH_TYPE_IMAGE,
|
|
||||||
ENVENTOR_PATH_TYPE_SOUND,
|
|
||||||
ENVENTOR_PATH_TYPE_FONT,
|
|
||||||
ENVENTOR_PATH_TYPE_DATA,
|
|
||||||
ENVENTOR_PATH_TYPE_LAST
|
|
||||||
} Enventor_Path_Type;
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
Evas_Coord x;
|
|
||||||
Evas_Coord y;
|
|
||||||
float relx;
|
|
||||||
float rely;
|
|
||||||
} Enventor_Live_View_Cursor;
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
Evas_Coord w;
|
|
||||||
Evas_Coord h;
|
|
||||||
} Enventor_Live_View_Size;
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
int cur_line;
|
|
||||||
int max_line;
|
|
||||||
} Enventor_Cursor_Line;
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
Eina_Bool self_changed : 1;
|
|
||||||
} Enventor_EDC_Modified;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
ENVENTOR_TEMPLATE_INSERT_DEFAULT,
|
|
||||||
ENVENTOR_TEMPLATE_INSERT_LIVE_EDIT
|
|
||||||
} Enventor_Template_Insert_Type;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
ENVENTOR_SYNTAX_COLOR_STRING,
|
|
||||||
ENVENTOR_SYNTAX_COLOR_COMMENT,
|
|
||||||
ENVENTOR_SYNTAX_COLOR_MACRO,
|
|
||||||
ENVENTOR_SYNTAX_COLOR_SYMBOL,
|
|
||||||
ENVENTOR_SYNTAX_COLOR_MAIN_KEYWORD,
|
|
||||||
ENVENTOR_SYNTAX_COLOR_SUB_KEYWORD,
|
|
||||||
ENVENTOR_SYNTAX_COLOR_CONSTANT,
|
|
||||||
ENVENTOR_SYNTAX_COLOR_SCRIPT_FUNC,
|
|
||||||
ENVENTOR_SYNTAX_COLOR_SCRIPT_KEYWORD,
|
|
||||||
ENVENTOR_SYNTAX_COLOR_LAST
|
|
||||||
} Enventor_Syntax_Color_Type;
|
|
||||||
|
|
||||||
EAPI int enventor_init(int argc, char **argv);
|
|
||||||
EAPI int enventor_shutdown(void);
|
|
||||||
|
|
||||||
EAPI Evas_Object *enventor_object_add(Evas_Object *parent);
|
|
||||||
EAPI Eina_List *enventor_object_programs_list_get(Enventor_Object *obj);
|
|
||||||
EAPI Eina_List *enventor_object_part_states_list_get(Enventor_Object *obj, const char *part);
|
|
||||||
EAPI Edje_Part_Type enventor_object_part_type_get(Enventor_Object *obj, const char *part_name);
|
|
||||||
EAPI Eina_List *enventor_object_parts_list_get(Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_linenumber_set(Enventor_Object *obj, Eina_Bool linenumber);
|
|
||||||
EAPI Eina_Bool enventor_object_linenumber_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_smart_undo_redo_set(Enventor_Object *obj, Eina_Bool smart_undo_redo);
|
|
||||||
EAPI Eina_Bool enventor_object_smart_undo_redo_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_auto_indent_set(Enventor_Object *obj, Eina_Bool auto_indent);
|
|
||||||
EAPI Eina_Bool enventor_object_auto_indent_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_auto_complete_set(Enventor_Object *obj, Eina_Bool auto_complete);
|
|
||||||
EAPI Eina_Bool enventor_object_auto_complete_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_auto_complete_list_show(Enventor_Object *obj);
|
|
||||||
EAPI Eina_Bool enventor_object_path_set(Enventor_Object *obj, Enventor_Path_Type type, Eina_List *pathes);
|
|
||||||
EAPI const Eina_List *enventor_object_path_get(Enventor_Object *obj, Enventor_Path_Type type);
|
|
||||||
EAPI void enventor_object_live_view_scale_set(Enventor_Object *obj, double scale);
|
|
||||||
EAPI void enventor_object_live_view_size_set(Enventor_Object *obj, Evas_Coord w, Evas_Coord h);
|
|
||||||
EAPI void enventor_object_live_view_size_get(Enventor_Object *obj, Evas_Coord *w, Evas_Coord *h);
|
|
||||||
EAPI double enventor_object_live_view_scale_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_dummy_parts_set(Enventor_Object *obj, Eina_Bool dummy_parts);
|
|
||||||
EAPI Eina_Bool enventor_object_ctxpopup_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_ctxpopup_set(Enventor_Object *obj, Eina_Bool ctxpopup);
|
|
||||||
EAPI Eina_Bool enventor_object_ctxpopup_visible_get(Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_ctxpopup_dismiss(Enventor_Object *obj);
|
|
||||||
EAPI Eina_Bool enventor_object_dummy_parts_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_wireframes_set(Enventor_Object *obj, Eina_Bool wireframes);
|
|
||||||
EAPI Eina_Bool enventor_object_wireframes_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_part_highlight_set(Enventor_Object *obj, Eina_Bool part_highlight);
|
|
||||||
EAPI Eina_Bool enventor_object_part_highlight_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_mirror_mode_set(Enventor_Object *obj, Eina_Bool mirror_mode);
|
|
||||||
EAPI Eina_Bool enventor_object_mirror_mode_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_focus_set(Enventor_Object *obj, Eina_Bool focus);
|
|
||||||
EAPI Eina_Bool enventor_object_focus_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_font_scale_set(Enventor_Object *obj, double font_scale);
|
|
||||||
EAPI double enventor_object_font_scale_get(const Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_font_set(Enventor_Object *obj, const char *font_name, const char *font_style);
|
|
||||||
EAPI void enventor_object_font_get(Enventor_Object *obj, const char **font_name, const char **font_style);
|
|
||||||
EAPI void enventor_object_syntax_color_set(Enventor_Object *obj, Enventor_Syntax_Color_Type color_type, const char *val);
|
|
||||||
EAPI const char *enventor_object_syntax_color_get(Enventor_Object *obj, Enventor_Syntax_Color_Type color_type);
|
|
||||||
EAPI Eo *enventor_object_live_view_get(Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_disabled_set(Enventor_Object *obj, Eina_Bool disabled);
|
|
||||||
EAPI void enventor_object_program_run(Enventor_Object *obj, const char *program);
|
|
||||||
EAPI void enventor_object_programs_stop(Enventor_Object *obj);
|
|
||||||
EAPI void enventor_object_keyword_reference_show(Enventor_Object *obj);
|
|
||||||
EAPI double enventor_object_base_scale_get(Enventor_Object *obj);
|
|
||||||
|
|
||||||
EAPI Enventor_Item *enventor_object_main_item_set(Evas_Object *obj, const char *file);
|
|
||||||
EAPI Enventor_Item *enventor_object_sub_item_add(Evas_Object *obj, const char *file);
|
|
||||||
EAPI Enventor_Item *enventor_object_main_item_get(const Evas_Object *obj);
|
|
||||||
EAPI const Eina_List *enventor_object_sub_items_get(const Evas_Object *obj);
|
|
||||||
EAPI Evas_Object *enventor_item_editor_get(const Enventor_Item *it);
|
|
||||||
EAPI const char *enventor_item_file_get(const Enventor_Item *it);
|
|
||||||
EAPI Enventor_Item *enventor_object_focused_item_get(const Evas_Object *obj);
|
|
||||||
EAPI Eina_Bool enventor_item_represent(Enventor_Item *it);
|
|
||||||
EAPI int enventor_item_max_line_get(const Enventor_Item *it);
|
|
||||||
EAPI Eina_Bool enventor_item_line_goto(Enventor_Item *it, int line);
|
|
||||||
EAPI Eina_Bool enventor_item_syntax_color_full_apply(Enventor_Item *it, Eina_Bool force);
|
|
||||||
EAPI Eina_Bool enventor_item_syntax_color_partial_apply(Enventor_Item *it, double interval);
|
|
||||||
EAPI Eina_Bool enventor_item_select_region_set(Enventor_Item *it, int start, int end);
|
|
||||||
EAPI Eina_Bool enventor_item_select_none(Enventor_Item *it);
|
|
||||||
EAPI Eina_Bool enventor_item_cursor_pos_set(Enventor_Item *it, int position);
|
|
||||||
EAPI int enventor_item_cursor_pos_get(const Enventor_Item *it);
|
|
||||||
EAPI const char *enventor_item_selection_get(const Enventor_Item *it);
|
|
||||||
EAPI Eina_Bool enventor_item_text_insert(Enventor_Item *it, const char *text);
|
|
||||||
EAPI const char * enventor_item_text_get(const Enventor_Item *it);
|
|
||||||
EAPI Eina_Bool enventor_item_line_delete(Enventor_Item *it);
|
|
||||||
EAPI Eina_Bool enventor_item_file_save(Enventor_Item *it, const char *file);
|
|
||||||
EAPI Eina_Bool enventor_item_modified_get(const Enventor_Item *it);
|
|
||||||
EAPI void enventor_item_modified_set(Enventor_Item *it, Eina_Bool modified);
|
|
||||||
EAPI Eina_Bool enventor_item_del(Enventor_Item *it);
|
|
||||||
EAPI Eina_Bool enventor_item_template_insert(Enventor_Item *it, char *syntax, size_t n);
|
|
||||||
EAPI Eina_Bool enventor_item_template_part_insert(Enventor_Item *it, Edje_Part_Type part, Enventor_Template_Insert_Type insert_type, Eina_Bool fixed_w, Eina_Bool fixed_h, char *rel1_x_to, char *rel1_y_to, char *rel2_x_to, char *rel2_y_to, float align_x, float align_y, int min_w, int min_h, float rel1_x, float rel1_y, float rel2_x,float rel2_y, char *syntax, size_t n);
|
|
||||||
EAPI Eina_Bool enventor_item_redo(Enventor_Item *it);
|
|
||||||
EAPI Eina_Bool enventor_item_undo(Enventor_Item *it);
|
|
||||||
EAPI Eina_List *enventor_item_group_list_get(Enventor_Item *it);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -0,0 +1,110 @@
|
||||||
|
#ifndef ENVENTOR_H
|
||||||
|
#define ENVENTOR_H
|
||||||
|
|
||||||
|
#ifndef ENVENTOR_BETA_API_SUPPORT
|
||||||
|
#error "Enventor APIs still unstable. It's under BETA and changeable!! If you really want to use the APIs, Please define ENVENTOR_BETA_API_SUPPORT"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <Efl_Config.h>
|
||||||
|
#include <Elementary.h>
|
||||||
|
|
||||||
|
/***
|
||||||
|
* Compatible ABI for Win32
|
||||||
|
***/
|
||||||
|
#ifdef _WIN32
|
||||||
|
# ifdef EAPI
|
||||||
|
# undef EAPI
|
||||||
|
# endif
|
||||||
|
# ifdef ENVENTOR_WIN32_BUILD_SUPPORT
|
||||||
|
# define EAPI __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
# define EAPI __declspec(dllimport)
|
||||||
|
# endif
|
||||||
|
# ifdef EOAPI
|
||||||
|
# undef EOAPI
|
||||||
|
# endif
|
||||||
|
#define EOAPI EAPI
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
ENVENTOR_CTXPOPUP_TYPE_SLIDER = 0,
|
||||||
|
ENVENTOR_CTXPOPUP_TYPE_LIST,
|
||||||
|
ENVENTOR_CTXPOPUP_TYPE_TOGGLE,
|
||||||
|
ENVENTOR_CTXPOPUP_TYPE_IMAGE
|
||||||
|
} Enventor_Ctxpopup_Type;
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
ENVENTOR_PATH_TYPE_EDJ = 0,
|
||||||
|
ENVENTOR_PATH_TYPE_IMAGE,
|
||||||
|
ENVENTOR_PATH_TYPE_SOUND,
|
||||||
|
ENVENTOR_PATH_TYPE_FONT,
|
||||||
|
ENVENTOR_PATH_TYPE_DATA,
|
||||||
|
ENVENTOR_PATH_TYPE_LAST
|
||||||
|
} Enventor_Path_Type;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
Evas_Coord x;
|
||||||
|
Evas_Coord y;
|
||||||
|
float relx;
|
||||||
|
float rely;
|
||||||
|
} Enventor_Live_View_Cursor;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
Evas_Coord w;
|
||||||
|
Evas_Coord h;
|
||||||
|
} Enventor_Live_View_Size;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
int cur_line;
|
||||||
|
int max_line;
|
||||||
|
} Enventor_Cursor_Line;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
Eina_Bool self_changed : 1;
|
||||||
|
} Enventor_EDC_Modified;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
ENVENTOR_TEMPLATE_INSERT_DEFAULT,
|
||||||
|
ENVENTOR_TEMPLATE_INSERT_LIVE_EDIT
|
||||||
|
} Enventor_Template_Insert_Type;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
ENVENTOR_SYNTAX_COLOR_STRING,
|
||||||
|
ENVENTOR_SYNTAX_COLOR_COMMENT,
|
||||||
|
ENVENTOR_SYNTAX_COLOR_MACRO,
|
||||||
|
ENVENTOR_SYNTAX_COLOR_SYMBOL,
|
||||||
|
ENVENTOR_SYNTAX_COLOR_MAIN_KEYWORD,
|
||||||
|
ENVENTOR_SYNTAX_COLOR_SUB_KEYWORD,
|
||||||
|
ENVENTOR_SYNTAX_COLOR_CONSTANT,
|
||||||
|
ENVENTOR_SYNTAX_COLOR_SCRIPT_FUNC,
|
||||||
|
ENVENTOR_SYNTAX_COLOR_SCRIPT_KEYWORD,
|
||||||
|
ENVENTOR_SYNTAX_COLOR_LAST
|
||||||
|
} Enventor_Syntax_Color_Type;
|
||||||
|
|
||||||
|
EAPI int enventor_init(int argc, char **argv);
|
||||||
|
EAPI int enventor_shutdown(void);
|
||||||
|
|
||||||
|
#ifndef EFL_NOLEGACY_API_SUPPORT
|
||||||
|
#include "Enventor_Legacy.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef EFL_EO_API_SUPPORT
|
||||||
|
#include "Enventor_Eo.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,19 @@
|
||||||
|
/***
|
||||||
|
* Compatible ABI for Win32
|
||||||
|
***/
|
||||||
|
#ifdef _WIN32
|
||||||
|
# ifdef EAPI
|
||||||
|
# undef EAPI
|
||||||
|
# endif
|
||||||
|
# ifdef EOAPI
|
||||||
|
# undef EOAPI
|
||||||
|
# endif
|
||||||
|
# ifdef ENVENTOR_WIN32_BUILD_SUPPORT
|
||||||
|
# define EAPI __declspec(dllexport)
|
||||||
|
# define EOAPI __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
# define EAPI __declspec(dllimport)
|
||||||
|
# define EOAPI __declspec(dllimport)
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
#include "enventor_object.eo.h"
|
|
@ -0,0 +1,36 @@
|
||||||
|
typedef struct _Enventor_Item_Data Enventor_Item;
|
||||||
|
|
||||||
|
EAPI Evas_Object *enventor_object_add(Evas_Object *parent);
|
||||||
|
|
||||||
|
//FIXME: Eofy.
|
||||||
|
EAPI Enventor_Item *enventor_object_main_item_set(Evas_Object *obj, const char *file);
|
||||||
|
EAPI Enventor_Item *enventor_object_sub_item_add(Evas_Object *obj, const char *file);
|
||||||
|
EAPI Enventor_Item *enventor_object_main_item_get(const Evas_Object *obj);
|
||||||
|
EAPI const Eina_List *enventor_object_sub_items_get(const Evas_Object *obj);
|
||||||
|
EAPI Evas_Object *enventor_item_editor_get(const Enventor_Item *it);
|
||||||
|
EAPI const char *enventor_item_file_get(const Enventor_Item *it);
|
||||||
|
EAPI Enventor_Item *enventor_object_focused_item_get(const Evas_Object *obj);
|
||||||
|
EAPI Eina_Bool enventor_item_represent(Enventor_Item *it);
|
||||||
|
EAPI int enventor_item_max_line_get(const Enventor_Item *it);
|
||||||
|
EAPI Eina_Bool enventor_item_line_goto(Enventor_Item *it, int line);
|
||||||
|
EAPI Eina_Bool enventor_item_syntax_color_full_apply(Enventor_Item *it, Eina_Bool force);
|
||||||
|
EAPI Eina_Bool enventor_item_syntax_color_partial_apply(Enventor_Item *it, double interval);
|
||||||
|
EAPI Eina_Bool enventor_item_select_region_set(Enventor_Item *it, int start, int end);
|
||||||
|
EAPI Eina_Bool enventor_item_select_none(Enventor_Item *it);
|
||||||
|
EAPI Eina_Bool enventor_item_cursor_pos_set(Enventor_Item *it, int position);
|
||||||
|
EAPI int enventor_item_cursor_pos_get(const Enventor_Item *it);
|
||||||
|
EAPI const char *enventor_item_selection_get(const Enventor_Item *it);
|
||||||
|
EAPI Eina_Bool enventor_item_text_insert(Enventor_Item *it, const char *text);
|
||||||
|
EAPI const char * enventor_item_text_get(const Enventor_Item *it);
|
||||||
|
EAPI Eina_Bool enventor_item_line_delete(Enventor_Item *it);
|
||||||
|
EAPI Eina_Bool enventor_item_file_save(Enventor_Item *it, const char *file);
|
||||||
|
EAPI Eina_Bool enventor_item_modified_get(const Enventor_Item *it);
|
||||||
|
EAPI void enventor_item_modified_set(Enventor_Item *it, Eina_Bool modified);
|
||||||
|
EAPI Eina_Bool enventor_item_del(Enventor_Item *it);
|
||||||
|
EAPI Eina_Bool enventor_item_template_insert(Enventor_Item *it, char *syntax, size_t n);
|
||||||
|
EAPI Eina_Bool enventor_item_template_part_insert(Enventor_Item *it, Edje_Part_Type part, Enventor_Template_Insert_Type insert_type, Eina_Bool fixed_w, Eina_Bool fixed_h, char *rel1_x_to, char *rel1_y_to, char *rel2_x_to, char *rel2_y_to, float align_x, float align_y, int min_w, int min_h, float rel1_x, float rel1_y, float rel2_x,float rel2_y, char *syntax, size_t n);
|
||||||
|
EAPI Eina_Bool enventor_item_redo(Enventor_Item *it);
|
||||||
|
EAPI Eina_Bool enventor_item_undo(Enventor_Item *it);
|
||||||
|
EAPI Eina_List *enventor_item_group_list_get(Enventor_Item *it);
|
||||||
|
|
||||||
|
#include "enventor_object.eo.legacy.h"
|
|
@ -3,6 +3,12 @@ MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
|
||||||
CLEANFILES =
|
CLEANFILES =
|
||||||
|
|
||||||
|
EOLIAN_FLAGS = @DEPS_EOLIAN_FLAGS@ \
|
||||||
|
-I$(top_srcdir)/src/lib
|
||||||
|
|
||||||
|
include $(top_srcdir)/Makefile_Eolian_Helper.am
|
||||||
|
include $(top_srcdir)/Makefile_Eolian_Cxx_Helper.am
|
||||||
|
|
||||||
AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
|
AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
|
||||||
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
|
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
|
||||||
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
|
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
|
||||||
|
@ -13,7 +19,11 @@ AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
|
||||||
lib_LTLIBRARIES = libenventor.la
|
lib_LTLIBRARIES = libenventor.la
|
||||||
|
|
||||||
includes_HEADERS = \
|
includes_HEADERS = \
|
||||||
Enventor.h
|
Enventor_Legacy.h \
|
||||||
|
Enventor.h \
|
||||||
|
Enventor_Eo.h \
|
||||||
|
enventor_object.eo.h \
|
||||||
|
enventor_object.eo.legacy.h
|
||||||
includesdir = $(includedir)/enventor-@ENVENTOR_VERSION_MAJOR@
|
includesdir = $(includedir)/enventor-@ENVENTOR_VERSION_MAJOR@
|
||||||
|
|
||||||
libenventor_la_SOURCES = \
|
libenventor_la_SOURCES = \
|
||||||
|
@ -42,3 +52,12 @@ libenventor_la_CFLAGS = @ENVENTOR_CFLAGS@
|
||||||
libenventor_la_LIBADD = @ENVENTOR_LIBS@
|
libenventor_la_LIBADD = @ENVENTOR_LIBS@
|
||||||
|
|
||||||
libenventor_la_LDFLAGS = $(LTLIBINTL) -version-info @version_info@ -no-undefined
|
libenventor_la_LDFLAGS = $(LTLIBINTL) -version-info @version_info@ -no-undefined
|
||||||
|
|
||||||
|
BUILT_SOURCES = \
|
||||||
|
enventor_object.eo.c \
|
||||||
|
enventor_object.eo.h \
|
||||||
|
enventor_object.eo.legacy.h
|
||||||
|
|
||||||
|
enventoreolianfilesdir = $(datadir)/eolian/include/enventor-@ENVENTOR_VERSION_MAJOR@
|
||||||
|
enventoreolianfiles_DATA = enventor_object.eo
|
||||||
|
EXTRA_DIST = ${enventoreolianfiles_DATA}
|
||||||
|
|
|
@ -897,8 +897,6 @@ autocomp_target_set(edit_data *ed)
|
||||||
if (ad->ed)
|
if (ad->ed)
|
||||||
{
|
{
|
||||||
entry = edit_entry_get(ad->ed);
|
entry = edit_entry_get(ad->ed);
|
||||||
if (entry)
|
|
||||||
{
|
|
||||||
evas_object_smart_callback_del(entry, "changed,user", entry_changed_cb);
|
evas_object_smart_callback_del(entry, "changed,user", entry_changed_cb);
|
||||||
evas_object_smart_callback_del(entry, "cursor,changed",
|
evas_object_smart_callback_del(entry, "cursor,changed",
|
||||||
entry_cursor_changed_cb);
|
entry_cursor_changed_cb);
|
||||||
|
@ -908,7 +906,6 @@ autocomp_target_set(edit_data *ed)
|
||||||
evas_object_smart_callback_del(entry, "press", entry_press_cb);
|
evas_object_smart_callback_del(entry, "press", entry_press_cb);
|
||||||
evas_object_event_callback_del(entry, EVAS_CALLBACK_MOVE,
|
evas_object_event_callback_del(entry, EVAS_CALLBACK_MOVE,
|
||||||
entry_move_cb);
|
entry_move_cb);
|
||||||
}
|
|
||||||
evas_object_del(ad->anchor);
|
evas_object_del(ad->anchor);
|
||||||
ad->anchor = NULL;
|
ad->anchor = NULL;
|
||||||
ad->ed = NULL;
|
ad->ed = NULL;
|
||||||
|
|
|
@ -61,9 +61,7 @@ strbuf_path_get(build_data *bd, Enventor_Path_Type type, const char *syntax)
|
||||||
EINA_LIST_FOREACH(bd->pathes_list[type], l, path)
|
EINA_LIST_FOREACH(bd->pathes_list[type], l, path)
|
||||||
{
|
{
|
||||||
eina_strbuf_append(strbuf, syntax);
|
eina_strbuf_append(strbuf, syntax);
|
||||||
eina_strbuf_append(strbuf, "\"");
|
|
||||||
eina_strbuf_append(strbuf, path);
|
eina_strbuf_append(strbuf, path);
|
||||||
eina_strbuf_append(strbuf, "\"");
|
|
||||||
}
|
}
|
||||||
return strbuf;
|
return strbuf;
|
||||||
}
|
}
|
||||||
|
@ -101,7 +99,7 @@ build_cmd_set(build_data *bd)
|
||||||
}
|
}
|
||||||
|
|
||||||
eina_strbuf_append_printf(strbuf,
|
eina_strbuf_append_printf(strbuf,
|
||||||
"edje_cc -fastcomp \"%s\" \"%s\" -id \"%s/images\" -sd \"%s/sounds\" -fd \"%s/fonts\" -dd \"%s/data\" %s %s %s %s -beta",
|
"edje_cc -fastcomp %s %s -id %s/images -sd %s/sounds -fd %s/fonts -dd %s/data %s %s %s %s -beta",
|
||||||
bd->edc_path,
|
bd->edc_path,
|
||||||
(char *) eina_list_data_get(bd->pathes_list[ENVENTOR_PATH_TYPE_EDJ]),
|
(char *) eina_list_data_get(bd->pathes_list[ENVENTOR_PATH_TYPE_EDJ]),
|
||||||
elm_app_data_dir_get(),
|
elm_app_data_dir_get(),
|
||||||
|
|
|
@ -91,49 +91,15 @@ update_preset_colors(Eina_Bool update)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
array_data_idx(const Eina_Array *array, void *data)
|
|
||||||
{
|
|
||||||
Eina_Stringshare *array_data;
|
|
||||||
Eina_Array_Iterator itr;
|
|
||||||
unsigned int idx;
|
|
||||||
|
|
||||||
if (!array) return -1;
|
|
||||||
|
|
||||||
EINA_ARRAY_ITER_NEXT(array, idx, array_data, itr)
|
|
||||||
{
|
|
||||||
if (array_data == data)
|
|
||||||
return idx;
|
|
||||||
}
|
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ctxpopup_it_cb(void *data, Evas_Object *obj, void *event_info)
|
ctxpopup_it_cb(void *data, Evas_Object *obj, void *event_info)
|
||||||
{
|
{
|
||||||
ctxpopup_data *ctxdata = data;
|
ctxpopup_data *ctxdata = data;
|
||||||
Elm_Object_Item *it = event_info;
|
Elm_Object_Item *it = event_info;
|
||||||
const char *text = elm_object_item_text_get(it);
|
const char *text = elm_object_item_text_get(it);
|
||||||
const Eina_Stringshare *append_str = NULL;
|
|
||||||
|
|
||||||
//Append different string to each candidate list.
|
|
||||||
if (ctxdata->attr->use_append_str_array)
|
|
||||||
{
|
|
||||||
int idx = array_data_idx(ctxdata->attr->strs, (void *)text);
|
|
||||||
if (idx != -1)
|
|
||||||
{
|
|
||||||
append_str = (const Eina_Stringshare *)
|
|
||||||
eina_array_data_get(ctxdata->attr->append_str_array, idx);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//Append same string to all candidate lists.
|
|
||||||
else
|
|
||||||
{
|
|
||||||
append_str = ctxdata->attr->append_str;
|
|
||||||
}
|
|
||||||
snprintf(ctxdata->candidate, sizeof(ctxdata->candidate), "%s %s%s",
|
snprintf(ctxdata->candidate, sizeof(ctxdata->candidate), "%s %s%s",
|
||||||
ctxdata->attr->prepend_str, text, append_str);
|
ctxdata->attr->prepend_str, text, ctxdata->attr->append_str);
|
||||||
|
|
||||||
ctxdata->changed_cb(ctxdata->data, obj, ctxdata->candidate);
|
ctxdata->changed_cb(ctxdata->data, obj, ctxdata->candidate);
|
||||||
elm_ctxpopup_dismiss(obj);
|
elm_ctxpopup_dismiss(obj);
|
||||||
|
|
|
@ -199,7 +199,6 @@ layout_geom_changed_cb(void *data, Evas *evas EINA_UNUSED,
|
||||||
evas_object_move(po->obj, lx + x, ly + y);
|
evas_object_move(po->obj, lx + x, ly + y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
animator_cb(void *data)
|
animator_cb(void *data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "enventor_private.h"
|
#include "enventor_private.h"
|
||||||
|
|
||||||
//FIXME: Make flexible
|
//FIXME: Make flexible
|
||||||
const int MAX_LINE_DIGIT_CNT = 12;
|
const int MAX_LINE_DIGIT_CNT = 10;
|
||||||
const int SYNTAX_COLOR_SPARE_LINES = 42;
|
const int SYNTAX_COLOR_SPARE_LINES = 42;
|
||||||
const double SYNTAX_COLOR_DEFAULT_TIME = 0.25;
|
const double SYNTAX_COLOR_DEFAULT_TIME = 0.25;
|
||||||
const double SYNTAX_COLOR_SHORT_TIME = 0.025;
|
const double SYNTAX_COLOR_SHORT_TIME = 0.025;
|
||||||
|
@ -25,8 +25,7 @@ struct editor_s
|
||||||
{
|
{
|
||||||
Evas_Object *en_edit;
|
Evas_Object *en_edit;
|
||||||
Evas_Object *en_line;
|
Evas_Object *en_line;
|
||||||
Evas_Object *scr_edit;
|
Evas_Object *scroller;
|
||||||
Evas_Object *scr_line;
|
|
||||||
Evas_Object *layout;
|
Evas_Object *layout;
|
||||||
Evas_Object *ctxpopup;
|
Evas_Object *ctxpopup;
|
||||||
Enventor_Object *enventor;
|
Enventor_Object *enventor;
|
||||||
|
@ -42,7 +41,6 @@ struct editor_s
|
||||||
int error_line;
|
int error_line;
|
||||||
int syntax_color_lock;
|
int syntax_color_lock;
|
||||||
int cursor_pos;
|
int cursor_pos;
|
||||||
int ctxpopup_cursor_pos;
|
|
||||||
Evas_Coord scroller_h;
|
Evas_Coord scroller_h;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
@ -94,7 +92,7 @@ visible_text_region_get(edit_data *ed, int *from_line, int *to_line)
|
||||||
Evas_Coord region_y, region_h;
|
Evas_Coord region_y, region_h;
|
||||||
Evas_Coord cursor_h;
|
Evas_Coord cursor_h;
|
||||||
|
|
||||||
elm_scroller_region_get(ed->scr_edit, NULL, ®ion_y, NULL, ®ion_h);
|
elm_scroller_region_get(ed->scroller, NULL, ®ion_y, NULL, ®ion_h);
|
||||||
elm_entry_cursor_geometry_get(ed->en_edit, NULL, NULL, NULL, &cursor_h);
|
elm_entry_cursor_geometry_get(ed->en_edit, NULL, NULL, NULL, &cursor_h);
|
||||||
|
|
||||||
int from = (region_y / cursor_h);
|
int from = (region_y / cursor_h);
|
||||||
|
@ -231,15 +229,16 @@ syntax_color_apply(edit_data *ed, Eina_Bool partial)
|
||||||
{
|
{
|
||||||
Evas_Object *tb = elm_entry_textblock_get(ed->en_edit);
|
Evas_Object *tb = elm_entry_textblock_get(ed->en_edit);
|
||||||
char *text = (char *) evas_object_textblock_text_markup_get(tb);
|
char *text = (char *) evas_object_textblock_text_markup_get(tb);
|
||||||
if (!text) return EINA_FALSE;
|
|
||||||
|
|
||||||
int text_len = strlen(text);
|
int text_len = strlen(text);
|
||||||
|
|
||||||
//FIXME: We encountered a syntax coloring issue that won't be applied
|
//FIXME: We encountered a syntax coloring issue that won't be applied
|
||||||
//at the opening an edc script. The situation condition is below,
|
//at the opening an edc script. The situation condition is below,
|
||||||
//and we try syntax coloring again in that case. Work around logic,
|
//and we try syntax coloring again in that case. Work around logic,
|
||||||
//but it works.
|
//but it works.
|
||||||
if (text_len == 0) return EINA_FALSE;
|
if (text && (text_len == 0))
|
||||||
|
{
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
int from_line = 1;
|
int from_line = 1;
|
||||||
int to_line = -1;
|
int to_line = -1;
|
||||||
|
@ -454,7 +453,7 @@ edit_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||||
parser_line_cnt_get(ed->pd, info->change.insert.content);
|
parser_line_cnt_get(ed->pd, info->change.insert.content);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enventor_object_auto_indent_get(ed->enventor))
|
if (enventor_obj_auto_indent_get(ed->enventor))
|
||||||
{
|
{
|
||||||
increase =
|
increase =
|
||||||
indent_insert_apply(syntax_indent_data_get(ed->sh),
|
indent_insert_apply(syntax_indent_data_get(ed->sh),
|
||||||
|
@ -465,7 +464,7 @@ edit_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (enventor_object_auto_indent_get(ed->enventor))
|
if (enventor_obj_auto_indent_get(ed->enventor))
|
||||||
{
|
{
|
||||||
indent_delete_apply(syntax_indent_data_get(ed->sh),
|
indent_delete_apply(syntax_indent_data_get(ed->sh),
|
||||||
info->change.del.content, ed->cur_line);
|
info->change.del.content, ed->cur_line);
|
||||||
|
@ -523,9 +522,7 @@ ctxpopup_candidate_changed_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
char *ch = NULL;
|
char *ch = NULL;
|
||||||
int cur_pos, end_pos;
|
int cur_pos, end_pos;
|
||||||
int i;
|
int i;
|
||||||
|
cur_pos = elm_entry_cursor_pos_get(ed->en_edit);
|
||||||
cur_pos = ed->ctxpopup_cursor_pos;
|
|
||||||
elm_entry_cursor_pos_set(ed->en_edit, cur_pos);
|
|
||||||
elm_entry_cursor_line_end_set(ed->en_edit);
|
elm_entry_cursor_line_end_set(ed->en_edit);
|
||||||
end_pos = elm_entry_cursor_pos_get(ed->en_edit);
|
end_pos = elm_entry_cursor_pos_get(ed->en_edit);
|
||||||
|
|
||||||
|
@ -602,7 +599,7 @@ preview_img_relay_show(edit_data *ed, Evas_Object *ctxpopup, Eina_Bool next)
|
||||||
|
|
||||||
//Limit the ctxpopup position in the scroller vertical zone.
|
//Limit the ctxpopup position in the scroller vertical zone.
|
||||||
Evas_Coord scrl_y, scrl_h;
|
Evas_Coord scrl_y, scrl_h;
|
||||||
evas_object_geometry_get(ed->scr_edit, NULL, &scrl_y, NULL, &scrl_h);
|
evas_object_geometry_get(ed->scroller, NULL, &scrl_y, NULL, &scrl_h);
|
||||||
|
|
||||||
if (y > (scrl_y + scrl_h)) y = (scrl_y + scrl_h);
|
if (y > (scrl_y + scrl_h)) y = (scrl_y + scrl_h);
|
||||||
else if (y < scrl_y) y = scrl_y;
|
else if (y < scrl_y) y = scrl_y;
|
||||||
|
@ -721,8 +718,6 @@ candidate_list_show(edit_data *ed, char *text, char *cur, char *selected)
|
||||||
|
|
||||||
parser_attribute_value_set(attr, cur);
|
parser_attribute_value_set(attr, cur);
|
||||||
|
|
||||||
ed->ctxpopup_cursor_pos = elm_entry_cursor_pos_get(ed->en_edit);
|
|
||||||
|
|
||||||
//Show up the list of the types
|
//Show up the list of the types
|
||||||
Enventor_Ctxpopup_Type type;
|
Enventor_Ctxpopup_Type type;
|
||||||
Evas_Object *ctxpopup =
|
Evas_Object *ctxpopup =
|
||||||
|
@ -751,7 +746,7 @@ edit_cursor_double_clicked_cb(void *data, Evas_Object *obj,
|
||||||
edit_data *ed = data;
|
edit_data *ed = data;
|
||||||
|
|
||||||
if (ed->ctrl_pressed) return;
|
if (ed->ctrl_pressed) return;
|
||||||
if (!enventor_object_ctxpopup_get(ed->enventor)) return;
|
if (!enventor_obj_ctxpopup_get(ed->enventor)) return;
|
||||||
|
|
||||||
char *selected = (char *) elm_entry_selection_get(obj);
|
char *selected = (char *) elm_entry_selection_get(obj);
|
||||||
if (!selected) return;
|
if (!selected) return;
|
||||||
|
@ -939,13 +934,7 @@ scroller_scroll_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
void *event_info EINA_UNUSED)
|
void *event_info EINA_UNUSED)
|
||||||
{
|
{
|
||||||
edit_data *ed = data;
|
edit_data *ed = data;
|
||||||
Evas_Coord x, y, w, h;
|
|
||||||
|
|
||||||
syntax_color_partial_update(ed, SYNTAX_COLOR_SHORT_TIME);
|
syntax_color_partial_update(ed, SYNTAX_COLOR_SHORT_TIME);
|
||||||
|
|
||||||
elm_scroller_region_get(ed->scr_edit, &x, &y, NULL, NULL);
|
|
||||||
evas_object_geometry_get(ed->scr_edit, NULL, NULL, &w, &h);
|
|
||||||
elm_scroller_region_show(ed->scr_line, x, y, w, h);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -979,30 +968,6 @@ scroller_vbar_unpress_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
syntax_color_partial_update(ed, SYNTAX_COLOR_SHORT_TIME);
|
syntax_color_partial_update(ed, SYNTAX_COLOR_SHORT_TIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
scroller_hbar_show_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
|
||||||
const char *emission EINA_UNUSED,
|
|
||||||
const char *source EINA_UNUSED)
|
|
||||||
{
|
|
||||||
edit_data *ed = data;
|
|
||||||
if (!ed->layout)
|
|
||||||
return;
|
|
||||||
|
|
||||||
elm_object_signal_emit(ed->layout, "elm,state,linedummy,show", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
scroller_hbar_hide_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
|
||||||
const char *emission EINA_UNUSED,
|
|
||||||
const char *source EINA_UNUSED)
|
|
||||||
{
|
|
||||||
edit_data *ed = data;
|
|
||||||
if (!ed->layout)
|
|
||||||
return;
|
|
||||||
|
|
||||||
elm_object_signal_emit(ed->layout, "elm,state,linedummy,hide", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
edit_quick_jump(edit_data *ed)
|
edit_quick_jump(edit_data *ed)
|
||||||
{
|
{
|
||||||
|
@ -1049,7 +1014,7 @@ edit_quick_jump(edit_data *ed)
|
||||||
name_begin++;
|
name_begin++;
|
||||||
char *name_end = strstr(name_begin, "\"");
|
char *name_end = strstr(name_begin, "\"");
|
||||||
if (!name_end) goto end;
|
if (!name_end) goto end;
|
||||||
file_link = eina_strndup(name_begin, name_end - name_begin);
|
file_link = strndup(name_begin, name_end - name_begin);
|
||||||
if (file_link)
|
if (file_link)
|
||||||
{
|
{
|
||||||
//Compose the absolute file path.
|
//Compose the absolute file path.
|
||||||
|
@ -1057,7 +1022,7 @@ edit_quick_jump(edit_data *ed)
|
||||||
if (!file_name) goto end;
|
if (!file_name) goto end;
|
||||||
|
|
||||||
char *file_path =
|
char *file_path =
|
||||||
eina_strndup(ed->filepath, (file_name - ed->filepath));
|
strndup(ed->filepath, (file_name - ed->filepath));
|
||||||
if (!file_path) goto end;
|
if (!file_path) goto end;
|
||||||
|
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
|
@ -1113,7 +1078,7 @@ edit_edc_load(edit_data *ed, const char *file_path)
|
||||||
= indent_text_check(id, (const char *)utf8_edit);
|
= indent_text_check(id, (const char *)utf8_edit);
|
||||||
|
|
||||||
//Set edc text to entry.
|
//Set edc text to entry.
|
||||||
if (enventor_object_auto_indent_get(ed->enventor) && !indent_correct)
|
if (enventor_obj_auto_indent_get(ed->enventor) && !indent_correct)
|
||||||
//Create indented markup text from utf8 text of EDC file.
|
//Create indented markup text from utf8 text of EDC file.
|
||||||
markup_edit = indent_text_create(id, (const char *)utf8_edit,
|
markup_edit = indent_text_create(id, (const char *)utf8_edit,
|
||||||
&line_num);
|
&line_num);
|
||||||
|
@ -1121,13 +1086,13 @@ edit_edc_load(edit_data *ed, const char *file_path)
|
||||||
markup_edit = elm_entry_utf8_to_markup(utf8_edit);
|
markup_edit = elm_entry_utf8_to_markup(utf8_edit);
|
||||||
if (!markup_edit) goto err;
|
if (!markup_edit) goto err;
|
||||||
elm_entry_entry_set(ed->en_edit, markup_edit);
|
elm_entry_entry_set(ed->en_edit, markup_edit);
|
||||||
if (enventor_object_auto_indent_get(ed->enventor) && !indent_correct)
|
if (enventor_obj_auto_indent_get(ed->enventor) && !indent_correct)
|
||||||
edit_changed_set(ed, EINA_TRUE);
|
edit_changed_set(ed, EINA_TRUE);
|
||||||
free(markup_edit);
|
free(markup_edit);
|
||||||
|
|
||||||
//Append line numbers.
|
//Append line numbers.
|
||||||
if (!eina_strbuf_append_char(strbuf_line, '1')) goto err;
|
if (!eina_strbuf_append_char(strbuf_line, '1')) goto err;
|
||||||
if (enventor_object_auto_indent_get(ed->enventor) && !indent_correct)
|
if (enventor_obj_auto_indent_get(ed->enventor) && !indent_correct)
|
||||||
{
|
{
|
||||||
int num = 2;
|
int num = 2;
|
||||||
//Use line_num given by indent_text_create().
|
//Use line_num given by indent_text_create().
|
||||||
|
@ -1479,14 +1444,6 @@ edit_cur_indent_depth_get(edit_data *ed)
|
||||||
return indent_space_get(syntax_indent_data_get(ed->sh));
|
return indent_space_get(syntax_indent_data_get(ed->sh));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
edit_obj_del_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
|
||||||
void *event_info EINA_UNUSED)
|
|
||||||
{
|
|
||||||
edit_data *ed = data;
|
|
||||||
ed->en_edit = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
edit_data *
|
edit_data *
|
||||||
edit_init(Enventor_Object *enventor, Enventor_Item *it)
|
edit_init(Enventor_Object *enventor, Enventor_Item *it)
|
||||||
{
|
{
|
||||||
|
@ -1502,55 +1459,38 @@ edit_init(Enventor_Object *enventor, Enventor_Item *it)
|
||||||
ed->bracket.left = -1;
|
ed->bracket.left = -1;
|
||||||
ed->bracket.right = -1;
|
ed->bracket.right = -1;
|
||||||
|
|
||||||
|
//Scroller
|
||||||
|
Evas_Object *scroller = elm_scroller_add(enventor);
|
||||||
|
evas_object_smart_member_add(scroller, enventor);
|
||||||
|
elm_scroller_policy_set(scroller, ELM_SCROLLER_POLICY_AUTO,
|
||||||
|
ELM_SCROLLER_POLICY_AUTO);
|
||||||
|
elm_object_focus_allow_set(scroller, EINA_FALSE);
|
||||||
|
evas_object_smart_callback_add(scroller, "scroll,up", scroller_scroll_cb,
|
||||||
|
ed);
|
||||||
|
evas_object_smart_callback_add(scroller, "scroll,down", scroller_scroll_cb,
|
||||||
|
ed);
|
||||||
|
evas_object_smart_callback_add(scroller, "vbar,press",
|
||||||
|
scroller_vbar_press_cb, ed);
|
||||||
|
evas_object_smart_callback_add(scroller, "vbar,unpress",
|
||||||
|
scroller_vbar_unpress_cb, ed);
|
||||||
|
evas_object_event_callback_add(scroller, EVAS_CALLBACK_RESIZE,
|
||||||
|
scroller_resize_cb, ed);
|
||||||
|
evas_object_size_hint_weight_set(scroller, EVAS_HINT_EXPAND,
|
||||||
|
EVAS_HINT_EXPAND);
|
||||||
|
evas_object_size_hint_align_set(scroller, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
|
|
||||||
|
//This is hackish call to not change scroller color by widget.
|
||||||
|
evas_object_data_set(scroller, "_elm_leaveme", (void *)1);
|
||||||
|
|
||||||
//Layout
|
//Layout
|
||||||
Evas_Object *layout = elm_layout_add(enventor);
|
Evas_Object *layout = elm_layout_add(scroller);
|
||||||
elm_layout_file_set(layout, EDJE_PATH, "edit_layout");
|
elm_layout_file_set(layout, EDJE_PATH, "edit_layout");
|
||||||
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
|
elm_object_content_set(scroller, layout);
|
||||||
//EDC Editor Scroller
|
|
||||||
Evas_Object *scr_edit = elm_scroller_add(layout);
|
|
||||||
elm_scroller_policy_set(scr_edit, ELM_SCROLLER_POLICY_AUTO,
|
|
||||||
ELM_SCROLLER_POLICY_AUTO);
|
|
||||||
elm_object_focus_allow_set(scr_edit, EINA_FALSE);
|
|
||||||
evas_object_smart_callback_add(scr_edit, "scroll,up", scroller_scroll_cb,
|
|
||||||
ed);
|
|
||||||
evas_object_smart_callback_add(scr_edit, "scroll,down", scroller_scroll_cb,
|
|
||||||
ed);
|
|
||||||
evas_object_smart_callback_add(scr_edit, "vbar,press",
|
|
||||||
scroller_vbar_press_cb, ed);
|
|
||||||
evas_object_smart_callback_add(scr_edit, "vbar,unpress",
|
|
||||||
scroller_vbar_unpress_cb, ed);
|
|
||||||
evas_object_event_callback_add(scr_edit, EVAS_CALLBACK_RESIZE,
|
|
||||||
scroller_resize_cb, ed);
|
|
||||||
edje_object_signal_callback_add(elm_layout_edje_get(scr_edit),
|
|
||||||
"elm,action,show,hbar", "elm",
|
|
||||||
scroller_hbar_show_cb, ed);
|
|
||||||
edje_object_signal_callback_add(elm_layout_edje_get(scr_edit),
|
|
||||||
"elm,action,hide,hbar", "elm",
|
|
||||||
scroller_hbar_hide_cb, ed);
|
|
||||||
|
|
||||||
evas_object_size_hint_weight_set(scr_edit, EVAS_HINT_EXPAND,
|
|
||||||
EVAS_HINT_EXPAND);
|
|
||||||
evas_object_size_hint_align_set(scr_edit, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
|
||||||
elm_object_part_content_set(layout, "elm.swallow.edit", scr_edit);
|
|
||||||
|
|
||||||
//This is hackish call to not change scroller color by widget.
|
|
||||||
evas_object_data_set(scr_edit, "_elm_leaveme", (void *)1);
|
|
||||||
|
|
||||||
//Line number Scroller
|
|
||||||
Evas_Object *scr_line = elm_scroller_add(layout);
|
|
||||||
elm_scroller_content_min_limit(scr_line, 15, 0);
|
|
||||||
elm_scroller_policy_set(scr_line, ELM_SCROLLER_POLICY_OFF,
|
|
||||||
ELM_SCROLLER_POLICY_OFF);
|
|
||||||
elm_object_focus_allow_set(scr_line, EINA_FALSE);
|
|
||||||
evas_object_size_hint_weight_set(scr_line, EVAS_HINT_EXPAND,
|
|
||||||
EVAS_HINT_EXPAND);
|
|
||||||
evas_object_size_hint_align_set(scr_line, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
|
||||||
elm_object_part_content_set(layout, "elm.swallow.linenumber", scr_line);
|
|
||||||
|
|
||||||
//Line Number Entry
|
//Line Number Entry
|
||||||
Evas_Object *en_line = elm_entry_add(scr_line);
|
Evas_Object *en_line = elm_entry_add(layout);
|
||||||
elm_object_style_set(en_line, "enventor");
|
elm_object_style_set(en_line, "enventor");
|
||||||
evas_object_color_set(en_line, 101, 101, 101, 255);
|
evas_object_color_set(en_line, 101, 101, 101, 255);
|
||||||
elm_entry_editable_set(en_line, EINA_FALSE);
|
elm_entry_editable_set(en_line, EINA_FALSE);
|
||||||
|
@ -1558,10 +1498,10 @@ edit_init(Enventor_Object *enventor, Enventor_Item *it)
|
||||||
elm_object_focus_allow_set(en_line, EINA_FALSE);
|
elm_object_focus_allow_set(en_line, EINA_FALSE);
|
||||||
evas_object_size_hint_weight_set(en_line, 0, EVAS_HINT_EXPAND);
|
evas_object_size_hint_weight_set(en_line, 0, EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(en_line, 0, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(en_line, 0, EVAS_HINT_FILL);
|
||||||
elm_object_content_set(scr_line, en_line);
|
elm_object_part_content_set(layout, "elm.swallow.linenumber", en_line);
|
||||||
|
|
||||||
//EDC Editor Entry
|
//EDC Editor Entry
|
||||||
Evas_Object *en_edit = elm_entry_add(scr_edit);
|
Evas_Object *en_edit = elm_entry_add(layout);
|
||||||
elm_object_style_set(en_edit, "enventor");
|
elm_object_style_set(en_edit, "enventor");
|
||||||
elm_object_focus_highlight_style_set(en_edit, "blank");
|
elm_object_focus_highlight_style_set(en_edit, "blank");
|
||||||
elm_entry_cnp_mode_set(en_edit, ELM_CNP_MODE_PLAINTEXT);
|
elm_entry_cnp_mode_set(en_edit, ELM_CNP_MODE_PLAINTEXT);
|
||||||
|
@ -1577,12 +1517,11 @@ edit_init(Enventor_Object *enventor, Enventor_Item *it)
|
||||||
edit_selection_cleared_cb, ed);
|
edit_selection_cleared_cb, ed);
|
||||||
evas_object_smart_callback_add(en_edit, "selection,start",
|
evas_object_smart_callback_add(en_edit, "selection,start",
|
||||||
edit_selection_start_cb, ed);
|
edit_selection_start_cb, ed);
|
||||||
evas_object_event_callback_add(en_edit, EVAS_CALLBACK_DEL, edit_obj_del_cb, ed);
|
|
||||||
evas_object_size_hint_weight_set(en_edit, EVAS_HINT_EXPAND,
|
evas_object_size_hint_weight_set(en_edit, EVAS_HINT_EXPAND,
|
||||||
EVAS_HINT_EXPAND);
|
EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(en_edit, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(en_edit, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
elm_object_focus_set(en_edit, EINA_TRUE);
|
elm_object_focus_set(en_edit, EINA_TRUE);
|
||||||
elm_object_content_set(scr_edit, en_edit);
|
elm_object_part_content_set(layout, "elm.swallow.edit", en_edit);
|
||||||
|
|
||||||
/* FIXME: This is a temporary patch to remove focus highlight on template
|
/* FIXME: This is a temporary patch to remove focus highlight on template
|
||||||
selection button of new file open. (enventor -t)
|
selection button of new file open. (enventor -t)
|
||||||
|
@ -1590,8 +1529,7 @@ edit_init(Enventor_Object *enventor, Enventor_Item *it)
|
||||||
its visibility is set with false. */
|
its visibility is set with false. */
|
||||||
evas_object_show(en_edit);
|
evas_object_show(en_edit);
|
||||||
|
|
||||||
ed->scr_edit = scr_edit;
|
ed->scroller = scroller;
|
||||||
ed->scr_line = scr_line;
|
|
||||||
ed->en_line = en_line;
|
ed->en_line = en_line;
|
||||||
ed->en_edit = en_edit;
|
ed->en_edit = en_edit;
|
||||||
ed->layout = layout;
|
ed->layout = layout;
|
||||||
|
@ -1617,7 +1555,7 @@ Evas_Object *
|
||||||
edit_obj_get(edit_data *ed)
|
edit_obj_get(edit_data *ed)
|
||||||
{
|
{
|
||||||
if (!ed) return NULL;
|
if (!ed) return NULL;
|
||||||
return ed->layout;
|
return ed->scroller;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -1635,7 +1573,7 @@ edit_term(edit_data *ed)
|
||||||
ed->sctd->ed = NULL;
|
ed->sctd->ed = NULL;
|
||||||
}
|
}
|
||||||
ecore_timer_del(ed->syntax_color_timer);
|
ecore_timer_del(ed->syntax_color_timer);
|
||||||
evas_object_del(ed->layout);
|
evas_object_del(ed->scroller);
|
||||||
eina_stringshare_del(ed->filepath);
|
eina_stringshare_del(ed->filepath);
|
||||||
|
|
||||||
free(ed);
|
free(ed);
|
||||||
|
@ -1671,8 +1609,7 @@ edit_font_scale_set(edit_data *ed, double font_scale)
|
||||||
{
|
{
|
||||||
if (!ed) return;
|
if (!ed) return;
|
||||||
|
|
||||||
elm_object_scale_set(ed->en_line, font_scale);
|
elm_object_scale_set(ed->layout, font_scale);
|
||||||
elm_object_scale_set(ed->en_edit, font_scale);
|
|
||||||
syntax_color_partial_update(ed, 0);
|
syntax_color_partial_update(ed, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1717,14 +1654,10 @@ edit_max_line_get(edit_data *ed)
|
||||||
void
|
void
|
||||||
edit_goto(edit_data *ed, int line)
|
edit_goto(edit_data *ed, int line)
|
||||||
{
|
{
|
||||||
int cursor_y;
|
|
||||||
|
|
||||||
elm_entry_select_none(ed->en_edit);
|
elm_entry_select_none(ed->en_edit);
|
||||||
Evas_Object *tb = elm_entry_textblock_get(ed->en_edit);
|
Evas_Object *tb = elm_entry_textblock_get(ed->en_edit);
|
||||||
Evas_Textblock_Cursor *cur = evas_object_textblock_cursor_get(tb);
|
Evas_Textblock_Cursor *cur = evas_object_textblock_cursor_get(tb);
|
||||||
evas_textblock_cursor_line_set(cur, (line - 1));
|
evas_textblock_cursor_line_set(cur, (line - 1));
|
||||||
elm_entry_cursor_geometry_get(ed->en_edit, NULL, &cursor_y, NULL, NULL);
|
|
||||||
elm_scroller_region_show(ed->scr_edit, 0, cursor_y, 0, 0);
|
|
||||||
elm_entry_calc_force(ed->en_edit);
|
elm_entry_calc_force(ed->en_edit);
|
||||||
elm_object_focus_set(ed->en_edit, EINA_TRUE);
|
elm_object_focus_set(ed->en_edit, EINA_TRUE);
|
||||||
}
|
}
|
||||||
|
@ -1743,6 +1676,7 @@ edit_entry_get(edit_data *ed)
|
||||||
static void
|
static void
|
||||||
error_line_num_highlight(edit_data *ed)
|
error_line_num_highlight(edit_data *ed)
|
||||||
{
|
{
|
||||||
|
#define LINE_NUM_SIZE 5
|
||||||
Evas_Object *tb = elm_entry_textblock_get(ed->en_line);
|
Evas_Object *tb = elm_entry_textblock_get(ed->en_line);
|
||||||
char *text = (char *) evas_object_textblock_text_markup_get(tb);
|
char *text = (char *) evas_object_textblock_text_markup_get(tb);
|
||||||
|
|
||||||
|
@ -1764,8 +1698,8 @@ error_line_num_highlight(edit_data *ed)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
char line_str[MAX_LINE_DIGIT_CNT];
|
char line_str[LINE_NUM_SIZE];
|
||||||
snprintf(line_str, MAX_LINE_DIGIT_CNT, "%d", ed->error_line + 1);
|
snprintf(line_str, LINE_NUM_SIZE, "%d", ed->error_line + 1);
|
||||||
char *ptr = strstr(utf8, line_str);
|
char *ptr = strstr(utf8, line_str);
|
||||||
if (!ptr) return;
|
if (!ptr) return;
|
||||||
|
|
||||||
|
@ -2104,7 +2038,7 @@ edit_selection_region_center_set(edit_data *ed, int start, int end)
|
||||||
int cur_line = (cursor_y / cursor_h) + 1;
|
int cur_line = (cursor_y / cursor_h) + 1;
|
||||||
|
|
||||||
//Calculate current region of scroller
|
//Calculate current region of scroller
|
||||||
elm_scroller_region_get(ed->scr_edit, NULL, ®ion_y, NULL, ®ion_h);
|
elm_scroller_region_get(ed->scroller, NULL, ®ion_y, NULL, ®ion_h);
|
||||||
|
|
||||||
|
|
||||||
int line;
|
int line;
|
||||||
|
@ -2126,7 +2060,7 @@ edit_selection_region_center_set(edit_data *ed, int start, int end)
|
||||||
Evas_Textblock_Cursor *cur = evas_object_textblock_cursor_get(tb);
|
Evas_Textblock_Cursor *cur = evas_object_textblock_cursor_get(tb);
|
||||||
evas_textblock_cursor_line_set(cur, (line - 1));
|
evas_textblock_cursor_line_set(cur, (line - 1));
|
||||||
elm_entry_cursor_geometry_get(ed->en_edit, NULL, ®ion_y, NULL, NULL);
|
elm_entry_cursor_geometry_get(ed->en_edit, NULL, ®ion_y, NULL, NULL);
|
||||||
elm_scroller_region_show(ed->scr_edit, 0, region_y, 0, 0);
|
elm_scroller_region_show(ed->scroller, 0, region_y, 0, 0);
|
||||||
|
|
||||||
//Select region
|
//Select region
|
||||||
elm_entry_select_region_set(ed->en_edit, start, end);
|
elm_entry_select_region_set(ed->en_edit, start, end);
|
||||||
|
|
|
@ -9,9 +9,6 @@ const char ATTR_PREPEND_COLON[] = ":";
|
||||||
const char ATTR_PREPEND_NONE[] = "";
|
const char ATTR_PREPEND_NONE[] = "";
|
||||||
const char ATTR_APPEND_SEMICOLON[] = ";";
|
const char ATTR_APPEND_SEMICOLON[] = ";";
|
||||||
const char ATTR_APPEND_TRANSITION_TIME[] = " 1.0;";
|
const char ATTR_APPEND_TRANSITION_TIME[] = " 1.0;";
|
||||||
const char ATTR_APPEND_TRANSITION_TIME_FACTOR[] = " 1.0 0.0;";
|
|
||||||
const char ATTR_APPEND_TRANSITION_TIME_FACTOR2[] = " 1.0 0.0 0.0;";
|
|
||||||
const char ATTR_APPEND_TRANSITION_TIME_FACTOR4[] = " 1.0 0.0 0.0 0.0 0.0;";
|
|
||||||
|
|
||||||
typedef struct parser_attr_s
|
typedef struct parser_attr_s
|
||||||
{
|
{
|
||||||
|
@ -563,26 +560,12 @@ type_init_thread_blocking(void *data, Ecore_Thread *thread EINA_UNUSED)
|
||||||
eina_array_push(trans, eina_stringshare_add("SPRING"));
|
eina_array_push(trans, eina_stringshare_add("SPRING"));
|
||||||
eina_array_push(trans, eina_stringshare_add("CUBIC_BEZIER"));
|
eina_array_push(trans, eina_stringshare_add("CUBIC_BEZIER"));
|
||||||
|
|
||||||
Eina_Array *trans_append_str = eina_array_new(11);
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME_FACTOR));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME_FACTOR));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME_FACTOR));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME_FACTOR2));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME_FACTOR2));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME_FACTOR2));
|
|
||||||
eina_array_push(trans_append_str, eina_stringshare_add(ATTR_APPEND_TRANSITION_TIME_FACTOR4));
|
|
||||||
|
|
||||||
memset(&attr, 0x00, sizeof(parser_attr));
|
memset(&attr, 0x00, sizeof(parser_attr));
|
||||||
attr.keyword = eina_stringshare_add("transition");
|
attr.keyword = eina_stringshare_add("transition");
|
||||||
attr.value.strs = trans;
|
attr.value.strs = trans;
|
||||||
attr.value.type = ATTR_VALUE_CONSTANT;
|
attr.value.type = ATTR_VALUE_CONSTANT;
|
||||||
attr.value.prepend_str = ATTR_PREPEND_COLON;
|
attr.value.prepend_str = ATTR_PREPEND_COLON;
|
||||||
attr.value.append_str_array = trans_append_str;
|
attr.value.append_str = ATTR_APPEND_TRANSITION_TIME;
|
||||||
attr.value.use_append_str_array = EINA_TRUE;
|
|
||||||
eina_inarray_push(td->attrs, &attr);
|
eina_inarray_push(td->attrs, &attr);
|
||||||
|
|
||||||
Eina_Array *aspect_mode = eina_array_new(5);
|
Eina_Array *aspect_mode = eina_array_new(5);
|
||||||
|
@ -906,8 +889,8 @@ type_init_thread_blocking(void *data, Ecore_Thread *thread EINA_UNUSED)
|
||||||
eina_inarray_push(td->attrs, &attr);
|
eina_inarray_push(td->attrs, &attr);
|
||||||
|
|
||||||
wh = eina_array_new(2);
|
wh = eina_array_new(2);
|
||||||
eina_array_push(wh, eina_stringshare_add("Min:"));
|
eina_array_push(wh, eina_stringshare_add("W:"));
|
||||||
eina_array_push(wh, eina_stringshare_add("Max:"));
|
eina_array_push(wh, eina_stringshare_add("H:"));
|
||||||
|
|
||||||
memset(&attr, 0x00, sizeof(parser_attr));
|
memset(&attr, 0x00, sizeof(parser_attr));
|
||||||
attr.keyword = eina_stringshare_add("aspect");
|
attr.keyword = eina_stringshare_add("aspect");
|
||||||
|
@ -1431,7 +1414,7 @@ parser_name_get(parser_data *pd EINA_UNUSED, const char *cur)
|
||||||
char *eol = strstr(cur, "\n");
|
char *eol = strstr(cur, "\n");
|
||||||
if (eol && (eol < p)) return NULL;
|
if (eol && (eol < p)) return NULL;
|
||||||
|
|
||||||
return eina_strndup(p, (end - p));
|
return strndup(p, (end - p));
|
||||||
}
|
}
|
||||||
|
|
||||||
attr_value *
|
attr_value *
|
||||||
|
@ -1864,7 +1847,7 @@ parser_states_filtered_name_get(Eina_List *states)
|
||||||
pp = p;
|
pp = p;
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
ret = eina_list_append(ret, eina_strndup(state, pp - state));
|
ret = eina_list_append(ret, strndup(state, pp - state));
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,10 +168,10 @@ view_obj_create_post_job(view_data *vd)
|
||||||
|
|
||||||
if (vd->part_name) view_part_highlight_set(vd, vd->part_name);
|
if (vd->part_name) view_part_highlight_set(vd, vd->part_name);
|
||||||
|
|
||||||
if (enventor_object_dummy_parts_get(vd->enventor))
|
if (enventor_obj_dummy_parts_get(vd->enventor))
|
||||||
dummy_obj_new(vd->layout);
|
dummy_obj_new(vd->layout);
|
||||||
|
|
||||||
if (enventor_object_wireframes_get(vd->enventor))
|
if (enventor_obj_wireframes_get(vd->enventor))
|
||||||
wireframes_obj_new(vd->layout);
|
wireframes_obj_new(vd->layout);
|
||||||
|
|
||||||
view_mirror_mode_update(vd);
|
view_mirror_mode_update(vd);
|
||||||
|
@ -961,7 +961,7 @@ view_mirror_mode_update(view_data *vd)
|
||||||
{
|
{
|
||||||
if (!vd || !vd->layout) return;
|
if (!vd || !vd->layout) return;
|
||||||
edje_object_mirrored_set(vd->layout,
|
edje_object_mirrored_set(vd->layout,
|
||||||
enventor_object_mirror_mode_get(vd->enventor));
|
enventor_obj_mirror_mode_get(vd->enventor));
|
||||||
dummy_obj_update(vd->layout);
|
dummy_obj_update(vd->layout);
|
||||||
part_obj_geom_cb(vd, evas_object_evas_get(vd->layout), vd->part_obj, NULL);
|
part_obj_geom_cb(vd, evas_object_evas_get(vd->layout), vd->part_obj, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,243 @@
|
||||||
|
type Enventor_Path_Type: __undefined_type;
|
||||||
|
type Enventor_Syntax_Color_Type: __undefined_type;
|
||||||
|
type Enventor_Template_Insert_Type: __undefined_type;
|
||||||
|
type Edje_Part_Type: __undefined_type;
|
||||||
|
|
||||||
|
class Enventor.Object (Elm.Widget, Efl.File) {
|
||||||
|
legacy_prefix: enventor_object;
|
||||||
|
eo_prefix: enventor_obj;
|
||||||
|
methods {
|
||||||
|
@property part_highlight {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
part_highlight: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property live_view_scale {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
scale: double;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property dummy_parts {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
dummy_parts: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property wireframes {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
wireframe: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property mirror_mode {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
mirror_mode: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property auto_complete {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
auto_complete: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property auto_indent {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
auto_indent: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property ctxpopup {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
ctxpopup: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property focus {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
focus: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property font_scale {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
font_scale: double;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property linenumber {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
linenumber: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@property smart_undo_redo {
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
}
|
||||||
|
values {
|
||||||
|
smart_undo_redo: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
path_set {
|
||||||
|
return: bool;
|
||||||
|
params {
|
||||||
|
@in type: Enventor_Path_Type;
|
||||||
|
@in pathes: own(const(list<own(Eina_Stringshare *)>));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
path_get {
|
||||||
|
return: const(list<own(Eina_Stringshare *)>);
|
||||||
|
params {
|
||||||
|
@in type: Enventor_Path_Type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
programs_list_get {
|
||||||
|
return: list<char *>;
|
||||||
|
}
|
||||||
|
part_states_list_get {
|
||||||
|
return: list<char *>;
|
||||||
|
params {
|
||||||
|
@in type: const(char) *;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
parts_list_get {
|
||||||
|
return: list<char *>;
|
||||||
|
}
|
||||||
|
live_view_get {
|
||||||
|
return: Efl.Canvas.Object;
|
||||||
|
}
|
||||||
|
programs_stop {
|
||||||
|
}
|
||||||
|
program_run {
|
||||||
|
params {
|
||||||
|
@in program: const(char) *;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
syntax_color_set {
|
||||||
|
params {
|
||||||
|
@in color_type: Enventor_Syntax_Color_Type;
|
||||||
|
@in val: const(char) *;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
syntax_color_get {
|
||||||
|
return: const(char) *;
|
||||||
|
params {
|
||||||
|
@in color_type: Enventor_Syntax_Color_Type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ctxpopup_visible_get {
|
||||||
|
return: bool;
|
||||||
|
}
|
||||||
|
ctxpopup_dismiss {
|
||||||
|
}
|
||||||
|
disabled_set {
|
||||||
|
params {
|
||||||
|
@in disabled: bool;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
live_view_size_set {
|
||||||
|
params {
|
||||||
|
@in w: Evas.Coord;
|
||||||
|
@in h: Evas.Coord;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
live_view_size_get {
|
||||||
|
params {
|
||||||
|
@in w: Evas.Coord *;
|
||||||
|
@in h: Evas.Coord *;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
part_type_get {
|
||||||
|
return: Edje_Part_Type;
|
||||||
|
params {
|
||||||
|
@in part_name: const(char) *;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
font_set {
|
||||||
|
params {
|
||||||
|
@in font_name: const(char) *;
|
||||||
|
@in font_style: const(char) *;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
font_get {
|
||||||
|
params {
|
||||||
|
@in font_name: const(char) **;
|
||||||
|
@in font_style: const(char) **;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
auto_complete_list_show {
|
||||||
|
}
|
||||||
|
keyword_reference_show {
|
||||||
|
}
|
||||||
|
base_scale_get {
|
||||||
|
return: double;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
implements {
|
||||||
|
class.constructor;
|
||||||
|
Eo.Base.constructor;
|
||||||
|
Efl.Canvas.Group.group_add;
|
||||||
|
Efl.Canvas.Group.group_del;
|
||||||
|
Efl.Canvas.Group.group_move;
|
||||||
|
Efl.Canvas.Group.group_resize;
|
||||||
|
Efl.Canvas.Group.group_show;
|
||||||
|
Efl.Canvas.Group.group_hide;
|
||||||
|
Efl.Canvas.Group.group_clip.set;
|
||||||
|
Efl.Canvas.Group.group_clip_unset;
|
||||||
|
Efl.Canvas.Group.group_member_add;
|
||||||
|
Efl.File.file.set;
|
||||||
|
}
|
||||||
|
events {
|
||||||
|
cursor,line,changed;
|
||||||
|
cursor,group,changed;
|
||||||
|
live_view,updated;
|
||||||
|
live_view,loaded;
|
||||||
|
live_view,cursor,moved;
|
||||||
|
live_view,resized;
|
||||||
|
max_line,changed;
|
||||||
|
compile,error;
|
||||||
|
ctxpopup,activated;
|
||||||
|
ctxpopup,changed;
|
||||||
|
ctxpopup,dismissed;
|
||||||
|
edc,modified;
|
||||||
|
focused;
|
||||||
|
file,open,requested;
|
||||||
|
}
|
||||||
|
}
|
|
@ -22,8 +22,6 @@
|
||||||
#define VIEW_DATA edj_mgr_view_get(NULL)
|
#define VIEW_DATA edj_mgr_view_get(NULL)
|
||||||
#define ATTR_VALUE_MAX_CNT 4
|
#define ATTR_VALUE_MAX_CNT 4
|
||||||
|
|
||||||
typedef Eo Enventor_Object;
|
|
||||||
|
|
||||||
extern const char SIG_CURSOR_LINE_CHANGED[];
|
extern const char SIG_CURSOR_LINE_CHANGED[];
|
||||||
extern const char SIG_CURSOR_GROUP_CHANGED[];
|
extern const char SIG_CURSOR_GROUP_CHANGED[];
|
||||||
extern const char SIG_MAX_LINE_CHANGED[];
|
extern const char SIG_MAX_LINE_CHANGED[];
|
||||||
|
@ -71,8 +69,6 @@ struct attr_value_s
|
||||||
attr_value_type type;
|
attr_value_type type;
|
||||||
const char *prepend_str;
|
const char *prepend_str;
|
||||||
const char *append_str;
|
const char *append_str;
|
||||||
Eina_Array *append_str_array;
|
|
||||||
Eina_Bool use_append_str_array : 1;
|
|
||||||
Eina_Bool program : 1;
|
Eina_Bool program : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,22 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define ELM_INTERNAL_API_ARGESFSDFEFC 1
|
||||||
|
#define EFL_CANVAS_OBJECT_PROTECTED 1
|
||||||
|
|
||||||
#include <Enventor.h>
|
#include <Enventor.h>
|
||||||
#include <Eio.h>
|
#include <Eio.h>
|
||||||
|
#include <elm_widget.h>
|
||||||
#include "enventor_private.h"
|
#include "enventor_private.h"
|
||||||
|
|
||||||
|
#define MY_CLASS_NAME_LEGACY "enventor_object"
|
||||||
|
|
||||||
|
#ifdef MY_CLASS
|
||||||
|
#undef MY_CLASS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define MY_CLASS ENVENTOR_OBJECT_CLASS
|
||||||
|
|
||||||
#define DEFAULT_LINENUMBER EINA_TRUE
|
#define DEFAULT_LINENUMBER EINA_TRUE
|
||||||
#define DEFAULT_FONT_SCALE 1
|
#define DEFAULT_FONT_SCALE 1
|
||||||
#define DEFAULT_AUTO_INDENT EINA_TRUE
|
#define DEFAULT_AUTO_INDENT EINA_TRUE
|
||||||
|
@ -13,25 +25,6 @@
|
||||||
#define DEFAULT_SMART_UNDO_REDO EINA_FALSE
|
#define DEFAULT_SMART_UNDO_REDO EINA_FALSE
|
||||||
#define DEFAULT_CTXPOPUP EINA_TRUE
|
#define DEFAULT_CTXPOPUP EINA_TRUE
|
||||||
|
|
||||||
#define ENVENTOR_OBJECT_DATA_GET(o, pd) \
|
|
||||||
Enventor_Object_Data *pd = evas_object_data_get(o, "_enventor")
|
|
||||||
|
|
||||||
#define ENVENTOR_OBJECT_DATA_GET_OR_RETURN(o, pd) \
|
|
||||||
ENVENTOR_OBJECT_DATA_GET(o, pd); \
|
|
||||||
if (!pd) \
|
|
||||||
{ \
|
|
||||||
EINA_LOG_ERR("Failed to get Enventor_Object_Data!"); \
|
|
||||||
return; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(o, pd, val) \
|
|
||||||
ENVENTOR_OBJECT_DATA_GET(o, pd); \
|
|
||||||
if (!pd) \
|
|
||||||
{ \
|
|
||||||
EINA_LOG_ERR("Failed to get Enventor_Object_Data!"); \
|
|
||||||
return val; \
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef struct _Enventor_Object_Data Enventor_Object_Data;
|
typedef struct _Enventor_Object_Data Enventor_Object_Data;
|
||||||
typedef struct _Enventor_Item_Data Enventor_Item_Data;
|
typedef struct _Enventor_Item_Data Enventor_Item_Data;
|
||||||
|
|
||||||
|
@ -87,12 +80,10 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
static Eina_Error ENVENTOR_FILE_SET_ERROR_NONE;
|
|
||||||
static Eina_Error ENVENTOR_FILE_SET_ERROR_GENERIC;
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Internal method implementation */
|
/* Internal method implementation */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_enventor_main_item_free(Enventor_Object_Data *pd)
|
_enventor_main_item_free(Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
|
@ -247,11 +238,60 @@ call_error:
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_enventor_object_del_cb(void *data, Evas *e EINA_UNUSED,
|
_enventor_part_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ei)
|
||||||
Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
|
||||||
{
|
{
|
||||||
Enventor_Object_Data *pd = data;
|
Enventor_Object_Data *pd = (Enventor_Object_Data *)data;
|
||||||
|
if (pd->disabled || !pd->focused_it) return;
|
||||||
|
const char *part_name = (const char *)ei;
|
||||||
|
edit_part_cursor_set(pd->focused_it->ed, view_group_name_get(VIEW_DATA),
|
||||||
|
part_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/* Internal Eo object required routines */
|
||||||
|
/*****************************************************************************/
|
||||||
|
EOLIAN static void
|
||||||
|
_enventor_object_class_constructor(Eo_Class *klass)
|
||||||
|
{
|
||||||
|
evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static void
|
||||||
|
_enventor_object_efl_canvas_group_group_add(Eo *obj, Enventor_Object_Data *pd)
|
||||||
|
{
|
||||||
|
pd->obj = obj;
|
||||||
|
|
||||||
|
efl_canvas_group_add(eo_super(obj, MY_CLASS));
|
||||||
|
elm_widget_sub_object_parent_add(obj);
|
||||||
|
|
||||||
|
build_init();
|
||||||
|
autocomp_init();
|
||||||
|
ref_init();
|
||||||
|
edj_mgr_init(obj);
|
||||||
|
build_err_noti_cb_set(build_err_noti_cb, pd);
|
||||||
|
|
||||||
|
elm_widget_can_focus_set(obj, EINA_FALSE);
|
||||||
|
|
||||||
|
pd->key_down_handler =
|
||||||
|
ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, key_down_cb, pd);
|
||||||
|
pd->key_up_handler =
|
||||||
|
ecore_event_handler_add(ECORE_EVENT_KEY_UP, key_up_cb, pd);
|
||||||
|
|
||||||
|
evas_object_smart_callback_add(pd->obj, "part,clicked",
|
||||||
|
_enventor_part_clicked_cb, pd);
|
||||||
|
|
||||||
|
pd->font_scale = DEFAULT_FONT_SCALE;
|
||||||
|
pd->linenumber = DEFAULT_LINENUMBER;
|
||||||
|
pd->auto_indent = DEFAULT_AUTO_INDENT;
|
||||||
|
pd->part_highlight = DEFAULT_PART_HIGHLIGHT;
|
||||||
|
pd->smart_undo_redo = DEFAULT_SMART_UNDO_REDO;
|
||||||
|
pd->ctxpopup = DEFAULT_CTXPOPUP;
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static void
|
||||||
|
_enventor_object_efl_canvas_group_group_del(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
|
||||||
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = ENVENTOR_SYNTAX_COLOR_STRING; i < ENVENTOR_SYNTAX_COLOR_LAST; i++)
|
for (i = ENVENTOR_SYNTAX_COLOR_STRING; i < ENVENTOR_SYNTAX_COLOR_LAST; i++)
|
||||||
eina_stringshare_del(pd->text_color_val[i]);
|
eina_stringshare_del(pd->text_color_val[i]);
|
||||||
|
@ -271,202 +311,260 @@ _enventor_object_del_cb(void *data, Evas *e EINA_UNUSED,
|
||||||
build_term();
|
build_term();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
EOLIAN static void
|
||||||
_enventor_part_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ei)
|
_enventor_object_efl_canvas_group_group_member_add(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Evas_Object *child)
|
||||||
{
|
{
|
||||||
Enventor_Object_Data *pd = (Enventor_Object_Data *)data;
|
//Don't go through elm_widget to avoid color set.
|
||||||
if (pd->disabled || !pd->focused_it) return;
|
evas_object_data_set(child, "_elm_leaveme", (void*)1);
|
||||||
const char *part_name = (const char *)ei;
|
|
||||||
edit_part_cursor_set(pd->focused_it->ed, view_group_name_get(VIEW_DATA),
|
efl_canvas_group_member_add(eo_super(obj, MY_CLASS), child);
|
||||||
part_name);
|
|
||||||
|
Evas_Coord x, y, w, h;
|
||||||
|
evas_object_geometry_get(obj, &x, &y, &w, &h);
|
||||||
|
evas_object_move(child, x, y);
|
||||||
|
evas_object_resize(child, w, h);
|
||||||
|
evas_object_clip_set(child, evas_object_clip_get(obj));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
EOLIAN static void
|
||||||
/* Externally accessible calls */
|
_enventor_object_efl_canvas_group_group_move(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Evas_Coord x, Evas_Coord y)
|
||||||
/*****************************************************************************/
|
|
||||||
#if 0
|
|
||||||
EAPI void
|
|
||||||
enventor_object_efl_gfx_entity_visible_set(Enventor_Object *obj, Eina_Bool vis)
|
|
||||||
{
|
{
|
||||||
efl_gfx_entity_visible_set(efl_super(obj, MY_CLASS), vis);
|
Eina_Iterator *it = evas_object_smart_iterator_new(obj);
|
||||||
|
Evas_Object *o;
|
||||||
|
EINA_ITERATOR_FOREACH(it, o)
|
||||||
|
evas_object_move(o, x, y);
|
||||||
|
eina_iterator_free(it);
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static void
|
||||||
|
_enventor_object_efl_canvas_group_group_resize(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Evas_Coord w, Evas_Coord h)
|
||||||
|
{
|
||||||
|
Eina_Iterator *it = evas_object_smart_iterator_new(obj);
|
||||||
|
Evas_Object *o;
|
||||||
|
EINA_ITERATOR_FOREACH(it, o)
|
||||||
|
evas_object_resize(o, w, h);
|
||||||
|
eina_iterator_free(it);
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static void
|
||||||
|
_enventor_object_efl_canvas_group_group_show(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
|
||||||
|
{
|
||||||
if (!pd->focused_it) return;
|
if (!pd->focused_it) return;
|
||||||
Evas_Object *o = edit_obj_get(pd->focused_it->ed);
|
Evas_Object *o = edit_obj_get(pd->focused_it->ed);
|
||||||
if (vis)
|
|
||||||
evas_object_show(o);
|
evas_object_show(o);
|
||||||
else
|
}
|
||||||
|
|
||||||
|
EOLIAN static void
|
||||||
|
_enventor_object_efl_canvas_group_group_hide(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
|
||||||
|
{
|
||||||
|
if (!pd->focused_it) return;
|
||||||
|
Evas_Object *o = edit_obj_get(pd->focused_it->ed);
|
||||||
evas_object_hide(o);
|
evas_object_hide(o);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
EAPI Eina_List *
|
EOLIAN static void
|
||||||
enventor_object_programs_list_get(Enventor_Object *obj)
|
_enventor_object_efl_canvas_group_group_clip_set(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED, Evas_Object *clip)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
Eina_Iterator *it = evas_object_smart_iterator_new(obj);
|
||||||
|
Evas_Object *o;
|
||||||
|
EINA_ITERATOR_FOREACH(it, o)
|
||||||
|
evas_object_clip_set(o, clip);
|
||||||
|
eina_iterator_free(it);
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static void
|
||||||
|
_enventor_object_efl_canvas_group_group_clip_unset(Eo *obj, Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
|
{
|
||||||
|
Eina_Iterator *it = evas_object_smart_iterator_new(obj);
|
||||||
|
Evas_Object *o;
|
||||||
|
EINA_ITERATOR_FOREACH(it, o)
|
||||||
|
evas_object_clip_unset(o);
|
||||||
|
eina_iterator_free(it);
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static Eo *
|
||||||
|
_enventor_object_eo_base_constructor(Eo *obj,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
|
{
|
||||||
|
obj = eo_constructor(eo_super(obj, MY_CLASS));
|
||||||
|
efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
|
||||||
|
evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||||
|
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static Eina_Bool
|
||||||
|
_enventor_object_efl_file_file_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd,
|
||||||
|
const char *file,
|
||||||
|
const char *group EINA_UNUSED)
|
||||||
|
{
|
||||||
|
build_edc_path_set(file);
|
||||||
|
if (!file) goto err;
|
||||||
|
|
||||||
|
if (!edit_load(pd->main_it->ed, file)) return EINA_FALSE;
|
||||||
|
build_edc();
|
||||||
|
edit_changed_set(pd->main_it->ed, EINA_FALSE);
|
||||||
|
|
||||||
|
return EINA_TRUE;
|
||||||
|
|
||||||
|
err:
|
||||||
|
build_edc_path_set(NULL);
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
EOLIAN static Eina_List *
|
||||||
|
_enventor_object_programs_list_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
|
{
|
||||||
return view_programs_list_get(VIEW_DATA);
|
return view_programs_list_get(VIEW_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_List *
|
EOLIAN static Eina_List *
|
||||||
enventor_object_part_states_list_get(Enventor_Object *obj, const char *part)
|
_enventor_object_part_states_list_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
const char *part)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
|
||||||
|
|
||||||
return view_part_states_list_get(VIEW_DATA, part);
|
return view_part_states_list_get(VIEW_DATA, part);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Edje_Part_Type
|
EOLIAN static Edje_Part_Type
|
||||||
enventor_object_part_type_get(Enventor_Object *obj, const char *part_name)
|
_enventor_object_part_type_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
const char *part_name)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, 0);
|
|
||||||
|
|
||||||
return view_part_type_get(VIEW_DATA, part_name);
|
return view_part_type_get(VIEW_DATA, part_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_List *
|
EOLIAN static Eina_List *
|
||||||
enventor_object_parts_list_get(Enventor_Object *obj)
|
_enventor_object_parts_list_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
|
||||||
|
|
||||||
return view_parts_list_get(VIEW_DATA);
|
return view_parts_list_get(VIEW_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_linenumber_set(Enventor_Object *obj, Eina_Bool linenumber)
|
_enventor_object_linenumber_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
|
||||||
|
Eina_Bool linenumber)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
linenumber = !!linenumber;
|
linenumber = !!linenumber;
|
||||||
|
|
||||||
if (pd->linenumber == linenumber) return;
|
if (pd->linenumber == linenumber) return;
|
||||||
|
|
||||||
if (!pd->focused_it) return;
|
|
||||||
|
|
||||||
//Main Item
|
//Main Item
|
||||||
edit_linenumber_set(pd->focused_it->ed, linenumber);
|
edit_linenumber_set(pd->focused_it->ed, linenumber);
|
||||||
|
|
||||||
pd->linenumber = linenumber;
|
pd->linenumber = linenumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_linenumber_get(const Enventor_Object *obj)
|
_enventor_object_linenumber_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return pd->linenumber;
|
return pd->linenumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_smart_undo_redo_set(Enventor_Object *obj, Eina_Bool smart_undo_redo)
|
_enventor_object_smart_undo_redo_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd,
|
||||||
|
Eina_Bool smart_undo_redo)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
smart_undo_redo = !!smart_undo_redo;
|
smart_undo_redo = !!smart_undo_redo;
|
||||||
pd->smart_undo_redo = smart_undo_redo;
|
pd->smart_undo_redo = smart_undo_redo;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_smart_undo_redo_get(const Enventor_Object *obj)
|
_enventor_object_smart_undo_redo_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return pd->smart_undo_redo;
|
return pd->smart_undo_redo;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_auto_indent_set(Enventor_Object *obj, Eina_Bool auto_indent)
|
_enventor_object_auto_indent_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
|
||||||
|
Eina_Bool auto_indent)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
pd->auto_indent = !!auto_indent;
|
pd->auto_indent = !!auto_indent;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_auto_indent_get(const Enventor_Object *obj)
|
_enventor_object_auto_indent_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return pd->auto_indent;
|
return pd->auto_indent;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_auto_complete_set(Enventor_Object *obj, Eina_Bool auto_complete)
|
_enventor_object_auto_complete_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
Eina_Bool auto_complete)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
autocomp_enabled_set(auto_complete);
|
autocomp_enabled_set(auto_complete);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_auto_complete_get(const Enventor_Object *obj)
|
_enventor_object_auto_complete_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return autocomp_enabled_get();
|
return autocomp_enabled_get();
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_auto_complete_list_show(Enventor_Object *obj)
|
_enventor_object_auto_complete_list_show(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
autocomp_list_show();
|
autocomp_list_show();
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_path_set(Enventor_Object *obj, Enventor_Path_Type type,
|
_enventor_object_path_set(Eo *obj EINA_UNUSED,
|
||||||
Eina_List *pathes)
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
Enventor_Path_Type type, const Eina_List *pathes)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return build_path_set(type, pathes);
|
return build_path_set(type, pathes);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI const Eina_List *
|
EOLIAN static const Eina_List *
|
||||||
enventor_object_path_get(Enventor_Object *obj, Enventor_Path_Type type)
|
_enventor_object_path_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
Enventor_Path_Type type)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
|
||||||
|
|
||||||
return build_path_get(type);
|
return build_path_get(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_live_view_scale_set(Enventor_Object *obj, double scale)
|
_enventor_object_live_view_scale_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
double scale)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
view_scale_set(VIEW_DATA, scale);
|
view_scale_set(VIEW_DATA, scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_live_view_size_set(Enventor_Object *obj, Evas_Coord w, Evas_Coord h)
|
_enventor_object_live_view_size_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
Evas_Coord w, Evas_Coord h)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
view_size_set(VIEW_DATA, w, h);
|
view_size_set(VIEW_DATA, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_live_view_size_get(Enventor_Object *obj, Evas_Coord *w, Evas_Coord *h)
|
_enventor_object_live_view_size_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
Evas_Coord *w, Evas_Coord *h)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
view_size_get(VIEW_DATA, w, h);
|
view_size_get(VIEW_DATA, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI double
|
EOLIAN static double
|
||||||
enventor_object_live_view_scale_get(const Enventor_Object *obj)
|
_enventor_object_live_view_scale_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, 1);
|
|
||||||
|
|
||||||
return view_scale_get(VIEW_DATA);
|
return view_scale_get(VIEW_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_dummy_parts_set(Enventor_Object *obj, Eina_Bool dummy_parts)
|
_enventor_object_dummy_parts_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd,
|
||||||
|
Eina_Bool dummy_parts)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
dummy_parts = !!dummy_parts;
|
dummy_parts = !!dummy_parts;
|
||||||
if (pd->dummy_parts == dummy_parts) return;
|
if (pd->dummy_parts == dummy_parts) return;
|
||||||
|
|
||||||
|
@ -474,133 +572,120 @@ enventor_object_dummy_parts_set(Enventor_Object *obj, Eina_Bool dummy_parts)
|
||||||
pd->dummy_parts = dummy_parts;
|
pd->dummy_parts = dummy_parts;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_ctxpopup_get(const Enventor_Object *obj)
|
_enventor_object_ctxpopup_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return pd->ctxpopup;
|
return pd->ctxpopup;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_ctxpopup_set(Enventor_Object *obj, Eina_Bool ctxpopup)
|
_enventor_object_ctxpopup_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
|
||||||
|
Eina_Bool ctxpopup)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
ctxpopup = !!ctxpopup;
|
ctxpopup = !!ctxpopup;
|
||||||
pd->ctxpopup = ctxpopup;
|
pd->ctxpopup = ctxpopup;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_ctxpopup_visible_get(Enventor_Object *obj)
|
_enventor_object_ctxpopup_visible_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
if (!pd->focused_it) return EINA_FALSE;
|
if (!pd->focused_it) return EINA_FALSE;
|
||||||
return edit_ctxpopup_visible_get(pd->focused_it->ed);
|
return edit_ctxpopup_visible_get(pd->focused_it->ed);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_ctxpopup_dismiss(Enventor_Object *obj)
|
_enventor_object_ctxpopup_dismiss(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
if (!pd->focused_it) return;
|
if (!pd->focused_it) return;
|
||||||
edit_ctxpopup_dismiss(pd->focused_it->ed);
|
edit_ctxpopup_dismiss(pd->focused_it->ed);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_dummy_parts_get(const Enventor_Object *obj)
|
_enventor_object_dummy_parts_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return pd->dummy_parts;
|
return pd->dummy_parts;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_wireframes_set(Enventor_Object *obj, Eina_Bool wireframes)
|
_enventor_object_wireframes_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd,
|
||||||
|
Eina_Bool wireframes)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
wireframes = !!wireframes;
|
wireframes = !!wireframes;
|
||||||
|
|
||||||
view_wireframes_set(VIEW_DATA, wireframes);
|
view_wireframes_set(VIEW_DATA, wireframes);
|
||||||
pd->wireframes = wireframes;
|
pd->wireframes = wireframes;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_wireframes_get(const Enventor_Object *obj)
|
_enventor_object_wireframes_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return pd->wireframes;
|
return pd->wireframes;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
|
||||||
enventor_object_part_highlight_set(Enventor_Object *obj, Eina_Bool part_highlight)
|
|
||||||
{
|
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
|
EOLIAN static void
|
||||||
|
_enventor_object_part_highlight_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd,
|
||||||
|
Eina_Bool part_highlight)
|
||||||
|
{
|
||||||
part_highlight = !!part_highlight;
|
part_highlight = !!part_highlight;
|
||||||
if (pd->part_highlight == part_highlight) return;
|
if (pd->part_highlight == part_highlight) return;
|
||||||
pd->part_highlight = part_highlight;
|
pd->part_highlight = part_highlight;
|
||||||
|
|
||||||
if (!pd->focused_it) return;
|
|
||||||
|
|
||||||
//Main Item
|
//Main Item
|
||||||
if (part_highlight) edit_view_sync(pd->focused_it->ed);
|
if (part_highlight && pd->focused_it) edit_view_sync(pd->focused_it->ed);
|
||||||
else view_part_highlight_set(VIEW_DATA, NULL);
|
else view_part_highlight_set(VIEW_DATA, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_part_highlight_get(const Enventor_Object *obj)
|
_enventor_object_part_highlight_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return pd->part_highlight;
|
return pd->part_highlight;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_mirror_mode_set(Enventor_Object *obj, Eina_Bool mirror_mode)
|
_enventor_object_mirror_mode_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd,
|
||||||
|
Eina_Bool mirror_mode)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
pd->mirror_mode = !!mirror_mode;
|
pd->mirror_mode = !!mirror_mode;
|
||||||
view_mirror_mode_update(VIEW_DATA);
|
view_mirror_mode_update(VIEW_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_mirror_mode_get(const Enventor_Object *obj)
|
_enventor_object_mirror_mode_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
return pd->mirror_mode;
|
return pd->mirror_mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_focus_set(Enventor_Object *obj, Eina_Bool focus)
|
_enventor_object_focus_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
Eina_Bool focus)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
if (!pd->focused_it) return;
|
if (!pd->focused_it) return;
|
||||||
|
|
||||||
edit_focus_set(pd->focused_it->ed, focus);
|
edit_focus_set(pd->focused_it->ed, focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
enventor_object_focus_get(const Enventor_Object *obj)
|
_enventor_object_focus_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, EINA_FALSE);
|
|
||||||
|
|
||||||
if (!pd->focused_it) return EINA_FALSE;
|
if (!pd->focused_it) return EINA_FALSE;
|
||||||
return edit_focus_get(pd->focused_it->ed);
|
return edit_focus_get(pd->focused_it->ed);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_font_scale_set(Enventor_Object *obj, double font_scale)
|
_enventor_object_font_scale_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
|
||||||
|
double font_scale)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
if (pd->font_scale == font_scale) return;
|
if (pd->font_scale == font_scale) return;
|
||||||
pd->font_scale = font_scale;
|
pd->font_scale = font_scale;
|
||||||
|
|
||||||
|
@ -608,20 +693,16 @@ enventor_object_font_scale_set(Enventor_Object *obj, double font_scale)
|
||||||
edit_font_scale_set(pd->focused_it->ed, font_scale);
|
edit_font_scale_set(pd->focused_it->ed, font_scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI double
|
EOLIAN static double
|
||||||
enventor_object_font_scale_get(const Enventor_Object *obj)
|
_enventor_object_font_scale_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, 1);
|
|
||||||
|
|
||||||
return pd->font_scale;
|
return pd->font_scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_font_set(Enventor_Object *obj, const char *font_name,
|
_enventor_object_font_set(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
|
||||||
const char *font_style)
|
const char *font_name, const char *font_style)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
if (!font_name) return;
|
if (!font_name) return;
|
||||||
if ((font_name == pd->font_name) && (font_style == pd->font_style)) return;
|
if ((font_name == pd->font_name) && (font_style == pd->font_style)) return;
|
||||||
|
|
||||||
|
@ -636,22 +717,20 @@ enventor_object_font_set(Enventor_Object *obj, const char *font_name,
|
||||||
elm_font_fontconfig_name_free(font);
|
elm_font_fontconfig_name_free(font);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_font_get(Enventor_Object *obj, const char **font_name,
|
_enventor_object_font_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd,
|
||||||
const char **font_style)
|
const char **font_name, const char **font_style)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
if (font_name) *font_name = pd->font_name;
|
if (font_name) *font_name = pd->font_name;
|
||||||
if (font_style) *font_style = pd->font_style;
|
if (font_style) *font_style = pd->font_style;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_syntax_color_set(Enventor_Object *obj,
|
_enventor_object_syntax_color_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd,
|
||||||
Enventor_Syntax_Color_Type color_type,
|
Enventor_Syntax_Color_Type color_type,
|
||||||
const char *val)
|
const char *val)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN(val);
|
EINA_SAFETY_ON_NULL_RETURN(val);
|
||||||
|
|
||||||
if ((color_type < ENVENTOR_SYNTAX_COLOR_STRING) ||
|
if ((color_type < ENVENTOR_SYNTAX_COLOR_STRING) ||
|
||||||
|
@ -675,12 +754,11 @@ enventor_object_syntax_color_set(Enventor_Object *obj,
|
||||||
edit_syntax_color_set(it->ed, color_type, val);
|
edit_syntax_color_set(it->ed, color_type, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI const char *
|
EOLIAN static const char *
|
||||||
enventor_object_syntax_color_get(Enventor_Object *obj,
|
_enventor_object_syntax_color_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd,
|
||||||
Enventor_Syntax_Color_Type color_type)
|
Enventor_Syntax_Color_Type color_type)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
|
||||||
|
|
||||||
if ((color_type < ENVENTOR_SYNTAX_COLOR_STRING) ||
|
if ((color_type < ENVENTOR_SYNTAX_COLOR_STRING) ||
|
||||||
(color_type >= ENVENTOR_SYNTAX_COLOR_LAST))
|
(color_type >= ENVENTOR_SYNTAX_COLOR_LAST))
|
||||||
{
|
{
|
||||||
|
@ -695,111 +773,70 @@ enventor_object_syntax_color_get(Enventor_Object *obj,
|
||||||
return color_value_get(color_type);
|
return color_value_get(color_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eo *
|
EOLIAN static Eo *
|
||||||
enventor_object_live_view_get(Enventor_Object *obj)
|
_enventor_object_live_view_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
|
||||||
|
|
||||||
return edj_mgr_obj_get();
|
return edj_mgr_obj_get();
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_disabled_set(Enventor_Object *obj, Eina_Bool disabled)
|
_enventor_object_disabled_set(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd,
|
||||||
|
Eina_Bool disabled)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
disabled = !!disabled;
|
disabled = !!disabled;
|
||||||
if (pd->disabled == disabled) return;
|
if (pd->disabled == disabled) return;
|
||||||
|
|
||||||
if (!pd->focused_it) return;
|
|
||||||
edit_disabled_set(pd->focused_it->ed, disabled);
|
edit_disabled_set(pd->focused_it->ed, disabled);
|
||||||
|
|
||||||
pd->disabled = !!disabled;
|
pd->disabled = !!disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_program_run(Enventor_Object *obj, const char *program)
|
_enventor_object_program_run(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED,
|
||||||
|
const char *program)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
view_program_run(VIEW_DATA, program);
|
view_program_run(VIEW_DATA, program);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_programs_stop(Enventor_Object *obj)
|
_enventor_object_programs_stop(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
view_programs_stop(VIEW_DATA);
|
view_programs_stop(VIEW_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EOLIAN static void
|
||||||
enventor_object_keyword_reference_show(Enventor_Object *obj)
|
_enventor_object_keyword_reference_show(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN(obj, pd);
|
|
||||||
|
|
||||||
if (!pd->focused_it) return;
|
|
||||||
ref_show(pd->focused_it->ed);
|
ref_show(pd->focused_it->ed);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI double
|
EOLIAN static double
|
||||||
enventor_object_base_scale_get(Enventor_Object *obj)
|
_enventor_object_base_scale_get(Eo *obj EINA_UNUSED,
|
||||||
|
Enventor_Object_Data *pd EINA_UNUSED)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, 1);
|
|
||||||
|
|
||||||
return view_base_scale_get(VIEW_DATA);
|
return view_base_scale_get(VIEW_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/* Externally accessible calls */
|
||||||
|
/*****************************************************************************/
|
||||||
EAPI Enventor_Object *
|
EAPI Enventor_Object *
|
||||||
enventor_object_add(Eo *parent)
|
enventor_object_add(Enventor_Object *parent)
|
||||||
{
|
{
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
|
||||||
|
Evas_Object *obj = eo_add(MY_CLASS, parent);
|
||||||
Enventor_Object_Data *pd = calloc(1, sizeof(Enventor_Object_Data));
|
|
||||||
if (!pd)
|
|
||||||
{
|
|
||||||
mem_fail_msg();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
//TODO: These could be remove when removing enventor object library support
|
|
||||||
Eo *obj = elm_layout_add(parent);
|
|
||||||
elm_layout_file_set(obj, EDJE_PATH, "enventor_object");
|
|
||||||
evas_object_event_callback_add(obj, EVAS_CALLBACK_DEL, _enventor_object_del_cb, pd);
|
|
||||||
evas_object_data_set(obj, "_enventor", pd);
|
|
||||||
|
|
||||||
pd->obj = obj;
|
|
||||||
|
|
||||||
build_init();
|
|
||||||
autocomp_init();
|
|
||||||
ref_init();
|
|
||||||
edj_mgr_init(obj);
|
|
||||||
build_err_noti_cb_set(build_err_noti_cb, pd);
|
|
||||||
|
|
||||||
pd->key_down_handler =
|
|
||||||
ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, key_down_cb, pd);
|
|
||||||
pd->key_up_handler =
|
|
||||||
ecore_event_handler_add(ECORE_EVENT_KEY_UP, key_up_cb, pd);
|
|
||||||
|
|
||||||
evas_object_smart_callback_add(pd->obj, "part,clicked",
|
|
||||||
_enventor_part_clicked_cb, pd);
|
|
||||||
|
|
||||||
pd->font_scale = DEFAULT_FONT_SCALE;
|
|
||||||
pd->linenumber = DEFAULT_LINENUMBER;
|
|
||||||
pd->auto_indent = DEFAULT_AUTO_INDENT;
|
|
||||||
pd->part_highlight = DEFAULT_PART_HIGHLIGHT;
|
|
||||||
pd->smart_undo_redo = DEFAULT_SMART_UNDO_REDO;
|
|
||||||
pd->ctxpopup = DEFAULT_CTXPOPUP;
|
|
||||||
|
|
||||||
elm_object_focus_allow_set(obj, EINA_FALSE);
|
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Enventor_Item *
|
EAPI Enventor_Item *
|
||||||
enventor_object_sub_item_add(Enventor_Object *obj, const char *file)
|
enventor_object_sub_item_add(Enventor_Object *obj, const char *file)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
Enventor_Object_Data *pd = eo_data_scope_get(obj, ENVENTOR_OBJECT_CLASS);
|
||||||
|
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
|
@ -843,7 +880,7 @@ enventor_object_sub_item_add(Enventor_Object *obj, const char *file)
|
||||||
EAPI Enventor_Item *
|
EAPI Enventor_Item *
|
||||||
enventor_object_main_item_set(Enventor_Object *obj, const char *file)
|
enventor_object_main_item_set(Enventor_Object *obj, const char *file)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
Enventor_Object_Data *pd = eo_data_scope_get(obj, ENVENTOR_OBJECT_CLASS);
|
||||||
|
|
||||||
edj_mgr_clear();
|
edj_mgr_clear();
|
||||||
_enventor_main_item_free(pd);
|
_enventor_main_item_free(pd);
|
||||||
|
@ -860,46 +897,35 @@ enventor_object_main_item_set(Enventor_Object *obj, const char *file)
|
||||||
it->ed = edit_init(obj, it);
|
it->ed = edit_init(obj, it);
|
||||||
it->pd = pd;
|
it->pd = pd;
|
||||||
|
|
||||||
build_edc_path_set(file);
|
if (!efl_file_set(obj, file, NULL))
|
||||||
if (!file) goto err;
|
{
|
||||||
|
|
||||||
if (!edit_load(pd->main_it->ed, file)) goto err;
|
|
||||||
build_edc();
|
|
||||||
edit_changed_set(pd->main_it->ed, EINA_FALSE);
|
|
||||||
|
|
||||||
return it;
|
|
||||||
|
|
||||||
err:
|
|
||||||
eina_error_set(ENVENTOR_FILE_SET_ERROR_GENERIC);
|
|
||||||
build_edc_path_set(NULL);
|
|
||||||
edit_term(it->ed);
|
edit_term(it->ed);
|
||||||
pd->main_it = NULL;
|
pd->main_it = NULL;
|
||||||
free(it);
|
free(it);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return it;
|
||||||
|
}
|
||||||
|
|
||||||
EAPI Enventor_Item *
|
EAPI Enventor_Item *
|
||||||
enventor_object_main_item_get(const Enventor_Object *obj)
|
enventor_object_main_item_get(const Enventor_Object *obj)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
Enventor_Object_Data *pd = eo_data_scope_get(obj, ENVENTOR_OBJECT_CLASS);
|
||||||
|
|
||||||
return pd->main_it;
|
return pd->main_it;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI const Eina_List *
|
EAPI const Eina_List *
|
||||||
enventor_object_sub_items_get(const Enventor_Object *obj)
|
enventor_object_sub_items_get(const Enventor_Object *obj)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
Enventor_Object_Data *pd = eo_data_scope_get(obj, ENVENTOR_OBJECT_CLASS);
|
||||||
|
|
||||||
return pd->sub_its;
|
return pd->sub_its;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Enventor_Item *
|
EAPI Enventor_Item *
|
||||||
enventor_object_focused_item_get(const Enventor_Object *obj)
|
enventor_object_focused_item_get(const Enventor_Object *obj)
|
||||||
{
|
{
|
||||||
ENVENTOR_OBJECT_DATA_GET_OR_RETURN_VAL(obj, pd, NULL);
|
Enventor_Object_Data *pd = eo_data_scope_get(obj, ENVENTOR_OBJECT_CLASS);
|
||||||
|
|
||||||
return pd->focused_it;
|
return pd->focused_it;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -933,10 +959,8 @@ enventor_item_represent(Enventor_Item *it)
|
||||||
edit_font_scale_set(it->ed, pd->font_scale);
|
edit_font_scale_set(it->ed, pd->font_scale);
|
||||||
edit_disabled_set(it->ed, pd->disabled);
|
edit_disabled_set(it->ed, pd->disabled);
|
||||||
|
|
||||||
//TODO: Thise could be remove when removing enventor object library support
|
if (evas_object_visible_get(it->pd->obj))
|
||||||
Eo *obj = elm_layout_content_unset(it->pd->obj, "main");
|
evas_object_show(edit_obj_get(it->ed));
|
||||||
evas_object_hide(obj);
|
|
||||||
elm_layout_content_set(it->pd->obj, "main", edit_obj_get(it->ed));
|
|
||||||
|
|
||||||
autocomp_target_set(it->ed);
|
autocomp_target_set(it->ed);
|
||||||
|
|
||||||
|
@ -1222,3 +1246,5 @@ enventor_item_group_list_get(Enventor_Item *it)
|
||||||
|
|
||||||
return edit_group_list_get(it->ed);
|
return edit_group_list_get(it->ed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "enventor_object.eo.c"
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
|
|
||||||
enventor_header_src = [ 'Enventor.h' ]
|
|
||||||
|
|
||||||
install_headers(enventor_header_src,
|
|
||||||
install_dir : dir_pkginclude + '-' + v_maj
|
|
||||||
)
|
|
||||||
|
|
||||||
enventor_src = [
|
|
||||||
'auto_comp.c',
|
|
||||||
'build.c',
|
|
||||||
'ctxpopup.c',
|
|
||||||
'dummy_obj.c',
|
|
||||||
'edc_editor.c',
|
|
||||||
'edc_parser.c',
|
|
||||||
'edj_mgr.c',
|
|
||||||
'edj_viewer.c',
|
|
||||||
'enventor_main.c',
|
|
||||||
'enventor_smart.c',
|
|
||||||
'redoundo.c',
|
|
||||||
'reference.c',
|
|
||||||
'syntax_color.c',
|
|
||||||
'syntax_helper.c',
|
|
||||||
'syntax_indent.c',
|
|
||||||
'template.c',
|
|
||||||
'util.c',
|
|
||||||
'wireframes_obj.c'
|
|
||||||
]
|
|
||||||
|
|
||||||
enventor_lib = library('enventor', enventor_src,
|
|
||||||
c_args : [ enventor_cargs,
|
|
||||||
'-DHAVE_CONFIG_H',
|
|
||||||
'-DENVENTOR_WIN32_BUILD_SUPPORT',
|
|
||||||
'-I' + join_paths(meson.source_root(), 'src/include')
|
|
||||||
],
|
|
||||||
dependencies : enventor_deps,
|
|
||||||
include_directories : config_dir,
|
|
||||||
install : true,
|
|
||||||
version : meson.project_version()
|
|
||||||
)
|
|
||||||
|
|
||||||
enventor = declare_dependency(
|
|
||||||
include_directories : [ include_directories('.')],
|
|
||||||
link_with : enventor_lib,
|
|
||||||
dependencies : enventor_deps
|
|
||||||
)
|
|
|
@ -50,7 +50,7 @@ entry_del_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||||
rd->cursor = NULL;
|
rd->cursor = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
Eina_Bool
|
||||||
_input_timer_cb(void *data)
|
_input_timer_cb(void *data)
|
||||||
{
|
{
|
||||||
redoundo_data *rd = (redoundo_data *)data;
|
redoundo_data *rd = (redoundo_data *)data;
|
||||||
|
@ -63,8 +63,7 @@ _input_timer_cb(void *data)
|
||||||
static diff_data *
|
static diff_data *
|
||||||
smart_analyser(redoundo_data *rd, diff_data *diff)
|
smart_analyser(redoundo_data *rd, diff_data *diff)
|
||||||
{
|
{
|
||||||
Eina_Bool is_continues_text = EINA_FALSE;
|
if (!enventor_obj_smart_undo_redo_get(rd->enventor)) return diff;
|
||||||
if (!enventor_object_smart_undo_redo_get(rd->enventor)) return diff;
|
|
||||||
|
|
||||||
if (rd->smart.timer)
|
if (rd->smart.timer)
|
||||||
{
|
{
|
||||||
|
@ -74,43 +73,21 @@ smart_analyser(redoundo_data *rd, diff_data *diff)
|
||||||
|
|
||||||
if (!diff) return diff;
|
if (!diff) return diff;
|
||||||
|
|
||||||
if (!rd->last_diff || (rd->last_diff->action != diff->action))
|
if (diff->length == 1 && enventor_obj_auto_indent_get(rd->enventor))
|
||||||
{
|
|
||||||
rd->smart.continues_input = EINA_TRUE;
|
|
||||||
return diff;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (diff->length == 1 && enventor_object_auto_indent_get(rd->enventor))
|
|
||||||
{
|
{
|
||||||
if (strstr(diff->text, "<br/>")) diff->relative = EINA_TRUE;
|
if (strstr(diff->text, "<br/>")) diff->relative = EINA_TRUE;
|
||||||
else diff->relative = EINA_FALSE;
|
else diff->relative = EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determine the text of diff is continuous
|
|
||||||
if (diff->action ?
|
|
||||||
((rd->last_diff->cursor_pos + rd->last_diff->length) == diff->cursor_pos) :
|
|
||||||
((diff->cursor_pos + diff->length) == rd->last_diff->cursor_pos) ||
|
|
||||||
(diff->cursor_pos == rd->last_diff->cursor_pos))
|
|
||||||
is_continues_text = EINA_TRUE;
|
|
||||||
|
|
||||||
// Analyse speed of text input and words separates
|
// Analyse speed of text input and words separates
|
||||||
if ((rd->smart.continues_input) && (!diff->relative) &&
|
if ((rd->smart.continues_input) && (!diff->relative) &&
|
||||||
(isalpha(diff->text[0])) && (isalpha(rd->last_diff->text[0])) &&
|
(isalpha(diff->text[0])) && (rd->last_diff && (isalpha(rd->last_diff->text[0]))))
|
||||||
(is_continues_text))
|
|
||||||
{
|
{
|
||||||
diff_data *tmp = diff;
|
diff_data *tmp = diff;
|
||||||
const char *text;
|
const char *text;
|
||||||
diff = rd->last_diff;
|
diff = rd->last_diff;
|
||||||
diff->length += tmp->length;
|
diff->length += tmp->length;
|
||||||
|
|
||||||
if (diff->action || (diff->cursor_pos == tmp->cursor_pos))
|
|
||||||
text = eina_stringshare_printf("%s%s", diff->text, tmp->text);
|
text = eina_stringshare_printf("%s%s", diff->text, tmp->text);
|
||||||
else
|
|
||||||
{
|
|
||||||
diff->cursor_pos = tmp->cursor_pos;
|
|
||||||
text = eina_stringshare_printf("%s%s", tmp->text, diff->text);
|
|
||||||
}
|
|
||||||
|
|
||||||
eina_stringshare_replace(&diff->text, text);
|
eina_stringshare_replace(&diff->text, text);
|
||||||
eina_stringshare_del(text);
|
eina_stringshare_del(text);
|
||||||
rd->last_diff = eina_list_data_get(eina_list_prev(rd->current_node));
|
rd->last_diff = eina_list_data_get(eina_list_prev(rd->current_node));
|
||||||
|
|
|
@ -143,7 +143,7 @@ cursor_keyword_name_find(Evas_Object *entry)
|
||||||
cur_ptr++;
|
cur_ptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
keyword_name = eina_strndup(cur_begin_ptr, (cur_end_ptr - cur_begin_ptr + 1));
|
keyword_name = strndup(cur_begin_ptr, (cur_end_ptr - cur_begin_ptr + 1));
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (cur_begin) evas_textblock_cursor_free(cur_begin);
|
if (cur_begin) evas_textblock_cursor_free(cur_begin);
|
||||||
|
@ -217,7 +217,7 @@ keyword_hierarchy_find(const char *text, const char *keyword_name)
|
||||||
if (parent_end && !parent_begin)
|
if (parent_end && !parent_begin)
|
||||||
parent_begin = text;
|
parent_begin = text;
|
||||||
|
|
||||||
char *parent_name = eina_strndup(parent_begin,
|
char *parent_name = strndup(parent_begin,
|
||||||
(parent_end - parent_begin + 1));
|
(parent_end - parent_begin + 1));
|
||||||
keyword_hierarchy = eina_list_prepend(keyword_hierarchy,
|
keyword_hierarchy = eina_list_prepend(keyword_hierarchy,
|
||||||
parent_name);
|
parent_name);
|
||||||
|
@ -357,7 +357,7 @@ keyword_full_name_parse(const char *keyword_full_name)
|
||||||
char *dot = strstr(keyword_full_name, ".");
|
char *dot = strstr(keyword_full_name, ".");
|
||||||
while (dot)
|
while (dot)
|
||||||
{
|
{
|
||||||
keyword_name = eina_strndup(keyword_begin, (dot - keyword_begin));
|
keyword_name = strndup(keyword_begin, (dot - keyword_begin));
|
||||||
keyword_hierarchy = eina_list_append(keyword_hierarchy, keyword_name);
|
keyword_hierarchy = eina_list_append(keyword_hierarchy, keyword_name);
|
||||||
|
|
||||||
keyword_begin = dot + 1; //Move pointer after ".".
|
keyword_begin = dot + 1; //Move pointer after ".".
|
||||||
|
@ -369,7 +369,7 @@ keyword_full_name_parse(const char *keyword_full_name)
|
||||||
|
|
||||||
keyword_hierarchy =
|
keyword_hierarchy =
|
||||||
eina_list_append(keyword_hierarchy,
|
eina_list_append(keyword_hierarchy,
|
||||||
eina_strndup(keyword_begin, (keyword_end - keyword_begin)));
|
strndup(keyword_begin, (keyword_end - keyword_begin)));
|
||||||
|
|
||||||
return keyword_hierarchy;
|
return keyword_hierarchy;
|
||||||
}
|
}
|
||||||
|
@ -400,7 +400,7 @@ inherit_find(const char *text_begin, const char *text_end, char **inherit_end)
|
||||||
base_keyword_end--;
|
base_keyword_end--;
|
||||||
|
|
||||||
base_keyword_full_name =
|
base_keyword_full_name =
|
||||||
eina_strndup((const char *)base_keyword_begin,
|
strndup((const char *)base_keyword_begin,
|
||||||
(base_keyword_end - base_keyword_begin + 1));
|
(base_keyword_end - base_keyword_begin + 1));
|
||||||
|
|
||||||
//Indicates the ending position of #inherit expression.
|
//Indicates the ending position of #inherit expression.
|
||||||
|
@ -457,7 +457,7 @@ keyword_tree_load_internal(keyword_data *keyword_root, char **ptr,
|
||||||
}
|
}
|
||||||
if (!keyword_name_begin || !keyword_name_end) break;
|
if (!keyword_name_begin || !keyword_name_end) break;
|
||||||
|
|
||||||
keyword_name = eina_strndup(keyword_name_begin,
|
keyword_name = strndup(keyword_name_begin,
|
||||||
(keyword_name_end - keyword_name_begin + 1));
|
(keyword_name_end - keyword_name_begin + 1));
|
||||||
if (!keyword_name) break;
|
if (!keyword_name) break;
|
||||||
(*ptr)++; //Move pointer after "{".
|
(*ptr)++; //Move pointer after "{".
|
||||||
|
@ -483,7 +483,7 @@ keyword_tree_load_internal(keyword_data *keyword_root, char **ptr,
|
||||||
keyword_desc_end--;
|
keyword_desc_end--;
|
||||||
|
|
||||||
keyword_desc =
|
keyword_desc =
|
||||||
eina_strndup((const char *)keyword_desc_begin,
|
strndup((const char *)keyword_desc_begin,
|
||||||
(keyword_desc_end - keyword_desc_begin + 1));
|
(keyword_desc_end - keyword_desc_begin + 1));
|
||||||
|
|
||||||
if (!keyword_desc)
|
if (!keyword_desc)
|
||||||
|
|
|
@ -112,7 +112,7 @@ eddc_term(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
color_load(void)
|
color_load()
|
||||||
{
|
{
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
snprintf(buf, sizeof(buf), "%s/color/edc.eet", elm_app_data_dir_get());
|
snprintf(buf, sizeof(buf), "%s/color/edc.eet", elm_app_data_dir_get());
|
||||||
|
@ -189,7 +189,7 @@ macro_key_push(color_data *cd, char *str)
|
||||||
char *cut = strchr(key, '(');
|
char *cut = strchr(key, '(');
|
||||||
if (cut)
|
if (cut)
|
||||||
{
|
{
|
||||||
key = eina_strndup(str, cut - str);
|
key = strndup(str, cut - str);
|
||||||
if (!key) return;
|
if (!key) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -474,7 +474,7 @@ macro_apply(Eina_Strbuf *strbuf, const char **src, int length, char **cur,
|
||||||
if ((macro_end > macro_begin) &&
|
if ((macro_end > macro_begin) &&
|
||||||
((macro_begin[0] < '0') || (macro_begin[0] > '9')))
|
((macro_begin[0] < '0') || (macro_begin[0] > '9')))
|
||||||
{
|
{
|
||||||
char *macro = eina_strndup(macro_begin, (macro_end - macro_begin));
|
char *macro = strndup(macro_begin, (macro_end - macro_begin));
|
||||||
macro_key_push(cd, macro);
|
macro_key_push(cd, macro);
|
||||||
free(macro);
|
free(macro);
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,75 +94,6 @@ indent_insert_br_case(indent_data *id)
|
||||||
elm_entry_entry_insert(entry, p);
|
elm_entry_entry_insert(entry, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
indent_insert_tab_case(indent_data *id)
|
|
||||||
{
|
|
||||||
Evas_Object *entry = id->entry;
|
|
||||||
Evas_Object *tb = elm_entry_textblock_get(entry);
|
|
||||||
Evas_Textblock_Cursor *cur_orig = evas_object_textblock_cursor_get(tb);
|
|
||||||
Evas_Textblock_Cursor *cur = evas_object_textblock_cursor_new(tb);
|
|
||||||
char *utf8 = NULL;
|
|
||||||
int utf8_len = 0;
|
|
||||||
char *p = NULL;
|
|
||||||
Eina_Bool insert_indent_space = EINA_FALSE;
|
|
||||||
|
|
||||||
//Remove inserted "<tab/>".
|
|
||||||
evas_textblock_cursor_pos_set(cur, evas_textblock_cursor_pos_get(cur_orig));
|
|
||||||
evas_textblock_cursor_char_prev(cur);
|
|
||||||
if (!strncmp(evas_textblock_cursor_content_get(cur), TAB, TAB_LEN))
|
|
||||||
{
|
|
||||||
//Cancel added "<tab/>" from redoundo.
|
|
||||||
redoundo_n_diff_cancel(id->rd, 1);
|
|
||||||
evas_textblock_cursor_char_delete(cur);
|
|
||||||
}
|
|
||||||
evas_textblock_cursor_pos_set(cur, evas_textblock_cursor_pos_get(cur_orig));
|
|
||||||
|
|
||||||
/* Spaces for indent are not required.
|
|
||||||
Insert spaces for tab. */
|
|
||||||
int space = indent_space_get(id);
|
|
||||||
if (space <= 0) goto end;
|
|
||||||
|
|
||||||
evas_textblock_cursor_paragraph_prev(cur);
|
|
||||||
evas_textblock_cursor_paragraph_next(cur);
|
|
||||||
utf8 = evas_textblock_cursor_range_text_get(cur, cur_orig,
|
|
||||||
EVAS_TEXTBLOCK_TEXT_PLAIN);
|
|
||||||
/* There is no paragraph.
|
|
||||||
Insert spaces for indent. */
|
|
||||||
if (!utf8)
|
|
||||||
{
|
|
||||||
insert_indent_space = EINA_TRUE;
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
utf8_len = strlen(utf8);
|
|
||||||
/* Paragraph is shorter than spaces for indent.
|
|
||||||
Insert spaces for indent. */
|
|
||||||
if (utf8_len < space)
|
|
||||||
insert_indent_space = EINA_TRUE;
|
|
||||||
|
|
||||||
end:
|
|
||||||
if (insert_indent_space)
|
|
||||||
{
|
|
||||||
//Allocate spaces for indent.
|
|
||||||
p = alloca(space - utf8_len + 1);
|
|
||||||
memset(p, ' ', space - utf8_len);
|
|
||||||
p[space - utf8_len] = '\0';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//Allocate spaces for tab.
|
|
||||||
p = alloca(TAB_SPACE + 1);
|
|
||||||
memset(p, ' ', TAB_SPACE);
|
|
||||||
p[TAB_SPACE] = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
redoundo_text_push(id->rd, p, elm_entry_cursor_pos_get(entry), 0, EINA_TRUE);
|
|
||||||
elm_entry_entry_insert(entry, p);
|
|
||||||
|
|
||||||
if (utf8) free(utf8);
|
|
||||||
evas_textblock_cursor_free(cur);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
indent_insert_bracket_case(indent_data *id, int cur_line)
|
indent_insert_bracket_case(indent_data *id, int cur_line)
|
||||||
{
|
{
|
||||||
|
@ -1010,11 +941,6 @@ indent_insert_apply(indent_data *id, const char *insert, int cur_line)
|
||||||
indent_insert_br_case(id);
|
indent_insert_br_case(id);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else if (!strcmp(insert, TAB))
|
|
||||||
{
|
|
||||||
indent_insert_tab_case(id);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else if (!strcmp(insert, QUOT))
|
else if (!strcmp(insert, QUOT))
|
||||||
return 0;
|
return 0;
|
||||||
else if (!strcmp(insert, LESS))
|
else if (!strcmp(insert, LESS))
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <locale.h> /* localeconv() */
|
|
||||||
|
|
||||||
#include <Enventor.h>
|
#include <Enventor.h>
|
||||||
#include "enventor_private.h"
|
#include "enventor_private.h"
|
||||||
#include "template_code.h"
|
#include "template_code.h"
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
#include <Enventor.h>
|
#include <Enventor.h>
|
||||||
#include "enventor_private.h"
|
#include "enventor_private.h"
|
||||||
|
|
||||||
void
|
void mem_fail_msg(void)
|
||||||
mem_fail_msg(void)
|
|
||||||
{
|
{
|
||||||
EINA_LOG_ERR("Failed to allocate Memory!");
|
EINA_LOG_ERR("Failed to allocate Memory!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue