Eyelight
- Date:
- 2008-2009
Table of contents
Introduction
Eyelight is a presentation viewer using Edje to render the slides. The slides are created in a text file (an ELT file), which use a syntax closed to the syntax used in a EDC file, then the viewer parse and compile this file and display the presentation.
Eyelight was started during the Google Summer of Code 2008. The initial aims was to create an application which read a text file, parse it and then display an Edje presentation. Eyelight has been modified a lot since this first version :
- At the beginning, Eyelight created an edc file from the presentation file, the result was a list of macros call. The theme file was a list of macros which was called by the edc presentation file. And finally we used edje_cc to create an edj file and we get the presentation. Now the theme file is a classic edj file with a list of groups (text item, image, video ...) and the viewer load theses group when necessary (item text -> load the group text item) like all edje applications do.
- A Eyelight smart object has been created. This means you can use Eyelight in all EFL applications (Elementary, Edje ...).
- The API Eyelight_Edit appears. This API allows to edit a presentation on the fly : add a slide, delete an area ... Then the new presentation can be saved into an ELT file.
Architecture of Eyelight
Eyelight smart object
The Eyelight smart object API is in the header : Eyelight_Smart.h.
It is a classic evas smart object, which means it can be used in an Evas/Edje/Elementary application. Each object are independant consequently you can display more than 1 presentation in an application. Do not forget to initialise Eyelight with eyelight_init().
Eyelight
The Eyelight API is in the header : Eyelight.h
It is the main API of Eyelight. We can use this API to display a presentation but it is recommended to use the smart object because it is more easy.
Eyelight edit
The Eyelight edit API is in the header : Eyelight_Edit.h
This API allows to modify the presentation on the fly : add a new slide, delete an area, add an image ... This API is used by Eyelight_editor and is not complete.
Warning : this API only works on the slide displayed by the presentation. Do not use it on an other slide !
Some screenshots
Contact
Jonathan Atton alias Watchwolf <jonathan[dot]atton[at]gmail[dot]com>
