summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersnapshot.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-25 20:02:12 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-25 20:02:32 +0200
commit693d9dc3bd608a5777dc8f6ac5f73b3ab796d392 (patch)
tree222b36d46323afb235139ce73ddbd13ad75e4494 /indra/newview/llfloatersnapshot.cpp
parent098c4c0371f63b2b827131a13bfc623b8cb73f25 (diff)
parent0a873cd95547f003878c6d00d0883ff792f4a865 (diff)
Merge master into DRTVWR-486
Diffstat (limited to 'indra/newview/llfloatersnapshot.cpp')
-rw-r--r--indra/newview/llfloatersnapshot.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp
index ef7a9fd536..83212230e5 100644
--- a/indra/newview/llfloatersnapshot.cpp
+++ b/indra/newview/llfloatersnapshot.cpp
@@ -179,6 +179,10 @@ void LLFloaterSnapshotBase::ImplBase::updateLayout(LLFloaterSnapshotBase* floate
thumbnail_placeholder->reshape(panel_width, thumbnail_placeholder->getRect().getHeight());
floaterp->getChild<LLUICtrl>("image_res_text")->setVisible(mAdvanced);
floaterp->getChild<LLUICtrl>("file_size_label")->setVisible(mAdvanced);
+ if (floaterp->hasChild("360_label", TRUE))
+ {
+ floaterp->getChild<LLUICtrl>("360_label")->setVisible(mAdvanced);
+ }
if(!floaterp->isMinimized())
{
floaterp->reshape(floater_width, floaterp->getRect().getHeight());
@@ -992,6 +996,10 @@ BOOL LLFloaterSnapshot::postBuild()
getChild<LLButton>("retract_btn")->setCommitCallback(boost::bind(&LLFloaterSnapshot::onExtendFloater, this));
getChild<LLButton>("extend_btn")->setCommitCallback(boost::bind(&LLFloaterSnapshot::onExtendFloater, this));
+ getChild<LLTextBox>("360_label")->setSoundFlags(LLView::MOUSE_UP);
+ getChild<LLTextBox>("360_label")->setShowCursorHand(false);
+ getChild<LLTextBox>("360_label")->setClickedCallback(boost::bind(&LLFloaterSnapshot::on360Snapshot, this));
+
// Filters
LLComboBox* filterbox = getChild<LLComboBox>("filters_combobox");
std::vector<std::string> filter_list = LLImageFiltersManager::getInstance()->getFiltersList();
@@ -1118,6 +1126,12 @@ void LLFloaterSnapshot::onExtendFloater()
impl->setAdvanced(gSavedSettings.getBOOL("AdvanceSnapshot"));
}
+void LLFloaterSnapshot::on360Snapshot()
+{
+ LLFloaterReg::showInstance("360capture");
+ closeFloater();
+}
+
//virtual
void LLFloaterSnapshotBase::onClose(bool app_quitting)
{