summaryrefslogtreecommitdiff
path: root/src/examples (follow)
AgeCommit message (Collapse)Author
2019-09-06eolian-mono: Renaming suffix for event and event argsBruno da Silva Belo
Summary: suffix _Args to Args, Evt to Event Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: Jaehyun_Cho, woohyun, segfaultxavi, cedric, felipealmeida, #reviewers, lauromoura, #committers Tags: #refactoring, PHID-PROJ-uhnmnvlvunw6jgoqdnd4, #efl_language_bindings Maniphest Tasks: T8164, T8163 Differential Revision: https://phab.enlightenment.org/D9692
2019-09-05efl_ui_collection: use the correct min size hintMarcel Hollerbach
there are not enough size hints, we should add more! I mixed up which size hints i should have used here, after some back and forth it turns out that i should use the combined. This fixes the list example. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9779
2019-09-04Efl_Ui: Move elementary and change namespace Ui for ui related modelsSangHyeon Jade Lee
Summary: Select and View is ui characteristic features, so Efl_Select_Model and Efl_View_Model move to elementary from ecore seems more natural. namespace also should changed to Efl.Ui as it's right place. Test Plan: run the test while building it Reviewers: cedric, felipealmeida, bu5hm4n, zmike, lauromoura Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9820
2019-09-02Revert "eolian_mono: remove underscore of Evt_Args"Jaehyun Cho
This reverts commit ac99e2ac9410d5b2ef6225fa1aaaf9ffcd6578fb. This patch is reverted because D9692 covers this patch.
2019-09-02eolian_mono: remove underscore of Evt_ArgsJaehyun Cho
Since C# does not use underscore in type name, the underscore of Evt_Args is removed.
2019-08-30cxx: Fix example after popup changes.Lauro Moura
Summary: Popup api changed in 1ca07b72da944 Reviewers: zmike, felipealmeida, bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9807
2019-08-26thread example - add exit with parent flagsCarsten Haitzler (Rasterman)
2019-08-26efl loops/threads - by defaylt tasks (exe and threads) exit with parentCarsten Haitzler (Rasterman)
this also defers parent exit until all children exit and will wait around looping until those children do report back with exited status etc. - this meay mean some hangs for badly written/blocking apps that have efl thrrads that refuse to exit. a slight policy change also means that by default thread objects also get auto-deleted whent hey report back exit codes etc. which leads to less code if you don't care about this.
2019-08-26spinner_cxx_example: Fix use wrong apiJunsuChoi
Summary: de18371 changes cause build errors. (D9707) this is a patch to fix it. Test Plan: N/A Reviewers: woohyun, bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9738
2019-08-23slider_cxx_example: Fix use wrong apiJunsuChoi
Summary: d50fdc0, e84ecd95 changes cause build errors. this is a patch to fix it. Test Plan: N/A Reviewers: zmike, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9721
2019-08-23efl/gfx: redo image scale_type enumMike Blumenkrantz
this is ideally a bit more clear and flexible than the previous enum names Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9691
2019-08-22examples: shut up edc build warnings.Hermet Park
This might not be proper fix (at least they are fine by me), if these textblocks actually have something wrong sizing.
2019-08-21elementary: use the right function for creating object from Efl.Ui.Factory.Cedric BAIL
Reviewed-by: Lauro Neto <Lauro Moura <lauromoura@expertisesolutions.com.br>> Differential Revision: https://phab.enlightenment.org/D9635
2019-08-19meson: there is no need for checking ecore hereMarcel Hollerbach
fix T7768 Differential Revision: https://phab.enlightenment.org/D9574
2019-08-14efl_ui: update efl_ui_list_view example to workSangHyeon Jade Lee
seems name for the model property_name is now allowed, so fix it to title and now it works well. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9558
2019-08-07introduce efl_ui_multi_selectable and efl_ui_single_selectableMarcel Hollerbach
right now they are just thin wrappers from what have been in efl_ui_collection. This is just a first effort, the interfaces have to be equipped with more and better API, more events, and tests. ref T8057 Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9515
2019-08-05introduce a new interface efl_ui_selectableMarcel Hollerbach
this is meant to be implemented by entities that *can* be selectabled (not to be confused with containers that can have selected contents)! ref T8057 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9503
2019-08-01examples: cast to uintptr_t instead of longVincent Torri
on Windows, long is a 32 bits type Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9470
2019-08-01spinner_example: migrate it to efl::ui::spin_buttonMarcel Hollerbach
we should do that more often, that shows issues. Right now there seems to be an issue with accessors in cxx, something is freeing the accessor twice. So this feature is disabled right now. ref T8100 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9471
2019-08-01efl_ui_range_interactive: add a new eventMarcel Hollerbach
the steady event from slider now moved here. A spec test suite and the corresponding implementations will follow. ref T7894 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9458
2019-07-31slider_cxx: fix castingMarcel Hollerbach
this object now needs to be casted, in order to have the event available.
2019-07-29efl_input_clickable: rename efl_ui_clickable to efl_input_clickableWooHyun Jung
Summary: Renamed all efl_ui_clickable_XXX to efl_input_clickable_XXX based on the discussion in T7847 ref T7847 T7976 Reviewers: zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7976, T7847 Differential Revision: https://phab.enlightenment.org/D9427
2019-07-28warning - move break in switch to handle properly and addess warningCarsten Haitzler (Rasterman)
2019-07-28examples - use putenv, not setenv for porting reasonsCarsten Haitzler (Rasterman)
putenv is more portable than setenv, so usethat instead. this nukes warnings on windows as evil is meant to go private and you thus have no setenv anymore.
2019-07-28filesel example - add locale.h include since we use setlocaleCarsten Haitzler (Rasterman)
2019-07-26efl-js: Remove private keys for Twitter API from exampleFelipe Magno de Almeida
Summary: For security concerns we removed the secret keys which could be used improperly by the wrong people. Reviewers: woohyun, cedric, lauromoura Reviewed By: lauromoura Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9377
2019-07-25efl_ui_list_item: remove thisMarcel Hollerbach
this has nothing usefull in it. Additionally, future commits will brings up another design where there is a central default item style, which can be hinted. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9394
2019-07-24efl_ui_list: make it work with item_containerMarcel Hollerbach
This also refactors the example a little bit. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9385
2019-07-24efl_ui_grid: make it work with item_containerMarcel Hollerbach
this also reformats the example, removes comments that are misleading, removes UI elements that have no purpose. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9384
2019-07-24warnings remove in efl thread/exe examplesCarsten Haitzler (Rasterman)
2019-07-24examples - add efl_thread and efl_exe to themCarsten Haitzler (Rasterman)
2019-07-24build - remove old .mk files that were for autofoo not mesonCarsten Haitzler (Rasterman)
2019-07-22evas_vg_json: Add image embedded exampleJunsuChoi
Summary: add example code and json resource. plus) Add ECTOR_BACKEND="default" Environment variable because cairo backend is not supported. Depends on D9218 Ector.Renderer : Implement Ector.Renderer.(Software).Image class D9219 Efl.Canvas.Vg : Implement Efl.Canvas.Vg.Image class D9220 vg_common_json : Support image data of node Test Plan: cd .src/examples/evas/ gcc -o evas_vg_json evas-vg-json.c `pkg-config --libs --cflags evas ecore ecore-evas eina ector eo efl` ./evas_vg_json Reviewers: Hermet, kimcinoo, smohanty Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9351
2019-07-17elementary: simplify example by using Efl.Model_Provider.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9307
2019-07-15examples: fix function signature for edje color class exampleMike Blumenkrantz
Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9303
2019-07-15evas_vg_load_svg: Support multiple gradient without <defs> partJunsuChoi
Summary: Multiple gradients can be declared. There is a problem of keeping only one gradient information when it is declared outside defs or when defs is not declared. It supports the use of multiple gradients even if no defs are declared. Test Plan: (with D9312 patch) cd src/example/edje edje_cc -beta svg.edc && gcc -o svg-test svg-test.c `pkg-config --libs --cflags evas ecore ecore-evas edje` ./svg-test Reviewers: Hermet, kimcinoo, smohanty Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9315
2019-07-12edje: Add support for map zoom to use other part center.Subodh Kumar
Summary: Current: In edc, zoom is supposed to happen from object center, there is no way to change the center of the zoom. Changes: Adding support to change the center of zooming just like map rotation by using other part's center. @feature Reviewers: cedric, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9115
2019-07-09cxx: fix some compilation warnings in C++ examplesVitor Sousa
Summary: Fix some warnings in the C++ examples for elementary. These examples are build by default in the normal meson compilation. Only accidental warnings were fixed, explicit warnings using the `#warning` preprocessor directive were maintained. Test Plan: Compile with C++ binding. Reviewers: lauromoura, felipealmeida, segfaultxavi Reviewed By: segfaultxavi Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9244
2019-07-05elementary: rename Activew_View to Spotlight.Cedric BAIL
View is something that is expected in the context of MVVM, so using it somewhere else is going to lead to some confusion. Spotlight does descrive the objective of all of this widget in actually a more explicit way as they all give the spotlight to one sub widget at a time. I have also renamed the View_Manager to be just Manager as the View there wasn't useful.
2019-07-04Efl.Ui.Format revampXavi Artigas
This class helps widgets which contain a numerical value and must display it, like Progressbar (units label), Spin, Spin_Button, Slider (both units and popup labels, in legacy), Tags (when in shrunk mode) or Calendar (year_month label). Previously this was a mix of interface and mixin: widgets had to support setting a formatting func, and the mixin offered support for formatting strings, by setting an internal formatting func. On top of that, the spinner widget supported "special values", a list of values that should be shown as certain strings instead. This has now been simplified and unified: Widgets including this mixin can use the formatted_value_get() method which accepts an Eina_Value and returns a string. Thats's it. The mixin adds three properties to the widget (format_values, format_func and format_string) which users can use to tailor formatting. The widget does not need to know which method has been used, it just retrieves the resulting string. This removes a lot of duplicated widget code, and adds functionality which was missing before. For example, all widgets support passing a list of values now. Widgets must implement the apply_formatted_value() method so they are notified of changes in the format and they can redraw anything they need. Tests have been added to the Elementary Spec suite for all cases. Legacy widgets behavior has not been modified, although a few needed some code changes.
2019-06-26efl_ui: remove nstate widgetMike Blumenkrantz
Summary: this doesn't seem to serve a purpose anymore and there's no point in keeping it in tree fix T7866 Reviewers: woohyun, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl_widgets Maniphest Tasks: T7866 Differential Revision: https://phab.enlightenment.org/D9176
2019-06-21evas vector: add a lottie animation example.Hermet Park
Summary: Depends on {D8941} Reviewers: #committers, jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8944
2019-06-20remove more filesMarcel Hollerbach
Summary: those files are leftover from autotools. They have been missed before Reviewers: stefan_schmidt, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9143
2019-06-20efl_ui_radio: cleanup APIMarcel Hollerbach
This is a bit of a giant commit. However, the problem here is that cleaning up the API went hand in hand with rewriting most of the usages. In the process of renewing and removing old API the following was done: - Legacy API testcases have been ported back to smart callbacks - EO-API testcases have been ported to efl_add syntax - weird event #defines have been removed - Wrong constructor usage has been removed - Ported to the new box object introduced before - removed legacy API from efl_ui_radio -> no more ptr(int) q66 will do jumps of happiness -> no more ununderstandable group_add methods -> Seperated code in blocks only for legacy, and blocks only for non-legacy To verify this commit, you can check all the tests that have been touched here. Additionally, the cxx example has been adjusted ref T7867 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9060
2019-06-20Introduce Efl.Ui.Radio_Group & Efl.Ui.Radio_BoxMarcel Hollerbach
Radio_Group is a interface that manages that radio groups can be grouped inside a external object, the current API of radio was considered confusing in that regard. It is implemented in the Radio_Group_Internal class which is private to EFL, a instance of it can be found with get due to the class function in efl_ui_radio.eo. This architecture was taken like this, in order to have implementation and interface seperated. With those two seperated we can inherit from regular widgets, implement the interface, and composite attach the internal object to the regular widget. This makes a lot of things easier. Radio_Box is a class which is extending Efl.Ui.Box, which has an internal Radio_Group. This is extremly usefull for cases where you just want to have a list of radio buttons in your UI. The radio group is also exposed using composition to the internal object. Simular things can be done for the table. For now i did not add API to find the group of a radio button. However, this can be quickly added if requested. ref T7867 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D9058
2019-06-19Fix miscellaneous build warningsXavi Artigas
Nothing serious, but they were driving me mad.
2019-06-19efl_ui_range_display: range_min_max -> range_limitsMike Blumenkrantz
Summary: ref T7895 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7895 Differential Revision: https://phab.enlightenment.org/D9110
2019-06-18Ecore net dialer Windows example: fix undeclared symbolsVincent Torri
Summary: missing symbols : efl_net_dialer_address_dial_get efl_net_socket_address_remote_get efl_net_socket_address_local_get EFL_NET_DIALER_EVENT_DIALER_CONNECTED EFL_NET_DIALER_EVENT_DIALER_RESOLVED EFL_NET_DIALER_EVENT_DIALER_ERROR EFL_NET_DIALER_WINDOWS_CLASS Test Plan: compilation Reviewers: zmike, raster, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9106
2019-06-18autotools: REMOVAL!Marcel Hollerbach
Get your seatbelt fastend! It is happening! AUTOTOOLS IS GONE NOW! All praise to meson! This time the final version, ci has been adjusted, and now does not try anymore to build a removed buildsystem. However, the scripts in there need cleaning up. Differential Revision: https://phab.enlightenment.org/D9027
2019-06-18Revert "autotools: REMOVAL!"Marcel Hollerbach
This reverts commit e8c69667b01e2795c1e4ead0536652f935ffa674. git push on a wrong branch, sorry. This will land today, but not now.