LinuxMCE Forums

General => Developers => Topic started by: tschak909 on October 11, 2008, 11:59:02 pm

Title: small orbiter patch to put exit button on maemo orbiter
Post by: 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

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
Title: Re: small orbiter patch to put exit button on maemo orbiter
Post by: hari on October 12, 2008, 11:35:14 am
cool tschak!!
Title: Re: small orbiter patch to put exit button on maemo orbiter
Post by: totallymaxed 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
Title: Re: small orbiter patch to put exit button on maemo orbiter
Post by: 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.
Title: Re: small orbiter patch to put exit button on maemo orbiter
Post by: totallymaxed 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
Title: Re: small orbiter patch to put exit button on maemo orbiter
Post by: nite_man 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 (https://garage.maemo.org/frs/download.php/4694/lmceorbiter-os2006-0710-5_armel.deb).
Title: Re: small orbiter patch to put exit button on maemo orbiter
Post by: tschak909 on October 16, 2008, 10:04:02 pm
do these builds have the screen saver disabled?

-Thom
Title: Re: small orbiter patch to put exit button on maemo orbiter
Post by: nite_man 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.