News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

small orbiter patch to put exit button on maemo orbiter

Started by tschak909, October 11, 2008, 11:59:02 PM

Previous topic - Next topic

tschak909

I've sent this off to nite_man, but I thought i'd mention it here too:

Basically, in src/Orbiter/OrbiterRenderer.php, look around line 1235, you'll notice a reference to DESIGNOBJ_objExitController2_CONST. This is the Exit Orbiter button, and it is hidden by default in Designer. Interestingly enough, they decided to take care of it in the global renderer class, and set the hide/unhide to unhide if the orbiter is the WIN32 orbiter. I have extended this to add the exit button to the Maemo orbiter, as such:

Add the following lines after the #ifdef block


//also NOT hidden on Maemo orbiter
#if defined(MAEMO_NOKIA770)
        if(pObj->m_iBaseObjectID == DESIGNOBJ_objExitController2_CONST)
                pObj->m_bHidden = false;
#endif


recompile and use.

-Thom

hari

rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

totallymaxed

Quote from: tschak909 on October 11, 2008, 11:59:02 PM
I've sent this off to nite_man, but I thought i'd mention it here too:

Basically, in src/Orbiter/OrbiterRenderer.php, look around line 1235, you'll notice a reference to DESIGNOBJ_objExitController2_CONST. This is the Exit Orbiter button, and it is hidden by default in Designer. Interestingly enough, they decided to take care of it in the global renderer class, and set the hide/unhide to unhide if the orbiter is the WIN32 orbiter. I have extended this to add the exit button to the Maemo orbiter, as such:

Add the following lines after the #ifdef block


//also NOT hidden on Maemo orbiter
#if defined(MAEMO_NOKIA770)
        if(pObj->m_iBaseObjectID == DESIGNOBJ_objExitController2_CONST)
                pObj->m_bHidden = false;
#endif


recompile and use.

-Thom


Nice!

Thanks Thom.

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

nite_man

Good work, Tom! I tested it yesterday and it worked fine. Will build new packages for Nokia Orbiter today.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

totallymaxed

Quote from: nite_man on October 14, 2008, 09:08:16 AM
Good work, Tom! I tested it yesterday and it worked fine. Will build new packages for Nokia Orbiter today.

Cool Michael/Thom :-)

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

nite_man

I'll uploaded a new version of Nokia Orbiter for diablo, chinook and bora with button 'Exit' to the diapub repo. Version for mistral can be downloaded from the Maemo garage.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

tschak909

do these builds have the screen saver disabled?

-Thom

nite_man

Quote from: tschak909 on October 16, 2008, 10:04:02 PM
do these builds have the screen saver disabled?
I disabled the screen-saver according to Oliver recommendations in the previous release. So, the latest should also have that.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]