summaryrefslogtreecommitdiff
path: root/pages/develop/tutorials
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-07-24 12:28:06 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-07-24 12:28:06 +0200
commit458d593c3bf1b9cffb36c6570b3f8377cefc6faa (patch)
treefaa8692f724da3daa5a8778b29cc091af55db201 /pages/develop/tutorials
parent4b9bdf0f58632180f890dc477e0df6bf2c296c65 (diff)
tutorials: Use Legacy and Unified everywhere
Also, updated tutorial code to latest version.
Diffstat (limited to 'pages/develop/tutorials')
-rw-r--r--pages/develop/tutorials/c/eo-classes.md.txt2
-rw-r--r--pages/develop/tutorials/c/eo-inherit.md.txt1
-rw-r--r--pages/develop/tutorials/c/eo-intro.md.txt3
-rw-r--r--pages/develop/tutorials/c/eo-refcount.md.txt3
-rw-r--r--pages/develop/tutorials/c/hello-world-gui.md.txt5
-rw-r--r--pages/develop/tutorials/c/hello-world.md.txt3
-rw-r--r--pages/develop/tutorials/c/lifecycle.md.txt2
-rw-r--r--pages/develop/tutorials/c/start.md.txt2
-rw-r--r--pages/develop/tutorials/csharp/start.md.txt4
-rw-r--r--pages/develop/tutorials/start.md.txt4
10 files changed, 6 insertions, 23 deletions
diff --git a/pages/develop/tutorials/c/eo-classes.md.txt b/pages/develop/tutorials/c/eo-classes.md.txt
index 97cbdd796..f7b6b4325 100644
--- a/pages/develop/tutorials/c/eo-classes.md.txt
+++ b/pages/develop/tutorials/c/eo-classes.md.txt
@@ -230,7 +230,6 @@ Your class is now complete, but you can't test it until you write some code whic
230Create a new file (for example ``eo_classes_main.c``) and add the basic EFL application from the [Hello World tutorial](hello-world.md): 230Create a new file (for example ``eo_classes_main.c``) and add the basic EFL application from the [Hello World tutorial](hello-world.md):
231 231
232```c 232```c
233#define EFL_EO_API_SUPPORT 1
234#define EFL_BETA_API_SUPPORT 1 233#define EFL_BETA_API_SUPPORT 1
235 234
236#include <Eina.h> 235#include <Eina.h>
@@ -304,7 +303,6 @@ In ``efl_main()``, right after calling ``_rect_create()`` add:
304Your ``eo_classes_main.c`` file should now look something like this: 303Your ``eo_classes_main.c`` file should now look something like this:
305 304
306```c 305```c
307#define EFL_EO_API_SUPPORT 1
308#define EFL_BETA_API_SUPPORT 1 306#define EFL_BETA_API_SUPPORT 1
309 307
310#include <Eina.h> 308#include <Eina.h>
diff --git a/pages/develop/tutorials/c/eo-inherit.md.txt b/pages/develop/tutorials/c/eo-inherit.md.txt
index c13b65764..383e5ea7e 100644
--- a/pages/develop/tutorials/c/eo-inherit.md.txt
+++ b/pages/develop/tutorials/c/eo-inherit.md.txt
@@ -144,7 +144,6 @@ Remember to dispose of your objects using ``efl_unref()``. Alternatively, you co
144The main program (``eo_inherit_main.c``) should now look like this: 144The main program (``eo_inherit_main.c``) should now look like this:
145 145
146```c 146```c
147#define EFL_EO_API_SUPPORT 1
148#define EFL_BETA_API_SUPPORT 1 147#define EFL_BETA_API_SUPPORT 1
149 148
150#include <Eina.h> 149#include <Eina.h>
diff --git a/pages/develop/tutorials/c/eo-intro.md.txt b/pages/develop/tutorials/c/eo-intro.md.txt
index 9df289b75..206ef0c5c 100644
--- a/pages/develop/tutorials/c/eo-intro.md.txt
+++ b/pages/develop/tutorials/c/eo-intro.md.txt
@@ -21,7 +21,6 @@ This tutorial is more theoretical than practical however the concepts being expl
21Start with the basic EFL application skeleton from the [Hello World tutorial](hello-world.md) and add some placeholder methods that will be filled later on: 21Start with the basic EFL application skeleton from the [Hello World tutorial](hello-world.md) and add some placeholder methods that will be filled later on:
22 22
23```c 23```c
24#define EFL_EO_API_SUPPORT 1
25#define EFL_BETA_API_SUPPORT 1 24#define EFL_BETA_API_SUPPORT 1
26 25
27#include <Eina.h> 26#include <Eina.h>
@@ -125,7 +124,6 @@ The first step of the tutorial is now complete. You may not have seen much on sc
125See below the complete listing, which you can build and run yourself: 124See below the complete listing, which you can build and run yourself:
126 125
127```c 126```c
128#define EFL_EO_API_SUPPORT 1
129#define EFL_BETA_API_SUPPORT 1 127#define EFL_BETA_API_SUPPORT 1
130 128
131#include <Eina.h> 129#include <Eina.h>
@@ -229,7 +227,6 @@ Note how you are **not** returning the reference to ``_child1``. This is because
229If you compile and run the complete code below you will only see messages about objects being deleted but in so doing you've learned about the very important topic of object creation and destruction, as well as how to avoid memory leaks. 227If you compile and run the complete code below you will only see messages about objects being deleted but in so doing you've learned about the very important topic of object creation and destruction, as well as how to avoid memory leaks.
230 228
231```c 229```c
232#define EFL_EO_API_SUPPORT 1
233#define EFL_BETA_API_SUPPORT 1 230#define EFL_BETA_API_SUPPORT 1
234 231
235#include <Eina.h> 232#include <Eina.h>
diff --git a/pages/develop/tutorials/c/eo-refcount.md.txt b/pages/develop/tutorials/c/eo-refcount.md.txt
index bd28fde50..b3f272bf4 100644
--- a/pages/develop/tutorials/c/eo-refcount.md.txt
+++ b/pages/develop/tutorials/c/eo-refcount.md.txt
@@ -21,7 +21,6 @@ Without further ado: the method to retrieve the reference count of an object is
21This tutorial starts where the previous one left off, so here's the final listing from the [Introduction to Eo](eo-intro.md) tutorial: 21This tutorial starts where the previous one left off, so here's the final listing from the [Introduction to Eo](eo-intro.md) tutorial:
22 22
23```c 23```c
24#define EFL_EO_API_SUPPORT 1
25#define EFL_BETA_API_SUPPORT 1 24#define EFL_BETA_API_SUPPORT 1
26 25
27#include <Eina.h> 26#include <Eina.h>
@@ -263,7 +262,6 @@ Finally, the method returns the name of the parent obtained with ``efl_name_get(
263This step of the tutorial is now complete. The whole program should look like this: 262This step of the tutorial is now complete. The whole program should look like this:
264 263
265```c 264```c
266#define EFL_EO_API_SUPPORT 1
267#define EFL_BETA_API_SUPPORT 1 265#define EFL_BETA_API_SUPPORT 1
268 266
269#include <Eina.h> 267#include <Eina.h>
@@ -451,7 +449,6 @@ In this case, you are interested in the object that is about to be deleted, and
451This tutorial is now complete. It should look like this: 449This tutorial is now complete. It should look like this:
452 450
453```c 451```c
454#define EFL_EO_API_SUPPORT 1
455#define EFL_BETA_API_SUPPORT 1 452#define EFL_BETA_API_SUPPORT 1
456 453
457#include <Eina.h> 454#include <Eina.h>
diff --git a/pages/develop/tutorials/c/hello-world-gui.md.txt b/pages/develop/tutorials/c/hello-world-gui.md.txt
index 25e5e352b..ca0ba5cce 100644
--- a/pages/develop/tutorials/c/hello-world-gui.md.txt
+++ b/pages/develop/tutorials/c/hello-world-gui.md.txt
@@ -16,7 +16,6 @@ If you haven't already done so take a look at our [previous guide](https://www.e
16As you'll be building on the code from the prior tutorial, take a look at the program below to refresh your memory: 16As you'll be building on the code from the prior tutorial, take a look at the program below to refresh your memory:
17 17
18```c 18```c
19#define EFL_EO_API_SUPPORT 1
20#define EFL_BETA_API_SUPPORT 1 19#define EFL_BETA_API_SUPPORT 1
21 20
22#include <Eina.h> 21#include <Eina.h>
@@ -73,7 +72,6 @@ Technically you could put all the code for opening the window, text boxes, butto
73Create a function to set up your window and name it ``_gui_setup()``. Insert a call to the function from within the main EFL loop. Your program should look like this: 72Create a function to set up your window and name it ``_gui_setup()``. Insert a call to the function from within the main EFL loop. Your program should look like this:
74 73
75```c 74```c
76#define EFL_EO_API_SUPPORT 1
77#define EFL_BETA_API_SUPPORT 1 75#define EFL_BETA_API_SUPPORT 1
78 76
79#include <Eina.h> 77#include <Eina.h>
@@ -121,7 +119,6 @@ The ``efl_ui_win_type_set()`` function does what it says on the box. There are s
121Your program will now look like this: 119Your program will now look like this:
122 120
123```c 121```c
124#define EFL_EO_API_SUPPORT 1
125#define EFL_BETA_API_SUPPORT 1 122#define EFL_BETA_API_SUPPORT 1
126 123
127#include <Eina.h> 124#include <Eina.h>
@@ -203,7 +200,6 @@ As with the ``EFL_UI_WIN_CLASS`` you saw in the ``win`` creation block, [``EFL_U
203Your program should now look like this: 200Your program should now look like this:
204 201
205```c 202```c
206#define EFL_EO_API_SUPPORT 1
207#define EFL_BETA_API_SUPPORT 1 203#define EFL_BETA_API_SUPPORT 1
208 204
209#include <Eina.h> 205#include <Eina.h>
@@ -352,7 +348,6 @@ If you use ``0.5, 0.5``, the text will be centered. Take a look at [the complete
352## The Complete "hello-world-gui.c" Program ## 348## The Complete "hello-world-gui.c" Program ##
353 349
354```c 350```c
355#define EFL_EO_API_SUPPORT 1
356#define EFL_BETA_API_SUPPORT 1 351#define EFL_BETA_API_SUPPORT 1
357 352
358#include <Eina.h> 353#include <Eina.h>
diff --git a/pages/develop/tutorials/c/hello-world.md.txt b/pages/develop/tutorials/c/hello-world.md.txt
index 7dd95beab..8b0d7ca3d 100644
--- a/pages/develop/tutorials/c/hello-world.md.txt
+++ b/pages/develop/tutorials/c/hello-world.md.txt
@@ -13,14 +13,13 @@ There is very little code in this first tutorial so don't worry if you have litt
13Using your favorite text editor, create a text file and save it as ``hello-world.c``. Type in the following: 13Using your favorite text editor, create a text file and save it as ``hello-world.c``. Type in the following:
14 14
15```c 15```c
16#define EFL_EO_API_SUPPORT 1
17#define EFL_BETA_API_SUPPORT 1 16#define EFL_BETA_API_SUPPORT 1
18 17
19#include <Eina.h> 18#include <Eina.h>
20#include <Efl_Core.h> 19#include <Efl_Core.h>
21``` 20```
22 21
23The new EFL API has been in Beta stage for a while, and some libraries still need that you define the ``EFL_EO_API_SUPPORT`` and ``EFL_BETA_API_SUPPORT`` symbols before including any EFL library. Don't worry, though, they should not be required any more in the near future. 22The new EFL API has been in Beta stage for a while, and some libraries still need that you define the ``EFL_BETA_API_SUPPORT`` symbols before including any EFL library. Don't worry, though, they should not be required any more in the near future.
24 23
25The EFL is split into several libraries. You only need to include the ones you actually want to use. In this tutorial you will be calling methods from the ``Eina`` and ``Efl`` libraries, therefore you need to include the ``Eina.h`` and ``Efl_Core.h`` headers. 24The EFL is split into several libraries. You only need to include the ones you actually want to use. In this tutorial you will be calling methods from the ``Eina`` and ``Efl`` libraries, therefore you need to include the ``Eina.h`` and ``Efl_Core.h`` headers.
26 25
diff --git a/pages/develop/tutorials/c/lifecycle.md.txt b/pages/develop/tutorials/c/lifecycle.md.txt
index d8d40f5cb..15b4f6674 100644
--- a/pages/develop/tutorials/c/lifecycle.md.txt
+++ b/pages/develop/tutorials/c/lifecycle.md.txt
@@ -19,7 +19,6 @@ If you use the ``EFL_MAIN()`` macro, as in the [Hello World](/develop/tutorials/
19Begin by creating a ``lifecycle_main.c`` file: 19Begin by creating a ``lifecycle_main.c`` file:
20 20
21```c 21```c
22#define EFL_EO_API_SUPPORT 1
23#define EFL_BETA_API_SUPPORT 1 22#define EFL_BETA_API_SUPPORT 1
24 23
25#include <Eina.h> 24#include <Eina.h>
@@ -123,7 +122,6 @@ With this, the program is complete including the simulation code.
123The whole program, with some additional comments for clarity, is reproduced below: 122The whole program, with some additional comments for clarity, is reproduced below:
124 123
125```c 124```c
126#define EFL_EO_API_SUPPORT 1
127#define EFL_BETA_API_SUPPORT 1 125#define EFL_BETA_API_SUPPORT 1
128 126
129#include <Eina.h> 127#include <Eina.h>
diff --git a/pages/develop/tutorials/c/start.md.txt b/pages/develop/tutorials/c/start.md.txt
index 89d55ed1e..ea5357c1b 100644
--- a/pages/develop/tutorials/c/start.md.txt
+++ b/pages/develop/tutorials/c/start.md.txt
@@ -8,7 +8,7 @@
8The following tutorials are designed to build on each other, introducing concepts in a logical manner and working towards full understanding of EFL's capabilities. Most users should approach them in the order in which they are presented; only those with previous EFL experience should skip ahead. 8The following tutorials are designed to build on each other, introducing concepts in a logical manner and working towards full understanding of EFL's capabilities. Most users should approach them in the order in which they are presented; only those with previous EFL experience should skip ahead.
9 9
10> **NOTE:** 10> **NOTE:**
11> The tutorials in this section use the latest beta release of the API, as noted in [Developing with the Enlightenment Foundation Libraries](https://www.enlightenment.org/develop/start.md#Current_vs._Beta). Versions of these tutorials written for the current release can be found in the [Legacy section of the website](https://www.enlightenment.org/develop/legacy/tutorial/start). 11> The tutorials in this section use the latest Unified API, as noted in [Developing with the Enlightenment Foundation Libraries](/develop/start.md#Legacy_vs_Unified_APIs). Versions of these tutorials written for the Legacy API can be found in the [Legacy section of the website](/develop/legacy/tutorial/start).
12 12
13* [Hello World](hello-world.md) 13* [Hello World](hello-world.md)
14* [Hello World GUI](hello-world-gui.md) 14* [Hello World GUI](hello-world-gui.md)
diff --git a/pages/develop/tutorials/csharp/start.md.txt b/pages/develop/tutorials/csharp/start.md.txt
index 411c4c29b..c79bb1b55 100644
--- a/pages/develop/tutorials/csharp/start.md.txt
+++ b/pages/develop/tutorials/csharp/start.md.txt
@@ -3,7 +3,7 @@
3~~NOCACHE~~ 3~~NOCACHE~~
4--- 4---
5 5
6# Beta API C# Tutorials # 6# Unified API C# Tutorials #
7 7
8The following tutorials are designed to build on each other, introducing concepts in a logical manner and working towards full understanding of EFL's capabilities. Most users should approach them in the order in which they are presented; only those with previous EFL experience should skip ahead. 8The following tutorials are designed to build on each other, introducing concepts in a logical manner and working towards full understanding of EFL's capabilities. Most users should approach them in the order in which they are presented; only those with previous EFL experience should skip ahead.
9 9
@@ -12,7 +12,7 @@ The following tutorials are designed to build on each other, introducing concept
12| ![NOTE](/_media/note-important.png) | **Some C# classes are currently in BETA state**<br>They should only be used for experimenting and **NOT** for any product development.<br>These classes are marked as **BETA** in the reference documentation.<br>The source code for the tutorials is subject to change in the future. | ![NOTE](/_media/note-important.png) | 12| ![NOTE](/_media/note-important.png) | **Some C# classes are currently in BETA state**<br>They should only be used for experimenting and **NOT** for any product development.<br>These classes are marked as **BETA** in the reference documentation.<br>The source code for the tutorials is subject to change in the future. | ![NOTE](/_media/note-important.png) |
13 13
14> **NOTE:** 14> **NOTE:**
15> The tutorials in this section use the latest beta release of the API, as noted in [Developing with the Enlightenment Foundation Libraries](/develop/start.md#Current_vs._Beta). Versions of these tutorials written for the current release can be found in the [Legacy section of the website](https://www.enlightenment.org/develop/legacy/tutorial/start). 15> The tutorials in this section use the latest Unified API, as noted in [Developing with the Enlightenment Foundation Libraries](/develop/start.md#Legacy_vs_Unified_APIs). Versions of these tutorials written for the Legacy API can be found in the [Legacy section of the website](/develop/legacy/tutorial/start).
16 16
17If you haven't done so yet, read the [Setting Up a C# Development Environment](/develop/setup/csharp/) guide so you have a working EFL installation with C# support. 17If you haven't done so yet, read the [Setting Up a C# Development Environment](/develop/setup/csharp/) guide so you have a working EFL installation with C# support.
18 18
diff --git a/pages/develop/tutorials/start.md.txt b/pages/develop/tutorials/start.md.txt
index 4aaf43769..cbe02b3b2 100644
--- a/pages/develop/tutorials/start.md.txt
+++ b/pages/develop/tutorials/start.md.txt
@@ -7,10 +7,10 @@
7 7
8If you are just beginning your journey into programming with the Enlightenment Foundation Libraries (EFL), then these tutorials will help you on your way. Designed for those who have prior programming experience but who have not necessarily used EFL before, the tutorials will walk you through writing programs which build on EFL from the basic - a traditional "Hello World" example - through to the more advanced. 8If you are just beginning your journey into programming with the Enlightenment Foundation Libraries (EFL), then these tutorials will help you on your way. Designed for those who have prior programming experience but who have not necessarily used EFL before, the tutorials will walk you through writing programs which build on EFL from the basic - a traditional "Hello World" example - through to the more advanced.
9 9
10If you have not yet done so, visit [Developing with the Enlightenment Foundation Libraries](https://www.enlightenment.org/develop/start.md) for background on EFL and details on how to set up your development environment. 10If you have not yet done so, visit [Developing with the Enlightenment Foundation Libraries](/develop/start.md) for background on EFL and details on how to set up your development environment.
11 11
12> **NOTE:** 12> **NOTE:**
13> The tutorials in this section use the latest beta release of the API, as noted in [Developing with the Enlightenment Foundation Libraries](https://www.enlightenment.org/develop/start.md#Current_vs._Beta). Versions of these tutorials written for the current release can be found in the [Legacy section of the website](https://www.enlightenment.org/develop/legacy/tutorial/start). 13> The tutorials in this section use the latest Unified API, as noted in [Developing with the Enlightenment Foundation Libraries](/develop/start.md#Legacy_vs_Unified_APIs). Versions of these tutorials written for the Legacy API can be found in the [Legacy section of the website](/develop/legacy/tutorial/start).
14 14
15## Languages ## 15## Languages ##
16 16