Difference between revisions of "Integrating custom controls in Orbiter"

From LinuxMCE
Jump to: navigation, search
Line 1: Line 1:
<table width="100%"> <tr><td bgcolor="#FFCFCF">This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007.  In general any information should apply to LinuxMCE.  However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.</td></tr> </table>== 1. The concept of screen in Orbiter ==
+
<table width="100%"> <tr><td bgcolor="#FFCFCF">This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007.  In general any information should apply to LinuxMCE.  However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.</td></tr> </table>== The concept of screen in Orbiter ==
 
A ''DesignObj'' is a graphic object from Orbiter. Each ''DesignObj'' may be a collection of ''DesignObj'' children and so on. On parent ''DesignObj'' can be associated with a ''screen'', which gives the programmer the possibility to do custom additional actions with that ''DesignObj''.
 
A ''DesignObj'' is a graphic object from Orbiter. Each ''DesignObj'' may be a collection of ''DesignObj'' children and so on. On parent ''DesignObj'' can be associated with a ''screen'', which gives the programmer the possibility to do custom additional actions with that ''DesignObj''.
  
  
== 1.1 How to associate a ''DesignObj'' to a ''screen'' ==
+
== How to associate a ''DesignObj'' to a ''screen'' ==
  
 
Once the parent ''design object'' is created with the Designer, go in ''pluto_main'' database and insert into ''Screen'' table a record with a description and few comments about the new screen. Then check Screen_DesignObj table and add a recording to link the screen with the designobj. You might also want to specify the UI and the Skin.
 
Once the parent ''design object'' is created with the Designer, go in ''pluto_main'' database and insert into ''Screen'' table a record with a description and few comments about the new screen. Then check Screen_DesignObj table and add a recording to link the screen with the designobj. You might also want to specify the UI and the Skin.
  
  
== 1.2. How to use ScreenGen to regenerate screens and how to use it ==
+
== How to use ScreenGen to regenerate screens and how to use it ==
  
 
Run ScreenGen with ''-h <host>'' command line parameter and you should see in src/Gen_Devices/AllScreens.h that handlers for your need screens were added.
 
Run ScreenGen with ''-h <host>'' command line parameter and you should see in src/Gen_Devices/AllScreens.h that handlers for your need screens were added.
  
  
== 1.3 Understand AllScreens.h and ScreenHandler_Base class. ==
+
== Understand AllScreens.h and ScreenHandler_Base class. ==
  
  
== 2. ScreenHandler and how to register a callback ==
+
== ScreenHandler and how to register a callback ==
  
  
== 3. How to send task to task manager. ==
+
== How to send task to task manager. ==

Revision as of 08:15, 2 May 2006

This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007. In general any information should apply to LinuxMCE. However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.
== The concept of screen in Orbiter ==

A DesignObj is a graphic object from Orbiter. Each DesignObj may be a collection of DesignObj children and so on. On parent DesignObj can be associated with a screen, which gives the programmer the possibility to do custom additional actions with that DesignObj.


How to associate a DesignObj to a screen

Once the parent design object is created with the Designer, go in pluto_main database and insert into Screen table a record with a description and few comments about the new screen. Then check Screen_DesignObj table and add a recording to link the screen with the designobj. You might also want to specify the UI and the Skin.


How to use ScreenGen to regenerate screens and how to use it

Run ScreenGen with -h <host> command line parameter and you should see in src/Gen_Devices/AllScreens.h that handlers for your need screens were added.


Understand AllScreens.h and ScreenHandler_Base class.

ScreenHandler and how to register a callback

How to send task to task manager.