summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-08wipdevs/bu5hm4n/make_doc_cop_happyMarcel Hollerbach
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-05docfx: Remove collapsible sectionsXavi Artigas
They didn't render correctly in all cases.
2019-07-05csharp: Fix Future callback lifetimeLauro Moura
Assigning a method directly to a field expecting a delegate creates a delegate on the fly. This delegate can be collected normally as any collectable object. In dotnet the GC is more aggressive, causing this delegate to be collected and C trying to call an invalid function. To avoid this, we create a static delegate that will be passed to C. Its lifetime will be tied to the static method it wraps.
2019-07-05csharp: encapsulate some internal code of EoWrapperVitor Sousa
Summary: Encapsulate some parts of EoWrapper making them less accessible to lib users. This can avoid unnecessary and risky usage of code that is only intended for internal usage. `inherited` field was made private and renamed to `generated`. Now its value can only be obtained through the `IsGeneratedBindingClass` property. `handle` field was made private. `eventLock` was renamed to `eflBindingEventLock` `ConstructingHandle` property set was made private. Constructors that are used to create new EFL# managed objects by wrapping a preexisting eo handle now receive a specific struct wrapping the handle pointer. This can avoid faulty interactions with the Reflection engine used only for generated classes that implement this constructor. Test Plan: meson test Reviewers: lauromoura, felipealmeida, YOhoho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9212
2019-07-04efl_ui_widget: optimize focusMarcel Hollerbach
this commit ensures 2 things: 1. This ensures that the parent is not evaluated when there was no state changed, this cuts down roughly 30% of the calls to full_eval 2. This ensures that we only listen to parent manager changes when we are actaully registered. This reduces the amount spend in event emission a lot.
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-07-04ci: finally enable examples for mingw buildStefan Schmidt
With the gnutls build problem fixed we can now enable these as well.
2019-07-04ci: cross: make sure we use the mingw pkg-config to detect cross depsStefan Schmidt
This only came up when we had gnutls native but not cross to find out that we used the system pkg-config all the time to detect cross. Making sure we use the correct tool to detect the cross dependencies.
2019-07-04ci: enable more build options for mingw jobStefan Schmidt
Withj an updated ewpi in the docker image we can now enable more build options. Examples are still disabled as there is a build break that needs to get fixed first.
2019-07-03tests/radio: add explicit test for verifying legacy radio callback triggeringMike Blumenkrantz
the 'changed' callback should never be triggered when programmatically changing a radio's state ref T8042
2019-07-03tests: add functional unit tests for radio widgetsMike Blumenkrantz
this adds some basic testing to verify that callbacks occur and values are set as expected Differential Revision: https://phab.enlightenment.org/D9091
2019-07-03efl_ui_check/radio: restore legacy behaviourMarcel Hollerbach
from now on, the "changed" signal is only emitted on radio/check buttons when the user interacted with this object. NOT due to the API change. However, in the eo-api the event is emitted all the time, due to user interaction, AND due to API interaction. ref T8042
2019-07-03Efl.Ui.Progressbar: Add explicit display control of progress labelXavi Artigas
Summary: Add a property (show_progress_label) to allow controlling whether the progress label displaying the exact progress is shown or not. This was possible in Legacy but the functionality was lost in Unified. Updated elementary_test to showcase this property, and also the other label formatting options, which where not tested anywhere. Added a simple progressbar unit test. It only checks that retrieved value is the same as the set value, so it is more of a placeholder for future tests. **This is needed by a future patch which will introduce more formatting options that clash with the current implementation.** The presence of a formatting function was used to decide if the progress label was shown or not. This explicit property simplifies things. Test Plan: Everything builds and passes tests. `elementary_test -to Efl.Ui.Progressbar` should show a few more bars with different formatting labels, and a checkbox to toggle rendering of one of them. Reviewers: bu5hm4n, zmike, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9202
2019-07-03eina: add accessors for c arraysMarcel Hollerbach
This adds a new API which can be used to get access to a carray via the eina_accessor API.
2019-07-02elementary: remove unused elm_widget header filesJaehyun Cho
elm_widget_bg.h and elm_widget_clipper.h are not used any more. So those header files are removed.
2019-06-28csharp: fix some compilation warningsVitor Sousa
Fix unused variable warnings in eina_mono and unit test files.
2019-06-28csharp: fix Eina_Stringshare support in containers for manual and generated APIVitor Sousa
Summary: Both C strings and eina stringshares are bound as regular strings in EFL#, as working directly with these types would demand unnecessary hassle from the user viewpoint. But for eina containers this distinction is important, and since C# generics do not provide a convenient way of dealing with the same type requiring a different management based on some other condition (at least not without compromising the usability for other types), we added a simple `System.String` wrapper named `Eina.Stringshare` that works as a placeholder for signaling this distinction. Working with this class should be transparent in most use cases because it converts to and from `System.String` implicitly. It also implements equality/inequality methods for easier comparison with strings and other stringshare objects. Add new methods and a new container element trait for dealing specifically with `Eina_Stringshare` elements. Adapt eolian_mono to identify and generate the proper placeholder in methods that require stringshare containers. Remove some direct uses of DllImport-ed functions in favor of more flexible manual binding methods. Move `Eina.Stringshare` DllImport directives to a static class named `NativeMethods`, in accordance with the code design warning CA1060. Also add a TODO comment to move all other DllImport directives to this class. Change parameter of the method `Efl.Csharp.Application.OnInitialize` from `Eina.Array<System.String>` to `string[]`. This will make this API more similar with the default C# way of receiving command line arguments. Add tests for containers storing stringshare elements. Reviewers: felipealmeida, lauromoura, segfaultxavi, bu5hm4n Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9178
2019-06-28csharp: make inherited C# classes constructible from native CVitor Sousa
Summary: With this commit it is now possible for a class that inherits from a C# binding class to be instantiated from native C code. It only has to provide a constructor that receives an `Efl.Eo.EoWrapper.ConstructingHandle` struct, and which calls the base binding constructor passing it. For example: `private Type(ConstructingHandle ch) : base(ch) {}`. Add some test files to validate the proper behavior of this feature. Add some small fixes in generation contexts in order to properly generate base constructors. Depends on D9070 Test Plan: `meson test` and `make check` Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun, YOhoho Reviewed By: YOhoho Subscribers: YOhoho, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9071
2019-06-28efl_ui: include here efl_ui_itemMarcel Hollerbach
Summary: this is actually a new class, it should be included here. Reviewers: zmike, stefan_schmidt Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9200
2019-06-28view_manager_scroll: fix not to move view position by clickJaehyun Cho
Summary: Previously, view position was moved by click because transition information was initialized in mouse move instead of mouse down. Now, transition information is initialized in mouse down so view position is not moved by click. Test Plan: 1. Run Efl.Ui.Active_View Scroll 2. Click Next button 2 times 3. Click Button Page Or 3. Drag Button Page a bit to the left and click multiple times Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9173
2019-06-28evas_events: fix wrong event listeningMarcel Hollerbach
EFL_EVENT_FOCUS_IN is wrong here, EFL_EVENT_FOCUS_IN is called on object that received object focus. Not canvas focus, however, the code in the callback there seems to be mainly for canvas focus handling. Additionally, in evas_events, the event handler that was listening for the canvas focus in / out events expected a event type, which is also not correct, because the canvas focus in / out does not have one. In order to catch such errors later more easily, there is now a safety check, so we really fetched the correct seat. Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9191
2019-06-28meson: remove autotools checking stuffsWonki Kim
autotools has been removed. so that the autotools checking logic is not needed. this patch removes them. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9198
2019-06-27efl-mono: Fix value forwarding in promises/asyncLauro Moura
Summary: Values returned from C# Then callbacks must release ownership of the underlying native value, so Eina code can clean it up nicely and avoid the Wrapper flushing it early. The same issue applied to the Async wrappers. In this case the value passed as the Task parameter could be released by an `using` block awaiting the value. Also Future creation was then-ing the wrong handle. Also add better exception messages. Reviewers: vitor.sousa, felipealmeida Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9197
2019-06-27csharp: Rename test util parametersLauro Moura
Summary: Instead of 'expected' and 'actual', use 'lhs' and 'rhs', as it allows the actually expected value to be in any position. Reviewers: vitor.sousa Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl, #expertise_solutions Differential Revision: https://phab.enlightenment.org/D9196
2019-06-27csharp: Add missing prefix to enable interpolationLauro Moura
Reviewers: vitor.sousa Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl, #expertise_solutions Differential Revision: https://phab.enlightenment.org/D9195
2019-06-27eolian_mono: fix to support event info which is a type defined in eoJaehyun Cho
Summary: Previously, if event info was not structure and it was a type defined in eo, then the type value was not passed to the event info correctly. e.g. if event info was Efl.Ui.AlertPopupButton enum type, then default(Efl.Ui.AlertPopupButton) was always passed to event info. Now, the given type value is passed to the event info correctly. Reviewers: felipealmeida, lauromoura, vitor.sousa, bu5hm4n Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, herb, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9159
2019-06-27eolian_mono: small correction when checking for iterator and accessor parametersVitor Sousa
2019-06-27csharp: Update after iterator changesLauro Moura
Summary: Iterator and Accessors are views only, not owning the data they point to. Also updated the tests by handling some test data that were leaking. Fixes T8036 Reviewers: vitor.sousa, felipealmeida Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers, segfaultxavi, q66 Tags: #efl Maniphest Tasks: T8036 Differential Revision: https://phab.enlightenment.org/D9189
2019-06-27meson: disable xattr on macosMarcel Hollerbach
macos has a different implementation than linux for xattr. This commit disables XATTR again for macos.
2019-06-27efl_input_interface: verify check cancel eventMarcel Hollerbach
this verifies that EFL_EVENT_POINTER_CANCEL is emitted correctly. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9171
2019-06-27evas_events: implement POINTER_CANCEL eventMike Blumenkrantz
it looks like this was left out during initial writing of eo-based eventing, but based on the description, the intent was to have a separate cancel event which was emitted just prior to the 'up' event using the existing state Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9184
2019-06-27meson: add some config definitionsJongmin Lee
Some config definitions used in source code could not be defined during build config process. - HAVE_XATTR - HAVE_CIPHER - HAVE_SIGNATURE - BUILD_ECORE_EVAS_EWS Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Reviewed-by: Vincent Torri <vincent.torri@gmail.com> Differential Revision: https://phab.enlightenment.org/D9192
2019-06-27ci: travis: update last jobs from Fedora 29 to 30 docker imageStefan Schmidt
With the specsuite tests fixed now we can see that the build also works with Fedora 30, so we can update the last missing jobs not having it. Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9193
2019-06-27tests/elm: replace bespoke win/loop fast-forwarding with helper functionMike Blumenkrantz
now we can consistently do event emissions inline in tests using much simpler code Reviewed-by: Chris Michael <cp.michael@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9188
2019-06-27tests/efl_ui: add suite_helpers.h to efl_ui_suite.hMike Blumenkrantz
no need to manually include this for every file Reviewed-by: Chris Michael <cp.michael@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9187
2019-06-27tests/elm: add helper function for simplifying getting to event triggeringMike Blumenkrantz
the usual method is calc -> post render -> job to ensure everything is set up. this simplifies getting to that job. Reviewed-by: Chris Michael <cp.michael@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9186
2019-06-27tests: remove correct callback in slider event testMike Blumenkrantz
typo Reviewed-by: Chris Michael <cp.michael@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9185
2019-06-27evas svg: fix missing node opacity attribute.Hermet Park
Any svg node could have its opacity value, we missed implementing it. If a node have a opacity, it's opacity could be multiply with fill and stroke colors. @fix
2019-06-27evas svg: remove unnecessary initialization.Hermet Park
2019-06-27dummy_test_object: remove @owned on iteratorJaehyun Cho
@owned on iterator (view-only container) is removed based on 5b00dc344febd4004f268d8d76a05f7579d08288
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-26ecore-wl2: Add missing doxygen for ecore_wl2_window_resizing_getChristopher Michael
function ref T8014
2019-06-26ecore-wl2: Add missing @since for ecore_wl2_offer_mimes_get functionChristopher Michael
ref T8014
2019-06-26efl_ui_suite: remove duplicated codeMarcel Hollerbach
Summary: there is a helper for this function, lets use it. Depends on D9181 Reviewers: stefan_schmidt, segfaultxavi, zmike, Jaehyun_Cho Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9182
2019-06-26efl_input_interface: add tests for mouse wheel emittingMarcel Hollerbach
Summary: this tests if z and direction is correctly emitted Depends on D9169 Reviewers: zmike, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9170
2019-06-26efl_input_interface: test pointer in and out events on a objectMarcel Hollerbach
Summary: this verifies that EFL_EVENT_POINTER_IN EFL_EVENT_POINTER_OUT are emitted correctly with the correct event content. Depends on D9168 Reviewers: zmike, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9169
2019-06-26efl_input_interface: test pointer move down upMarcel Hollerbach
Summary: this verifies that EFL_EVENT_POINTER_MOVE / EFL_EVENT_POINTER_DOWN / EFL_EVENT_POINTER_UP are emitted and passed with the correct event types, and fields on the event object. Depends on D9167 Reviewers: zmike, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9168
2019-06-26evas_events: fix setting of 'pressed' member in Efl_Input_Key_DataMarcel Hollerbach
Summary: this also adds tests verifying that EFL_EVENT_KEY_DOWN / EFL_EVENT_KEY_UP are emitted and passed with the correct event types, and fields on the event object. Depends on D9166 Reviewers: zmike, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9167
2019-06-26efl_input_interface: add test to verify focus in/outMarcel Hollerbach
Summary: this verifies that EFL_EVENT_FOCUS_IN / EFL_EVENT_FOCUS_OUT are emitted and passed with the correct event types, and fields on the event object. Reviewers: zmike, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9166