Merge downstream code
commit
3720ed0613
|
|
@ -298,6 +298,11 @@ CreateShortCut "$INSTDIR\$INSTSHORTCUT.lnk" \
|
|||
CreateShortCut "$INSTDIR\Uninstall $INSTSHORTCUT.lnk" \
|
||||
'"$INSTDIR\uninst.exe"' ''
|
||||
|
||||
# Create *.bat file to specify lang params on first run from installer - see MAINT-5259
|
||||
FileOpen $9 "$INSTDIR\autorun.bat" w
|
||||
FileWrite $9 'start "$INSTDIR\$INSTEXE" "$INSTDIR\$INSTEXE" $SHORTCUT_LANG_PARAM$\r$\n'
|
||||
FileClose $9
|
||||
|
||||
# Write registry
|
||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "" "$INSTDIR"
|
||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\$INSTPROG" "Version" "${VERSION_LONG}"
|
||||
|
|
@ -682,7 +687,7 @@ Call CheckWindowsServPack # Warn if not on the latest SP before asking to launc
|
|||
Push $R0 # Option value, unused
|
||||
StrCmp $SKIP_AUTORUN "true" +2;
|
||||
# Assumes SetOutPath $INSTDIR
|
||||
Exec '"$WINDIR\explorer.exe" "$INSTDIR\$INSTEXE"'
|
||||
Exec '"$WINDIR\explorer.exe" "$INSTDIR\autorun.bat"'
|
||||
Pop $R0
|
||||
|
||||
FunctionEnd
|
||||
|
|
|
|||
|
|
@ -3092,8 +3092,8 @@ void LLAppViewer::initUpdater()
|
|||
U32 check_period = gSavedSettings.getU32("UpdaterServiceCheckPeriod");
|
||||
bool willing_to_test;
|
||||
LL_DEBUGS("UpdaterService") << "channel " << channel << LL_ENDL;
|
||||
static const boost::regex is_test_channel("\\bTest$");
|
||||
if (boost::regex_search(channel, is_test_channel))
|
||||
|
||||
if (LLVersionInfo::TEST_VIEWER == LLVersionInfo::getViewerMaturity())
|
||||
{
|
||||
LL_INFOS("UpdaterService") << "Test build: overriding willing_to_test by sending testno" << LL_ENDL;
|
||||
willing_to_test = false;
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ public:
|
|||
|
||||
/*virtual*/ void onOpen(const LLSD& notification_id);
|
||||
/*virtual*/ BOOL handleToolTip(S32 x, S32 y, MASK mask);
|
||||
/*virtual*/ void removeChild(LLView* child);
|
||||
private:
|
||||
void onToastDestroy(LLToast * toast);
|
||||
|
||||
|
|
@ -98,7 +99,7 @@ void LLInspectToast::onOpen(const LLSD& notification_id)
|
|||
panel->setMouseOpaque(FALSE);
|
||||
if(mPanel != NULL && mPanel->getParent() == this)
|
||||
{
|
||||
removeChild(mPanel);
|
||||
LLInspect::removeChild(mPanel);
|
||||
}
|
||||
addChild(panel);
|
||||
panel->setFocus(TRUE);
|
||||
|
|
@ -121,6 +122,16 @@ BOOL LLInspectToast::handleToolTip(S32 x, S32 y, MASK mask)
|
|||
return LLFloater::handleToolTip(x, y, mask);
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLInspectToast::removeChild(LLView* child)
|
||||
{
|
||||
if (mPanel == child)
|
||||
{
|
||||
mPanel = NULL;
|
||||
}
|
||||
LLInspect::removeChild(child);
|
||||
}
|
||||
|
||||
void LLInspectToast::onToastDestroy(LLToast * toast)
|
||||
{
|
||||
closeFloater(false);
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include "llversioninfo.h"
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
#if ! defined(LL_VIEWER_CHANNEL) \
|
||||
|| ! defined(LL_VIEWER_VERSION_MAJOR) \
|
||||
|
|
@ -131,3 +132,43 @@ void LLVersionInfo::resetChannel(const std::string& channel)
|
|||
sWorkingChannelName = channel;
|
||||
sVersionChannel.clear(); // Reset version and channel string til next use.
|
||||
}
|
||||
|
||||
//static
|
||||
LLVersionInfo::ViewerMaturity LLVersionInfo::getViewerMaturity()
|
||||
{
|
||||
ViewerMaturity maturity;
|
||||
|
||||
std::string channel = getChannel();
|
||||
|
||||
static const boost::regex is_test_channel("\\bTest\\b");
|
||||
static const boost::regex is_beta_channel("\\bBeta\\b");
|
||||
static const boost::regex is_project_channel("\\bProject\\b");
|
||||
static const boost::regex is_release_channel("\\bRelease\\b");
|
||||
|
||||
if (boost::regex_search(channel, is_release_channel))
|
||||
{
|
||||
maturity = RELEASE_VIEWER;
|
||||
}
|
||||
else if (boost::regex_search(channel, is_beta_channel))
|
||||
{
|
||||
maturity = BETA_VIEWER;
|
||||
}
|
||||
else if (boost::regex_search(channel, is_project_channel))
|
||||
{
|
||||
maturity = PROJECT_VIEWER;
|
||||
}
|
||||
else if (boost::regex_search(channel, is_test_channel))
|
||||
{
|
||||
maturity = TEST_VIEWER;
|
||||
}
|
||||
else
|
||||
{
|
||||
LL_WARNS() << "Channel '" << channel
|
||||
<< "' does not follow naming convention, assuming Test"
|
||||
<< LL_ENDL;
|
||||
maturity = TEST_VIEWER;
|
||||
}
|
||||
return maturity;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,15 @@ public:
|
|||
|
||||
/// reset the channel name used by the viewer.
|
||||
static void resetChannel(const std::string& channel);
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TEST_VIEWER,
|
||||
PROJECT_VIEWER,
|
||||
BETA_VIEWER,
|
||||
RELEASE_VIEWER
|
||||
} ViewerMaturity;
|
||||
static ViewerMaturity getViewerMaturity();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -2336,12 +2336,6 @@ void LLViewerWindow::setMenuBackgroundColor(bool god_mode, bool dev_grid)
|
|||
LLSD args;
|
||||
LLColor4 new_bg_color;
|
||||
|
||||
// no l10n problem because channel is always an english string
|
||||
std::string channel = LLVersionInfo::getChannel();
|
||||
static const boost::regex is_beta_channel("\\bBeta\\b");
|
||||
static const boost::regex is_project_channel("\\bProject\\b");
|
||||
static const boost::regex is_test_channel("\\bTest$");
|
||||
|
||||
// god more important than project, proj more important than grid
|
||||
if ( god_mode )
|
||||
{
|
||||
|
|
@ -2354,27 +2348,35 @@ void LLViewerWindow::setMenuBackgroundColor(bool god_mode, bool dev_grid)
|
|||
new_bg_color = LLUIColorTable::instance().getColor( "MenuNonProductionGodBgColor" );
|
||||
}
|
||||
}
|
||||
else if (boost::regex_search(channel, is_beta_channel))
|
||||
{
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuBarBetaBgColor" );
|
||||
}
|
||||
else if (boost::regex_search(channel, is_project_channel))
|
||||
{
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuBarProjectBgColor" );
|
||||
}
|
||||
else if (boost::regex_search(channel, is_test_channel))
|
||||
{
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuBarTestBgColor" );
|
||||
}
|
||||
else if(!LLGridManager::getInstance()->isInProductionGrid())
|
||||
{
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuNonProductionBgColor" );
|
||||
}
|
||||
else
|
||||
{
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuBarBgColor" );
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (LLVersionInfo::getViewerMaturity())
|
||||
{
|
||||
case LLVersionInfo::TEST_VIEWER:
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuBarTestBgColor" );
|
||||
break;
|
||||
|
||||
case LLVersionInfo::PROJECT_VIEWER:
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuBarProjectBgColor" );
|
||||
break;
|
||||
|
||||
case LLVersionInfo::BETA_VIEWER:
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuBarBetaBgColor" );
|
||||
break;
|
||||
|
||||
case LLVersionInfo::RELEASE_VIEWER:
|
||||
if(!LLGridManager::getInstance()->isInProductionGrid())
|
||||
{
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuNonProductionBgColor" );
|
||||
}
|
||||
else
|
||||
{
|
||||
new_bg_color = LLUIColorTable::instance().getColor( "MenuBarBgColor" );
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(gMenuBarView)
|
||||
{
|
||||
gMenuBarView->setBackgroundColor( new_bg_color );
|
||||
|
|
|
|||
Loading…
Reference in New Issue