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 "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>

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  LLFileEnableCloseAllWindows
class  LLFileCloseAllWindows
class  LLFileSaveTexture
class  LLFileTakeSnapshot
class  LLFileTakeSnapshotToDisk
class  LLFileQuit

Typedefs

typedef LLMemberListener< LLViewview_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-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 Documentation

Definition at line 72 of file llviewermenufile.cpp.


Function Documentation

void handle_compress_image ( void *   ) 

void handle_upload ( void *  data  ) 

Definition at line 426 of file llviewermenufile.cpp.

References LLUICtrlFactory::buildFloater(), LLSingleton< LLUICtrlFactory >::getInstance(), and upload_pick().

Here is the call graph for this function:

void init_menu_file (  ) 

Definition at line 1008 of file llviewermenufile.cpp.

References gMenuHolder.

Referenced by initialize_menus().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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 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 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Fri May 16 08:37:43 2008 for SecondLife by  doxygen 1.5.5