llviewermenufile.cpp File Reference

"File" menu in the main menu bar. More...

#include "llviewerprecompiledheaders.h"
#include "llviewermenufile.h"
#include "llagent.h"
#include "llfilepicker.h"
#include "llfloateranimpreview.h"
#include "llfloaterbuycurrency.h"
#include "llfloaterimagepreview.h"
#include "llfloaterimport.h"
#include "llfloaternamedesc.h"
#include "llfloatersnapshot.h"
#include "llinventorymodel.h"
#include "llresourcedata.h"
#include "llstatusbar.h"
#include "llviewercontrol.h"
#include "llviewerimagelist.h"
#include "llvieweruictrlfactory.h"
#include "llviewermenu.h"
#include "llviewerregion.h"
#include "llviewerstats.h"
#include "llviewerwindow.h"
#include "viewer.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>

Include dependency graph for llviewermenufile.cpp:

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  LLFileCloseAllWindows
class  LLFileSaveTexture
class  LLFileTakeSnapshot
class  LLFileTakeSnapshotToDisk
class  LLFileSaveMovie
class  LLFileSetWindowSize
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 ()


Detailed Description

"File" menu in the main menu bar.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, 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://secondlife.com/developers/opensource/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://secondlife.com/developers/opensource/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 Documentation

typedef LLMemberListener<LLView> view_listener_t

Definition at line 71 of file llviewermenufile.cpp.


Function Documentation

void handle_compress_image ( void  ) 

Definition at line 457 of file llviewermenufile.cpp.

References LLViewerImageList::createUploadFile(), LLFilePicker::FFLOAD_IMAGE, LLFilePicker::getFirstFile(), LLImageBase::getLastError(), LLFilePicker::getOpenFile(), IMG_CODEC_TGA, LLFilePicker::instance(), llendl, and llinfos.

Referenced by init_client_menu().

void handle_upload ( void data  ) 

Definition at line 447 of file llviewermenufile.cpp.

References LLUICtrlFactory::buildFloater(), gUICtrlFactory, and upload_pick().

void init_menu_file (  ) 

Definition at line 1029 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 802 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(), LLAssetInfo::getName(), LLFilePicker::getNextFile(), LLGlobalEconomy::getPriceUpload(), LLAgent::getRegion(), LLAgent::getSessionID(), gGlobalEconomy, 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 318 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 915 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(), LLGlobalEconomy::getPriceUpload(), LLAgent::getRegion(), LLAgent::getSecureSessionID(), gGlobalEconomy, gInventory, gStatusBar, gViewerStats, LLViewerStats::incStat(), LLInventoryType::IT_NONE, lldebugs, llendl, llinfos, LLAssetType::lookup(), LLInventoryType::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 483 of file llviewermenufile.cpp.

Referenced by LLFloaterImport::asset_uploaded_callback(), LLFileUploadBulk::handleEvent(), LLFloaterNameDesc::onBtnOK(), LLFloaterImport::onBtnOK(), LLFloaterAnimPreview::onBtnOK(), LLSnapshotLivePreview::saveTexture(), upload_done_callback(), upload_new_resource(), 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 102 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, TRUE, and type.

Referenced by handle_upload(), LLFileUploadImage::handleEvent(), LLFileUploadSound::handleEvent(), and LLFileUploadAnim::handleEvent().


Generated on Thu Jul 1 06:10:47 2010 for Second Life Viewer by  doxygen 1.4.7