Merge #9 with lgpl.

meow-7.2.2
Nicky 2017-02-06 12:32:08 +01:00
commit 34f01e38bc
8 changed files with 56 additions and 17 deletions

View File

@ -558,3 +558,4 @@ e9d350764dfbf5a46229e627547ef5c1b1eeef00 4.0.2-release
b280a1c797a3891e68dbc237e73de9cf19f426e9 4.1.1-release
bfbba2244320dc2ae47758cd7edd8fa3b67dc756 4.1.2-release
b41e1e7c7876f7656c505f552b5888b4e478f92b 5.0.0-release
c9ce2295012995e3cf5c57bcffcb4870b94c649f 5.0.1-release

View File

@ -1823,9 +1823,9 @@
<key>archive</key>
<map>
<key>hash</key>
<string>e5a811fa7c9e5641869b58cd58a3e1c6</string>
<string>88ab0fb55e82f8cd3a75ee636def785a</string>
<key>url</key>
<string>file:///opt/firestorm/kdu-7.8.0-darwin-201604022336-r52.tar.bz2</string>
<string>file:///opt/firestorm/kdu-7.9.0-darwin-201702032052-r58.tar.bz2</string>
</map>
<key>name</key>
<string>darwin</string>

View File

@ -77,7 +77,7 @@ private:
// not always equal &typeid(A) in some other part. Use special comparator.
struct type_info_ptr_comp
{
bool operator()(const std::type_info* lhs, const std::type_info* rhs)
bool operator()(const std::type_info* lhs, const std::type_info* rhs) const
{
return lhs->before(*rhs);
}

View File

@ -14449,6 +14449,17 @@ Change of this parameter will affect the layout of buttons in notification toast
<key>Value</key>
<integer>75</integer>
</map>
<key>AbuseReportScreenshotDelay</key>
<map>
<key>Comment</key>
<string>Time delay before taking screenshot to avoid UI artifacts.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>F32</string>
<key>Value</key>
<real>0.3</real>
</map>
<key>SpeedTest</key>
<map>
<key>Comment</key>

View File

@ -142,7 +142,6 @@ public:
bool getState() { return mLightshareState; };
private:
friend class LLSingleton<FSLightshare>;
static void processWater(LightsharePacket* ls_packet);
static void processSky(LightsharePacket* ls_packet);
void setState(bool has_lightshare);

View File

@ -2105,17 +2105,18 @@ LLVector3 LLAgentCamera::getCameraOffsetInitial()
//-----------------------------------------------------------------------------
void LLAgentCamera::handleScrollWheel(S32 clicks)
{
// <FS:PP> Option to disable mouse wheel for camera zooming in/out
static LLCachedControl<bool> FSDisableMouseWheelCameraZoom(gSavedSettings, "FSDisableMouseWheelCameraZoom");
if(FSDisableMouseWheelCameraZoom)
{
return;
}
// </FS:PP>
if (mCameraMode == CAMERA_MODE_FOLLOW && getFocusOnAvatar())
{
// <FS:Ansariel> Option to disable mouse wheel for camera zooming in/out
if (FSDisableMouseWheelCameraZoom)
{
return;
}
// </FS:Ansariel>
if (!mFollowCam.getPositionLocked()) // not if the followCam position is locked in place
{
mFollowCam.zoom(clicks);
@ -2141,6 +2142,12 @@ void LLAgentCamera::handleScrollWheel(S32 clicks)
F32 zoom_factor = (F32)pow(0.8, -clicks);
cameraZoomIn(zoom_factor);
}
// <FS:Ansariel> Option to disable mouse wheel for camera zooming in/out
else if (FSDisableMouseWheelCameraZoom)
{
return;
}
// </FS:Ansariel>
else if (mFocusOnAvatar && (mCameraMode == CAMERA_MODE_THIRD_PERSON))
{
// <FS:Zi> Camera focus and offset with CTRL/SHIFT + Scroll wheel

View File

@ -35,6 +35,7 @@
#include "llassetstorage.h"
#include "llavatarnamecache.h"
#include "llcachename.h"
#include "llcallbacklist.h"
#include "llcheckboxctrl.h"
#include "llfontgl.h"
#include "llimagebmp.h"
@ -211,7 +212,7 @@ BOOL LLFloaterReporter::postBuild()
// grab the user's name
std::string reporter = LLSLURL("agent", gAgent.getID(), "inspect").getSLURLString();
getChild<LLUICtrl>("reporter_field")->setValue(reporter);
// <FS:Ansariel> FIRE-15218: Refresh screenshot button
getChild<LLButton>("refresh_screenshot")->setCommitCallback(boost::bind(&LLFloaterReporter::onUpdateScreenshot, this));
@ -849,8 +850,12 @@ void LLFloaterReporter::takeScreenshot(bool use_prev_screenshot)
}
}
void LLFloaterReporter::onOpen(const LLSD& key)
// <FS:Ansariel> Refresh screenshot button
//void LLFloaterReporter::takeNewSnapshot()
void LLFloaterReporter::takeNewSnapshot(bool refresh)
// </FS:Ansariel>
{
childSetEnabled("send_btn", true);
mImageRaw = new LLImageRaw;
const S32 IMAGE_WIDTH = 1024;
const S32 IMAGE_HEIGHT = 768;
@ -865,7 +870,10 @@ void LLFloaterReporter::onOpen(const LLSD& key)
}
setVisible(TRUE);
if(gSavedPerAccountSettings.getBOOL("PreviousScreenshotForReport"))
// <FS:Ansariel> Refresh screenshot button
//if(gSavedPerAccountSettings.getBOOL("PreviousScreenshotForReport"))
if(gSavedPerAccountSettings.getBOOL("PreviousScreenshotForReport") && !refresh)
// </FS:Ansariel>
{
std::string screenshot_filename(gDirUtilp->getLindenUserDir() + gDirUtilp->getDirDelimiter() + SCREEN_PREV_FILENAME);
mPrevImageRaw = new LLImageRaw;
@ -879,10 +887,20 @@ void LLFloaterReporter::onOpen(const LLSD& key)
}
}
}
takeScreenshot();
}
void LLFloaterReporter::onOpen(const LLSD& key)
{
childSetEnabled("send_btn", false);
//Time delay to avoid UI artifacts. MAINT-7067
// <FS:Ansariel> Refresh screenshot button
//doAfterInterval(boost::bind(&LLFloaterReporter::takeNewSnapshot,this), gSavedSettings.getF32("AbuseReportScreenshotDelay"));
doAfterInterval(boost::bind(&LLFloaterReporter::takeNewSnapshot,this, false), gSavedSettings.getF32("AbuseReportScreenshotDelay"));
// </FS:Ansariel>
}
void LLFloaterReporter::onLoadScreenshotDialog(const LLSD& notification, const LLSD& response)
{
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
@ -958,9 +976,7 @@ void LLFloaterReporter::onClose(bool app_quitting)
// <FS:Ansariel> FIRE-15368: Don't include floater in screenshot update
void LLFloaterReporter::onUpdateScreenshot()
{
setVisible(FALSE);
takeScreenshot();
setVisible(TRUE);
doAfterInterval(boost::bind(&LLFloaterReporter::takeNewSnapshot,this, true), gSavedSettings.getF32("AbuseReportScreenshotDelay"));
}
// </FS:Ansariel>

View File

@ -107,6 +107,11 @@ public:
void onLoadScreenshotDialog(const LLSD& notification, const LLSD& response);
// <FS:Ansariel> Refresh screenshot button
//void takeNewSnapshot();
void takeNewSnapshot(bool refresh);
// </FS:Ansariel>
private:
static void show(const LLUUID& object_id, const std::string& avatar_name = LLStringUtil::null, const LLUUID& experience_id = LLUUID::null);