aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples (follow)
Commit message (Collapse)AuthorAgeFilesLines
* efl-mono: Only raise exception for managed errors.Lauro Moura2019-01-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: Previously, any unhandled Eina_Error would cause an exception to be thrown when the control returned to C#. This commit changes this behavior to only raise it when an exception went unhandled from a C# callback back to C, like in an event handler, for example. Test Plan: run tests Reviewers: segfaultxavi, Jaehyun_Cho, felipealmeida Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7537
* Efl.Ui.List_View: precise layout asyncLarry Lira2019-01-111-1/+1
| | | | | | | | | | | | | | | | Summary: fixed precise layouter to work with create asynchronous fixed example theme signal Reviewers: cedric, felipealmeida, SanghyeonLee, lauromoura Reviewed By: SanghyeonLee Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7476
* meson: excludes stuffs related with gst if gst is disabledWonki Kim2019-01-101-2/+12
| | | | | | | if a option for gstreamer is disabled, stuffs related with gstreamer should not be compiled. this patch excludes the stuffs. Differential Revision: https://phab.enlightenment.org/D7566
* examples: make edje examples possible to runMarcel Hollerbach2019-01-021-0/+1
|
* examples: remove setted but not used variableMarcel Hollerbach2019-01-021-2/+1
|
* examples: fix warnings regarding multiple definesMarcel Hollerbach2019-01-026-14/+33
| | | | compiling them stand alone still defines the correct definitions
* examples: fix eina_simple_xml_parserMarcel Hollerbach2019-01-021-1/+7
|
* examples: fix ecore_fd_handler_gnutls_examplesMarcel Hollerbach2019-01-021-1/+8
|
* examples: evas-3d-obj provide a biffer string bufferMarcel Hollerbach2019-01-021-4/+4
|
* ecore: fix build by having proper parameters order.Jaehyun Cho2019-01-021-1/+1
|
* meson: abstract edje_cc exec linesMarcel Hollerbach2018-12-061-2/+2
| | | | | | the array is calling the shell etc. this makes cross building easier. Differential Revision: https://phab.enlightenment.org/D7413
* examples: update gitignoreYeongjong Lee2018-12-045-7/+21
| | | | | | | | | | | | | | | | Test Plan: make examples git state Reviewers: Jaehyun_Cho, Hermet, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7406
* Efl.Ui.List.View: fixed MVVM life-cycleLarry Lira2018-11-303-12/+11
| | | | | | | Fix bugs on Views and Model related with null items and proper ownership and life-cycle of components. Configure default theme for default factory on finalize.
* elementary: rework Efl.Ui.Layout boolean signal-connection to ModelsVitor Sousa2018-11-301-4/+10
| | | | | | | | | | | | | | | Add new feature to specify signal connection to boolean properties of Models. This also fix some '%v' substitution problems. Parsing EINA_VALUE_TYPE_BOOL as boolean in Efl.Ui.Layout signal updates from Models (instead of EINA_VALUE_TYPE_UCHAR). UCHAR no longer has special handling and falls to the general result of eina_value_to_string() as other types do. Use EINA_VALUE_TYPE_BOOL instead of EINA_VALUE_TYPE_UCHAR to signal selection on click events to the Model. Update examples to make usage of the new property connection feature in order to model selection of items on Views.
* csharp: Change to new class API.Lauro Moura2018-11-2917-213/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: As discussed in T7204: - Eo Interfaces/mixins -> C# Interfaces with concrete class implementations - Eo Regular/Abstracts -> Proper C# classes - Added some new generators and helper methods. - Refactored the class generator, splitting into helper methods Eo handles now are stored only in the "root" class in any given inheritance tree (generally, Efl.Object), and accessible to each child. Methods also are defined in a single place instead of repeatedly generated in everyfile, reducing the size of the generated .dll from 30MB to around 4.5MB. Mixins are generated as C# interfaces but any regular class it inherits from is lost, as we can't have interfaces inheriting from regular classes. This will be dealt with in a later commit. Summary of API Changes: - Merged Inherit/Concrete classes. (These suffixes disappear from regular classes). - Interface still have implementations with 'Concrete' suffix for when they are returned from methods. - Removed 'I' from interface names. - Removed interfaces for regular/abstract Eo classes. - Concrete classes for interfaces/mixins hold the event argument struct. - Removed '_' from classes, enums, structs, etc, as indicated in C# naming conventions. - Namespaces are now Camel.Cased. - Renamed IWrapper's raw_handle/raw_klass to NativeHandle/NativeClass Also renamed the test classes as after the namespace change, the test namespace Test can conflict with the helper Test namespace. (And use more meaningful names than Test.Testing...) Also Fixes T7336 by removing a deprecated example and adding efl_loop_timer_example to build system. Fixes T7451 by hiding the class_get DllImports and renaming the IWrapper fields. The native handlers are used in the manual binding. Still need to work: - As there are still some events names clashing (e.g. Efl.Ui.Bg with "resize" from Efl.Gfx.Entity and Efl.Gfx.Image), Events are currently declared on the interface and implemented "namespaced" in the classes, requiring the cast to the interface to access the event. - The Mixin Conundrum. Mixin inheritance will be dealt in a future commit. Depends on D7260 Reviewers: segfaultxavi, vitor.sousa, felipealmeida, Jaehyun_Cho Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7451, T7336 Differential Revision: https://phab.enlightenment.org/D7262
* efl: make Efl.Model.properties_get return an Iterator<string>.Cedric BAIL2018-11-231-6/+7
| | | | | Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7289
* efl_ui_grid : introduce new packable grid widget for Efl.Ui.WidgetSangHyeon Jade Lee2018-11-201-0/+104
| | | | | | | | | | | | | | | | | | | | | | Summary: Introduce new packable grid for Efl.Ui.Widget toolkits. most of parts are same as Efl.Ui.List, and it also support Efl.Pack_Linear, although it will not support Efl.Pack_Table, because item must be arranged sequential orders. Test Plan: We will make the tests on efl ui test suite. please test by make check. Reviewers: Hermet, cedric, felipealmeida, eagleeye, woohyun Reviewed By: Hermet, eagleeye Subscribers: CHAN, bu5hm4n, cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D6985
* efl_ui_theme: Introduce Efl.Ui.Theme classJaehyun Cho2018-11-204-3/+366
| | | | | | | | | | | | | | | | | | | | Summary: Efl.Ui.Theme class is required to support language bindings. Efl.Ui.Theme works based on current elm_theme features. This patch fixes T7357. Reviewers: segfaultxavi, cedric, lauromoura, woohyun, zmike, SanghyeonLee Reviewed By: segfaultxavi, SanghyeonLee Subscribers: SanghyeonLee, herdsman, #reviewers, #committers Tags: #efl Maniphest Tasks: T7357 Differential Revision: https://phab.enlightenment.org/D7244
* efl_ui_bg: remove Efl.Ui.Bg interface and rename Efl.Ui.Bg_Widget classJaehyun Cho2018-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Efl.Ui.Bg interface does not have any new property or method. Moreover, Efl.Ui.Bg interface is not used by widgets except Efl.Ui.Bg_Widget and Efl.Ui.Widget_Part_Bg. Consequently, Efl.Ui.Bg interface can be replaced by other interfaces. Due to Efl.Ui.Bg interface, the bg widget class name becomes Efl.UI.Bg_Widget which is not synchronized with other widget names. Therefore, to keep consistency with other widgets, it would be better to remove Efl.Ui.Bg interface and rename Efl.Ui.Bg_Widget to Efl.Ui.Bg. Reviewers: woohyun, segfaultxavi, bu5hm4n, zmike Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7304
* elementary: rename Efl.Ui.Popup classesJaehyun Cho2018-11-161-3/+3
| | | | | | | | | | | | | | | | | | | | Summary: Efl.Ui.Popup classes are renamed intuitively from backward order to forward order. Efl.Ui.Popup_Alert -> Efl.Ui.Alert_Popup Efl.Ui.Popup_Alert_Scroll -> Efl.Ui.Scroll_Alert_Popup Efl.Ui.Popup_Alert_Text -> Efl.Ui.Text_Alert_Popup Reviewers: segfaultxavi, bu5hm4n, cedric Reviewed By: segfaultxavi Subscribers: herb, SanghyeonLee, woohyun, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7292
* elementary: remove Efl.Ui.Layout namespaceJaehyun Cho2018-11-161-1/+1
| | | | | | | | | | | | | | | | | | Summary: Efl.Ui.Layout namespace is removed to keep consistency with other widgets. Consequently, "Efl.Ui.Layout.Object" is renamed to "Efl.Ui.Layout" and "Efl.Ui.Layout." is renamed to "Efl.Ui.Layout_". Reviewers: segfaultxavi, bu5hm4n, cedric Reviewed By: segfaultxavi Subscribers: #reviewers, #committers, SanghyeonLee, woohyun Tags: #efl Differential Revision: https://phab.enlightenment.org/D7291
* Canvas layout: support more Efl.Text.* with efl_partDaniel Hirt2018-11-063-3/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds many Efl.Text.* that are useful for manipulating the underlying TEXTBLOCK object's propeties using efl_part. This has been implemented as part of the "user-defined" properties of the layout part, so that the changes on the part persist across load of different groups. Note that text styles have precedence over the TEXTBLOCK (Canvas.Text) object's properties. if an edc provides a style, the properties it manipulates as part of the "base:" string would not be affected by this API. In general, this helps reducing the amount of styles for objects (or modes of the same objects) that share the same setup, but are different in some properties (e.g. ellipsis, wrap etc). @feature Canvas layout: add text part "expand" property This adds "expansion modes", which are essentially the same as min/max hints in the edje part's 'description.text' fields. The user can then customize his widget to different modes without being forced to create a new edje group in the theme. Note that there is an added check in case one of the min/max text flags are provided from the theme. In such case, all flags from this new API will be ignored. This fortifies misuse where the flags are set both in theme and the API. @feature
* efl_ui : change efl_ui_view_list to efl_ui_list_view.SangHyeon Jade Lee2018-11-055-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | Summary: View is not a namespace, but an interface, So, View_List cannot be under the view namespace for now. it looks more suite to be end as View than List on this widget name. Firstly, it follows our common naming rules of class. Also, List_View is commonly presentable name on most UI frameworks, so it is very easy to understand what this widget can do for the user. Test Plan: Make works. Example is not works for now til stable model interface. Reviewers: felipealmeida, woohyun, cedric, Hermet Reviewed By: Hermet Subscribers: larryolj, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7234
* efl_ui_focus_manager: rename a eventMarcel Hollerbach2018-11-021-1/+1
| | | | | | | | | | | In eo there is a difference between legacy events and normal events. However, when a legacy event, that is called "focused" is emitted, the event EFL_UI_FOCUS_MANAGER_FOCUSED is emitted on those objects. This leads to bugs and unexpected results in elm_scroller, and additionally this problem blocks work that is done right now to add those "focused" event calls to gengrid. Differential Revision: https://phab.enlightenment.org/D7099
* efl-csharp: Fixing C# examplesLauro Moura2018-10-043-13/+13
| | | | | | | | | | | | Reviewers: vitor.sousa, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7134
* here comes mesonMarcel Hollerbach2018-10-0211-0/+399
| | | | | | | | | | | | | | | | | | | | | | | a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
* examples - fix avahi examples to compileCarsten Haitzler (Rasterman)2018-09-211-0/+3
| | | | add links to avahi system client libs.
* edje example: fix svg data.Hermet Park2018-09-212-7/+7
| | | | | | | | | | | | | | | | Summary: these svg data format didn't have the standard. Specify 0 ~ 100 in % unit i.e. 50% Otherwise, 0 ~ 1 in normalized value. i.e. 0.5 Reviewers: #committers Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7054
* spinner_example: add focused, unfocused callback to test focus signalYeongjong Lee2018-09-131-0/+14
| | | | | add focused, unfocused callback for test Differential Revision: https://phab.enlightenment.org/D7019
* docs: Fix typos in API reference doc and comments.Yeongjong Lee2018-08-311-1/+1
| | | | | | | | | | | | Reviewers: Hermet, segfaultxavi Reviewed By: Hermet, segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6948
* scroller: refactory a momentum scroll animatorWonki Kim2018-08-291-0/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: this patch refactories a momentum scroll animator logics. 1. animation duration animating runs within a one second now. and if it needs more time to animate, it decrease intepolation progress by dividing some value. current logic makes sense however, it is not easy to read to know how it works. this patch modify current logic to calculate distance to move, and time to animate. 2. distance to move we can apply simple physics something like mass of pan and friction of scroller itself. but this patch apply just geometric seqeunce to calculate distance to go. it's more easy to customize behavior of scroller than current sine graph based one. 3. accelerate logic scroller sets 'extra_time' to accelerate a scroller for now. but this patch modify logic not to use it. however it uses current momenutum velocity as a bais of next momentum animating. @feature Reviewers: zmike, #reviewers, Hermet Reviewed By: #reviewers, Hermet Subscribers: Hermet, cedric, zmike Tags: #efl, #do_not_merge Differential Revision: https://phab.enlightenment.org/D6643
* eolian-cxx: Remove test that can't be implementedFelipe Magno de Almeida2018-08-241-89/+0
| | | | | | The feature required by this test was removed. When the feature is reincluded with newer syntax the test will be rewritten and readded. Differential Revision: https://phab.enlightenment.org/D6897
* examples: elementary: fix path for image include to distStefan Schmidt2018-08-241-1/+1
| | | | | | | | I missed the correct path for the added image resource in commit ce3b2dcd99714a59984656d08e7de55248c234d7 Distcheck failed as it was not able to find the file. Differential Revision: https://phab.enlightenment.org/D6893
* examples: ecore: add input_joystick example to buildStefan Schmidt2018-08-222-1/+3
| | | | | | | | | | | | Summary: While the source have been there it was never part of the build. Also fixed a warning of an unused parameter in the code. Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6890
* examples: elementary: add more examples to buildStefan Schmidt2018-08-223-2/+9
| | | | | | | | | | | | | | Summary: Three more examples have been sitting in the src tree but have never been hooked up to the build. Also adding a needed resource file and fixing warnings in the newly build examples. Depends on D6890 Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6891
* examples: emile: make sure we ship the Makefile.examples file in distStefan Schmidt2018-08-211-0/+3
| | | | | | | | | | | | | | Summary: Depends on D6888 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6889
* examples: edje: fix warning from newly build edje-anchors exampleStefan Schmidt2018-08-211-1/+1
| | | | | | | | | | | | | | Summary: Depends on D6887 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6888
* examples: edje: add forgotten edje-anchors example to buildStefan Schmidt2018-08-211-0/+3
| | | | | | | | | | | | | | | | | | | Summary: While this source was in tree it was never build. Adding it to the build system. Thanks Ross for spotting. Depends on D6886 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6887
* examples: edje: remove unreferenced file in examplesStefan Schmidt2018-08-211-89/+0
| | | | | | | | | | | | | | | | Summary: No reference to this one. Looks like a left over. Depends on D6885 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6886
* examples: eina: fix warnings in newly build examplesStefan Schmidt2018-08-212-9/+5
| | | | | | | | | | | | | | | | | Summary: These examples ahve been in tree but not build for a long time. After enabled them in the last commit these warnings popped up. Depends on D6884 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6885
* examples: eina: add missing example source files to distStefan Schmidt2018-08-211-1/+10
| | | | | | | | | | | | | | | | | | | Summary: These have been missing from dist together with the xml resource file. Adding them back to amke sure we ship them in our tarballs. Thanks to Ross for spotting and reporting. Depends on D6883 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6884
* examples: evas: we had a couple of files missing in the tarballsStefan Schmidt2018-08-211-0/+11
| | | | | | | | | | | | | | | | | | Summary: A few resource files and a README has not been taken into account during dist. Make sure we list them correctly. Thanks to Ross for spotting and reporting. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6883
* build: remove BUILT_SOURCES usage from cxx examples makefilesMike Blumenkrantz2018-08-032-9/+27
| | | | | | ref T7154 Differential Revision: https://phab.enlightenment.org/D6656
* build: move src/examples/ to a single makefileMike Blumenkrantz2018-08-0337-3158/+2601
| | | | | | | | | | | this greatly improves build times by improving parallelizing, though it does introduce more BUILT_SOURCES usage which causes builds with cxx bindings to take significantly longer fix T7157 ref T7154 Differential Revision: https://phab.enlightenment.org/D6633
* Efl.Ui.Layout.Factory: added missing factory_model_connectFelipe Magno de Almeida2018-08-011-17/+5
| | | | | | | | | | | Summary: connect factory to edje part name when create a new layout connect a factory to it change example to use the factory_model_connect Reviewers: felipealmeida Differential Revision: https://phab.enlightenment.org/D6667
* efl: fix some warnings in examplesXavi Artigas2018-07-203-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: - Check return vaule of fread() - Uninitialized var (seriously!) - Weird struct assignment Still one warning remains, pending evaluation of T7166. Fixes T6718 Test Plan: Those 3 warnings have disappeared and the related example still works as expected. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6718 Differential Revision: https://phab.enlightenment.org/D6631
* examples/evas: do not attempt to free animator on window deleteMike Blumenkrantz2018-07-181-1/+0
| | | | | | | | | | | | | | | | | | | | Summary: animators are implicitly destroyed for this case, and attempting to manually destroy them just results in an error/failure and invalid reads since this is a poorly designed api which can internally destroy itself fix T7000 @fix Reviewers: Hermet, devilhorns Subscribers: segfaultxavi, cedric Tags: #efl Maniphest Tasks: T7000 Differential Revision: https://phab.enlightenment.org/D6488
* efl selection manager + elm dnd test fix with bad string handlingCarsten Haitzler (Rasterman)2018-07-161-0/+0
| | | | | | | | | | | | | | so there are 2 problems behind T7113. first is a problem in the efl selection manager being "sloppy" with selection data. it's doing a strlen on the data but it's not a normal c string. it's a blob of binary data + length value. this fixes that "sloppiness" by using the len field. there is also another bug in the dnd test code that again has to do with "sloppy" handling of data buffers and assuming nul byte termination and not using the len field properly. this fixes T7113.
* build: fix distcheck when elua is disabled in main treeMike Blumenkrantz2018-07-131-5/+7
| | | | | | | | | | | | | | | | | | Summary: elua example files were not being distributed correctly as a result of improper use of build conditionals Depends on D6582 Reviewers: devilhorns, ManMower Reviewed By: ManMower Subscribers: #committers, cedric Tags: #efl_build Differential Revision: https://phab.enlightenment.org/D6583
* build: fix distcheck building when main tree is not compiledMike Blumenkrantz2018-07-131-4/+7
| | | | | | | | | | | | | | | | | Summary: when running 'make distcheck' immediately after configure, the build will fail because some example files were incorrectly being distributed instead of being compiled normally in the dist build Reviewers: ManMower Reviewed By: ManMower Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6582