Commit Graph

57 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
Xavi Artigas 871add6fe5 Remove BETA support from Hello Cmd
This tutorial only requires stable API now!
No need to request BETA (or EO) support.
2019-03-25 13:40:03 +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
Ali Alzyod 82dd23ba02 Fix Hello World tutorial (multiline support)
Summary: Add the missing multiline enable, to reflect <br> in markup text

Reviewers: segfaultxavi, woohyun, bowonryu

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D8391
2019-03-18 19:32:53 +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
Lauro Moura 09416b5ccf examples: Change Model_Item to Generic_Model
Summary: This class was renamed in D7533 in the EFL repo.

Test Plan: Run examples

Reviewers: segfaultxavi, felipealmeida

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D7850
2019-02-01 10:14:28 +01: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 af8036ab17 Adapt EO tutorials to latest Eolian inheritance syntax
Rectangle(Efl.Object, ...) -> Rectangle extends Efl.Object implements ...
2019-01-23 11:18:45 +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
Marcel Hollerbach ddb06ddc1b meson: rename a few targets
this is in preparation for the next commit
2018-10-31 13:40:50 +01: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 ad93666875 C# Hello Gui tutorial: bring it closer to the C version
Summary:
Configure all widgets inside their constructors and a couple more minor things
to make the C# Hello Gui more similar to the C version, which should simplify
the tutorial.

Reviewers: lauromoura, vitor.sousa

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6906
2018-08-24 11:42:01 -03:00
Xavi Artigas 006760cdf6 C# Hello World tutorial
Summary: This is the first C# tutorial: Hello World. It just creates a window.

Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6900
2018-08-23 13:33:47 -03:00
Xavi Artigas f6cc19575f csharp tutorials: Add comments to hello-world-gui
Reviewers: lauromoura, vitor.sousa

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6892
2018-08-22 10:23:15 -03:00
Lauro Moura 62ca316375 csharp: Fix gui_main.cs compilation.
Summary:
- Removed the Concrete suffixes
- Changed interfaces to IFoobar
- Event names are now camelcase with 'Evt' suffix
- Methods with the same name as its class are prefixed with 'Do'
  due to C# CamelCase methods (Pack.Pack -> Pack.DoPack)
- Updated efl.ui.win.Type to efl.ui.Win_Type after API renaming

Reviewers: segfaultxavi, felipealmeida

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D6508
2018-07-13 10:13:02 -03:00
Xavi Artigas aa68b683e5 tutorials: Fix C# eo_intro
Summary: Adapt to API changes plus some other issues (has this ever built for anyone?).

Reviewers: lauromoura, felipealmeida

Differential Revision: https://phab.enlightenment.org/D6505
2018-07-04 15:01:27 +02: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 4a8b562a40 Update examples after EFL API rename
Differential Revision: https://phab.enlightenment.org/D6002
2018-05-01 13:21:12 -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
Carsten Haitzler bc7793f138 update examples to match args change 2018-03-11 04:46:47 +09:00
Vitor Sousa e989e18864 eo_mono: add eo-intro tutorial for C# 2018-02-26 14:09:07 -03:00
Vitor Sousa 0e7a34e074 ui_mono: Add hello-gui and focus tutorials for C# 2018-02-09 19:06:13 -02:00
Xavi Artigas 2c0fb1cb00 Simplify focus example and add Meson 2018-01-02 16:28:30 +01:00
Marcel Hollerbach 0cf89de464 added a focus example 2017-12-19 17:27:31 +01:00
Andy Williams 0a95fa88b2 Merge branch 'devs/xartigas/tutorials' 2017-12-12 11:00:47 +00:00
Andy Williams 9cbbb37750 lifecycle_ui: Add almost-working lifecycle gui demo
This is pending some Elm fixes to function correctly
2017-12-12 10:56:17 +00:00
Xavi Artigas 37a5123360 Simplified lifecycle example
When window minimization works, we can remove the simulation code or create
another example.
2017-12-12 11:45:30 +01:00
Andy Williams c99595e00a Let's use the window callback to avoid elm_policy needs 2017-12-07 12:39:59 +00:00
Andy Williams 36b64dfca1 hello-gui: Reduce to a minimal Efl.Ui app 2017-12-06 13:12:07 +00:00
Cedric Bail 91934fe8ec lifecycle: EAPI_MAIN need to be used as it is an application symbol, not a library one. 2017-11-30 02:48:27 -08:00
Andy Williams 326f860e39 hello-gui: Simplify gui basic example 2017-11-27 13:50:38 +00:00
Xavi Artigas 19b15a1f04 Adapt code to tutorial text
Minor modifications that make the code easier to explain.
2017-11-22 16:08:11 +01:00
Xavi Artigas 74cd796cba Adapt source code to tutorial text
Minor modifications only. The header file grouping all headers will be
introduced in the multiinherit tutorial, along with the shape interface.
2017-11-20 10:36:28 +01:00
Andy Williams 1acb71b216 Add a colored mixin so we can talk about multiple inheritance 2017-11-17 16:46:59 +00:00
Andy Williams 6e78b6caa3 eo-multiinherit: Clone from eo-inherit before interface removal
Mixins still to come
2017-11-17 15:37:35 +00:00
Andy Williams 09ff6b7b62 eo-inherit: Remove the interface as we will explain that in multiinherit 2017-11-17 15:35:45 +00:00
Andy Williams 399efc52fb Merge branch 'devs/xartigas/tutorials' 2017-11-17 11:48:02 +00:00
Andy Williams 4709a4d366 build: Assume latest eolian which knows system locations 2017-11-17 11:18:39 +00:00
Xavi Artigas 6b8dac2677 Ehem... do not leak the test objects 2017-11-16 18:39:06 +01:00
Andy Williams 0782aa5671 build: Update deps to efl-core 2017-11-15 18:22:44 +00:00
Andy Williams 4a12c6f802 efl_ui: Update deps and includes to match
Also don't worry about multiple efl deps - just grab the one you need
2017-11-15 18:05:20 +00:00
Xavi Artigas ae932ce226 Simplify eo-inherit even more
Square does not need "side", can use the parent's setters to make sure width=height always.
2017-11-15 18:20:42 +01:00
Xavi Artigas 1e380eace9 Reorganize inheritance example
Added circle to illustrate shape interface
Removed shape interface from square, since it inherits from rectangle.
Removed square private data and use its parent's data through the public accessors.
Do not overwrite rectangle's accessors in square, only define the new side.
Removed class cons/destructors which are not used (tutorial is complex enough)
Removed color property from interface (tutorial is complex enough)
2017-11-15 16:02:37 +01:00
Xavi Artigas 4380baece8 Split eo-classes in two: classes and inherit
This simplifies the first tutorial (classes).
2017-11-15 11:55:04 +01:00
Cedric BAIL 269519a369 hello-gui: depends on Efl_Ui.h 2017-11-14 16:37:38 -08:00
Cedric BAIL 12ae9924a3 cmdline: depend on efl-core actually. 2017-11-14 14:41:12 -08:00