|
 |
|

02-16-2004
|
|
Registered User
|
|
Join Date: Nov 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
How do u go about making a plugin?
i was thinking it would be cool if there was a plugin for telling u when a certain program on tv is on. I mean, u type in for example " seinfeld" and it returns all the channels which are showing seinfeld on that day. If the plugin just searched "seinfeld" in a site like http://www.biglarry.co.uk, and then returned the list of the channels showing it and the time it is on. If anyone knows if such a plugin would be possible, please let me know.
ps: for a harddriveless person
|

02-16-2004
|
|
Registered User
|
|
Join Date: Oct 2003
Posts: 488
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
To make a neat-looking plugin that works like the remainder of enigma, you need to download and install the development environment. This is quite easy on a Linux machine. In theory it should be possible on Windows, but I have never seen descriptions of how to do that.
Once you have a development environment it is quite simple to make a plugin. Examples are included. They are coded in C++.
Of course, for what you want to do you may need do do some coding.
Alternatively, it is possible to use a script plugin (several versions are included in different images) that allows you to write a plugin as a shell script. Maybe you can do what you want by fetching a URL using the wget program, and then display the resulting downloaded file.
A harddisk is not required as long as you keep it small. To have a bit more space to play with, connect a USB memory key.
|

02-16-2004
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Programming environment on Windows
Hello,
I was able to install the tuxbox tree successfuly on Windows, using the cygwin environment, and I was able to have a successfull build.
I tried to look for sample in the tree, but did not find except the demo.cpp which is in /home/tuxbox-cvs/apps/tuxbox/plugins/enigma/demo
It is refering to classes like eWindow, eButton, ePoint, ... etc. I am not familiar with this GUI programming interface. Is there any programming reference or guide on the internet, where all the GUI classes, and APIs are listed with some good sample code on how to use them? Or are these kind of classes well known classes for linux GUI programmer, then I should look under Linux programming?
Also is there a way to build a GUI interface using C, and not CPP. Is there equivalent C APIs for the CPP classes?
Thank you.
|

02-16-2004
|
|
Registered User
|
|
Join Date: Oct 2003
Posts: 488
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
The demo.cpp is the sample plugin.
Of course you will need to edit it heavily to do anything useful.
There also is some demo by Ronaldd going around, but it is similar.
The big problem indeed is the documentation.
There is a short document in the source tree that apparently was the start of a project to document all these classes and functions, but it only explains some general principles and it is not an exhaustive programming manual.
I guess the only way to learn how to do something is to look into the enigma source and see how existing features in the dreambox have been programmed using these classes.
The GUI was written as a part of the enigma project, I think. It is not an existing GUI library.
There are some parts of the dreambox source that have been imported from other open source projects, like the registry functions, but the GUI is not part of it AFAIK.
|

02-16-2004
|
|
Registered User
|
|
Join Date: Dec 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
@robb
Could you please advice some links regards - Linux development environment and plugin examples as you mention earlier?
Thnx,
|

02-17-2004
|
|
Registered User
|
|
Join Date: Oct 2003
Posts: 488
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This site has information about setting up a development system, and other related topics: http://t-hydron.verkoyen.be/
|

02-18-2004
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Missing message box
Hello,
I built the demo plugin in home/tuxbox-cvs/apps/tuxbox/plugins/enigma/demo. Unfortunately, when invoking it from my DB, I got the following error:
/var/tuxbox/plugins/enigma_demo.so: undefined symbol: _ZN11eMessageBoxC1E7eStringSO_ii
So, I commented the two places where the eMessageBox is invoked, and I was able to get the main window, with a listbox, and two buttons.
Then, I tried adding more widgets to the window, and I was able to successfully display eProgress, eSlider, Checkbox, more push buttons. However, when I tried adding a text input field, I got the following error:
undefined symbol:
_ZN15eTextInputFieldC1EP7eWidgetP6eLabelPKc
When I tried adding a combobox, the plugin just displays a blank screen.
I am using an ruDream image, and I am afraid that may be I am missing some libraries needed to display these widgets. Could that be the case?
Also, I noticed that there is no radio buttons. Am I correct, or can it be created as a style of the eButton?
Thank you.
|

02-18-2004
|
|
Registered User
|
|
Join Date: Dec 2003
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sounds to me like you use a newer version of enigma then the CDK, or the other way around
I want experienced C++ coders for my Image team - already got alittle bunch, but the more the merrier
Please join us on irc: #dm7000.nu @ skysnolimit.serveirc.com
Regards,
ZiGzAg
|

02-18-2004
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Problem with eMessageBox
Hello zigzag,
I hate to disappoint you, but I am not an experienced C++ programmer :-)
I have been working in the IT industry for more than 15 years. I am always interested in learning new things, and DB is such a wonderful box to explore.
I used to be a C, and assembler programmer, but that was a long time ago. Still the attractiveness of the DB made me refresh my memory, and start reading few C++ tutorials from the internet to start my first steps to build a plug-in.
I saw the long wish list of plugins, and who knows, may be with more work, and the help of other colleagues in this forum, I'll be able to shorten the list by one or two plugins :-)
Back to my questions, I hope that some of the readers can help me resolve this issue.
|

02-18-2004
|
|
Registered User
|
|
Join Date: Dec 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
@bf244a
I'd like to get to the stage you are in-compile demo/example plugin. Problem is I dont know how/where to start. So Im just wondering whether you could explain to me first steps i need to take. I have Mandrake install, idea is to use KDE C++ IDE for developing DBOX plugin. Is this possible ?
thanx in advance
LD
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +10. The time now is 11:00 PM.
Page generated in 0.31148 seconds with 11 queries | |