Commit Graph

1268 Commits

Author SHA1 Message Date
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 aeaba83065 Adapt to latest Text changes 2019-12-09 15:46:27 +01:00
Xavi Artigas 868ed77548 Update code comments (and typos) 2019-10-28 09:48:42 +01:00
Xavi Artigas d57c8e2d28 Add documentation for C and C# calculator examples 2019-10-24 12:44:25 +02:00
Xavi Artigas f9486b6bfd Example C# calculator app
For simplicity, only integer operations and no direct editing of the numbers.
This is meant as a simple UI example, not as a CS exercise.
2019-10-24 10:54:17 +02:00
Xavi Artigas 8caeaaf071 Example C Calculator app
For simplicity, only integer operations and no direct editing of the numbers.
This is meant as a simple UI example, not as a CS exercise.
2019-10-23 17:11:33 +02:00
Xavi Artigas 95c373e8e3 Only ignore topmost meson.build
This is autogenerated, but not all other meson.build files in subdirs.
2019-10-23 13:37:58 +02:00
Lauro Moura b8f57276ef Initial version of demo MVVM app
Summary:
For now, a static model with a simple CollectionView.

The idea is to create a model that fetches some info from the web,
like weather forecast, and show it to the user.

Depends on D10300

Reviewers: SanghyeonLee, felipealmeida, cedric, bu5hm4n

Reviewed By: SanghyeonLee

Subscribers: brunobelo

Differential Revision: https://phab.enlightenment.org/D10302
2019-10-17 13:09:27 -03: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
Xavi Artigas 0a23c904cb Game of Life: Remove last uses of Legacy API 2019-10-03 12:12:38 +02:00
Xavi Artigas 6dfa4bac1d cs snippets: small updates to Slider and Box 2019-10-02 16:27:28 +02:00
Lukasz Oleksak 9f0eebb54f Example code for Efl.Ui.* widgets
Reviewers: segfaultxavi, woohyun

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D10269
2019-10-02 16:24:48 +02:00
Lukasz Oleksak 670a6bc902 Example code for Efl.Ui.Win
Reviewers: segfaultxavi, woohyun

Reviewed By: segfaultxavi

Tags: #efl, #examples

Differential Revision: https://phab.enlightenment.org/D9982
2019-09-23 13:12:12 +02:00
Mike Blumenkrantz fea913d1e1 life: remove Elementary.h usage
Summary: this should not be needed

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Tags: #examples

Differential Revision: https://phab.enlightenment.org/D10021
2019-09-19 16:33:08 +02:00
Xavi Artigas fd32510f35 mono snippets: Added README in the snippets folder 2019-09-17 12:10:22 +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 f161620f9f mono-examples: Do not initialize the UI component if it is not needed 2019-09-12 11:20:37 +02:00
Lauro Moura 3aecb39a18 csharp: Use basic components in core event test
Summary: No need to start elm, as T7770 was fixed.

Reviewers: brunobelo, felipealmeida

Reviewed By: brunobelo

Differential Revision: https://phab.enlightenment.org/D9915
2019-09-11 18:05:28 -03:00
Xavi Artigas 5a4c817d16 mono-examples: Use Del() to dispose of widgets 2019-09-09 22:10:43 +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
Ali Alzyod 17609ba6bf example: fix compilation error
Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D9815
2019-09-02 16:18:46 +02:00
Xavi Artigas 93120a13f5 Adapt to latest changes in Efl.Ui.AlertPopup 2019-08-27 13:22:00 +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 a49641d9b4 efl-mono: Make the setup.py script work again
It was broken when the snippets folder was added without a meson.build file.
2019-06-14 12:46:50 +02:00
Xavi Artigas b2c7e2c2dd efl-mono: Add custom widget example 2019-06-14 12:27:40 +02:00
Xavi Artigas d325da2119 efl-mono: Efl.Ui.Dir -> Efl.Ui.LayoutOrientation 2019-06-14 12:25:26 +02:00
Xavi Artigas 21567fcccf Efl.Ui.Dir -> Efl.Ui.Layout_Orientation 2019-06-14 11:18:23 +02:00
Xavi Artigas af73959386 Use direction instead of table_direction in table examples
Efl.Ui.Direction.direction is simpler to understand than
Efl.Pack_table.table_direction. Also, the latter might disappear very soon.
2019-05-17 15:26:02 +02:00
Xavi Artigas 836a9edf73 mono examples: Update to latest Efl.Ui.Clickable syntax 2019-05-15 12:01:16 +02:00
Xavi Artigas 05d9b74e19 texteditor app: no need to use efl_part
efl_content_set() will access that part, there's no need to retrieve "efl.content".
Plus, that part is not advertised in the button's EO file, so I am not sure it is
legal to access it.
2019-05-14 17:01:17 +02:00
Xavi Artigas 6cb115480e mono-examples: Update to latest Part syntax 2019-05-07 13:56:23 +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
Xavi Artigas b2c41e4e01 mono-examples: Adapt to changes in Efl.Pack 2019-04-26 12:58:15 +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 f47f1f3672 mono-example: Remove ugly static_cast
Since D8550 apps do not need to use static_cast nor Concrete classes.
2019-04-17 11:03:21 +02:00
Xavi Artigas d4e81b7b65 mono-snippets: Add sample property snippet 2019-04-12 09:57:51 +02:00
Xavi Artigas 5f436d2874 mono: Initial snippet example to use with DocFX
eolian_mono now allows external examples to be embedded in the cs files, which
then appear in the DocFX pages.
This new folder is the proposed place to put all these external examples.
2019-04-11 16:21:09 +02:00
Xavi Artigas 169f569af6 Fix runtime ERR regarding WinType
WinType can only be set during construction, so SetWinType() should never
be called. Use the constructor parameter for this.
2019-04-04 13:17:30 +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 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