#include "llviewerprecompiledheaders.h"
#include "llviewermenufile.h"
#include "llagent.h"
#include "llfilepicker.h"
#include "llfloateranimpreview.h"
#include "llfloaterbuycurrency.h"
#include "llfloaterimagepreview.h"
#include "llfloaternamedesc.h"
#include "llfloatersnapshot.h"
#include "llinventorymodel.h"
#include "llresourcedata.h"
#include "llstatusbar.h"
#include "llviewercontrol.h"
#include "llviewerimagelist.h"
#include "lluictrlfactory.h"
#include "llviewermenu.h"
#include "llviewerregion.h"
#include "llviewerstats.h"
#include "llviewerwindow.h"
#include "llappviewer.h"
#include "lluploaddialog.h"
#include "llassetuploadresponders.h"
#include "lleconomy.h"
#include "llhttpclient.h"
#include "llmemberlistener.h"
#include "llsdserialize.h"
#include "llstring.h"
#include "lltransactiontypes.h"
#include "lluuid.h"
#include "vorbisencode.h"
#include <boost/tokenizer.hpp>
Go to the source code of this file.
Classes | |
class | LLFileEnableSaveAs |
class | LLFileEnableUpload |
class | LLFileUploadImage |
class | LLFileUploadSound |
class | LLFileUploadAnim |
class | LLFileUploadBulk |
class | LLFileEnableCloseWindow |
class | LLFileCloseWindow |
class | LLFileEnableCloseAllWindows |
class | LLFileCloseAllWindows |
class | LLFileSaveTexture |
class | LLFileTakeSnapshot |
class | LLFileTakeSnapshotToDisk |
class | LLFileQuit |
Typedefs | |
typedef LLMemberListener< LLView > | view_listener_t |
Functions | |
const char * | upload_pick (void *data) |
void | upload_error (const char *error_message, const char *label, const std::string filename, const LLStringBase< char >::format_map_t args) |
void | handle_upload (void *data) |
void | handle_compress_image (void *) |
void | upload_new_resource (const LLString &src_filename, std::string name, std::string desc, S32 compression_info, LLAssetType::EType destination_folder_type, LLInventoryType::EType inv_type, U32 next_owner_perm, const LLString &display_name, LLAssetStorage::LLStoreAssetCallback callback, void *userdata) |
void | upload_done_callback (const LLUUID &uuid, void *user_data, S32 result, LLExtStat ext_status) |
void | upload_new_resource (const LLTransactionID &tid, LLAssetType::EType asset_type, std::string name, std::string desc, S32 compression_info, LLAssetType::EType destination_folder_type, LLInventoryType::EType inv_type, U32 next_owner_perm, const LLString &display_name, LLAssetStorage::LLStoreAssetCallback callback, void *userdata) |
void | init_menu_file () |
Copyright (c) 2002-2008, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file llviewermenufile.cpp.
typedef LLMemberListener<LLView> view_listener_t |
Definition at line 72 of file llviewermenufile.cpp.
void handle_compress_image | ( | void * | ) |
Definition at line 436 of file llviewermenufile.cpp.
References LLViewerImageList::createUploadFile(), LLFilePicker::FFLOAD_IMAGE, LLFilePicker::getFirstFile(), LLImageBase::getLastError(), LLFilePicker::getMultipleOpenFiles(), LLFilePicker::getNextFile(), IMG_CODEC_TGA, LLFilePicker::instance(), llendl, and llinfos.
Referenced by init_client_menu().
void handle_upload | ( | void * | data | ) |
Definition at line 426 of file llviewermenufile.cpp.
References LLUICtrlFactory::buildFloater(), LLSingleton< LLUICtrlFactory >::getInstance(), and upload_pick().
void init_menu_file | ( | ) |
Definition at line 1008 of file llviewermenufile.cpp.
References gMenuHolder.
Referenced by initialize_menus().
void upload_done_callback | ( | const LLUUID & | uuid, | |
void * | user_data, | |||
S32 | result, | |||
LLExtStat | ext_status | |||
) |
Definition at line 781 of file llviewermenufile.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_AggregatePermInventory, _PREHASH_AggregatePermNextOwner, _PREHASH_Amount, _PREHASH_Description, _PREHASH_DestID, _PREHASH_MoneyData, _PREHASH_MoneyTransferRequest, _PREHASH_SessionID, _PREHASH_SourceID, _PREHASH_TransactionType, LLMessageSystem::addS32Fast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU8(), LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), LLViewerWindow::alertXml(), LLAggregatePermissions::AP_EMPTY, LLAssetType::AT_ANIMATION, LLAssetType::AT_NONE, LLAssetType::AT_SOUND, LLAssetType::AT_TEXTURE, LLFloaterBuyCurrency::buyCurrency(), can_afford_transaction(), create_inventory_item(), DB_INV_ITEM_NAME_STR_LEN, LLStatusBar::debitBalance(), FALSE, LLInventoryModel::findCategoryUUIDForType(), gAgent, LLAssetInfo::getDescription(), LLFilePicker::getDirname(), LLAssetStorage::getErrorString(), LLViewerRegion::getHost(), LLAgent::getID(), LLSingleton< T >::getInstance(), LLAssetInfo::getName(), LLFilePicker::getNextFile(), LLAgent::getRegion(), LLAgent::getSessionID(), gInventory, gMessageSystem, gStatusBar, gViewerWindow, LLFilePicker::instance(), LLInventoryType::IT_NONE, llendl, llformat(), llinfos, llmin(), llwarns, LLInventoryType::lookupHumanReadable(), LLResourceData::mAssetInfo, LLResourceData::mInventoryType, LLResourceData::mNextOwnerPerm, LLUploadDialog::modalUploadFinished(), LLResourceData::mPreferredLocation, LLAssetInfo::mTransactionID, LLAssetInfo::mType, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), NOT_WEARABLE, NULL, LLUUID::null, PERM_MOVE, PERM_NONE, PERM_TRANSFER, LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), S32, LLMessageSystem::sendReliable(), LLStringBase< char >::stripNonprintable(), TRANS_UPLOAD_CHARGE, LLStringBase< char >::trim(), TRUE, and upload_new_resource().
Referenced by upload_new_resource().
void upload_error | ( | const char * | error_message, | |
const char * | label, | |||
const std::string | filename, | |||
const LLStringBase< char >::format_map_t | args | |||
) |
Definition at line 307 of file llviewermenufile.cpp.
References LLViewerWindow::alertXml(), gViewerWindow, LLFilePicker::instance(), lldebugs, llendl, llwarns, and LLFilePicker::reset().
Referenced by upload_new_resource().
void upload_new_resource | ( | const LLTransactionID & | tid, | |
LLAssetType::EType | asset_type, | |||
std::string | name, | |||
std::string | desc, | |||
S32 | compression_info, | |||
LLAssetType::EType | destination_folder_type, | |||
LLInventoryType::EType | inv_type, | |||
U32 | next_owner_perm, | |||
const LLString & | display_name, | |||
LLAssetStorage::LLStoreAssetCallback | callback, | |||
void * | userdata | |||
) |
Definition at line 894 of file llviewermenufile.cpp.
References LLAssetType::AT_ANIMATION, LLAssetType::AT_NONE, LLAssetType::AT_SOUND, LLAssetType::AT_TEXTURE, LLFloaterBuyCurrency::buyCurrency(), LLInventoryType::defaultForAssetType(), FALSE, LLInventoryModel::findCategoryUUIDForType(), gAgent, gAgentID, gAssetStorage, LLStatusBar::getBalance(), LLViewerRegion::getCapability(), LLSingleton< T >::getInstance(), LLSingleton< LLViewerStats >::getInstance(), LLAgent::getRegion(), LLAgent::getSecureSessionID(), gInventory, gStatusBar, LLViewerStats::incStat(), LLInventoryType::IT_NONE, lldebugs, llendl, llinfos, LLInventoryType::lookup(), LLAssetType::lookup(), LLTransactionID::makeAssetID(), LLResourceData::mAssetInfo, LLAssetInfo::mCreatorID, LLResourceData::mInventoryType, LLResourceData::mNextOwnerPerm, LLUploadDialog::modalUploadDialog(), LLResourceData::mPreferredLocation, LLAssetInfo::mTransactionID, LLAssetInfo::mType, LLResourceData::mUserData, LLAssetInfo::mUuid, LLHTTPClient::post(), S32, LLAssetInfo::setDescription(), LLAssetInfo::setName(), LLViewerStats::ST_UPLOAD_ANIM_COUNT, LLViewerStats::ST_UPLOAD_SOUND_COUNT, LLViewerStats::ST_UPLOAD_TEXTURE_COUNT, LLAssetStorage::storeAssetData(), LLStringBase< char >::stripNonprintable(), LLSDSerialize::toXML(), and upload_done_callback().
void upload_new_resource | ( | const LLString & | src_filename, | |
std::string | name, | |||
std::string | desc, | |||
S32 | compression_info, | |||
LLAssetType::EType | destination_folder_type, | |||
LLInventoryType::EType | inv_type, | |||
U32 | next_owner_perm, | |||
const LLString & | display_name, | |||
LLAssetStorage::LLStoreAssetCallback | callback, | |||
void * | userdata | |||
) |
Definition at line 468 of file llviewermenufile.cpp.
References LLViewerWindow::alertXml(), LLAssetType::AT_NONE, LLAssetType::AT_OBJECT, LLAssetType::AT_SOUND, LLAssetType::AT_TEXTURE, LLStringBase< char >::compareInsensitive(), LLViewerImageList::createUploadFile(), encode_vorbis_file(), indra::ipc::tokenstream::EOF, FALSE, LLFile::fopen(), gAgent, gDirUtilp, LLUUID::generate(), LLDir::getDirDelimiter(), LLImageBase::getLastError(), LLAgent::getSecureSessionID(), LLDir::getTempFilename(), gVFS, gViewerWindow, IMG_CODEC_BMP, IMG_CODEC_JPEG, IMG_CODEC_PNG, IMG_CODEC_TGA, LLFilePicker::instance(), ll_apr_file_open(), ll_apr_file_read(), LL_APR_RB, lldebugs, llendl, llinfos, LLVORBISENC_DEST_OPEN_ERR, LLVORBISENC_NOERR, llwarns, LLTransactionID::makeAssetID(), MAX_STRING, LLFile::remove(), LLFilePicker::reset(), S32, LLVFile::setMaxSize(), TRUE, upload_error(), LLVFile::write(), and LLVFile::WRITE.
Referenced by LLFileUploadBulk::handleEvent(), LLFloaterNameDesc::onBtnOK(), LLFloaterAnimPreview::onBtnOK(), LLSnapshotLivePreview::saveTexture(), upload_done_callback(), and LLNewAgentInventoryResponder::uploadComplete().
const char* upload_pick | ( | void * | data | ) |
char* upload_pick(void* data)
If applicable, brings up a file chooser in which the user selects a file to upload for a particular task. If the file is valid for the given action, returns the string to the full path filename, else returns NULL. Data is the load filter for the type of file as defined in LLFilePicker.
Definition at line 103 of file llviewermenufile.cpp.
References LLViewerWindow::alertXml(), build_extensions_string(), LLAgent::cameraMouselook(), LLAgent::changeCameraToDefault(), check_for_invalid_wav_formats(), FALSE, LLFilePicker::FFLOAD_ALL, LLFilePicker::FFLOAD_WAV, gAgent, gDirUtilp, LLDir::getDirDelimiter(), LLFilePicker::getFirstFile(), LLFilePicker::getOpenFile(), gViewerWindow, LLFilePicker::instance(), llendl, llinfos, MAX_STRING, NULL, and TRUE.
Referenced by handle_upload(), LLFileUploadAnim::handleEvent(), LLFileUploadSound::handleEvent(), and LLFileUploadImage::handleEvent().