Commit Graph

92 Commits

Author SHA1 Message Date
Xavi Artigas b55e5150c9 mono examples: Adapt to Efl.Csharp.Application
This class simplifies app development, so the examples have to showcase it.
Basically:
- Your app inherits form it
- You do not need to init() or shutdown()
- You override the methods you want (like OnInitialize).

Fixes T7655
Differential Revision: https://phab.enlightenment.org/D8477
2019-03-26 16:24:20 +01:00
Lauro Moura 735b848660 csharp: Changes after adding I to interfaces
Summary:
 Ref T7751
 Depends on D8397 in the EFL repo

Reviewers: segfaultxavi, vitor.sousa, felipealmeida

Reviewed By: segfaultxavi

Tags: #efl_language_bindings

Maniphest Tasks: T7751

Differential Revision: https://phab.enlightenment.org/D8398
2019-03-22 09:14:27 +01:00
Xavi Artigas 43bb6e3896 mono examples: Adapt to latest event names 2019-03-09 16:00:08 +01:00
Xavi Artigas 679c89d98d Adapt to latest event names 2019-03-09 15:54:38 +01:00
Xavi Artigas aad5b641c8 More fixes to adapt to latest API changes
EFL_UI_WIN_BASIC -> EFL_UI_WIN_TYPE_BASIC
2019-03-05 09:30:09 +01:00
Xavi Artigas 3e1aefa7ea Further fixes to adapt to latest API changes 2019-03-04 18:17:36 +01:00
Mike Blumenkrantz d16b7e48bc fix examples build for latest efl 2019-03-02 10:38:07 -05:00
Felipe Magno de Almeida 1d5a5322df efl-mono: Fix examples based on new D7789 2019-01-28 16:03:49 +09:00
Xavi Artigas 500049f1eb mono-examples: Adapt to latest syntax
Summary:
Removed initializer methods as much as possible to prepare
for when they are removed from the C# bindings.
No functional changes in the examples.
Tutorial text needs to be adapted now.

Test Plan: All examples work as before (the containers one is currently broken, FML).

Reviewers: lauromoura, felipealmeida, vitor.sousa

Reviewed By: lauromoura

Maniphest Tasks: T7508

Differential Revision: https://phab.enlightenment.org/D7695
2019-01-23 14:49:38 +01:00
Xavi Artigas 9751e2ed82 Adapt examples translation API changes
translatable -> l10n
2019-01-18 13:35:35 +01:00
Xavi Artigas a5c08814d8 examples-mono: Update Eina comments to latest syntax 2019-01-15 13:19:08 +01:00
Xavi Artigas e06157c1f6 efl-mono: Use new Eina.Value implicit conversions 2018-12-31 17:36:21 +01:00
Marcel Hollerbach a7c5ff510e Adapt examples to new App API
loop_main has been renamed to app_main.
2018-12-20 16:33:33 +01:00
Xavi Artigas d74a4df994 csharp examples: Adapt to new classes syntax
Summary: Mainly use PascalCase Namespaces and Classes and proper event names.

Test Plan: Check all examples still build.

Reviewers: lauromoura, vitor.sousa, felipealmeida, bu5hm4n

Reviewed By: bu5hm4n

Differential Revision: https://phab.enlightenment.org/D7479
2018-12-19 16:51:15 +01:00
Lauro Moura c2e4308dd1 csharp: Remove efl-net examples.
Summary:
The Efl.Net library is self contained and the bindings do not expose
it, favoring.the use of C# own networking classes.

Reviewers: segfaultxavi, vitor.sousa, bu5hm4n

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D7228
2018-11-02 12:02:52 +01:00
Xavi Artigas 764dee4cd3 csharp focus: properly enable focus highlight
Summary:
I think this is the intended way to enable the focus highlight on the whole
window. The previous approach enabled the highlight but did not move the
focus, by the way.

Reviewers: vitor.sousa

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7073
2018-09-19 10:54:29 -03:00
Xavi Artigas 4c35b0f8c1 csharp: revamp focus example
Summary:
It was a very poor example, the focus highlight did not show on startup,
and the Text widget has a weird management of the focus. Replaced it by
some check boxes, and the About button now moves the focus.

Reviewers: lauromoura, vitor.sousa, felipealmeida, bu5hm4n

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7056
2018-09-18 13:29:31 -03:00
Xavi Artigas d1e530d256 Moved focus example to proper place
Summary: It is a guide, not a tutorial.

Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7055
2018-09-18 12:43:11 -03:00
Xavi Artigas fce18f2ebe csharp: Refactor UI examples
Summary:
Adapt these two UI examples to the style of the Hello World tutorials,
using initialization methods, more comments, and try to avoid creating
vars for widgets.

Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7038
2018-09-17 15:03:12 -03:00
Xavi Artigas 44155d8827 csharp: Remove Flush() from eina.Value examples
Summary:
Flush() is not required, the bindings take care of memory. Moreover, it is
confusing for the C# developer, unaccostumed to having to free memory.

Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7036
2018-09-17 11:59:01 -03:00
Xavi Artigas accd628bd3 csharp: Comments in eina_value.cs
Reviewers: lauromoura, vitor.sousa, felipealmeida

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6996
2018-09-06 12:06:02 -03:00
Xavi Artigas a473380cc7 Add Polling tutorial
Reviewers: lauromoura, vitor.sousa, felipealmeida

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6991
2018-09-06 12:01:25 -03:00
Xavi Artigas c371e6f760 csharp: Add Idlers tutorial
Reviewers: lauromoura, vitor.sousa

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6980
2018-09-04 12:09:21 -03:00
Xavi Artigas 6559459bc7 csharp: Add Events tutorial
Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6953
2018-08-31 12:23:35 -03:00
Xavi Artigas f1a5d614f8 tutorials: Fix C# UI reference guides
Summary: These guides needed to be adapted to the new C# API.

Test Plan:
Didn't build before, and now it can be built and run. It has some runtime
errors on exit.

Reviewers: felipealmeida, lauromoura, Hermet

Reviewed By: Hermet

Tags: #examples

Differential Revision: https://phab.enlightenment.org/D6575
2018-07-13 10:15:26 -03:00
Xavi Artigas 33dad0d59c Update examples to efl_new / efl_add / efl_add_ref
Reviewers: cedric, q66, bu5hm4n

Reviewed By: cedric, bu5hm4n

Differential Revision: https://phab.enlightenment.org/D6058
2018-05-25 10:17:51 -07:00
Xavi Artigas 3e23c210cb Fix leaks and double frees in eina_hash example
Summary:
Short-lived eina strings do not need to be explicitly deallocated.
The return value of eina_hash_set DOES need to be deallocated, though.

Reviewers: cedric, ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D6006
2018-05-01 13:21:12 -04:00
Xavi Artigas 4a8b562a40 Update examples after EFL API rename
Differential Revision: https://phab.enlightenment.org/D6002
2018-05-01 13:21:12 -04:00
Xavi Artigas 09923d92c2 Fix double frees and incorrect nprintf in eina_string example
Reviewers: cedric, ajwillia.ms, zmike

Differential Revision: https://phab.enlightenment.org/D6012
2018-05-01 13:14:42 -04:00
Xavi Artigas 0448e6cfa4 Update examples to latest EFL API
Summary:
Some of the EFL tutorials are not currently building due to changes in the API :
* const Eo* in getters.
* Efl.Loop -> Efl.App
* efl_net_session_name -> efl_net_session_network_name

Reviewers: cedric

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D5977
2018-04-23 13:35:36 -07:00
Vitor Sousa 566b5c3ee7 net_mono: add net reference examples to the C# binding 2018-03-01 10:28:17 -03:00
Vitor Sousa f22bd3aa1f ui_mono: add ui_content reference example for C# 2018-02-19 16:32:24 -03:00
Vitor Sousa bc174ae115 eina_mono: add first reference examples for Eina C# binding 2018-02-16 15:24:11 -02:00
Vitor Sousa 66dd51dc4b ui_mono: add ui_sizing reference for C# 2018-02-09 19:07:12 -02:00
Xavi Artigas e4d0ba744e Remove promise ptr printf
Does not make sense since we are not printing the ptr from the callbacks now.
2018-01-05 09:22:09 +01:00
Andy Williams e9e0834b26 Remove efl_loop_main references, we should use our allocated loop 2018-01-04 19:28:26 +00:00
Andy Williams 5c4053942e net: Don't use ecore methods 2018-01-04 16:40:14 +00:00
Xavi Artigas 11091214f7 Overhaul of the Eina_Future example
Run tests consecutively, triggering next one on the future's free callback.
Label test numbers explicitly, code reordering and beautifying.
Some console output beautifying too.
2018-01-02 16:26:03 +01:00
Andy Williams 348ea10272 eina: use a timer instead of another future for our first example 2017-12-22 12:23:54 +00:00
Andy Williams 6a31dd60db eina: Fix futures for new core loop 2017-12-21 16:00:29 +00:00
Andy Williams 373a89a421 core: Sit the freeze/thaw example on mainloop for now 2017-12-21 14:16:58 +00:00
Andy Williams 24b7f14c14 core: Update to loop rename Efl.Loop_User -> Efl.Loop.Consumer 2017-12-20 17:59:11 +00:00
Andy Williams 5ddb82e0da ui: Update for API grid->table 2017-12-20 14:50:08 +00:00
Andy Williams d226ee2c98 net: simplify io example - no need for full lifecycle 2017-12-19 17:51:20 +00:00
Andy Williams 42de664854 net: Add a buffered net io example that is far simpler than without 2017-12-19 17:48:30 +00:00
Andy Williams 8a9207c986 net: oops, missing semicolon somehow 2017-12-19 17:04:08 +00:00
Andy Williams 988eee570d net: Add session/connectivity reference example 2017-12-19 15:23:57 +00:00
Andy Williams fdad34a429 ui: Add panes to the ui reference now they are working 2017-12-13 12:53:30 +00:00
Andy Williams eabdff1f27 ui: Fix close callbacks for the UI reference examples 2017-12-13 12:53:11 +00:00
Andy Williams af48dd8fba eina: simplify and document our futures example 2017-12-13 12:23:39 +00:00