Commit Graph

1245 Commits

Author SHA1 Message Date
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
Mike Blumenkrantz d16b7e48bc fix examples build for latest efl 2019-03-02 10:38:07 -05:00
Lauro Moura 780ebf91c5 examples: Changes after optional parameters
Summary:
After a new iteration of D7789, constructor parameters were split among
required and optionals.

This patch depends on making some Efl.Ui.Win parameters optional.

Reviewers: segfaultxavi, vitor.sousa

Reviewed By: vitor.sousa

Tags: #efl_language_bindings

Differential Revision: https://phab.enlightenment.org/D7851
2019-02-07 18:42:36 -02: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
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
Lauro Moura e674ff0d97 Add arcconfig
Reviewers: bu5hm4n, segfaultxavi

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D7726
2019-01-23 14:37:33 +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
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
Marcel Hollerbach 656b746be7 README: add instructions for using setup.py 2018-11-19 16:42:12 +01:00
Marcel Hollerbach d8ea961985 build: autodetect if cxx bindings or mono is build
if it is - build the examples, if not - don't add the examples to the
subprojects that are build.
2018-11-19 16:42:12 +01:00
Xavi Artigas e6aa5e6aa0 csharp-texteditor: adapt to new efl.ui.Popup API 2018-11-16 11:50:50 +01:00
Marcel Hollerbach 3052374b49 add those files to .gitignore 2018-11-02 12:30:56 +01:00
Marcel Hollerbach 5b36c351e3 efl_ui_view: keep up with API rename 2018-11-02 12:30:48 +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
Marcel Hollerbach 8a4df21de8 here comes a helper script
run python3 ./setup.py in the root directory, this will create a
meson.build and a directory called subdirectry.

You can now simply use the meson.build script as "main" project, all
other projects will be build in this.
2018-10-31 13:42:24 +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 a040529352 csharp texteditor app: Revamping of this example
Summary:
Added save and load buttons.
Added information popups.
Adapted to the style of the rest of the csharp examples.

Reviewers: lauromoura, vitor.sousa, felipealmeida, ajwillia.ms

Reviewed By: lauromoura

Differential Revision: https://phab.enlightenment.org/D7173
2018-10-19 15:30:42 +02:00
Xavi Artigas eb2cf48195 texteditor: use proper part name for button icons
Summary: Nobody noticed that the buttons had no icon?

Reviewers: zmike, ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D7078
2018-09-26 09:29:27 +02: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