merge
commit
610236174b
|
|
@ -39,8 +39,9 @@ snowstorm_viewer-development.email = viewer-development-builds@lists.secondlife.
|
|||
# ========================================
|
||||
# Viewer Beta
|
||||
# ========================================
|
||||
viewer-beta.viewer_channel = "Second Life Beta"
|
||||
viewer-beta.login_channel = "Second Life Beta"
|
||||
viewer-beta.viewer_channel = "Second Life Beta Viewer"
|
||||
viewer-beta.login_channel = "Second Life Beta Viewer"
|
||||
viewer-beta.build_debug_release_separately = true
|
||||
viewer-beta.build_viewer_update_version_manager = true
|
||||
|
||||
# ========================================
|
||||
|
|
@ -48,6 +49,7 @@ viewer-beta.build_viewer_update_version_manager = true
|
|||
# ========================================
|
||||
viewer-release.viewer_channel = "Second Life Release"
|
||||
viewer-release.login_channel = "Second Life Release"
|
||||
viewer-release.build_debug_release_separately = true
|
||||
viewer-release.build_viewer_update_version_manager = true
|
||||
|
||||
# ========================================
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
// Check for a change in this process's frontmost window.
|
||||
if(FrontWindow() != front_window)
|
||||
if(GetFrontWindowOfClass(kAllWindowClasses, true) != front_window)
|
||||
{
|
||||
ProcessSerialNumber self = { 0, kCurrentProcess };
|
||||
ProcessSerialNumber parent = { 0, kNoProcess };
|
||||
|
|
@ -307,7 +307,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
if((FrontWindow() != NULL) && (front_window == NULL))
|
||||
if((GetFrontWindowOfClass(kAllWindowClasses, true) != NULL) && (front_window == NULL))
|
||||
{
|
||||
// Opening the first window
|
||||
|
||||
|
|
@ -319,7 +319,7 @@ int main(int argc, char **argv)
|
|||
|
||||
if(layer_group)
|
||||
{
|
||||
SetWindowGroup(FrontWindow(), layer_group);
|
||||
SetWindowGroup(GetFrontWindowOfClass(kAllWindowClasses, true), layer_group);
|
||||
}
|
||||
|
||||
if(parent_is_front_process)
|
||||
|
|
@ -328,9 +328,9 @@ int main(int argc, char **argv)
|
|||
(void) SetFrontProcess( &self );
|
||||
}
|
||||
|
||||
ActivateWindow(FrontWindow(), true);
|
||||
ActivateWindow(GetFrontWindowOfClass(kAllWindowClasses, true), true);
|
||||
}
|
||||
else if((FrontWindow() == NULL) && (front_window != NULL))
|
||||
else if((GetFrontWindowOfClass(kAllWindowClasses, true) == NULL) && (front_window != NULL))
|
||||
{
|
||||
// Closing the last window
|
||||
|
||||
|
|
@ -350,7 +350,7 @@ int main(int argc, char **argv)
|
|||
window_hack_state = 2;
|
||||
}
|
||||
|
||||
front_window = FrontWindow();
|
||||
front_window = GetFrontWindowOfClass(kAllWindowClasses, true);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ static bool isGroupUIVisible()
|
|||
{
|
||||
static LLPanel* panel = 0;
|
||||
if(!panel)
|
||||
panel = LLSideTray::getInstance()->findChild<LLPanel>("panel_group_info_sidetray");
|
||||
panel = LLSideTray::getInstance()->getPanel("panel_group_info_sidetray");
|
||||
if(!panel)
|
||||
return false;
|
||||
return panel->isInVisibleChain();
|
||||
|
|
|
|||
|
|
@ -597,7 +597,7 @@ void LLPanelGroup::showNotice(const std::string& subject,
|
|||
//static
|
||||
void LLPanelGroup::refreshCreatedGroup(const LLUUID& group_id)
|
||||
{
|
||||
LLPanelGroup* panel = LLSideTray::getInstance()->findChild<LLPanelGroup>("panel_group_info_sidetray");
|
||||
LLPanelGroup* panel = LLSideTray::getInstance()->getPanel<LLPanelGroup>("panel_group_info_sidetray");
|
||||
if(!panel)
|
||||
return;
|
||||
panel->setGroupID(group_id);
|
||||
|
|
@ -612,7 +612,7 @@ void LLPanelGroup::showNotice(const std::string& subject,
|
|||
const std::string& inventory_name,
|
||||
LLOfferInfo* inventory_offer)
|
||||
{
|
||||
LLPanelGroup* panel = LLSideTray::getInstance()->findChild<LLPanelGroup>("panel_group_info_sidetray");
|
||||
LLPanelGroup* panel = LLSideTray::getInstance()->getPanel<LLPanelGroup>("panel_group_info_sidetray");
|
||||
if(!panel)
|
||||
return;
|
||||
|
||||
|
|
|
|||
|
|
@ -1245,7 +1245,12 @@ void LLLandmarksPanel::doProcessParcelInfo(LLLandmark* landmark,
|
|||
landmark->getGlobalPos(landmark_global_pos);
|
||||
|
||||
// let's toggle pick panel into panel places
|
||||
LLPanel* panel_places = LLSideTray::getInstance()->getChild<LLPanel>("panel_places");//-> sidebar_places
|
||||
LLPanel* panel_places = LLSideTray::getInstance()->getPanel("panel_places");//-> sidebar_places
|
||||
if (!panel_places)
|
||||
{
|
||||
llassert(NULL != panel_places);
|
||||
return;
|
||||
}
|
||||
panel_places->addChild(panel_pick);
|
||||
LLRect paren_rect(panel_places->getRect());
|
||||
panel_pick->reshape(paren_rect.getWidth(),paren_rect.getHeight(), TRUE);
|
||||
|
|
|
|||
|
|
@ -109,6 +109,22 @@ public:
|
|||
LLPanel* getPanel (const std::string& panel_name);
|
||||
LLPanel* getActivePanel ();
|
||||
bool isPanelActive (const std::string& panel_name);
|
||||
|
||||
/*
|
||||
* get the panel of given type T (don't show it or do anything else with it)
|
||||
*/
|
||||
template <typename T>
|
||||
T* getPanel(const std::string& panel_name)
|
||||
{
|
||||
T* panel = dynamic_cast<T*>(getPanel(panel_name));
|
||||
if (!panel)
|
||||
{
|
||||
llwarns << "Child named \"" << panel_name << "\" of type " << typeid(T*).name() << " not found" << llendl;
|
||||
return NULL;
|
||||
}
|
||||
return panel;
|
||||
}
|
||||
|
||||
/*
|
||||
* get currently active tab
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -217,8 +217,6 @@ BOOL LLStatusBar::postBuild()
|
|||
mSGPacketLoss->mPerSec = FALSE;
|
||||
addChild(mSGPacketLoss);
|
||||
|
||||
getChild<LLTextBox>("stat_btn")->setClickedCallback(onClickStatGraph);
|
||||
|
||||
mPanelVolumePulldown = new LLPanelVolumePulldown();
|
||||
addChild(mPanelVolumePulldown);
|
||||
mPanelVolumePulldown->setFollows(FOLLOWS_TOP|FOLLOWS_RIGHT);
|
||||
|
|
@ -516,12 +514,6 @@ void LLStatusBar::onClickMediaToggle(void* data)
|
|||
LLViewerMedia::setAllMediaEnabled(enable);
|
||||
}
|
||||
|
||||
// static
|
||||
void LLStatusBar::onClickStatGraph(void* data)
|
||||
{
|
||||
LLFloaterReg::showInstance("lagmeter");
|
||||
}
|
||||
|
||||
BOOL can_afford_transaction(S32 cost)
|
||||
{
|
||||
return((cost <= 0)||((gStatusBar) && (gStatusBar->getBalance() >=cost)));
|
||||
|
|
|
|||
|
|
@ -92,7 +92,6 @@ private:
|
|||
void onMouseEnterVolume();
|
||||
void onMouseEnterNearbyMedia();
|
||||
void onClickScreen(S32 x, S32 y);
|
||||
static void onClickStatGraph(void* data);
|
||||
|
||||
static void onClickMediaToggle(void* data);
|
||||
|
||||
|
|
|
|||
|
|
@ -6453,7 +6453,7 @@ void process_covenant_reply(LLMessageSystem* msg, void**)
|
|||
LLPanelLandCovenant::updateEstateOwnerName(owner_name);
|
||||
LLFloaterBuyLand::updateEstateOwnerName(owner_name);
|
||||
|
||||
LLPanelPlaceProfile* panel = LLSideTray::getInstance()->findChild<LLPanelPlaceProfile>("panel_place_profile");
|
||||
LLPanelPlaceProfile* panel = LLSideTray::getInstance()->getPanel<LLPanelPlaceProfile>("panel_place_profile");
|
||||
if (panel)
|
||||
{
|
||||
panel->updateEstateName(estate_name);
|
||||
|
|
@ -6587,7 +6587,7 @@ void onCovenantLoadComplete(LLVFS *vfs,
|
|||
LLPanelLandCovenant::updateCovenantText(covenant_text);
|
||||
LLFloaterBuyLand::updateCovenantText(covenant_text, asset_uuid);
|
||||
|
||||
LLPanelPlaceProfile* panel = LLSideTray::getInstance()->findChild<LLPanelPlaceProfile>("panel_place_profile");
|
||||
LLPanelPlaceProfile* panel = LLSideTray::getInstance()->getPanel<LLPanelPlaceProfile>("panel_place_profile");
|
||||
if (panel)
|
||||
{
|
||||
panel->updateCovenantText(covenant_text);
|
||||
|
|
|
|||
|
|
@ -6089,9 +6089,9 @@ void LLVOAvatar::updateMeshTextures()
|
|||
// use the last-known good baked texture until it finish the first
|
||||
// render of the new layerset.
|
||||
|
||||
const BOOL layerset_invalid = !mBakedTextureDatas[i].mTexLayerSet
|
||||
|| !mBakedTextureDatas[i].mTexLayerSet->getComposite()->isInitialized()
|
||||
|| !mBakedTextureDatas[i].mTexLayerSet->isLocalTextureDataAvailable();
|
||||
const BOOL layerset_invalid = mBakedTextureDatas[i].mTexLayerSet
|
||||
&& ( !mBakedTextureDatas[i].mTexLayerSet->getComposite()->isInitialized()
|
||||
|| !mBakedTextureDatas[i].mTexLayerSet->isLocalTextureDataAvailable() );
|
||||
|
||||
use_lkg_baked_layer[i] = (!is_layer_baked[i]
|
||||
&& (mBakedTextureDatas[i].mLastTextureIndex != IMG_DEFAULT_AVATAR)
|
||||
|
|
|
|||
|
|
@ -118,13 +118,4 @@
|
|||
name="volume_btn"
|
||||
tool_tip="Global Volume Control"
|
||||
width="16" />
|
||||
<text
|
||||
follows="right|top"
|
||||
halign="center"
|
||||
height="12"
|
||||
layout="topleft"
|
||||
left_delta="0"
|
||||
name="stat_btn"
|
||||
top_delta="0"
|
||||
width="20"/>
|
||||
</panel>
|
||||
|
|
|
|||
Loading…
Reference in New Issue