summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelsnapshot.cpp
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-11-03 15:39:12 +0200
committerVadim ProductEngine <vsavchuk@productengine.com>2011-11-03 15:39:12 +0200
commitce05b9f7e5347c28780b399efa70992cb7bf5229 (patch)
treec1a420a8d8a68661f9b10db7b188ac91ed70c61c /indra/newview/llpanelsnapshot.cpp
parent33b17af15c6fbf0762e99342042a20d0f89f732f (diff)
STORM-1580 WIP Implemented new "Working" and "Success/Failure" screens.
Diffstat (limited to 'indra/newview/llpanelsnapshot.cpp')
-rw-r--r--indra/newview/llpanelsnapshot.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/indra/newview/llpanelsnapshot.cpp b/indra/newview/llpanelsnapshot.cpp
index e89e62c750..893f1ca43c 100644
--- a/indra/newview/llpanelsnapshot.cpp
+++ b/indra/newview/llpanelsnapshot.cpp
@@ -35,6 +35,19 @@
// newview
#include "llsidetraypanelcontainer.h"
+// virtual
+BOOL LLPanelSnapshot::postBuild()
+{
+ updateControls(LLSD());
+ return TRUE;
+}
+
+// virtual
+void LLPanelSnapshot::onOpen(const LLSD& key)
+{
+ setCtrlsEnabled(true);
+}
+
LLFloaterSnapshot::ESnapshotFormat LLPanelSnapshot::getImageFormat() const
{
return LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG;
@@ -107,3 +120,18 @@ void LLPanelSnapshot::updateImageQualityLevel()
getChild<LLTextBox>("image_quality_level")->setTextArg("[QLVL]", quality_lvl);
}
+
+void LLPanelSnapshot::goBack()
+{
+ LLSideTrayPanelContainer* parent = getParentContainer();
+ if (parent)
+ {
+ parent->openPreviousPanel();
+ }
+}
+
+void LLPanelSnapshot::cancel()
+{
+ goBack();
+ LLFloaterSnapshot::getInstance()->notify(LLSD().with("set-ready", true));
+}