[E-devel] [Edje: Bug fix] NULL check is added before strcmp() in _edje_real_part_swallow() function
Hi, Can some one please verify and merge the attahed patch with open source svn Edje code. [Issue details :] NULL checking is not done before sending a string to strcmp(). In _edje_real_part_swallow() function of edje_util.c file, evas_object_type_get() API can return NULL and if this NULL value is directly passed to strcmp(), it causes a crash. [Issue fix :] NULL check is added for obj_type before passing it to strcmp(). Thanks Regards, Sumanth [Signing Off: Sumanth Krishna (sumant...@samsung.com)] edje_util.patch Description: Binary data -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [Query] [Elementary] How to stop mouse, wheel events from reaching outer Elm_scroller ?
Hi, In my application, I am using elm_scroller inside another elm_scroller. Now I want the MOUSE,WHEEL events not to be passed to outer scroller, when the mouse is inside inner scroller. For that I tried by using the API: evas_object_propagate_events_set(inner_scroller, EINA_FALSE) but this is not stopping the mouse,wheel events from reaching the outer scroller [ I suspect it is because elm_scroll uses hit rectangle for handling mouse,wheel]. Can anyone suggest me a method how I can stop the events from reaching the outer scroller ? Currently I am able to stop the mouse,wheel events by calling elm_object_scroll_freeze_push(outer_scroller)/ elm_object_scroll_freeze_pop(outer_scroller) in EVAS_CALLBACK_MOUSE_IN, EVAS_CALLBACK_MOUSE_OUT event callbacks of inner_scroller respectively. Is it a correct way or is there any other method for doing the same ? Thanks Regards, Sumanth -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Query] [Elementary] How to stop mouse, wheel events from reaching outer Elm_scroller ?
On Mon, 7 Jan 2013 23:54:50 +0900 Daniel Juyung Seo seojuyu...@gmail.com said: On Mon, Jan 7, 2013 at 11:56 PM, Carsten Haitzler ras...@rasterman.comwrote: On Mon, 07 Jan 2013 14:36:45 + (GMT) Sumanth Krishna Mannam sumant...@samsung.com said: Hi, In my application, I am using elm_scroller inside another elm_scroller. Now I want the MOUSE,WHEEL events not to be passed to outer scroller, when the mouse is inside inner scroller. For that I tried by using the API: evas_object_propagate_events_set(inner_scroller, EINA_FALSE) but this is not stopping the mouse,wheel events from reaching the outer scroller [ I suspect it is because elm_scroll uses hit rectangle for handling mouse,wheel]. Can anyone suggest me a method how I can stop the events from reaching the outer scroller ? Currently I am able to stop the mouse,wheel events by calling elm_object_scroll_freeze_push(outer_scroller)/ elm_object_scroll_freeze_pop (outer_scroller) in EVAS_CALLBACK_MOUSE_IN, EVAS_CALLBACK_MOUSE_OUT event callbacks of inner_scroller respectively. Is it a correct way or is there any other method for doing the same ? event propagation doesnt control scrolling. in this case you have to play a trick put inner scroller in table. place rectagle (color 0 0 0 0) in the same table cell but after (on top) of the scroller and show it. this rect will stop mouse events ont he scroller below it. But that will block all the events such as mouse down and up not just wheel events. well - he didnt say either way if thoe should work or not :) Thanks for the suggestion. Well, my requirement is to block the mouse,wheel events only. Mouse,down mouse,up and all other events should be processed normally. Btw, what is your suggestion about the method mentioned in my first mail ? Is it an appropriate one to use in this case or any other method to be used for such a case. Thanks Regards, Sumanth -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [Elementary] [edc map] How to calculate EDC map's rotated coordinates ?
Hi, I have a query related to EDC map. I am adding EDC map to an edc RECT part and I am giving some rotation angle (say 30 degrees, Z dir) in edc itself. [Map's perspective, rotation center all are set as the same part.] Can anyone please tell me if there is any direct way (APIs) to calculate the geometry of this rotated RECT part in .c file ? Now, suppose, I am calulating the rotated geometry by using the rect part's edje_object applying Rotation Matrix on its geometry(Ø = 30): it is giving me correct co-ordinates for the first time. But once the object RESIZES or its position changes, this method is giving me the wrong co-ordinates. How can I calculate the co-ordinates of BOX in which the rect part is inscribed during map's rotation. Please suggest me a solution in such cases. Thank you, Sumanth --- Sumanth Krishna Mannam Senior Software Engineer Bangalore, India -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [patch][elementary] datetime - _datetime_item_get() has problem. (Kim Shinwoo)
Hi Mr Kim, Please check my comments below. Date: Sun, 19 Aug 2012 15:47:19 +0900 From: Kim Shinwoo kimcinoo@gmail.com Subject: [E-devel] [patch][elementary] datetime - _datetime_item_get() has problem. To: Enlightenment developer list enlightenment-devel@lists.sourceforge.net Message-ID: cap-c0nhq1z5b07nb6p7duqhfz8tkqnohvj_zejhgzur6ki4...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 dear all, hello datetime items which have format and visibility are retrieved for the elm_widget_focus_list_next_get(); FYI.. datetime field(item) has type such as YEAR, MONTH, DATE(?), HOUR, MINUTE, and one more. and each types have different location according to its format. in elementary_test, the datetime types has location as following YEAR(type): 4 (location) MONTH(type): 0 (location) DATE(type) 1(location) HOUR(type): 2(location) MINUTE(type): 3(location) then, it comes as below.. (you can check this on the elementary_test() - Aug 19 2012 - 15 : 20 - Aug 19 15 : 20 2012 the location looks like priority to display the field. anyhow problem is.. datetime _datetime_items_get() just counts the number of item which have format and visibility. and the counting number is used to compare with item location. in the second case (15:20), the counting number is '2', and datetime just check YEAR and MONTH whether its location is equal to the counting number. so.. the 15(HOUR) and 20(MINUTE) cannot be a member of focus_list. As you can see in _datetime_items_get() fn, first, there is a count for the number of displayed items and then each displayed item is checked for field type (internal “for loop” runs from ELM_DATETIME_YEAR to ELM_DATETIME_AMPM) and accordingly adds up the item_object. So for (15:20), outer loop runs for 2 times, each time checking from ELM_DATETIME_YEAR to ELM_DATETIME_AMPM to add the corresponding field_object (since field_obj are fixed). please check the attached patch to resolve this issue and give feedback. In the earlier code, the complexity is O(n^2) for worst case but the best/average cases are definitely less than that. (say, in above example, it is a total of 2x6 = 12 times) But in the attached patch, the loop always runs for O(n^2) times which was already optimized earlier. thanks. cordially, shinwoo kim. Regards, Sumanth Date: Mon, 20 Aug 2012 17:12:16 +0900 From: Carsten Haitzler (The Rasterman) ras...@rasterman.com Subject: Re: [E-devel] [patch][elementary] datetime - _datetime_item_get() has problem. To: Enlightenment developer list enlightenment-devel@lists.sourceforge.net Message-ID: 20120820171216.a6ab932f.ras...@rasterman.com Content-Type: text/plain; charset=US-ASCII On Sun, 19 Aug 2012 15:47:19 +0900 Kim Shinwoo kimcinoo@gmail.com said: it seems i mixed up your patches and put in this instead of an accessibility one. anyway. they are BOTH in now! :) dear all, hello datetime items which have format and visibility are retrieved for the elm_widget_focus_list_next_get(); FYI.. datetime field(item) has type such as YEAR, MONTH, DATE(?), HOUR, MINUTE, and one more. and each types have different location according to its format. in elementary_test, the datetime types has location as following YEAR(type): 4 (location) MONTH(type): 0 (location) DATE(type) 1(location) HOUR(type): 2(location) MINUTE(type): 3(location) then, it comes as below.. (you can check this on the elementary_test() - Aug 19 2012 - 15 : 20 - Aug 19 15 : 20 2012 the location looks like priority to display the field. anyhow problem is.. datetime _datetime_items_get() just counts the number of item which have format and visibility. and the counting number is used to compare with item location. in the second case (15:20), the counting number is '2', and datetime just check YEAR and MONTH whether its location is equal to the counting number. so.. the 15(HOUR) and 20(MINUTE) cannot be a member of focus_list. please check the attached patch to resolve this issue and give feedback. thanks. cordially, shinwoo kim. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] Elementary : Elm_slider widget enhancements – modular design to display indicator text at the top of slider.
Hi, Can Someone please review the below code !! Thanks Regards, Sumanth -- From: Sumanth Krishna Mannam sumant...@samsung.com Sent: Monday, June 25, 2012 5:57 PM To: enlightenment-devel@lists.sourceforge.net Subject: Re: [E-devel] [Patch] Elementary : Elm_slider widget enhancements – modular design to display indicator text at the top of slider. Hi, I made a patch with an edje object displaying text during the Slider drag state. (The module design is been dropped, instead, we integrated it with the default widget code. Refer to: http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg41850.html // ) The position and geometry can be controlled by a swallowed rectangle as the indicator popup is placed exactly over its location. The popup (edje) object can be moved as per the invisible swallowed part so the popup display is totally controlled by theme/style (can adjust the offset or the size of indicator popup). The indicator stacking issue can be resolved in slider widget and the default theme look feel remains unchanged with this patch. Can someone please review the code and merge it with upstream repository. Thanks Regards, Sumanth Date: Tue, 29 May 2012 08:52:27 +0900 From: Carsten Haitzler (The Rasterman) ras...@rasterman.com Subject: Re: [E-devel] [Patch] Elementary : Elm_slider widget enhancements ? modular design to display indicator text at the top of slider. To: Gustavo Sverzut Barbieri barbi...@profusion.mobi Cc: csm...@samsung.com csm...@samsung.com, TheRasterman CarstenHaitzlerraster@rasterman.com, Enlightenment developer list enlightenment-devel@lists.sourceforge.net, GustavoSverzutBarbieribarbieri@profusion.mobi Message-ID: 20120529085227.569f569fb880f2c59a4c4...@rasterman.com Content-Type: text/plain; charset=UTF-8 On Mon, 28 May 2012 11:54:25 -0300 Gustavo Sverzut Barbieri barbi...@profusion.mobi said: Hi Somanth, On Mon, May 28, 2012 at 7:07 AM, Sumanth Krishna Mannam sumant...@samsung.com wrote: Hi, We designed the module based approach for mainly the following reasons: 1. ? Default indicator is displayed at the top of touch area. ? ? ?What if we want to show the popup at the left side/ right side/ bottom of the touch point? ? ? ?- ?A dedicated dynamic module can handle the indicator orientation in the module code itself. These can be easily defined by the theme by using Edje object data. E17 makes uses of those to let the border say if the window is transparent or not, etc. But try to use object geometry as well, maybe defining that the object will be displayed exactly centered with the parent will do? indeed. all of this can be done with an edje object, some geometry tracking of a sepcific part in the base slider object (swallow invisible rectangle, track position/size of this rect, place indicator object at geometry of this rect, but on a higher layer, use signals to tell it it has been dragged, or needs repositioning to some side (left, right, top, bottom). 2. There may be some cases where we need to display indicator popup in a separate window. It is left up to the module to decide how where to display. Same, define as a theme Edje object data. If so, create the window and show it as overlay. Just take care to handle the non-windowed systems, doing a nice fallback (ie: framebuffer). i'd advise avoiding this like the plague (creating of a window). basically because it breaks with fb and with wayland it's not possible in the same way due to no absolute window positioning (we don't have any relative positioning api's atm for that). it's solvable inline. if the popup object overlaying the slider on some higher layer is gong to be obscured (bvy boundary of window OR by something like an overlayed vkbd or indicator maybe outside of the window), then switch direction. ie dont show above, but show below. so u need to support 2 modes, and if the default intersects a hinding boundary, choose the other. this will only fail if the screen is set up as such that both sides of the slider are obscured - this scenario would be one where the slider is the size of the whole window (or screen)... kind of a real corner case. :) So considering the above extendibility options, we proposed the Slider indicator modular approach. More over it will not change current indicator style. If you feel that there is no need for these enhancements, we can very well bring the feature in the widget code itself. I can make a patch with the default indicator, always showing on the top of touch area. IMO they are not mandatory now. The positioning can be easily solved by overlay/indicator geometry. Remember that in Edje/Evas objects can overflow as they wish and they will be visible. anyway. The window one can be done later, if needed. yes. if ever needed elm can do this itself, but i don't
Re: [E-devel] [Patch] Elementary : Elm_slider widget enhancements – modular design to display indicator text at the top of slider.
Hi, I made a patch with an edje object displaying text during the Slider drag state. (The module design is been dropped, instead, we integrated it with the default widget code. Refer to: http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg41850.html) The position and geometry can be controlled by a swallowed rectangle as the indicator popup is placed exactly over its location. The popup (edje) object can be moved as per the invisible swallowed part so the popup display is totally controlled by theme/style (can adjust the offset or the size of indicator popup). The indicator stacking issue can be resolved in slider widget and the default theme look feel remains unchanged with this patch. Can someone please review the code and merge it with upstream repository. Thanks Regards, Sumanth Date: Tue, 29 May 2012 08:52:27 +0900 From: Carsten Haitzler (The Rasterman) ras...@rasterman.com Subject: Re: [E-devel] [Patch] Elementary : Elm_slider widget enhancements ? modular design to display indicator text at the top of slider. To: Gustavo Sverzut Barbieri barbi...@profusion.mobi Cc: csm...@samsung.com csm...@samsung.com, TheRasterman CarstenHaitzlerraster@rasterman.com, Enlightenment developer list enlightenment-devel@lists.sourceforge.net, GustavoSverzutBarbieribarbieri@profusion.mobi Message-ID: 20120529085227.569f569fb880f2c59a4c4...@rasterman.com Content-Type: text/plain; charset=UTF-8 On Mon, 28 May 2012 11:54:25 -0300 Gustavo Sverzut Barbieri barbi...@profusion.mobi said: Hi Somanth, On Mon, May 28, 2012 at 7:07 AM, Sumanth Krishna Mannam sumant...@samsung.com wrote: Hi, We designed the module based approach for mainly the following reasons: 1. ? Default indicator is displayed at the top of touch area. ? ? ?What if we want to show the popup at the left side/ right side/ bottom of the touch point? ? ? ?- ?A dedicated dynamic module can handle the indicator orientation in the module code itself. These can be easily defined by the theme by using Edje object data. E17 makes uses of those to let the border say if the window is transparent or not, etc. But try to use object geometry as well, maybe defining that the object will be displayed exactly centered with the parent will do? indeed. all of this can be done with an edje object, some geometry tracking of a sepcific part in the base slider object (swallow invisible rectangle, track position/size of this rect, place indicator object at geometry of this rect, but on a higher layer, use signals to tell it it has been dragged, or needs repositioning to some side (left, right, top, bottom). 2. There may be some cases where we need to display indicator popup in a separate window. It is left up to the module to decide how where to display. Same, define as a theme Edje object data. If so, create the window and show it as overlay. Just take care to handle the non-windowed systems, doing a nice fallback (ie: framebuffer). i'd advise avoiding this like the plague (creating of a window). basically because it breaks with fb and with wayland it's not possible in the same way due to no absolute window positioning (we don't have any relative positioning api's atm for that). it's solvable inline. if the popup object overlaying the slider on some higher layer is gong to be obscured (bvy boundary of window OR by something like an overlayed vkbd or indicator maybe outside of the window), then switch direction. ie dont show above, but show below. so u need to support 2 modes, and if the default intersects a hinding boundary, choose the other. this will only fail if the screen is set up as such that both sides of the slider are obscured - this scenario would be one where the slider is the size of the whole window (or screen)... kind of a real corner case. :) So considering the above extendibility options, we proposed the Slider indicator modular approach. More over it will not change current indicator style. If you feel that there is no need for these enhancements, we can very well bring the feature in the widget code itself. I can make a patch with the default indicator, always showing on the top of touch area. IMO they are not mandatory now. The positioning can be easily solved by overlay/indicator geometry. Remember that in Edje/Evas objects can overflow as they wish and they will be visible. anyway. The window one can be done later, if needed. yes. if ever needed elm can do this itself, but i don't think we need it, and it just is going to create problems imho. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- elm_slider_indicator.diff Description: Binary data -- Live Security Virtual Conference Exclusive live event will cover all
Re: [E-devel] [Patch] Elementary : Elm_slider widget enhancements – modular design to display indicator text at the top of slider.
Hi, We designed the module based approach for mainly the following reasons: 1. Default indicator is displayed at the top of touch area. What if we want to show the popup at the left side/ right side/ bottom of the touch point? - A dedicated dynamic module can handle the indicator orientation in the module code itself. 2. There may be some cases where we need to display indicator popup in a separate window. It is left up to the module to decide how where to display. So considering the above extendibility options, we proposed the Slider indicator modular approach. More over it will not change current indicator style. If you feel that there is no need for these enhancements, we can very well bring the feature in the widget code itself. I can make a patch with the default indicator, always showing on the top of touch area. Thanks Regards, Sumanth On Thu, 24 May 2012 15:02:05 -0300 Gustavo Sverzut Barbieri barbieri@... said: Hi Sumanth, Thanks for the explanation, NOW it's much better to decide what to do! :-) See some comments below: On Thu, May 24, 2012 at 12:17 PM, Sumanth Krishna Mannam sumanth.m@... wrote: Hi , Indicator popup UI is already implemented as an edc style based feature. But the concern is about layering ( refer to earlier discussions on the same: http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg41014.html ) - the current design cannot bring the slider indicator on to a top layer. If we pack slider inside a genlist, the portion of Slider indicator that is beyond the genlist item area is been clipped, causing the problem. To display the full indicator, we need to move portion of edj object part to a higher layer which against EDJE Object design. To overcome this, we have to use a different edj object to stack up in the widget C code. With further enhancement of this, Module design allows us to customize the indicator object. So we are proposing the indicator popup module for elm_slider widget. As far as I understand, the current popup was done as an Edje show case... it's possible, simple... why not?! Then it got in. However, as you mentioned there is a stacking problem. Given that the popup is nice and I see it being used in most of the cases... why not make it default, instead of a module? The idea would be that there is a new group and if it exists, it's used as the popup. The old themes should still work as they do... and no extra module is needed. If you agree with that, then please provide a new patch. Again, thanks for your explanation of the problem :-) i agree. there is no need for a module. modules should only be used if you REALLy need to make some core logic pluggable and different from environment to environment and either for legal or other reasons the code can't be in elementary OR it's too big/complex to be in elementary OR that it adds dependencies which are unreasonable to impose on everyone. :) -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)raster@... -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [Patch] Elementary : Elm_slider widget enhancements – modular design to display indicator text at the top of slider.
Dear All, [Change description]: Elm_slider modular design to display indicator text at the top of Slider. Currently elm_slider displays indicator text in an edj part which is a single object in the same layer. If we pack the slider widget in a genlist, during its drag state, the indicator part is been clipped away beyond the genlist item area. We can overcome this problem by the modular design of slider widget - customizing the widget UI, based on the dynamic module. Attached to this mail is the patch that introduces elm_slider modular design and a default module to display the indicator text at the top of the widget. The module is implemented in a generic way so that it can be reused in any of the other widgets like elm_actionslider or even in vkpd popup display. The module can be enhanced to display the text at the left side/ right side/ bottom of the touching area or even at the top of the indicator in a separate window. If we unload the module, slider will have the same old default behaviour. It is up to the profile to decide the customized UI. Can someone review the code and merge it in the svn elementary. Thank you, Regards, Sumanth M.V.K elm_slider_patch.diff Description: Binary data -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] Elementary : Elm_slider widget enhancements – modular design to display indicator text at the top of slider.
Hi , Indicator popup UI is already implemented as an edc style based feature. But the concern is about layering ( refer to earlier discussions on the same: http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg41014.html ) - the current design cannot bring the slider indicator on to a top layer. If we pack slider inside a genlist, the portion of Slider indicator that is beyond the genlist item area is been clipped, causing the problem. To display the full indicator, we need to move portion of edj object part to a higher layer which against EDJE Object design. To overcome this, we have to use a different edj object to stack up in the widget C code. With further enhancement of this, Module design allows us to customize the indicator object. So we are proposing the indicator popup module for elm_slider widget. Regards, Sumanth -- From: Gustavo Sverzut Barbieri barbi...@profusion.mobi Sent: Thursday, May 24, 2012 7:53 PM To: Enlightenment developer list enlightenment-devel@lists.sourceforge.net Cc: csm...@samsung.com; Myoung-Woon Roy Kim myoungwoon@samsung.com; Sumanth Krishna Mannam sumant...@samsung.com; SREENATH DINDUKURTHI sreena...@samsung.com Subject: Re: [E-devel] [Patch] Elementary : Elm_slider widget enhancements – modular design to display indicator text at the top of slider. On Thu, May 24, 2012 at 11:12 AM, Sumanth Krishna Mannam sumant...@samsung.com wrote: Dear All, [Change description]: Elm_slider modular design to display indicator text at the top of Slider. Currently elm_slider displays indicator text in an edj part which is a single object in the same layer. If we pack the slider widget in a genlist, during its drag state, the indicator part is been clipped away beyond the genlist item area. We can overcome this problem by the modular design of slider widget - customizing the widget UI, based on the dynamic module. Attached to this mail is the patch that introduces elm_slider modular design and a default module to display the indicator text at the top of the widget. The module is implemented in a generic way so that it can be reused in any of the other widgets like elm_actionslider or even in vkpd popup display. The module can be enhanced to display the text at the left side/ right side/ bottom of the touching area or even at the top of the indicator in a separate window. If we unload the module, slider will have the same old default behaviour. It is up to the profile to decide the customized UI. Can someone review the code and merge it in the svn elementary. I'm not too sure it should be a module. Why a simple style is not enough? -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] How to use evas_object_layer_set() feature in EDC ?
Dear All, Is there any option to utilize evas_object_layer_set() feature in EDC? This may be a desirable feature like, Slider widget can display zoom indicator may be few pixels above the actual indicator where many higher layer objects present. Whenever the zoom indicator is displayed (in drag state), it should be moved to higher level layer to avoid clippings. To support these kind of features completely controlled by EDC without widget code intervention, I am proposing to add a layer/level property to EDC Part for each state. Your suggestions are welcome :) Thanks, Sumanth Krishna -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] How to use evas_object_layer_set() feature in EDC ?
Hi Raster, Are you suggesting that all the objects of a group should be placed in a single layer, otherwise it will be a voilation of edje object encapsulation ? Thanks, Sumanth --- Original Message --- Sender : Carsten Haitzlerras...@rasterman.com Date : Apr 18, 2012 18:17 (GMT+05:30) Title : Re: [E-devel] How to use evas_object_layer_set() feature in EDC ? On Wed, 18 Apr 2012 11:30:05 + (GMT) Sumanth Krishna Mannam said: no - you can't as this violates the encapsulation of the edje object - all objects are INSIDE the edje object. Dear All, Is there any option to utilize evas_object_layer_set() feature in EDC? This may be a desirable feature like, Slider widget can display zoom indicator may be few pixels above the actual indicator where many higher layer objects present. Whenever the zoom indicator is displayed (in drag state), it should be moved to higher level layer to avoid clippings. To support these kind of features completely controlled by EDC without widget code intervention, I am proposing to add a layer/level property to EDC Part for each state. Your suggestions are welcome :) Thanks, Sumanth Krishna -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] Elementary : New widget Elm_datetime patch
Hi Raster, Thanks for submitting the patch for Datetime. Btw, src/examples/datetime_example.c file is missing in svn. Can you please add that file, it is showing build break in examples. [my previous patch is containing that file. If you want, I shall send you another patch for this] Thank You, Regards, Sumanth --- Original Message --- Sender : Carsten Haitzlerras...@rasterman.com Date : Mar 05, 2012 16:37 (GMT+05:30) Title : Re: [E-devel] [Patch] Elementary : New widget Elm_datetime patch On Fri, 02 Mar 2012 12:44:39 + (GMT) Sumanth Krishna Mannam said: in svn. tnx muchly! This patch was made by Sumanth Krishna Mannam. Please refer following message ~ and attached patch. === first i was strolling along, reading elm_datetime.c... and then i saw: static int _days_in_month[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; and then i was like: http://www.youtube.com/watch?v=6FWUjJF1ai0 and i saw... if (__isleap(*timearr[ELM_DATETIME_YEAR]) and i was like: http://www.youtube.com/watch?v=fM1O9jWeNoI (look at clock module src of e17 (in svn trunk/e/src/modules/clock) - in there it manages to draw months and handle month sizes by using syscalls that should get this from a time database and thus be correct. you can figure out the range by using syscalls to do it all look @ _time_eval()). I felt array based count is not that bad... and even elm_calendar does the same . anyway, I gave a try with your method, using mktime() and check for month wraaping and then deciding. Patch is updated accordingly . http://www.corkscrew-balloon.com/travel/9812paris/leap.html leap years do not make feb have 29 days EVERY 4 year. there are oddities to this over history and probably will be in the future too. thats the pont of the system time database and apis to figure out so you dont have to :) limits for years.. why 1970-2037? that seems a bit silly to limit it - what if i'm entering the date of birth of my father? it's definitely before 1970 :) I made 1970 as the default limit based on Epoc time 1970. I have no issues to make default limit to further lowest :) I changed the limits to 1900 2037. why not just allow ANY date ... no limits? what if someone uses the widget for a historcal event Examination app that asks students when events happened in history... The default limits for the year are used for displaying the possible values on modules plug-ins like ctx_popup/disk selector list and spinner module. More over, it's default limit and applications can override the limit with provided APIs ( value_min/max set ), based on their need. Example, any app accepting historical years, can set the min limit back to 1800 or even less. No restrictions. and then i was looking at api: Elm_Datetime_FieldType - Elm_Datetime_Field_Type otherwise i shall not quibble about api :) Yep...renamed to Elm_Datetime_Field_Type. cool - fix the above limit. it dont like it. for at least 1 reason given above. other than that take note of that page on leap years and just do some research yourself about time and how humans have, over history, defined it, written it down, played with it, adjusted it and tried to make your time system match the natural world around us. it'll encourage you to just piggy-back on someone elses time api so you dont have to re-do all the work.. and if there is a bug - its fixed in 1 place for everyone. -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] Elementary : New widget Elc_dayselector patch
Hi Raster, Actually we have analyzed nl_langinfo() with items (_NL_TIME_WEEK_1STDAY, _NL_TIME_FIRST_WEEKDAY, _NL_TIME_FIRST_WORKDAY ) , but these types doesn't work in all the environments, otherwise this is the quite straight forward way to do Weekday/weekend calculations based on system settings. Now, looking at your suggestion, do you mean Widget can read the clock module config file and fetch the weekday/weekend details? Clock is a dynamic module, can be enabled/disabled, can elm depend on that? Or you are suggesting to have similar settings as part of elm.cfg and use it? Please clarify. Thanks, Sumanth i have a problem with this... and that is how it figures out the first day of the week and what the weekend is. the theme shouldn't be doing this. there should be an api call to set which day weeks start at. that means which day is the first displayed on the left (or in mirrored mode on the right) of the selector. you should allow any day (0-6 (mon-sun)). as for which day weekends start on - the same thing. also allow for how many days a weekend has. 0, 1, 2.. up to 6. this data SHOULD be sourced from elm config, not theme (so add config values, eet data descriptors for them, add values into the default elm config profile(s) and add widgets to the elm config tool to change there). there should also be the api calls as above. look at e17's clock settings - click on it and look there for week and weekend. i spent a while trying to come up with the simplest way to express all the (common) week+weekend setups around the world and this was the best. it covers all of them that i know of with 3 simple integers (0 to 6). Hello. Sumanth made patch for new widget dayselector.Please refer following description := Elc_Dayselector is a day selection widget. It displays all seven days of the week and allows the user to select multiple days. The selection can be toggle by just clicking on the day. Dayselector provides the functionality to check whether a day is selected or not. Localization support is also provided in the widget. Can someone review the widget and push it to the EFL repository. Sign-off By: sumanth M. V. K lt; sumant...@samsung.com -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] Elementary : New widget Elm_datetime patch
-- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] Elementary : New widget Elm_datetime patch
This patch was made by Sumanth Krishna Mannam. Please refer following message ~ and attached patch. === first i was strolling along, reading elm_datetime.c... and then i saw: static int _days_in_month[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; and then i was like: http://www.youtube.com/watch?v=6FWUjJF1ai0 and i saw... if (__isleap(*timearr[ELM_DATETIME_YEAR]) and i was like: http://www.youtube.com/watch?v=fM1O9jWeNoI (look at clock module src of e17 (in svn trunk/e/src/modules/clock) - in there it manages to draw months and handle month sizes by using syscalls that should get this from a time database and thus be correct. you can figure out the range by using syscalls to do it all look @ _time_eval()). I felt array based count is not that bad... and even elm_calendar does the same . anyway, I gave a try with your method, using mktime() and check for month wraaping and then deciding. Patch is updated accordingly . http://www.corkscrew-balloon.com/travel/9812paris/leap.html leap years do not make feb have 29 days EVERY 4 year. there are oddities to this over history and probably will be in the future too. thats the pont of the system time database and apis to figure out so you dont have to :) limits for years.. why 1970-2037? that seems a bit silly to limit it - what if i'm entering the date of birth of my father? it's definitely before 1970 :) I made 1970 as the default limit based on Epoc time 1970. I have no issues to make default limit to further lowest :) I changed the limits to 1900 2037. why not just allow ANY date ... no limits? what if someone uses the widget for a historcal event Examination app that asks students when events happened in history... The default limits for the year are used for displaying the possible values on modules plug-ins like ctx_popup/disk selector list and spinner module. More over, it's default limit and applications can override the limit with provided APIs ( value_min/max set ), based on their need. Example, any app accepting historical years, can set the min limit back to 1800 or even less. No restrictions. and then i was looking at api: Elm_Datetime_FieldType - Elm_Datetime_Field_Type otherwise i shall not quibble about api :) Yep...renamed to Elm_Datetime_Field_Type. cool - fix the above limit. it dont like it. for at least 1 reason given above. other than that take note of that page on leap years and just do some research yourself about time and how humans have, over history, defined it, written it down, played with it, adjusted it and tried to make your time system match the natural world around us. it'll encourage you to just piggy-back on someone elses time api so you dont have to re-do all the work.. and if there is a bug - its fixed in 1 place for everyone. -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] Elementary : New widget Elm_datetime patch
Can any one check this datetime patch and commit it to svn, please ..!! Thanks Regards, Sumanth M.V.K --- Original Message --- Sender : Gustavo Sverzut Barbieribarbi...@profusion.mobi Date : Feb 17, 2012 21:49 (GMT+05:30) Title : Re: [E-devel] [Patch] Elementary : New widget Elm_datetime patch On Fri, Feb 17, 2012 at 6:21 AM, Sumanth Krishna Mannam wrote: Hi All, Attached to the mail is the patch for new elementary widget elm_datetime. Refer to the below EFL post history for more details. The datetime widget provides an option to display Date time based on current locale format and the user can edit them through dynamic Modules. Dynamic modules can be based on 1. Content Popup/diskselector based list 2. Elm_entry with ISE based input 3. Elm_Spinner based etc. Refer to the Screenshots: 1.ctxpopup_diskselector_UI 2.entry_ise_UI 3.spinner_selection_UI Can someone review and push this patch to EFL repository? Change description: New widget Elm_datetime is added. Datetime widget displays the Date Time fields and provides a customizable way to edit them. The widget is implemented in a modular fashion for date/time field inputs. Ctxpopup based input is proposed as the default selection module. Localization support based on Libc is also supported. No time to see the code yet, but this was a GOOD example on how to submit patches to the list! :-) You clearly describe what it does, why we need it and even how it looks with screenshots Thanks! -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel