Commit Graph

73 Commits

Author SHA1 Message Date
Xavi Artigas 5f1be675ee mono-examples: Adapt to latest syntax
Setter and Getters have disappeared. Now everything is accessed through properties like:
Text, Disabled, Autohide, Color, Orientation, ContentPadding, Size, ScrollableText, Align, Name.
Also the Life and Containers examples had several issues.
Text override from custom widgets is still not solved.
2020-02-20 18:48:55 +01:00
Xavi Artigas 6a470840d9 mono-examples: Adapt to latest syntax (EventArgs.arg -> Arg)
Also workaround some temporary inability to set struct members.
2020-02-07 09:49:57 +01:00
Xavi Artigas dfa678e9dc Add the now-mandatory @since tags to example EO files 2020-02-07 09:11:59 +01:00
Xavi Artigas 6f183d62c2 Adapt to latest changes
Including removal of the manual inclusion of text headers!
2019-12-13 13:27:06 +01:00
Xavi Artigas cba451e99b More adaptation to latest Text changes
Previous fix relied on old headers still being present, which is not good.
2019-12-11 15:51:03 +01:00
Xavi Artigas b8fd0c3b74 Adapt examples to latest Unified API changes
Efl.Ui.Text headers have to be manually included for now, since they still depend
on Legacy headers.
Padding API has lost a parameter.
2019-10-03 12:19:03 +02:00
Bruno da Silva Belo 242ed076f3 csharp: Basic components for all tests without Ui.
Summary:
Uiless tests use basic components.
Make test terminate again.

Reviewers: lauromoura, felipealmeida, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: brunobelo, felipealmeida, lauromoura

Differential Revision: https://phab.enlightenment.org/D9916
2019-09-12 15:04:11 +02:00
Xavi Artigas 40801d9285 mono-examples: adapt to latest bindings syntax 2019-09-06 16:10:16 +02:00
Xavi Artigas 5472a77fb3 mono-examples: adapt to latest bindings syntax 2019-09-06 16:01:45 +02:00
Bruno da Silva Belo fa93b9f7c0 Fixing compiles errors from examples, c and c#.
Summary: Change from efl broke the compilation of examples, updating names to the new changes.

Reviewers: lauromoura, felipealmeida

Reviewed By: lauromoura

Differential Revision: https://phab.enlightenment.org/D9581
2019-08-16 15:31:38 -03:00
Xavi Artigas e8245fe5dd Remove EFL_EO_API_SUPPORT
This is not needed anymore.
2019-07-24 12:11:58 +02:00
Xavi Artigas 4c2c569c7e hello-gui: make text non-editable
Non-editable was the default when these tutorials were created, but not anymore.
2019-07-17 12:49:42 +02:00
Lauro Moura 9ed9d94501 csharp: Make examples build again.
Summary: OnInitialize changed signature in D9178

Reviewers: vitor.sousa, segfaultxavi

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D9213
2019-06-28 20:04:38 -03:00
Xavi Artigas 836a9edf73 mono examples: Update to latest Efl.Ui.Clickable syntax 2019-05-15 12:01:16 +02:00
Xavi Artigas fdeb87bb75 Fix alignment of some widgets
Summary:
Commit 78ae9c0ae069ff86e701ff98cf5674cc491ee156 introduced a new API
(efl_gfx_hint_fill_set) and changed the default behavior of aligned widgets.
The same commit made the necessary changes to all examples in the efl repo,
but not in the examples repo.
This patch here aligns the widgets again they way they were meant to.
We have gone 6 months without anybody noticing that the examples did not
render correctly... let's try and add some unit tests later.

Test Plan: Try the hello-gui c tutorial. The text should be centered instead of in a corner.

Reviewers: YOhoho, bu5hm4n

Differential Revision: https://phab.enlightenment.org/D8791
2019-04-30 18:56:39 +02:00
Lauro Moura 595be4aa12 csharp: Update examples after repeated method name
Summary:
In essence, IPack.DoPack became IPack.Pack

Depends on D8650

Reviewers: felipealmeida, vitor.sousa, segfaultxavi

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D8651
2019-04-23 12:33:00 +02:00
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