From 41a0681768846517d00bbf032f9853477d2176cd Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Wed, 27 Mar 2013 02:18:11 +0100 Subject: [PATCH] Revert "Snapshot floater aesthetics" This reverts commit 63dcd7ba32b374b7e6480b1565df145470c1b35b. That commit is nonsense and only shows that Liru has no clue what he is doing when it comes to the snapshot stuff :/. And no, I wasn't even AWARE he made this commit, I was just happily exploring and wanted to make a few snapshots when I suddenly noticed that several things were BROKEN: the aspect that the fullscreen preview was shown with was wrong, and when I wanted to limit the aspect of my feed upload that wasn't possible anymore ?!?!?? WTF Please don't screw up the hard work of others without at LEAST first consulting them. --- indra/newview/llfloatersnapshot.cpp | 23 +-- .../default/xui/en-us/floater_snapshot.xml | 143 +++++++++--------- 2 files changed, 77 insertions(+), 89 deletions(-) diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp index d4830adbf..50f7044cb 100644 --- a/indra/newview/llfloatersnapshot.cpp +++ b/indra/newview/llfloatersnapshot.cpp @@ -295,7 +295,6 @@ public: mAvatarPauseHandles.clear(); mQualityMouseUpConnection.disconnect(); } - static void onClickDiscard(void* data); static void onClickKeep(void* data); static void onCommitSave(LLUICtrl* ctrl, void* data); static void onClickNewSnapshot(void* data); @@ -1852,7 +1851,7 @@ void LLFloaterSnapshot::Impl::updateControls(LLFloaterSnapshot* floater, bool de floater->childSetVisible("keep_aspect", is_advance); floater->childSetVisible("type_label3", is_advance); floater->childSetVisible("format_label", is_advance && is_local); - floater->childSetVisible("local_format_combo", is_advance && is_local); + floater->childSetVisible("local_format_combo", is_local); floater->childSetVisible("layer_types", is_advance); floater->childSetVisible("layer_type_label", is_advance); floater->childSetVisible("aspect_one_label", is_advance); @@ -1864,7 +1863,7 @@ void LLFloaterSnapshot::Impl::updateControls(LLFloaterSnapshot* floater, bool de floater->childSetVisible("keep_open_check", is_advance); floater->childSetVisible("freeze_time_check", is_advance); floater->childSetVisible("auto_snapshot_check", is_advance); - floater->childSetVisible("image_quality_slider", is_advance && show_slider); + floater->childSetVisible("image_quality_slider", show_slider); floater->childSetVisible("temp_check", is_advance); BOOL got_bytes = previewp && previewp->getDataSize() > 0; @@ -1932,23 +1931,6 @@ void LLFloaterSnapshot::Impl::checkAutoSnapshot(LLSnapshotLivePreview* previewp, } } -// static -void LLFloaterSnapshot::Impl::onClickDiscard(void* data) -{ - LLFloaterSnapshot* view = static_cast(data); - if (gSavedSettings.getBOOL("FreezeTime")) - { - LLSnapshotLivePreview* previewp = view->impl.getPreviewView(); - if (previewp && previewp->getShowFreezeFrameSnapshot()) - previewp->showFreezeFrameSnapshot(false); - view->impl.freezeTime(false); - } - else - { - view->close(); - } -} - // static void LLFloaterSnapshot::Impl::onCommitFeedResolution(LLUICtrl* ctrl, void* data) { @@ -2942,7 +2924,6 @@ BOOL LLFloaterSnapshot::postBuild() childSetAction("send_btn", Impl::onClickKeep, this); childSetAction("feed_btn", Impl::onClickKeep, this); childSetCommitCallback("save_btn", Impl::onCommitSave, this); - childSetAction("discard_btn", Impl::onClickDiscard, this); childSetCommitCallback("image_quality_slider", Impl::onCommitQuality, this); childSetValue("image_quality_slider", gSavedSettings.getS32("SnapshotQuality")); diff --git a/indra/newview/skins/default/xui/en-us/floater_snapshot.xml b/indra/newview/skins/default/xui/en-us/floater_snapshot.xml index f8ecc510a..cb9d8cfda 100644 --- a/indra/newview/skins/default/xui/en-us/floater_snapshot.xml +++ b/indra/newview/skins/default/xui/en-us/floater_snapshot.xml @@ -1,72 +1,91 @@ - + File size: [SIZE] KB - + Target - - Post to profile feed + Post to my.secondlife.com feed Send via email - Save to inventory ([UPLOADFEE]) + Save to my inventory ([UPLOADFEE]) - Save to hard drive + Save to my hard drive -