Commit Graph

1221 Commits

Author SHA1 Message Date
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
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 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
Mike Blumenkrantz f36e0f43da add makefile for elementary C examples 2018-08-21 16:22:25 -04:00
Mike Blumenkrantz 1c1854c657 sync ecore examples build with current efl tree build 2018-08-21 16:03:44 -04:00
Mike Blumenkrantz fdcd2d337b sync eina examples build with current efl tree build 2018-08-21 15:52:01 -04:00
Mike Blumenkrantz 5e64366537 sync evas examples build with current efl tree build 2018-08-21 15:50:22 -04:00
Mike Blumenkrantz bf52453fc4 sync edje examples build with current efl tree build 2018-08-21 15:46:58 -04:00
Mike Blumenkrantz 3671163a58 add remaining evas examples to build 2018-08-17 14:03:13 -04:00
Mike Blumenkrantz 56623240b7 just use subdir clean rules for unsorted examples build 2018-08-17 14:02:28 -04:00
Mike Blumenkrantz 3fd4ac3b46 add gitignore for merged examples 2018-08-16 16:12:48 -04:00
Mike Blumenkrantz ac12207f44 fix eolian-cxx dependencies
ensure the OBJS are created before trying to use them with parallel make
2018-08-16 16:03:35 -04:00
Mike Blumenkrantz 86a57475d9 use PATH programs for eolian-cxx examples
this should be configured by the overall build system
2018-08-16 15:48:21 -04:00
Mike Blumenkrantz 2f170d6ffb add eolian_cxx examples to overall makefile 2018-08-16 15:48:15 -04:00
Felipe Magno de Almeida 8567a2ebc5 Fix Makefile.examples for eolian_cxx 2018-08-13 17:27:28 -03:00
Xavi Artigas a9c2388e0d tutorial: Fix behavior of "New" button in texteditor
Summary:
When "New" is pressed, the button should become disabled, because
the file is empty and there is nothing to lose. The "New" button
should only be enabled when there is text to lose by pressing it.

Otherwise, there is no way in the code to disable the button except
at startup, which does not make much sense.

Reviewers: ajwillia.ms, zmike, bu5hm4n

Reviewed By: ajwillia.ms

Tags: #examples

Differential Revision: https://phab.enlightenment.org/D6512
2018-08-10 12:59:52 -04:00