summaryrefslogtreecommitdiff
path: root/src/examples (follow)
AgeCommit message (Collapse)Author
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.
2019-06-18autotools: REMOVAL!Marcel Hollerbach
Get your seatbelt fastend! It is happening! AUTOTOOLS IS GONE NOW! All praise to meson! Differential Revision: https://phab.enlightenment.org/D9027
2019-06-17example - use LC_ALL not LC_MESSAGES for windows examples to buildCarsten Haitzler (Rasterman)
so they don't need evil anymore. should help vtorri + windows port/support.
2019-06-17example - use putenev, not sentenv to be more portableCarsten Haitzler (Rasterman)
yes - it's much more code too. that's life with putenv().
2019-06-14Efl.Ui.Slider: Rename event delay,changed to steadyXavi Artigas
Summary: And update the docs to explain its purpose. Related to T7893 Test Plan: Everything builds and tests pass Reviewers: zmike, bu5hm4n Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9090
2019-06-13efl_ui_check: make it undependend of nstateMarcel Hollerbach
Summary: check can only display 2 states, and is only designed to do so. Additionally, nstate inherits from button, which brings in autorepeat, which is hileriously broken on check and cannot really work. Right now there is not even support in the theme for clickable. So its a good idea to get rid of this for now IMO. ref T7865 Reviewers: stefan_schmidt, zmike, segfaultxavi, akanad, YOhoho Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7865, T7867 Differential Revision: https://phab.enlightenment.org/D9018
2019-05-30efl_ui_active_view: introduce a experimental new widgetMarcel Hollerbach
this widget tries to replace efl.ui.stack efl.ui.flip & efl.ui.pager In general those widgets do the same thing, they get content. And display them with some sort of animations. The new idea here is, that the basic widget active_view only handles the ownership etc. of the content that gets added to this. Then there is a view_manager object. The view_manager object gets notified over the new contents, and requests for displaying particular contents. The transition then handles those things. The version here is feature complete with Efl.Ui.Stack and Efl.Ui.Pager. Additional features can be implemented in the corresponsing transition classes. Examples and tests will follow Reviewed-by: Jaehyun Cho <jae_hyun.cho@samsung.com> Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8784
2019-05-30efl_ui: rename list empty item to list placeholder item.SangHyeon Jade Lee
Summary: legacy full style item is introduced Efl.Ui.ListEmptyItem Class in new Efl Interface, but using "Empty" name is too ambiguous to present style usage. Thanks to @cedric and @segfaultxavi, I found better name for this class, Efl.Ui.ListPlaceHolderItem, as item hold the place which need to be replaced and relayouted by user generated content. Depends on D8582 Reviewers: cedric, segfaultxavi, eagleeye Reviewed By: eagleeye Subscribers: cedric, #reviewers, segfaultxavi, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9034
2019-05-30efl_ui : refactoring efl.part in item based classes.SangHyeon Jade Lee
Summary: Most of item-based class will have similar efl.part such as text, icon, end. creating this efl part per each class will be very hard to maintaining the class and unnecessary eo generation. so combine them in efl.parts of efl_ui_item. sub item classes can use this efl.part by declairing ther own eo definition. Reviewers: cedric, Jaehyun_Cho, segfaultxavi, eagleeye Reviewed By: cedric, eagleeye Subscribers: herb, woohyun, q66, lauromoura, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8582