Hi Lionel,

Sorry for the huge delay. Actually I did not really know what to answer
because, as you said, the documentation is confusing. Be aware that this
issue is being tackled as we speak and proper tutorials/howtos for
plugins will land soon.

More specifically, as of today, in order to add a menu entry to Elisa
you have to modify
'elisa-plugins/elisa/plugins/xmlmenu/data/default_menu.xml' which is a
file describing Elisa's menu tree.

To achieve your first goal of "[...] displaying a full screen picture",
it is unfortunately not trivial at all right now. However, your final
goal of "[...] embedding one application" might be easier depending on
how far you want to go exactly:
 - embedding an SDL C application in Elisa is probably possible but
would require modifications to Pigment to support 1) rendering SDL
applications to Pigment Drawables and 2) redirecting input from Pigment
Drawables to SDL applications
 - launching any application from Elisa is already easily doable thanks
to the so called 'spawn process
action' (elisa-plugins/elisa/plugins/xmlmenu/actions/spawn_process_action.py). 
It is just a matter of adding the entry in the XML description of Elisa's menu; 
for more exact details I will let Benjamin speak

I hope it helps a little,

Florian


> 
> Anyway, my goal is to embbed one application we use at work into
> Elisa.
> 
> I currently have a SDL C application so what would be über-cool is
> that there is a way to embbed an SDL application in an Elisa plugin.
> If not, I guess I will have to work but what do you think I must try ?
> Porting the SDL app to something else (GTK ?) ? Writing python
> bindings for the applications ?

https://code.fluendo.com/elisa/trac/ticket/1038

On Wed, 2008-03-05 at 16:04 +0100, Lionel Dricot wrote:
> Hello,
> 
> I'm very interested in the Elisa project and I would like to write a
> component for it.
> 
> It would be a "root" component that should be on the "root" level with
> his own icon (like music player, video player, photo browser).
> 
> I apt-getted the latest Elisa on Ubuntu Gutsy and it works great. I
> tried to download the tar.gz to play with it, unfortunatly launching
> "elisa.py" only display the splash screen, nothing more. Also, I found
> the documentation a bit confusing about how to write a plugin. After
> reading the whole stuff two or three times I still don't have any idea
> on how I can possibly start ! I'm probably not the brightest person in
> the world but it would be good to have a really copy/paste step by
> step howto that let you download/install/write your first "hello
> world" plugin. Lot of things are unclear : do I need to do anything
> with pigment ? The latest package are installed so I normally don't
> need them but the doc here is a bit confusing.
> 
> My first goal is only to display a new icon in the main menu and, when
> you click on it, it will display a full screen picture. It is not
> useful at all but I think it's a good learning case. If I succed to do
> this and if you are interested, I can turn this into a clear howto for
> people like me :-)
> 
> 
> 
> 
> Anyway, my goal is to embbed one application we use at work into
> Elisa.
> 
> I currently have a SDL C application so what would be über-cool is
> that there is a way to embbed an SDL application in an Elisa plugin.
> If not, I guess I will have to work but what do you think I must try ?
> Porting the SDL app to something else (GTK ?) ? Writing python
> bindings for the applications ?
> 
> 
> Thank you in advance,
> 
> Lionel

Reply via email to