diff options
author | Paul ProductEngine <pguslisty@productengine.com> | 2011-06-29 17:22:18 +0300 |
---|---|---|
committer | Paul ProductEngine <pguslisty@productengine.com> | 2011-06-29 17:22:18 +0300 |
commit | fc6f0f31be53d6adbc8e364ffdd4119943312578 (patch) | |
tree | 7f4d89634cf731b1a843fa699c2731026d63ca80 /indra/newview/llfloatermodelwizard.cpp | |
parent | 25fa0e79c7832e2e3b1aaa8079396098c8aa8fe8 (diff) |
SH-1726 FIXED (Viewer modifications to advanced model upload to accommodate upload fee & prim equivalency)
- Changed XUI according to the spec
- Added requesting upload permission, physics weight and fee weight
- Split requesting fee and uploading model steps in mesh repository
Diffstat (limited to 'indra/newview/llfloatermodelwizard.cpp')
-rw-r--r-- | indra/newview/llfloatermodelwizard.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/indra/newview/llfloatermodelwizard.cpp b/indra/newview/llfloatermodelwizard.cpp index 97b54c4c74..3c0ce96864 100644 --- a/indra/newview/llfloatermodelwizard.cpp +++ b/indra/newview/llfloatermodelwizard.cpp @@ -52,7 +52,7 @@ static const std::string stateNames[]={ static void swap_controls(LLUICtrl* first_ctrl, LLUICtrl* second_ctrl, bool first_ctr_visible); LLFloaterModelWizard::LLFloaterModelWizard(const LLSD& key) - : LLFloater(key) + : LLFloaterModelUploadBase(key) ,mRecalculateGeometryBtn(NULL) ,mRecalculatePhysicsBtn(NULL) ,mRecalculatingPhysicsBtn(NULL) @@ -396,6 +396,13 @@ BOOL LLFloaterModelWizard::handleScrollWheel(S32 x, S32 y, S32 clicks) return TRUE; } + +/*virtual*/ +void LLFloaterModelWizard::onOpen(const LLSD& key) +{ + requestAgentUploadPermissions(); +} + void LLFloaterModelWizard::initDecompControls() { LLSD key; @@ -453,6 +460,15 @@ void LLFloaterModelWizard::initDecompControls() mDecompParams["Simplify Method"] = 0; // set it to retain % } +void LLFloaterModelWizard::onPermReceived(const LLSD& result) +{ +} + +void LLFloaterModelWizard::setPermErrorStatus(U32 status, const std::string& reason) +{ + llwarns << "LLFloaterModelWizard::setPermErrors(" << status << " : " << reason << ")" << llendl; +} + //static void LLFloaterModelWizard::executePhysicsStage(std::string stage_name) { @@ -623,7 +639,7 @@ void LLFloaterModelWizard::onUpload() mModelPreview->rebuildUploadData(); gMeshRepo.uploadModel(mModelPreview->mUploadData, mModelPreview->mPreviewScale, - true, false, false); + true, false, false, mUploadModelUrl, true); setState(UPLOAD); |