moved buildFloater out of lluictrlfactory to llfloater.cpp
parent
d06500eadd
commit
124bc854dd
|
|
@ -42,6 +42,7 @@
|
|||
#include "lluictrlfactory.h"
|
||||
#include "llbutton.h"
|
||||
#include "llcheckboxctrl.h"
|
||||
#include "lldir.h"
|
||||
#include "lldraghandle.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "llfocusmgr.h"
|
||||
|
|
@ -2883,3 +2884,65 @@ bool LLFloater::isVisible(const LLFloater* floater)
|
|||
{
|
||||
return floater && floater->getVisible();
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_BUILD_FLOATERS("Build Floaters");
|
||||
|
||||
/* static */
|
||||
bool LLFloater::buildFloater(LLFloater* floaterp, const std::string& filename, LLXMLNodePtr output_node)
|
||||
{
|
||||
LLFastTimer timer(FTM_BUILD_FLOATERS);
|
||||
LLXMLNodePtr root;
|
||||
|
||||
//if exporting, only load the language being exported,
|
||||
//instead of layering localized version on top of english
|
||||
if (output_node)
|
||||
{
|
||||
if (!LLUICtrlFactory::getLocalizedXMLNode(filename, root))
|
||||
{
|
||||
llwarns << "Couldn't parse floater from: " << LLUI::getLocalizedSkinPath() + gDirUtilp->getDirDelimiter() + filename << llendl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (!LLUICtrlFactory::getLayeredXMLNode(filename, root))
|
||||
{
|
||||
llwarns << "Couldn't parse floater from: " << LLUI::getSkinPath() + gDirUtilp->getDirDelimiter() + filename << llendl;
|
||||
return false;
|
||||
}
|
||||
|
||||
// root must be called floater
|
||||
if( !(root->hasName("floater") || root->hasName("multi_floater")) )
|
||||
{
|
||||
llwarns << "Root node should be named floater in: " << filename << llendl;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool res = true;
|
||||
|
||||
lldebugs << "Building floater " << filename << llendl;
|
||||
LLUICtrlFactory::instance().pushFileName(filename);
|
||||
{
|
||||
if (!floaterp->getFactoryMap().empty())
|
||||
{
|
||||
LLPanel::sFactoryStack.push_front(&floaterp->getFactoryMap());
|
||||
}
|
||||
|
||||
// for local registry callbacks; define in constructor, referenced in XUI or postBuild
|
||||
floaterp->getCommitCallbackRegistrar().pushScope();
|
||||
floaterp->getEnableCallbackRegistrar().pushScope();
|
||||
|
||||
res = floaterp->initFloaterXML(root, floaterp->getParent(), filename, output_node);
|
||||
|
||||
floaterp->setXMLFilename(filename);
|
||||
|
||||
floaterp->getCommitCallbackRegistrar().popScope();
|
||||
floaterp->getEnableCallbackRegistrar().popScope();
|
||||
|
||||
if (!floaterp->getFactoryMap().empty())
|
||||
{
|
||||
LLPanel::sFactoryStack.pop_front();
|
||||
}
|
||||
}
|
||||
LLUICtrlFactory::instance().popFileName();
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ public:
|
|||
|
||||
// Don't export top/left for rect, only height/width
|
||||
static void setupParamsForExport(Params& p, LLView* parent);
|
||||
static bool buildFloater(LLFloater* floaterp, const std::string &filename, LLXMLNodePtr output_node);
|
||||
|
||||
void initFromParams(const LLFloater::Params& p);
|
||||
bool initFloaterXML(LLXMLNodePtr node, LLView *parent, const std::string& filename, LLXMLNodePtr output_node = NULL);
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ LLFloater* LLFloaterReg::getInstance(const std::string& name, const LLSD& key)
|
|||
|
||||
res = build_func(key);
|
||||
|
||||
bool success = LLUICtrlFactory::getInstance()->buildFloater(res, xui_file, NULL);
|
||||
bool success = LLFloater::buildFloater(res, xui_file, NULL);
|
||||
if (!success)
|
||||
{
|
||||
llwarns << "Failed to build floater type: '" << name << "'." << llendl;
|
||||
|
|
|
|||
|
|
@ -265,6 +265,8 @@ protected:
|
|||
commit_signal_t* mVisibleSignal; // Called when visibility changes, passes new visibility as LLSD()
|
||||
|
||||
std::string mHelpTopic; // the name of this panel's help topic to display in the Help Viewer
|
||||
typedef std::deque<const LLCallbackMap::map_t*> factory_stack_t;
|
||||
static factory_stack_t sFactoryStack;
|
||||
|
||||
private:
|
||||
BOOL mBgVisible; // any background at all?
|
||||
|
|
@ -286,8 +288,6 @@ private:
|
|||
// for setting the xml filename when building panel in context dependent cases
|
||||
std::string mXMLFilename;
|
||||
|
||||
typedef std::deque<const LLCallbackMap::map_t*> factory_stack_t;
|
||||
static factory_stack_t sFactoryStack;
|
||||
}; // end class LLPanel
|
||||
|
||||
// Build time optimization, generate once in .cpp file
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#include "llquaternion.h"
|
||||
|
||||
// this library includes
|
||||
#include "llfloater.h"
|
||||
#include "llpanel.h"
|
||||
|
||||
LLFastTimer::DeclareTimer FTM_WIDGET_CONSTRUCTION("Widget Construction");
|
||||
LLFastTimer::DeclareTimer FTM_INIT_FROM_PARAMS("Widget InitFromParams");
|
||||
|
|
@ -178,70 +178,6 @@ bool LLUICtrlFactory::getLocalizedXMLNode(const std::string &xui_filename, LLXML
|
|||
}
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_BUILD_FLOATERS("Build Floaters");
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// buildFloater()
|
||||
//-----------------------------------------------------------------------------
|
||||
bool LLUICtrlFactory::buildFloater(LLFloater* floaterp, const std::string& filename, LLXMLNodePtr output_node)
|
||||
{
|
||||
LLFastTimer timer(FTM_BUILD_FLOATERS);
|
||||
LLXMLNodePtr root;
|
||||
|
||||
//if exporting, only load the language being exported,
|
||||
//instead of layering localized version on top of english
|
||||
if (output_node)
|
||||
{
|
||||
if (!LLUICtrlFactory::getLocalizedXMLNode(filename, root))
|
||||
{
|
||||
llwarns << "Couldn't parse floater from: " << LLUI::getLocalizedSkinPath() + gDirUtilp->getDirDelimiter() + filename << llendl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (!LLUICtrlFactory::getLayeredXMLNode(filename, root))
|
||||
{
|
||||
llwarns << "Couldn't parse floater from: " << LLUI::getSkinPath() + gDirUtilp->getDirDelimiter() + filename << llendl;
|
||||
return false;
|
||||
}
|
||||
|
||||
// root must be called floater
|
||||
if( !(root->hasName("floater") || root->hasName("multi_floater")) )
|
||||
{
|
||||
llwarns << "Root node should be named floater in: " << filename << llendl;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool res = true;
|
||||
|
||||
lldebugs << "Building floater " << filename << llendl;
|
||||
pushFileName(filename);
|
||||
{
|
||||
if (!floaterp->getFactoryMap().empty())
|
||||
{
|
||||
LLPanel::sFactoryStack.push_front(&floaterp->getFactoryMap());
|
||||
}
|
||||
|
||||
// for local registry callbacks; define in constructor, referenced in XUI or postBuild
|
||||
floaterp->getCommitCallbackRegistrar().pushScope();
|
||||
floaterp->getEnableCallbackRegistrar().pushScope();
|
||||
|
||||
res = floaterp->initFloaterXML(root, floaterp->getParent(), filename, output_node);
|
||||
|
||||
floaterp->setXMLFilename(filename);
|
||||
|
||||
floaterp->getCommitCallbackRegistrar().popScope();
|
||||
floaterp->getEnableCallbackRegistrar().popScope();
|
||||
|
||||
if (!floaterp->getFactoryMap().empty())
|
||||
{
|
||||
LLPanel::sFactoryStack.pop_front();
|
||||
}
|
||||
}
|
||||
popFileName();
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// saveToXML()
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
#include "llregistry.h"
|
||||
#include "llxuiparser.h"
|
||||
|
||||
class LLFloater;
|
||||
class LLView;
|
||||
|
||||
// sort functor for typeid maps
|
||||
|
|
@ -147,8 +146,6 @@ public:
|
|||
return ParamDefaults<typename T::Params, 0>::instance().get();
|
||||
}
|
||||
|
||||
bool buildFloater(LLFloater* floaterp, const std::string &filename, LLXMLNodePtr output_node);
|
||||
|
||||
// Does what you want for LLFloaters and LLPanels
|
||||
// Returns 0 on success
|
||||
S32 saveToXML(LLView* viewp, const std::string& filename);
|
||||
|
|
|
|||
|
|
@ -134,26 +134,26 @@ public:
|
|||
|
||||
Optional<std::string> layout;
|
||||
Optional<LLRect> rect;
|
||||
|
||||
// Historical bottom-left layout used bottom_delta and left_delta
|
||||
// for relative positioning. New layout "topleft" prefers specifying
|
||||
// based on top edge.
|
||||
Optional<S32> bottom_delta, // deprecated
|
||||
top_pad, // from last bottom to my top
|
||||
top_delta, // from last top to my top
|
||||
left_pad, // from last right to my left
|
||||
left_delta; // from last left to my left
|
||||
|
||||
// these are nested attributes for LLLayoutPanel
|
||||
Optional<S32> bottom_delta, // from last bottom to my bottom
|
||||
top_pad, // from last bottom to my top
|
||||
top_delta, // from last top to my top
|
||||
left_pad, // from last right to my left
|
||||
left_delta; // from last left to my left
|
||||
|
||||
//FIXME: get parent context involved in parsing traversal
|
||||
Ignored user_resize,
|
||||
auto_resize,
|
||||
needs_translate,
|
||||
min_width,
|
||||
max_width,
|
||||
xmlns,
|
||||
xmlns_xsi,
|
||||
xsi_schemaLocation,
|
||||
xsi_type;
|
||||
Ignored user_resize, // nested attribute for LLLayoutPanel
|
||||
auto_resize, // nested attribute for LLLayoutPanel
|
||||
needs_translate, // cue for translation tools
|
||||
min_width, // nested attribute for LLLayoutPanel
|
||||
max_width, // nested attribute for LLLayoutPanel
|
||||
xmlns, // xml namespace
|
||||
xmlns_xsi, // xml namespace
|
||||
xsi_schemaLocation, // xml schema
|
||||
xsi_type; // xml schema type
|
||||
|
||||
Params();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ LLFloaterScriptQueue::LLFloaterScriptQueue(const LLSD& key) :
|
|||
mDone(false),
|
||||
mMono(false)
|
||||
{
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this,"floater_script_queue.xml", FALSE);
|
||||
}
|
||||
|
||||
// Destroys the object
|
||||
|
|
|
|||
|
|
@ -100,7 +100,6 @@ public:
|
|||
LLFloaterAbout::LLFloaterAbout(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_about.xml");
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ LLFloaterAuction::LLFloaterAuction(const LLSD& key)
|
|||
: LLFloater(key),
|
||||
mParcelID(-1)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_auction.xml");
|
||||
mCommitCallbackRegistrar.add("ClickSnapshot", boost::bind(&LLFloaterAuction::onClickSnapshot, this));
|
||||
mCommitCallbackRegistrar.add("ClickSellToAnyone", boost::bind(&LLFloaterAuction::onClickSellToAnyone, this));
|
||||
mCommitCallbackRegistrar.add("ClickStartAuction", boost::bind(&LLFloaterAuction::onClickStartAuction, this));
|
||||
|
|
|
|||
|
|
@ -85,7 +85,6 @@ LLFloaterAvatarPicker::LLFloaterAvatarPicker(const LLSD& key)
|
|||
mNearMeListComplete(FALSE),
|
||||
mCloseOnSelect(FALSE)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_avatar_picker.xml");
|
||||
mCommitCallbackRegistrar.add("Refresh.FriendList", boost::bind(&LLFloaterAvatarPicker::populateFriend, this));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ LLFloaterAvatarTextures::LLFloaterAvatarTextures(const LLSD& id)
|
|||
: LLFloater(id),
|
||||
mID(id.asUUID())
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_avatar_textures.xml");
|
||||
}
|
||||
|
||||
LLFloaterAvatarTextures::~LLFloaterAvatarTextures()
|
||||
|
|
|
|||
|
|
@ -42,8 +42,6 @@
|
|||
LLFloaterBeacons::LLFloaterBeacons(const LLSD& seed)
|
||||
: LLFloater(seed)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_beacons.xml");
|
||||
|
||||
// Initialize pipeline states from saved settings.
|
||||
// OK to do at floater constructor time because beacons do not display unless the floater is open
|
||||
// therefore it is OK to not initialize the pipeline state before needed.
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@
|
|||
LLFloaterBuildOptions::LLFloaterBuildOptions(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_build_options.xml");
|
||||
}
|
||||
|
||||
LLFloaterBuildOptions::~LLFloaterBuildOptions()
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@ LLFloaterBulkPermission::LLFloaterBulkPermission(const LLSD& seed)
|
|||
mDone(FALSE)
|
||||
{
|
||||
mID.generate();
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this,"floater_bulk_perms.xml");
|
||||
mCommitCallbackRegistrar.add("BulkPermission.Apply", boost::bind(&LLFloaterBulkPermission::onApplyBtn, this));
|
||||
mCommitCallbackRegistrar.add("BulkPermission.Close", boost::bind(&LLFloaterBulkPermission::onCloseBtn, this));
|
||||
mCommitCallbackRegistrar.add("BulkPermission.CheckAll", boost::bind(&LLFloaterBulkPermission::onCheckAll, this));
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ LLFloaterBump::LLFloaterBump(const LLSD& key)
|
|||
: LLFloater(key)
|
||||
{
|
||||
if(gNoRender) return;
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_bumps.xml");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@
|
|||
LLFloaterBuy::LLFloaterBuy(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_buy_object.xml");
|
||||
}
|
||||
|
||||
BOOL LLFloaterBuy::postBuild()
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@
|
|||
LLFloaterBuyContents::LLFloaterBuyContents(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_buy_contents.xml");
|
||||
}
|
||||
|
||||
BOOL LLFloaterBuyContents::postBuild()
|
||||
|
|
|
|||
|
|
@ -299,8 +299,7 @@ LLFloaterBuyLandUI::LLFloaterBuyLandUI(const LLSD& key)
|
|||
mParcelBuyInfo(0)
|
||||
{
|
||||
LLViewerParcelMgr::getInstance()->addObserver(&mParcelSelectionObserver);
|
||||
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(sInstance, "floater_buy_land.xml");
|
||||
|
||||
}
|
||||
|
||||
LLFloaterBuyLandUI::~LLFloaterBuyLandUI()
|
||||
|
|
|
|||
|
|
@ -113,9 +113,6 @@ LLFloaterColorPicker::LLFloaterColorPicker (LLColorSwatchCtrl* swatch, BOOL show
|
|||
mCanApplyImmediately ( show_apply_immediate ),
|
||||
mContextConeOpacity ( 0.f )
|
||||
{
|
||||
// build the majority of the gui using the factory builder
|
||||
LLUICtrlFactory::getInstance()->buildFloater ( this, "floater_color_picker.xml", NULL );
|
||||
|
||||
// create user interface for this picker
|
||||
createUI ();
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ const F32 LLFloaterDayCycle::sHoursPerDay = 24.0f;
|
|||
LLFloaterDayCycle::LLFloaterDayCycle(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_day_cycle_options.xml");
|
||||
}
|
||||
|
||||
BOOL LLFloaterDayCycle::postBuild()
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@
|
|||
LLFloaterEnvSettings::LLFloaterEnvSettings(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_env_settings.xml");
|
||||
}
|
||||
// virtual
|
||||
LLFloaterEnvSettings::~LLFloaterEnvSettings()
|
||||
|
|
|
|||
|
|
@ -127,8 +127,6 @@ LLFloaterGodTools::LLFloaterGodTools(const LLSD& key)
|
|||
mFactoryMap["region"] = LLCallbackMap(createPanelRegion, this);
|
||||
mFactoryMap["objects"] = LLCallbackMap(createPanelObjects, this);
|
||||
mFactoryMap["request"] = LLCallbackMap(createPanelRequest, this);
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_god_tools.xml");
|
||||
|
||||
}
|
||||
|
||||
BOOL LLFloaterGodTools::postBuild()
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@ LLFloaterHardwareSettings::LLFloaterHardwareSettings(const LLSD& key)
|
|||
mFogRatio(0.0),
|
||||
mProbeHardwareOnStartup(FALSE)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_hardware_settings.xml");
|
||||
}
|
||||
|
||||
LLFloaterHardwareSettings::~LLFloaterHardwareSettings()
|
||||
|
|
|
|||
|
|
@ -60,8 +60,6 @@ LLFloaterHUD::LLFloaterHUD(const LLSD& key)
|
|||
return;
|
||||
}
|
||||
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_hud.xml");
|
||||
|
||||
// Don't grab the focus as it will impede performing in-world actions
|
||||
// while using the HUD
|
||||
setIsChrome(TRUE);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ LLFloaterInspect::LLFloaterInspect(const LLSD& key)
|
|||
: LLFloater(key),
|
||||
mDirty(FALSE)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_inspect.xml");
|
||||
mCommitCallbackRegistrar.add("Inspect.OwnerProfile", boost::bind(&LLFloaterInspect::onClickOwnerProfile, this));
|
||||
mCommitCallbackRegistrar.add("Inspect.CreatorProfile", boost::bind(&LLFloaterInspect::onClickCreatorProfile, this));
|
||||
mCommitCallbackRegistrar.add("Inspect.SelectObject", boost::bind(&LLFloaterInspect::onSelectObject, this));
|
||||
|
|
|
|||
|
|
@ -50,8 +50,6 @@
|
|||
LLFloaterJoystick::LLFloaterJoystick(const LLSD& data)
|
||||
: LLFloater(data)
|
||||
{
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this, "floater_joystick.xml");
|
||||
|
||||
initFromSettings();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ const std::string LAG_GOOD_IMAGE_NAME = "lag_status_good.tga";
|
|||
LLFloaterLagMeter::LLFloaterLagMeter(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_lagmeter.xml");
|
||||
mCommitCallbackRegistrar.add("LagMeter.ClickShrink", boost::bind(&LLFloaterLagMeter::onClickShrink, this));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -254,8 +254,6 @@ LLFloaterLand::LLFloaterLand(const LLSD& seed)
|
|||
mFactoryMap["land_media_panel"] = LLCallbackMap(createPanelLandMedia, this);
|
||||
mFactoryMap["land_access_panel"] = LLCallbackMap(createPanelLandAccess, this);
|
||||
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_about_land.xml", false);
|
||||
|
||||
sObserver = new LLParcelSelectionObserver();
|
||||
LLViewerParcelMgr::getInstance()->addObserver( sObserver );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,7 +66,6 @@ LLFloaterLandHoldings::LLFloaterLandHoldings(const LLSD& key)
|
|||
mSortColumn(""),
|
||||
mSortAscending(TRUE)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(floater, "floater_land_holdings.xml");
|
||||
}
|
||||
|
||||
BOOL LLFloaterLandHoldings::postBuild()
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@ LLFloaterMap::LLFloaterMap(const LLSD& key)
|
|||
mTextBoxSouthWest(NULL),
|
||||
mMap(NULL)
|
||||
{
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this, "floater_map.xml", FALSE);
|
||||
}
|
||||
|
||||
LLFloaterMap::~LLFloaterMap()
|
||||
|
|
|
|||
|
|
@ -59,8 +59,6 @@
|
|||
LLFloaterMediaBrowser::LLFloaterMediaBrowser(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_media_browser.xml");
|
||||
|
||||
}
|
||||
|
||||
//static
|
||||
|
|
|
|||
|
|
@ -173,8 +173,6 @@ LLFloaterNotificationConsole::LLFloaterNotificationConsole(const LLSD& key)
|
|||
: LLFloater(key)
|
||||
{
|
||||
mCommitCallbackRegistrar.add("ClickAdd", boost::bind(&LLFloaterNotificationConsole::onClickAdd, this));
|
||||
|
||||
//LLUICtrlFactory::instance().buildFloater(this, "floater_notifications_console.xml");
|
||||
}
|
||||
|
||||
BOOL LLFloaterNotificationConsole::postBuild()
|
||||
|
|
@ -254,7 +252,6 @@ LLFloaterNotification::LLFloaterNotification(LLNotification* note)
|
|||
: LLFloater(LLSD()),
|
||||
mNote(note)
|
||||
{
|
||||
LLUICtrlFactory::instance().buildFloater(this, "floater_notification.xml", NULL);
|
||||
}
|
||||
|
||||
BOOL LLFloaterNotification::postBuild()
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@ LLFloaterOpenObject::LLFloaterOpenObject(const LLSD& key)
|
|||
mPanelInventoryObject(NULL),
|
||||
mDirty(TRUE)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this,"floater_openobject.xml");
|
||||
mCommitCallbackRegistrar.add("OpenObject.MoveToInventory", boost::bind(&LLFloaterOpenObject::onClickMoveToInventory, this));
|
||||
mCommitCallbackRegistrar.add("OpenObject.MoveAndWear", boost::bind(&LLFloaterOpenObject::onClickMoveAndWear, this));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
LLFloaterPerms::LLFloaterPerms(const LLSD& seed)
|
||||
: LLFloater(seed)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_perm_prefs.xml");
|
||||
mCommitCallbackRegistrar.add("Perms.Copy", boost::bind(&LLFloaterPerms::onCommitCopy, this));
|
||||
mCommitCallbackRegistrar.add("Perms.OK", boost::bind(&LLFloaterPerms::onClickOK, this));
|
||||
mCommitCallbackRegistrar.add("Perms.Cancel", boost::bind(&LLFloaterPerms::onClickCancel, this));
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ LLFloaterPostcard::LLFloaterPostcard(const LLSD& key)
|
|||
mViewerImage(NULL),
|
||||
mHasFirstMsgFocus(false)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_postcard.xml");
|
||||
}
|
||||
|
||||
// Destroys the object
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@
|
|||
LLFloaterPostProcess::LLFloaterPostProcess(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_post_process.xml");
|
||||
}
|
||||
|
||||
LLFloaterPostProcess::~LLFloaterPostProcess()
|
||||
|
|
|
|||
|
|
@ -137,7 +137,6 @@ LLVoiceSetKeyDialog::LLVoiceSetKeyDialog(const LLSD& key)
|
|||
: LLModalDialog(key),
|
||||
mParent(NULL)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_select_key.xml", NULL);
|
||||
}
|
||||
|
||||
//virtual
|
||||
|
|
|
|||
|
|
@ -114,8 +114,6 @@ LLFloaterProperties::LLFloaterProperties(const LLUUID& item_id)
|
|||
mDirty(TRUE)
|
||||
{
|
||||
mPropertiesObserver = new LLPropertiesObserver(this);
|
||||
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this,"floater_inventory_item_properties.xml");
|
||||
}
|
||||
|
||||
// Destroys the object
|
||||
|
|
|
|||
|
|
@ -167,7 +167,6 @@ LLUUID LLFloaterRegionInfo::sRequestInvoice;
|
|||
LLFloaterRegionInfo::LLFloaterRegionInfo(const LLSD& seed)
|
||||
: LLFloater(seed)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_region_info.xml", FALSE);
|
||||
}
|
||||
|
||||
BOOL LLFloaterRegionInfo::postBuild()
|
||||
|
|
|
|||
|
|
@ -109,7 +109,6 @@ LLFloaterReporter::LLFloaterReporter(const LLSD& key)
|
|||
mCopyrightWarningSeen( FALSE ),
|
||||
mResourceDatap(new LLResourceData())
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_report_abuse.xml");
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
|||
|
|
@ -58,8 +58,6 @@
|
|||
LLFloaterScriptDebug::LLFloaterScriptDebug(const LLSD& key)
|
||||
: LLMultiFloater(key)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_script_debug.xml");
|
||||
|
||||
// avoid resizing of the window to match
|
||||
// the initial size of the tabbed-childs, whenever a tab is opened or closed
|
||||
mAutoResize = FALSE;
|
||||
|
|
@ -147,8 +145,6 @@ LLFloaterScriptDebugOutput::LLFloaterScriptDebugOutput(const LLSD& object_id)
|
|||
: LLFloater(LLSD(object_id)),
|
||||
mObjectID(object_id.asUUID())
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_script_debug_panel.xml");
|
||||
|
||||
// enabled autocous blocks controling focus via LLFloaterReg::showInstance
|
||||
setAutoFocus(FALSE);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
LLFloaterSettingsDebug::LLFloaterSettingsDebug(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_settings_debug.xml");
|
||||
mCommitCallbackRegistrar.add("SettingSelect", boost::bind(&LLFloaterSettingsDebug::onSettingSelect, this,_1));
|
||||
mCommitCallbackRegistrar.add("CommitSettings", boost::bind(&LLFloaterSettingsDebug::onCommitSettings, this));
|
||||
mCommitCallbackRegistrar.add("ClickDefault", boost::bind(&LLFloaterSettingsDebug::onClickDefault, this));
|
||||
|
|
|
|||
|
|
@ -2076,7 +2076,6 @@ LLFloaterSnapshot::LLFloaterSnapshot(const LLSD& key)
|
|||
: LLFloater(key),
|
||||
impl (*(new Impl))
|
||||
{
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this, "floater_snapshot.xml", FALSE);
|
||||
}
|
||||
|
||||
// Destroys the object
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@ LLFloaterTelehub::LLFloaterTelehub(const LLSD& key)
|
|||
mTelehubRot(),
|
||||
mNumSpawn(0)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(sInstance, "floater_telehub.xml");
|
||||
}
|
||||
|
||||
BOOL LLFloaterTelehub::postBuild()
|
||||
|
|
|
|||
|
|
@ -356,7 +356,6 @@ LLFloaterTools::LLFloaterTools(const LLSD& key)
|
|||
mFactoryMap["Contents"] = LLCallbackMap(createPanelContents, this);//LLPanelContents
|
||||
mFactoryMap["land info panel"] = LLCallbackMap(createPanelLandInfo, this);//LLPanelLandInfo
|
||||
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this,"floater_tools.xml",FALSE);
|
||||
mCommitCallbackRegistrar.add("BuildTool.setTool", boost::bind(&LLFloaterTools::setTool,this, _2));
|
||||
mCommitCallbackRegistrar.add("BuildTool.commitZoom", boost::bind(&commit_slider_zoom, _1));
|
||||
mCommitCallbackRegistrar.add("BuildTool.commitRadioFocus", boost::bind(&commit_radio_group_focus, _1));
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ void LLFloaterTopObjects::show()
|
|||
}
|
||||
|
||||
sInstance = new LLFloaterTopObjects();
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(sInstance, "floater_top_objects.xml");
|
||||
sInstance->center();
|
||||
}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -400,7 +400,6 @@ LLFloaterUIPreview::LLFloaterUIPreview(const LLSD& key)
|
|||
mLastDisplayedX(0),
|
||||
mLastDisplayedY(0)
|
||||
{
|
||||
// called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this, "floater_ui_preview.xml");
|
||||
}
|
||||
|
||||
// Destructor
|
||||
|
|
@ -838,7 +837,7 @@ void LLFloaterUIPreview::displayFloater(BOOL click, S32 ID, bool save)
|
|||
if (save)
|
||||
{
|
||||
LLXMLNodePtr floater_write = new LLXMLNode();
|
||||
LLUICtrlFactory::getInstance()->buildFloater(*floaterp, path, floater_write); // just build it
|
||||
buildFloater(*floaterp, path, floater_write); // just build it
|
||||
|
||||
if (!floater_write->isNull())
|
||||
{
|
||||
|
|
@ -852,7 +851,7 @@ void LLFloaterUIPreview::displayFloater(BOOL click, S32 ID, bool save)
|
|||
}
|
||||
else
|
||||
{
|
||||
LLUICtrlFactory::getInstance()->buildFloater(*floaterp, path, NULL); // just build it
|
||||
buildFloater(*floaterp, path, NULL); // just build it
|
||||
(*floaterp)->openFloater((*floaterp)->getKey());
|
||||
(*floaterp)->setCanResize((*floaterp)->isResizable());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ LLFloaterURLEntry::LLFloaterURLEntry(LLHandle<LLPanel> parent)
|
|||
: LLFloater(LLSD()),
|
||||
mPanelLandMediaHandle(parent)
|
||||
{
|
||||
LLUICtrlFactory::getInstance()->buildFloater(this, "floater_url_entry.xml", NULL);
|
||||
buildFloater(this, "floater_url_entry.xml", NULL);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -338,7 +338,6 @@ LLFloaterVoiceDeviceSettings::LLFloaterVoiceDeviceSettings(const LLSD& seed)
|
|||
mFactoryMap["device_settings"] = LLCallbackMap(createPanelVoiceDeviceSettings, this);
|
||||
// do not automatically open singleton floaters (as result of getInstance())
|
||||
// BOOL no_open = FALSE;
|
||||
// Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this, "floater_device_settings.xml", no_open);
|
||||
}
|
||||
BOOL LLFloaterVoiceDeviceSettings::postBuild()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ std::set<std::string> LLFloaterWater::sDefaultPresets;
|
|||
LLFloaterWater::LLFloaterWater(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_water.xml");
|
||||
}
|
||||
|
||||
LLFloaterWater::~LLFloaterWater()
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@
|
|||
LLFloaterWhiteListEntry::LLFloaterWhiteListEntry( const LLSD& key ) :
|
||||
LLFloater(key)
|
||||
{
|
||||
// LLUICtrlFactory::getInstance()->buildFloater(this, "floater_whitelist_entry.xml");
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ static const F32 WL_SUN_AMBIENT_SLIDER_SCALE = 3.0f;
|
|||
LLFloaterWindLight::LLFloaterWindLight(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_windlight_options.xml");
|
||||
}
|
||||
|
||||
LLFloaterWindLight::~LLFloaterWindLight()
|
||||
|
|
|
|||
|
|
@ -86,7 +86,6 @@ public:
|
|||
LLFloaterWindowSize::LLFloaterWindowSize(const LLSD& key)
|
||||
: LLFloater(key)
|
||||
{
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this, "floater_window_size.xml");
|
||||
}
|
||||
|
||||
LLFloaterWindowSize::~LLFloaterWindowSize()
|
||||
|
|
|
|||
|
|
@ -205,7 +205,6 @@ LLFloaterWorldMap::LLFloaterWorldMap(const LLSD& key)
|
|||
|
||||
mFactoryMap["objects_mapview"] = LLCallbackMap(createWorldMapView, NULL);
|
||||
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this, "floater_world_map.xml", FALSE);
|
||||
mCommitCallbackRegistrar.add("WMap.Coordinates", boost::bind(&LLFloaterWorldMap::onCoordinatesCommit, this));
|
||||
mCommitCallbackRegistrar.add("WMap.Location", boost::bind(&LLFloaterWorldMap::onLocationCommit, this));
|
||||
mCommitCallbackRegistrar.add("WMap.AvatarCombo", boost::bind(&LLFloaterWorldMap::onAvatarComboCommit, this));
|
||||
|
|
|
|||
|
|
@ -648,7 +648,6 @@ LLFloaterInventoryFinder::LLFloaterInventoryFinder(LLPanelMainInventory* invento
|
|||
mPanelMainInventory(inventory_view),
|
||||
mFilter(inventory_view->getPanel()->getFilter())
|
||||
{
|
||||
LLUICtrlFactory::getInstance()->buildFloater(this, "floater_inventory_view_finder.xml", NULL);
|
||||
updateElementsFromFilter();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ class LLFilterEditor;
|
|||
class LLTabContainer;
|
||||
class LLFloaterInventoryFinder;
|
||||
class LLMenuGL;
|
||||
class LLFloater;
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Class LLPanelMainInventory
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ extern LLAgent gAgent;
|
|||
LLPreviewAnim::LLPreviewAnim(const LLSD& key)
|
||||
: LLPreview( key )
|
||||
{
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this,"floater_preview_animation.xml", FALSE);
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
|||
|
|
@ -317,9 +317,6 @@ LLPreviewGesture::LLPreviewGesture(const LLSD& key)
|
|||
NONE_LABEL = LLTrans::getString("---");
|
||||
SHIFT_LABEL = LLTrans::getString("KBShift");
|
||||
CTRL_LABEL = LLTrans::getString("KBCtrl");
|
||||
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this, "floater_preview_gesture.xml", FALSE);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ LLPreviewNotecard::LLPreviewNotecard(const LLSD& key) //const LLUUID& item_id,
|
|||
{
|
||||
mAssetID = item->getAssetUUID();
|
||||
}
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this,"floater_preview_notecard.xml", FALSE);
|
||||
}
|
||||
|
||||
LLPreviewNotecard::~LLPreviewNotecard()
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ LLFloaterScriptSearch::LLFloaterScriptSearch(LLScriptEdCore* editor_core)
|
|||
: LLFloater(LLSD()),
|
||||
mEditorCore(editor_core)
|
||||
{
|
||||
LLUICtrlFactory::getInstance()->buildFloater(this,"floater_script_search.xml", NULL);
|
||||
buildFloater(this,"floater_script_search.xml", NULL);
|
||||
|
||||
sInstance = this;
|
||||
|
||||
|
|
@ -660,7 +660,7 @@ void LLScriptEdCore::onBtnDynamicHelp()
|
|||
if (!live_help_floater)
|
||||
{
|
||||
live_help_floater = new LLFloater(LLSD());
|
||||
LLUICtrlFactory::getInstance()->buildFloater(live_help_floater, "floater_lsl_guide.xml", NULL);
|
||||
LLFloater::buildFloater(live_help_floater, "floater_lsl_guide.xml", NULL);
|
||||
LLFloater* parent = dynamic_cast<LLFloater*>(getParent());
|
||||
llassert(parent);
|
||||
if (parent)
|
||||
|
|
@ -948,7 +948,6 @@ LLPreviewLSL::LLPreviewLSL(const LLSD& key )
|
|||
mPendingUploads(0)
|
||||
{
|
||||
mFactoryMap["script panel"] = LLCallbackMap(LLPreviewLSL::createScriptEdPanel, this);
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this,"floater_script_preview.xml", FALSE);
|
||||
}
|
||||
|
||||
// virtual
|
||||
|
|
@ -1423,7 +1422,6 @@ LLLiveLSLEditor::LLLiveLSLEditor(const LLSD& key) :
|
|||
mIsNew(false)
|
||||
{
|
||||
mFactoryMap["script ed panel"] = LLCallbackMap(LLLiveLSLEditor::createScriptEdPanel, this);
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this,"floater_live_lsleditor.xml", FALSE);
|
||||
}
|
||||
|
||||
BOOL LLLiveLSLEditor::postBuild()
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ const F32 SOUND_GAIN = 1.0f;
|
|||
LLPreviewSound::LLPreviewSound(const LLSD& key)
|
||||
: LLPreview( key )
|
||||
{
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this,"floater_preview_sound.xml", FALSE);
|
||||
}
|
||||
|
||||
// virtual
|
||||
|
|
|
|||
|
|
@ -83,7 +83,6 @@ LLPreviewTexture::LLPreviewTexture(const LLSD& key)
|
|||
{
|
||||
mPreviewToSave = TRUE;
|
||||
}
|
||||
//Called from floater reg: LLUICtrlFactory::getInstance()->buildFloater(this, "floater_preview_texture.xml", FALSE);
|
||||
}
|
||||
|
||||
LLPreviewTexture::~LLPreviewTexture()
|
||||
|
|
|
|||
|
|
@ -94,8 +94,6 @@ LLSidepanelItemInfo::LLSidepanelItemInfo()
|
|||
: mItemID(LLUUID::null)
|
||||
{
|
||||
mPropertiesObserver = new LLItemPropertiesObserver(this);
|
||||
|
||||
//LLUICtrlFactory::getInstance()->buildFloater(this,"floater_inventory_item_properties.xml");
|
||||
}
|
||||
|
||||
// Destroys the object
|
||||
|
|
|
|||
|
|
@ -203,7 +203,6 @@ LLFloaterTexturePicker::LLFloaterTexturePicker(
|
|||
mSelectedItemPinned( FALSE )
|
||||
{
|
||||
mCanApplyImmediately = can_apply_immediately;
|
||||
LLUICtrlFactory::getInstance()->buildFloater(this,"floater_texture_ctrl.xml",NULL);
|
||||
setCanMinimize(FALSE);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ LLToast::LLToast(const LLToast::Params& p)
|
|||
{
|
||||
mTimer.reset(new LLToastLifeTimer(this, p.lifetime_secs));
|
||||
|
||||
LLUICtrlFactory::getInstance()->buildFloater(this, "panel_toast.xml", NULL);
|
||||
buildFloater(this, "panel_toast.xml", NULL);
|
||||
|
||||
setCanDrag(FALSE);
|
||||
|
||||
|
|
|
|||
|
|
@ -7255,7 +7255,7 @@ void handle_load_from_xml(void*)
|
|||
{
|
||||
std::string filename = picker.getFirstFile();
|
||||
LLFloater* floater = new LLFloater(LLSD());
|
||||
LLUICtrlFactory::getInstance()->buildFloater(floater, filename, NULL);
|
||||
LLFloater::buildFloater(floater, filename, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue