Commit Graph

134 Commits

Author SHA1 Message Date
Hermet Park c32e417d5d live_edit: remove margin in the spacer image.
spacer margin should be removed from the image
because live edit needs accruate pixel control.
on the other hands, spacer button icon needs margin.

this implementation is a little tricky but i have no idea better than this.
2016-05-20 00:32:25 +09:00
Hermet Park 9ae16dce31 live_edit: fix broken behavior.
when user clicks live edit button multiple files,
it's conext is corrupted.

clean the resource proeprly and make it work back.
2016-05-19 00:34:52 +09:00
Jaehyun Cho 754e629b14 live_edit: Fix warnings. 2016-05-16 23:32:50 +09:00
Taehyub 5194059b40 live_edit: Add new feature about setting relative_to among the exist parts
Summary:
Add new interface feature about setting relative_to to make relationship esaily
between part and part. Now, we can make the relationship using just mouse interface.

Test Plan:
1. launch enventor
2. add live edit item using live edit toolbar
3. drag the item to the another part
4. move a control point that you want to make a relationship to the another part edge
5. and then relative_to ctxpopup is shown
6. select the relative_to item in the ctxpopup
7. insert the live edit item with double click
8. check the inserted code whether it is make relationship or not

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3936
2016-05-11 21:57:51 +09:00
Jaehyun Cho 5dbfbd64f3 tools: Divide tools into live view tools and text editor tools.
Now tools are divided into live view tools and text editor tools based
on their functions.
Region for file browser tools and edc navigator tools is also reserved.
2016-05-10 23:19:36 +09:00
Jaehyun Cho 7a85d0bc3b live_edit: Remove unused code.
live_edit does not need trigger any more. Therefore, code related to
trigger is removed.
2016-05-10 23:19:04 +09:00
Taehyub Kim 279eea73eb live_edit: add new feature about auto align
Summary:
when we are layouting using live edit item,
It is hart to align the inserting item among the exist parts.
so add auto align feature to align easily.

Test Plan:
1. launch enventor
2. add a live item using the toolbar
3. move and resize the live item in live view
4. check the auto align function when the item near another part

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3884
2016-05-03 16:53:07 +09:00
Hermet Park e08cc69795 code refactoring
change declarations type of enventor object

from Evas_Object to Enventor_Object
2016-05-01 20:27:08 +09:00
Hermet Park c33f835836 live_edit: fix center guide text positioning problem.
This problem looks it just introduced from copy & paste...

@fix T3568
2016-04-28 22:45:20 +09:00
Hermet Park 1c21a8538f status: adjust stats msg idle time.
as well as some messages.
2016-04-27 00:03:25 +09:00
Hermet Park 8d109970c6 code refactoring.
sanitize duplicated error message code.
2016-04-26 23:13:42 +09:00
Hermet Park 087538ce0c tiny optimization.
sharing enventor string names.
2016-04-23 11:30:36 +09:00
Taehyub Kim c1aae66795 live_edit: support direction key events for moving live edit item
Summary:
before, we cannot move the live edit item using direction key.
now we can modify it using direction key.

@T3356

Test Plan:
1. launch enventor
2. insert a live edit item
3. move the item using direction key

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3862
2016-04-18 14:04:28 +09:00
Hermet Park a07d7c0120 reverse live edit coordinates when mirror mode is enabled.
literally, the origin of the coordinates should be reversed on the mirrored mode.
2016-03-29 20:07:46 +09:00
Jaehyun Cho 99b9790146 live_edit: fix malfunction of key input on Windows system.
re-implement live edit key input by using key grab mechanism.
This commit is based on commit 502a826599.

@fix
2016-03-17 20:07:06 +09:00
Jaehyun Cho 8935ac45a5 Replace elm_app_name_get() with "enventor" for Windows.
On Windows, elm_app_name_get() returns "enventor.exe".
To set "enventor" style, elm_app_name_get() is replaced with "enventor".
2016-03-14 17:19:13 +09:00
Jaehyun Cho d64c7ca196 live_edit: Prevent memory overflow case.
Emum value Ctrl_Pt_Cnt is only used to set array size.
Therefore, Ctrl_Pt_Cnt should not be used as an index value.

@fix
2016-03-07 17:22:34 +09:00
Hermet Park 3a43682695 remove unused compile warnings. 2016-03-05 11:31:37 +09:00
Hermet Park 75345770ce add a function to invert view size. 2016-02-05 17:42:26 +09:00
Hermet Park 4f4fd2c792 Improve the guide text (more kindly) for the live edit. 2016-02-05 16:04:32 +09:00
Hermet Park c8aa003ec3 update live edit tools 2016-02-04 21:04:33 +09:00
Hermet Park 5c23a5b661 code refactoring.
tools_close() returns a result in order that the caller decides a next behavior.
2016-01-22 19:59:37 +09:00
Hermet Park ede00648d9 code refactoring.
remove enventor reference passing. it's avaiable to be globally accessed.
2016-01-22 19:53:32 +09:00
Hermet Park 350ee8c413 add live view scale slider onto status bar.
@feature
2016-01-22 17:34:32 +09:00
ChunEon Park 06bc1f0226 liveedit: fix the incorrect size of object.
Conceptually, the output size of the edit object shouldn't be scaled.

@fix T2975
2016-01-01 00:37:07 +09:00
Mykyta Biliavskyi c6ec131b8d Multilanguage: apply gettext macro to bin/.
Cover all strings with _() macro.
2015-11-17 17:39:22 +00:00
Vincent Torri 8abd0ef514 Fix warning on Windows 64 bits 2015-07-31 16:07:57 +09:00
ChunEon Park 9bf1c484f7 code refactoring.
replace *edc, *edj to *input, *output
For the general editor, modify them in advance.
2015-07-04 01:18:27 +09:00
ChunEon Park 9342835f3d live_edit: update live edit on scrolling. 2015-06-24 15:24:32 +09:00
ChunEon Park 56816ab1f4 live edit: don't clip by symbol layout but live view.
texts/control points don't need to be clipped by symbol layout.
if the zoom level is enoughly small and there is enough space to
display the control points and text, then we can display them.
2015-06-24 15:11:44 +09:00
ChunEon Park 6d72ca9e4b live_edit: ... fix live edit scaling issue. 2015-06-23 21:29:41 +09:00
ChunEon Park 9dd9e0d9eb live_edit: support zoom on live editing.
previously, it doesn't care the view zooming on live editing.
now it's working perfectly.
2015-06-23 13:14:11 +09:00
ChunEon Park 61d7acca06 live_edit: use ELM_SCALE_SIZE() for scalability. 2015-06-23 11:20:01 +09:00
ChunEon Park f7bb26e9b1 live_edit: fix focus highlight floating issue.
After selecting a live view edit item,
the item focus highlighting is remained there.
Now it's fixed by moving the focus to live view.
2015-06-23 10:28:25 +09:00
ChunEon Park 772ffe2229 live_edit: fix regression bug that introduced in 14a0e2cfd2
toggling context is corrupted but recovered again.
2015-06-22 22:50:22 +09:00
ChunEon Park 14a0e2cfd2 tools: improved ui.
add click / toggle on/off effect.
2015-06-22 22:45:40 +09:00
ChunEon Park 2ccceded2f live_edit: improve grip control. 2015-05-24 19:14:59 +09:00
ChunEon Park 76b56d92a2 bin/live_edit: remove unimportant message. 2015-03-01 18:55:11 +09:00
ChunEon Park 5e8f437df5 fix all annoying warnings. 2015-02-27 17:26:02 +09:00
ChunEon Park c668f54514 bin/live_edit: update info text format 2015-02-26 10:55:59 +09:00
ChunEon Park 331ad370d7 bin/live_edit: fix side effect.
align lines are always visible. it's fixed.

it's introduced from e858f46c0b
2015-02-25 22:08:52 +09:00
ChunEon Park dd91efdc3d bin/live_edit: improve ui.
reposition info text and update guide text.
2015-02-25 22:03:55 +09:00
ChunEon Park e858f46c0b bin/live_edit: increase accuration for detailed coordinates. 2015-02-25 21:50:14 +09:00
ChunEon Park 33b19c34cb bin/live_edit: code refactoring.
use enumeration instead of macro
2015-02-25 16:25:06 +09:00
ChunEon Park f21ba9c7e6 bin/live_edit: improve info text ui 2015-02-25 16:06:21 +09:00
ChunEon Park 179646e910 bin/live_edit: remove unused vars. 2015-02-25 14:14:57 +09:00
ChunEon Park 0c282e559c bin/live_edit: fix the align line wrong position.
logically, the align line has the position problem.
it's position should be limited to each control positions.
2015-02-23 20:34:08 +09:00
ChunEon Park 66706fac1f bin/live_edit: improve ui.
show/hide align lines more smoothly.
2015-02-22 23:45:49 +09:00
ChunEon Park f44b41ab29 bin/live_edit: show/hide control points
show/hide control points case by case.
2015-02-22 23:35:11 +09:00
ChunEon Park ebfefc0531 bin/live_edit: improve ux.
add a assistance lines for aligning.
2015-02-22 23:14:58 +09:00
ChunEon Park 9baad134e8 bin/live_edit: insert part on user double click. 2015-02-22 22:33:04 +09:00
ChunEon Park 2386e45e92 bin/live_edit: allow backspace key to cancel the live edit mode 2015-02-22 22:26:12 +09:00
ChunEon Park 99307f2e58 bin/live_edit: remove redundant code 2015-02-22 22:25:43 +09:00
ChunEon Park 66e04b8ec1 bin/live_edit: improve usage.
add better rich control pointers.

this patch totally re-implemenet live edit function
since the draggable part has a lots of limitation to control it by user.
2015-02-22 18:27:24 +09:00
ChunEon Park b792fac1d3 bin/live_edit: code refactoring.
just change internal variable name.
no logic change.
2015-02-21 15:47:33 +09:00
ChunEon Park 4d85c59418 bin/live_edit: shorter guide message. 2015-02-20 21:58:18 +09:00
ChunEon Park 24bcf041ba bin/live_edit: fix wrong ctxpopup position.
in case of short-cut key usage,
ctxpopup was appeared wrongly.
now it's placed according to the live edit buton.
2015-02-20 21:54:25 +09:00
ChunEon Park 2f451ba1b4 bin/live_edit: fix logic wrong.
live edit should be canceled when ctxpopup is dismissed
2015-02-20 20:53:48 +09:00
ChunEon Park 2346693c0a bin/live_edit: improve ux
change ui draggable rel1, rel2 controls.
remove info text
make outline shiny
2015-02-20 20:44:44 +09:00
ChunEon Park 4c66c8a1c4 bin/live_edit: code refactoring.
clean up the code.
2015-02-19 15:37:14 +09:00
ChunEon Park d95a66712c bin/live_edit: cancel live edit mode if ctxpopup is dismissed by user. 2015-02-19 14:51:04 +09:00
ChunEon Park 0ef94819a3 bin/live_edit: cast data type. 2015-02-19 12:56:27 +09:00
ChunEon Park 4e6be71030 bin/live_edit: code refactoring.
just clean up code
2015-02-16 19:23:10 +09:00
ChunEon Park d040694dc2 bin/live_edit: use a ctxpopup instead of menu. 2015-02-16 19:19:33 +09:00
ChunEon Park 12b35145ae bin/live_edit: refactoring code.
Just keep the on/off info in live edit.
enventor doesn't need to keep it in config since it's mode is volatile.
2015-02-16 16:27:42 +09:00
Jaehyun Cho 4fd5b2f132 common: Move <Enventor.h> to common header file of application.
Move <Enventor.h> to common.h to let application files include
<Enventor.h> and <Elementary.h> easily by including only "common.h".
2015-02-02 20:10:51 +09:00
Jaehyun Cho 98a9eca6c5 live_edit: Fix T1785 to restore live edit
Summary:
Fix T1785 to restore live edit
         @fix

Reviewers: Hermet

Maniphest Tasks: T1785

Differential Revision: https://phab.enlightenment.org/D1650
2014-11-12 16:44:19 +09:00
ChunEon Park e513684d22 fix build warnings. 2014-11-01 01:15:58 +09:00
ChunEon Park 516ae82bab live_edit: code refactoring.
changed variable name.
2014-10-24 11:59:29 +09:00
Jaehyun Cho 03c80d7025 live_edit: Fix build error by using open API instead of private API.
Summary: Fix build error by using open API instead of private API.

Reviewers: Hermet, seoz

Differential Revision: https://phab.enlightenment.org/D1575
2014-10-24 11:57:33 +09:00
ChunEon Park e5927b37eb library support.
current enventor apis are under beta apis.
im notice you these apis could be changed soon.
2014-09-30 23:56:16 +09:00
Mykyta Biliavskyi 9de2aaef00 live_edit: create menu if it still does not created.
Summary:
create menu object if it does not created early, and just move menu if
it already created.
@fix

Reviewers: Hermet

Subscribers: NikaWhite

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1356
2014-08-27 17:19:30 +09:00
ChunEon Park b2495c9a8d live_edit: cancel live_edit if edc is reload. 2014-08-15 20:08:01 +09:00
ChunEon Park 559131729d live_edit: revise theme. 2014-08-15 19:34:57 +09:00
Kateryna Fesyna 16d7d8847e Live_Edit: Use template groups as background of new part in Drag-n-Drop mode
Summary: Created new groups to setup as bg for dragable area in Drag-n-Drop mode.

Reviewers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1323

Conflicts:

	src/bin/live_edit.c
2014-08-13 23:48:49 +09:00
ChunEon Park afbf2db73a template: fix to not insert empty line in editor template insert. 2014-08-13 23:12:51 +09:00
ChunEon Park 178ca51dcb live_edit: don't create menu multiple times. 2014-08-13 19:28:35 +09:00
ChunEon Park e3168daf3d live_edit: access layout obj 2014-08-13 19:19:44 +09:00
Kateryna Fesyna c3bae3bd01 Live Edit: Add ability to drag new part area
Reviewers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1319

Conflicts:

	src/bin/live_edit.c
2014-08-13 19:16:08 +09:00
ChunEon Park de81c39a0d live_edit: revise code 2014-08-13 18:20:42 +09:00
Kateryna Fesyna 478e058200 Enventor: Prototipe of Drag-n-Drop feature. Patch 2.
Summary:
Second patch of Drag-n-Drop feature contains new layout for editing parts relative sizes before insertion.
This patch improves parts templates in order to allow set parts sizes.

Reviewers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1309
2014-08-12 11:31:06 +09:00
ChunEon Park 57267bae53 live_edit: modify status messages.
keep the consistency of it's style.
2014-08-11 21:15:45 +09:00
ChunEon Park f6fe9b7955 live_edit: revise the code 2014-08-11 16:32:35 +09:00
Kateryna Fesyna 71c3db0766 Enventor: Prototipe of Drag-n-Drop feature. Patch 1.
Summary:
This commit contains the basic implementation of Live Edit mode.
With this commit Live Edit toggling is added to Menu, Tools and Ctrl-M hot-key.
Activating of Live Edit mode disables the EDC-Editor and allows user to add new parts by selecting corresponding part type in the menu that appears on right click on the EDJ-Viewer area.

Reviewers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1276
2014-08-11 13:48:01 +09:00