Commit Graph

1245 Commits

Author SHA1 Message Date
Andy Williams badb4f912e eina: Add an int hash to the reference 2017-11-15 18:57:07 +00:00
Andy Williams 14b77cfe82 build: Update to match headers with deps 2017-11-15 18:25:15 +00: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
Cedric BAIL 22f356282b eina: depends only on efl_core. 2017-11-14 14:32:39 -08:00
Cedric BAIL 2d94f1ce3b cmdline: rely on Efl_Core.h only. 2017-11-14 14:09:13 -08:00
Cedric BAIL a45f16f5d1 eina: we can now rely solely on Efl_Core.h 2017-11-14 14:07:54 -08:00
Cedric BAIL 5cd1e7fd27 eina: add an example of EINA_ITERATOR_FOREACH in the iterator references code. 2017-11-14 13:39:59 -08:00
Cedric BAIL a082087b84 eina: improve Eina_Hash example by using EINA_ITERATOR_FOREACH macro. 2017-11-14 13:39:29 -08:00
Andy Williams f10e9e9413 Add a first pass Eina_Hash reference as well 2017-11-14 17:28:42 +00:00
Andy Williams b8a5fc8d9a eina: shorter file names - thye don't all need to be _main.c 2017-11-14 16:15:29 +00:00
Andy Williams 9d06cb5923 eina: Add a list reference example 2017-11-14 14:45:44 +00:00
Andy Williams d89bd6fb61 eina: Add an array reference example 2017-11-14 13:31:39 +00:00
Daniel Kolesa b488461f48 eolian: scan system dir by default
The '-S' option lets you reverse that. But by default, most
people will want the prefix to be scanned for eo files.
2017-11-14 13:47:09 +01:00
Andy Williams e29ed754fc eina: Move to a reference dir per namespace 2017-11-14 12:18:39 +00:00
Andy Williams 9c6395967a eina_iterator: Fix language for iterator printing 2017-11-14 12:12:09 +00:00
Andy Williams 4c360bb660 c-lib: Remove OS path separator from meson 2017-11-14 11:53:21 +00:00
Andy Williams 693845d2cc eo-classes: Update meson usage to build correct paths 2017-11-14 11:48:57 +00:00
Xavi Artigas 1f0b3626ba Remove eo_prefix
In this small example it is not necessary, so the tutorial is simpler.
2017-11-14 11:05:29 +01:00
Jean-Philippe Andre 51c316ab5f win: Move autodel to C only
Note: this is C only, not legacy only.
The problem is that bindings will hold a strong reference to the window,
which will then die "under the rug" if autodel is enabled. This then
leads to at least ERR if not crashes.

Note:
elm_policy needs to support autodel and quit on last del only for C
applications. Bindings will require some other mechanism that doesn't
break all assumptions wrt. references.
2017-11-14 12:18:39 +09:00
Andy Williams bbad6e9923 eo-classes: Use a single header from all c files 2017-11-10 12:16:54 +00:00
Andy Williams 782edcff12 eo-classes: Update includes to be as designed 2017-11-10 11:13:24 +00:00
Andy Williams 0e754f1684 Correct name for tutorial folder 2017-11-10 10:51:57 +00:00
Jean-Philippe Andre 0c3f518ccf cxx: Fix example for GCC
clang has no problem, but GCC complains with "support not implemented"
Discovered with distcheck
2017-11-10 12:20:27 +09:00
Andy Williams ad5287a9e3 eina-iterator: Add first reference example 2017-11-09 18:46:02 +00:00
Andy Williams 632662aeee Move examples into examples/c/ and rename them to remove the extra namespace 2017-11-09 18:18:52 +00:00
Andy Williams a9a0bd4d5a c-eo-classes: Fix out of dir build 2017-11-09 16:14:30 +00:00
Xavi Artigas 20d06678ec Proper capitalization 2017-11-09 12:30:51 +01:00
Xavi Artigas 1f73f7e3aa Split eo-intro into two examples
This eases the tutorials.
2017-11-09 11:52:29 +01:00
Xavi Artigas b1d7440a6e Use efl_unref instead of efl_del for simplicity
It is easier to explain in the tutorials.
2017-11-08 12:25:27 +01:00
Xavi Artigas cb1ccc372c Fix indentation 2017-11-08 10:38:29 +01:00
Xavi Artigas 54fe5e8945 Small method rename for consistency 2017-11-08 10:38:29 +01:00
Andy Williams b3f6e19657 Update to efl_ref_count 2017-11-08 09:34:28 +00:00
Andy Williams c2fd813ea6 eo-classes: Add an example using eolian to define a class heirarchy 2017-11-07 17:35:34 +00:00
Jean-Philippe Andre 58536262cc cxx: Fix slider example
The fix is not complete. We need to make efl_part() work nicely in C++:
 - Get the refs work properly (maybe without auto-del)
 - Generate the parts from the EO file as methods on the object

Final form should be close to:
  slider.indicator().format_string_set("%1.2f");

Where everything autocompletes nicely :)
2017-11-07 22:21:13 +09:00
Lauro Moura fc3e1b72df example: Add elocation to elm build
Summary:
9d2dcd92 requires elocation to build.

cxx examples still broken due to elm cleanup

Test Plan: make examples

Reviewers: jpeg, felipealmeida

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5426
2017-11-07 21:49:26 +09:00
Xavi Artigas 84383a46c4 Remove tracking of "finalized" during construction
It is a bit off-topic for this tutorial
2017-11-07 10:52:37 +01:00
Xavi Artigas 76695cb1c7 Cosmetic changes to ease step-by-step tutorial
Otherwise, each step of the tutorial needed to change too much from previous step.
2017-11-07 10:27:31 +01:00
Jean-Philippe Andre dfb4cc3296 cxx: Fix some examples, disable or remove others
make examples now builds all c++ examples but some of them are in fact
empty skeletons. Those either need some c++ love or the final eo api to
be ready (eg. menu, popup, ...).

I removed some examples that don't have an exact equivalent in EO since
the widget is legacy only.
2017-11-07 09:57:24 +09:00
Jean-Philippe Andre 668fae61d9 cxx: Modify button example with wref
This is more of an experiment than anything else.
@felipealmeida I would like to know what you think.

Notes:
 - events still need a better API (event_add isn't part of the object
   definition...).
 - references are an issue, when you want to actually delete an object.
2017-11-07 09:57:24 +09:00
Jean-Philippe Andre 3843cd1367 cxx: Completely rewrite box example
This was showing off box transitions, which don't exist in EO API.
2017-11-07 09:57:24 +09:00
Jean-Philippe Andre 5f7c9a708b cxx: Fix a few examples
- Calendar: Some examples can't be ported. Not good.
 - Toolbar: Needs the new API to be completed.
 - Clock: Crashes at runtime.

Ping @felipealmeida
2017-11-07 09:57:24 +09:00
Xavi Artigas 6ecd94ecce eo-intro: Simplify and prettify output
And add comments
2017-11-06 13:42:52 +01:00
Andy Williams 756ea2231e eo-intro: Clean up callbacks 2017-11-06 10:39:37 +00:00
Andy Williams 213277ef74 Add event handling to eo-intro 2017-11-03 18:14:13 +00:00