[opensource-dev] "Adding a dialog" outdated

2012-10-18 Thread CJ Davies
I'm trying to follow the "Adding a dialog" page on the wiki

http://wiki.secondlife.com/wiki/Adding_a_dialog

however I suspect it hasn't been updated to reflect changes to the 
codebase & as such I can't get it to work. In particular,

LLUICtrlFactory::getInstance()->buildFloater(this, "floater_foo.xml");

doesn't compile as there is no buildFloater method in LLUICtrlFactory. 
Can anybody shed some light on how we now go about creating dialogs?

Regards,
CJ Davies
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] "Adding a dialog" outdated

2012-10-18 Thread CJ Davies
Just noticed that the wiki page hasn't been updated since 2008. Is there 
any more recent documentation that works?

Regards,
CJ Davies

On 18/10/12 14:41, CJ Davies wrote:
> I'm trying to follow the "Adding a dialog" page on the wiki
>
> http://wiki.secondlife.com/wiki/Adding_a_dialog
>
> however I suspect it hasn't been updated to reflect changes to the
> codebase & as such I can't get it to work. In particular,
>
> LLUICtrlFactory::getInstance()->buildFloater(this, "floater_foo.xml");
>
> doesn't compile as there is no buildFloater method in LLUICtrlFactory.
> Can anybody shed some light on how we now go about creating dialogs?
>
> Regards,
> CJ Davies

___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] "Adding a dialog" outdated

2012-10-18 Thread Oz Linden (Scott Lawrence)

On 2012-10-18 09:41 , CJ Davies wrote:

I'm trying to follow the "Adding a dialog" page on the wiki

http://wiki.secondlife.com/wiki/Adding_a_dialog

however I suspect it hasn't been updated to reflect changes to the
codebase & as such I can't get it to work. In particular,

LLUICtrlFactory::getInstance()->buildFloater(this, "floater_foo.xml");

doesn't compile as there is no buildFloater method in LLUICtrlFactory.
Can anybody shed some light on how we now go about creating dialogs?



It's possible (likely, even) that there's more than one way, but one I 
worked on recently worked this way


The floater is registered in newview/llviewerfloaterreg.cpp 
:


 LLFloaterReg::add("prefs_autoreplace",  "floater_autoreplace.xml",  
(LLFloaterBuildFunc)&LLFloaterReg::build);



It is then shown by code in newview/llfloaterpreference.cpp 
:


LLFloaterReg::showInstance("prefs_autoreplace");


The code for that floater is in newview/llfloaterautoreplacesettings.cpp 






___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges

Re: [opensource-dev] "Adding a dialog" outdated

2012-10-18 Thread Sodovan Torok
On 12-10-18 09:55 AM, CJ Davies wrote:
> Just noticed that the wiki page hasn't been updated since 2008. Is there
> any more recent documentation that works?
>
> Regards,
> CJ Davies
"Use the source, Luke!"

Unhelpful, but true in a rapid moving target like the viewer.

___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges