Author Topic: small orbiter patch to put exit button on maemo orbiter  (Read 4585 times)

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
small orbiter patch to put exit button on maemo orbiter
« 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

Code: [Select]
//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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: small orbiter patch to put exit button on maemo orbiter
« Reply #1 on: October 12, 2008, 11:35:14 am »
cool tschak!!
rock your home - http://www.agocontrol.com home automation

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: small orbiter patch to put exit button on maemo orbiter
« Reply #2 on: October 12, 2008, 02:02:26 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

Code: [Select]
//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 http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: small orbiter patch to put exit button on maemo orbiter
« Reply #3 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.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: small orbiter patch to put exit button on maemo orbiter
« Reply #4 on: October 14, 2008, 10:39:03 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 http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: small orbiter patch to put exit button on maemo orbiter
« Reply #5 on: October 16, 2008, 10:00:05 pm »
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: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: small orbiter patch to put exit button on maemo orbiter
« Reply #6 on: October 16, 2008, 10:04:02 pm »
do these builds have the screen saver disabled?

-Thom

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: small orbiter patch to put exit button on maemo orbiter
« Reply #7 on: October 17, 2008, 08:27:21 am »
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: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru