Commit Graph

134 Commits

Author SHA1 Message Date
Hermet Park b4d8678595 Support individual group view size.
Now, groups keep their own view size on their own contexts.
This will help user simultaneous group editing.
2016-08-03 15:39:46 +09:00
Hermet Park b67897a8ca live_edit: add fixed width & height tooltip msg. 2016-07-26 11:46:42 +09:00
Hermet Park 32dbf96259 live_edit: fix broken relative popup.
If a relative part has a long name,
its text will be drawn over the popup box.

Set it's maximum size to prevent this.
2016-07-25 19:21:13 +09:00
Taehyub Kim 5ddaa8dbe5 live_edit: add more condition for min size of live edit item
Summary:
In case of the live edit item has min size without relative to part,
the size of the item should not be changed.
To cover this case, I added more condition

Test Plan:
1. launch envnetor
2. click a live edit item on tools
3. check the fixed option without "relative to" setting
4. insert the item with mouse double click
5. see the min size of the item while the view size is changing

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Differential Revision: https://phab.enlightenment.org/D4173
2016-07-21 17:25:11 +09:00
Hermet Park f98b075d1e live_edit: add exceptional case.
If the live view size hasn't been set up yet,
live edit won't be functional.

Handles the case then displays the exceptional case message.
2016-07-20 18:59:15 +09:00
Hermet Park 58a1f10608 multi-file: ++implementation.
support live edit function.
2016-07-20 18:52:45 +09:00
Hermet Park 63f9dc9dee live_edit: rearrange objects stack.
Previously each live edit components are messed up in stacking.
Restacked by putting wireframe, dummy objects
below live edit object, control points, align lines and texts.

This required a totally hackishy method but there are no other solution so far.

@fix T4026
2016-07-20 15:00:37 +09:00
Hermet Park a5ecd83696 live_edit: fix typo? 2016-07-20 13:48:49 +09:00
Hermet Park d883a8c715 live_edit: don't displayed over the scroller.
Set a smart parent to actual view object so the control point
and texts to be clipped properly.
2016-07-20 13:46:51 +09:00
Hermet Park 50b32ef8f4 live_edit: code refactoring.
remove hackish code.
you can write code prettier!
2016-07-19 19:47:43 +09:00
Hermet Park 7ebc3e8c3c live_edit: updated tooltip msg. 2016-07-14 20:04:40 +09:00
Hermet Park c59be9cf1b multi-file: ++implementation.
1. make it work with template insert feature.
2. dissmiss inactivated item's view sync callbacks.
2016-07-07 16:21:03 +09:00
Taehyub Kim 381afdd7b1 live_edit: align line should be shown always on live edit item
Summary: align line should be shown always on live edit item

Test Plan:
1. launch enventor
2. click an live edit item on tools
3. move and align the item
4. see the align line on other parts

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D4121
2016-07-06 14:18:39 +09:00
Hermet Park 193ec29fa0 multi-file: support live editor.
Additional implementation.
Now it works for live editing.
2016-07-04 17:53:54 +09:00
Hermet Park 6303afd975 multi-file: ++implementation.
+ line deletion and file saving.
2016-07-03 08:50:47 +09:00
Hermet Park 5e8d2e518d fixed all compile warning stuff. 2016-07-02 14:09:42 +09:00
Hermet Park 731d0bed5b ++secure code. 2016-07-01 18:58:26 +09:00
Taehyub Kim dafc19ce3f live_edit: change the description of fixed mode
Summary: change the description of fixed mode

Test Plan:
1. click a live edit item on tools
2. see the description of fixed mode in live view

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D4106
2016-06-28 14:01:00 +09:00
Taehyub Kim ea0ba27ada live_edit: change the description
Summary: change the description

Test Plan:
1. move the mouse cursor on each live edit item
2. see the tooltip messages

Reviewers: Hermet, NikaWhite, Jaehyun_Cho, bowonryu

Differential Revision: https://phab.enlightenment.org/D4095
2016-06-28 13:44:40 +09:00
Taehyub Kim b8b65b0d3e live_edit: apply coding convention
Summary:
the line is over than 80 character.
@fix

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D4083
2016-06-25 12:25:14 +09:00
Taehyub Kim 04edb800e2 live_edit: refactoring setting relative features
Summary:
There are some hole cases.
For example, if we want to input fixed part
then we had to check fixed option first.
but now, we can input fixed part in any order.
In addition, Unnecessary codes are removed
and added more comments.

Test Plan:
1. launch envnetor.
2. make a live edit item by clicking live edit item on tools.
3. set relatives for the live edit item.
4. double click and insert the item.
5. see the result.

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Differential Revision: https://phab.enlightenment.org/D4047
2016-06-20 12:12:10 +09:00
Hermet Park 87a67d4237 tools: improve tooltip messages for live edit buttons. 2016-06-10 13:27:56 +09:00
Hermet Park 50f0ab8602 live_edit: work fixed size correctly.
rewrite previous logic to fix potential errors.
2016-06-06 16:21:52 +09:00
Hermet Park a9bfa26c17 live_edit: improve relative to popup gui. 2016-06-06 13:26:42 +09:00
Hermet Park 37fa2ee7e6 live_edit: dismiss relative to ctxpopup only when esc key is pressed. 2016-06-06 12:33:17 +09:00
Hermet Park 96ecc2cde9 live_edit: determine current relative to axis.
relative_x shouldn't be available on top,bottom dragging.
relative_y shouldn't be available on left,right dragging.
2016-06-06 03:47:36 +09:00
Hermet Park 50f663adc2 live_edit: re-implement the relative to function.
still there are plenty of wrong behaviors...
2016-06-06 03:23:56 +09:00
Hermet Park d353764908 live_edit: code refactoring.
just cleane up code.
no logic changes.
2016-06-06 00:58:42 +09:00
Hermet Park e0368a9a37 live_edit: code refactoring.
renamed internal variables for readibility.
no logic changes.
2016-06-06 00:36:56 +09:00
Hermet Park 0502123d50 live_edit: code refactoring.
remove duplicated code.
2016-06-06 00:29:07 +09:00
Hermet Park e6fac7b975 live_edit: code refactoring.
remove unnecessary code.
2016-06-06 00:27:38 +09:00
Hermet Park 4da3778f80 removed redundant code 2016-06-05 13:09:52 +09:00
Bowon Ryu 8ceeb8b113 live_edit: fix data type for calculate part relative
Summary: fix static analyzer warning.

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4006
2016-06-02 20:15:24 +09:00
Bowon Ryu 2889bf140f live_edit: remove same code
Summary: fix static analyzer warning

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4004
2016-06-02 15:32:25 +09:00
Bowon Ryu 722d245929 live_edit: add return value
Summary: fix static analyzer warning

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4000
2016-06-02 15:19:23 +09:00
Hermet Park 73ceae42b5 live_edit: don't highlight lines when ctrl key is pressed.
When user press the ctrl key, then part magnetic effect is always enabled.
it was introduced from missing return function value...

@fix T3741
2016-06-01 23:30:06 +09:00
Hermet Park 98d9cf4cb0 live_edit: fix the logic to support fixed size.
previous logic was corrupted at some point.
2016-05-29 01:41:52 +09:00
Hermet Park d88a2121e1 live_edit: revise previous patch.
Actually, previous patch is not make sense..
fixed width and height should work exclusively.
2016-05-28 19:42:11 +09:00
Taehyub Kim e30aca010e live_edit: make live edit item fixed when width and height are fixed
Summary:
live_edit: when the live edit item's width and height are fixed,
                  the size of live edit item should be fixed.

Test Plan:
1. launch enventor
2. click a live edit item
3. check all of fixed options
4. do not set relative_to options
5. insert the live edit item to the live view
6. check the inserted item's size whether it is fixed or not

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3976
2016-05-28 19:38:59 +09:00
Hermet Park 3a6d844df2 live_edit: update message. 2016-05-28 19:37:31 +09:00
Taehyub Kim 0e7fd59874 live_edit: add toggle key for enabling and disabling auto align
Summary: add control toggle key for enabling and disabling auto align

Test Plan:
1. launch enventor
2. click a live edit item using toolbar item
3. move the item to the another part
4. press control key when the item is close to the another part
5. check auto align function whether it is disabled or not

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3931
2016-05-28 19:33:56 +09:00
Hermet Park 9e8dce3db8 live_edit: revise previous patch 6fb471d8d4.
redesign ui and clear code.
2016-05-23 22:12:43 +09:00
Taehyub Kim 6fb471d8d4 live_edit: add fixed width and height interface in live edit view
Summary: update fixed width and height interface to choose easier

Test Plan:
1. launch enventor
2. make live edit item by clicking live edit toolbar
3. click fixed width or fixed height check item on setting interface in live edit view
4. set relative_to property by dragging the edge of the part
5. insert the live edit item
6. check the result in text view

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3962
2016-05-23 21:25:30 +09:00
Hermet Park 1768d6b388 live_edit: improve status message. 2016-05-23 13:54:53 +09:00
Taehyub Kim f0f7e2dfff live_edit: fix the live edit item moving issue
Summary:
if we move a live edit item by direction key, sometimes pixel is increased by 2 pixels.
so I modified it is increaed by 1 pixed when the scale is larger than 1.0

Test Plan:
1. launch enventor
2. click a live edit item using toolbar
3. move the live edit item by direction key
4. check the change of pixel info

@T3473

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3946
2016-05-23 13:49:41 +09:00
Hermet Park 88286c627c live_edit: fix incorrect align line position.
because the computation doesn't considered scroller bar areas,
the position of the align liner wasn't correct.

this is now fixed.
2016-05-22 23:56:49 +09:00
Taehyub Kim 4dce517e17 live_edit: remove unnecessary code
Summary:
toolbox object is not used anyware, so I remove it

@fix

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3964
2016-05-22 20:26:39 +09:00
Hermet Park f47d613c30 live_edit: add edge attaching effect.
if edge of live edit object is attached to other part's,
outline can be highlighted.
2016-05-20 04:49:24 +09:00
Hermet Park 9c8d91cc18 live_edit: initialize static variables. 2016-05-20 03:05:03 +09:00
Hermet Park 259fa2eebd live_edit: code refactoring.
fix coding convention.
2016-05-20 02:51:54 +09:00