LinuxMCE Forums
May 21, 2013, 08:14:59 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: small orbiter patch to put exit button on maemo orbiter  (Read 1418 times)
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« on: October 11, 2008, 10: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:
//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
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #1 on: October 12, 2008, 10:35:14 am »

cool tschak!!
Logged

rock your home - http://www.agocontrol.com home automation
totallymaxed
LinuxMCE God
****
Posts: 4310


View Profile WWW
« Reply #2 on: October 12, 2008, 01: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:
//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
Logged

Andy Herron,
Convergent Home Technologies Ltd
United Kingdom

Dianemo S Now Shipping on Ubuntu 12.04LTS
Build your system on the latest Ubuntu OS Release!

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk
nite_man
NEEDS to work for LinuxMCE
***
Posts: 1019


Want to work with LinuxMCE


View Profile WWW
« Reply #3 on: October 14, 2008, 08:08:16 am »

Good work, Tom! I tested it yesterday and it worked fine. Will build new packages for Nokia Orbiter today.
Logged

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: 4310


View Profile WWW
« Reply #4 on: October 14, 2008, 09: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
Logged

Andy Herron,
Convergent Home Technologies Ltd
United Kingdom

Dianemo S Now Shipping on Ubuntu 12.04LTS
Build your system on the latest Ubuntu OS Release!

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk
nite_man
NEEDS to work for LinuxMCE
***
Posts: 1019


Want to work with LinuxMCE


View Profile WWW
« Reply #5 on: October 16, 2008, 09: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.
Logged

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: 5101

DOES work for LinuxMCE.


View Profile
« Reply #6 on: October 16, 2008, 09:04:02 pm »

do these builds have the screen saver disabled?

-Thom
Logged
nite_man
NEEDS to work for LinuxMCE
***
Posts: 1019


Want to work with LinuxMCE


View Profile WWW
« Reply #7 on: October 17, 2008, 07: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.
Logged

Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!