#include <llfloaterpostcard.h>
Public Member Functions | |
LLFloaterPostcard (LLImageJPEG *jpeg, LLImageGL *img, const LLVector2 &img_scale, const LLVector3d &pos_taken_global) | |
virtual | ~LLFloaterPostcard () |
virtual void | init () |
virtual BOOL | postBuild () |
virtual void | draw () |
void | sendPostcard () |
Static Public Member Functions | |
static LLFloaterPostcard * | showFromSnapshot (LLImageJPEG *jpeg, LLImageGL *img, const LLVector2 &img_scale, const LLVector3d &pos_taken_global) |
static void | onClickCancel (void *data) |
static void | onClickSend (void *data) |
static void | uploadCallback (const LLUUID &asset_id, void *user_data, S32 result, LLExtStat ext_status) |
static void | updateUserInfo (const char *email) |
static void | onMsgFormFocusRecieved (LLFocusableElement *receiver, void *data) |
static void | missingSubjMsgAlertCallback (S32 option, void *data) |
Protected Types | |
typedef std::set < LLFloaterPostcard * > | instance_list_t |
Protected Attributes | |
LLPointer< LLImageJPEG > | mJPEGImage |
LLPointer< LLImageGL > | mViewerImage |
LLTransactionID | mTransactionID |
LLAssetID | mAssetID |
LLVector2 | mImageScale |
LLVector3d | mPosTakenGlobal |
boolean | mHasFirstMsgFocus |
Static Protected Attributes | |
static instance_list_t | sInstances |
Definition at line 45 of file llfloaterpostcard.h.
typedef std::set<LLFloaterPostcard*> LLFloaterPostcard::instance_list_t [protected] |
Definition at line 82 of file llfloaterpostcard.h.
LLFloaterPostcard::LLFloaterPostcard | ( | LLImageJPEG * | jpeg, | |
LLImageGL * | img, | |||
const LLVector2 & | img_scale, | |||
const LLVector3d & | pos_taken_global | |||
) |
---------------------------------------------------------------------------- Class LLFloaterPostcard ----------------------------------------------------------------------------
Definition at line 77 of file llfloaterpostcard.cpp.
References init().
Referenced by showFromSnapshot().
LLFloaterPostcard::~LLFloaterPostcard | ( | ) | [virtual] |
void LLFloaterPostcard::init | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 88 of file llfloaterpostcard.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, _PREHASH_UserInfoRequest, LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLUUID::isNull(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLAgent::sendReliableMessage(), and sInstances.
Referenced by LLFloaterPostcard().
BOOL LLFloaterPostcard::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 111 of file llfloaterpostcard.cpp.
References LLAgent::buildFullname(), LLPanel::childDisable(), LLPanel::childSetAction(), LLPanel::childSetFocus(), LLPanel::childSetValue(), gAgent, onClickCancel(), onClickSend(), onMsgFormFocusRecieved(), LLFocusableElement::setFocusChangedCallback(), LLTextEditor::setWordWrap(), and TRUE.
void LLFloaterPostcard::draw | ( | void | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 156 of file llfloaterpostcard.cpp.
References LLFloater::draw(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), gl_draw_scaled_image(), gl_rect_2d(), LLFloater::isMinimized(), LLRectBase< Type >::mBottom, mImageScale, mJPEGImage, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, LLVector2::mV, mViewerImage, LLPointer< Type >::notNull(), S32, LLRectBase< Type >::stretch(), LLRectBase< Type >::translate(), VX, VY, and LLColor4::white.
LLFloaterPostcard * LLFloaterPostcard::showFromSnapshot | ( | LLImageJPEG * | jpeg, | |
LLImageGL * | img, | |||
const LLVector2 & | img_scale, | |||
const LLVector3d & | pos_taken_global | |||
) | [static] |
Definition at line 139 of file llfloaterpostcard.cpp.
References LLUICtrlFactory::buildFloater(), LLRectBase< Type >::getHeight(), LLSingleton< LLUICtrlFactory >::getInstance(), LLFloaterView::getNewFloaterPosition(), LLView::getRect(), gFloaterView, LLFloaterPostcard(), LLFloater::open(), S32, and LLView::setOrigin().
Referenced by LLSnapshotLivePreview::savePostcard().
void LLFloaterPostcard::onClickCancel | ( | void * | data | ) | [static] |
Definition at line 209 of file llfloaterpostcard.cpp.
Referenced by postBuild().
void LLFloaterPostcard::onClickSend | ( | void * | data | ) | [static] |
Definition at line 237 of file llfloaterpostcard.cpp.
References LLViewerWindow::alertXml(), gViewerWindow, and missingSubjMsgAlertCallback().
Referenced by postBuild().
void LLFloaterPostcard::uploadCallback | ( | const LLUUID & | asset_id, | |
void * | user_data, | |||
S32 | result, | |||
LLExtStat | ext_status | |||
) | [static] |
Definition at line 277 of file llfloaterpostcard.cpp.
References LLMessageSystem::addBOOL(), LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLMessageSystem::addVector3d(), LLViewerWindow::alertXml(), FALSE, gAgent, LLAssetStorage::getErrorString(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, gViewerWindow, LLUploadDialog::modalUploadFinished(), LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLAgent::sendReliableMessage().
Referenced by sendPostcard().
void LLFloaterPostcard::updateUserInfo | ( | const char * | ) | [static] |
Definition at line 315 of file llfloaterpostcard.cpp.
References LLSD::asString(), LLPanel::childGetValue(), LLPanel::childSetValue(), and sInstances.
Referenced by process_user_info_reply().
void LLFloaterPostcard::onMsgFormFocusRecieved | ( | LLFocusableElement * | receiver, | |
void * | data | |||
) | [static] |
Definition at line 330 of file llfloaterpostcard.cpp.
References LLUICtrl::hasFocus(), LLStringBase< char >::null, and LLTextEditor::setText().
Referenced by postBuild().
void LLFloaterPostcard::missingSubjMsgAlertCallback | ( | S32 | option, | |
void * | data | |||
) | [static] |
Definition at line 344 of file llfloaterpostcard.cpp.
Referenced by onClickSend().
void LLFloaterPostcard::sendPostcard | ( | ) |
Definition at line 370 of file llfloaterpostcard.cpp.
References LLSD::asString(), LLAssetType::AT_IMAGE_JPEG, LLPanel::childGetValue(), LLSD::emptyMap(), FALSE, gAgent, gAssetStorage, LLUUID::generate(), LLViewerRegion::getCapability(), LLFloater::getDependee(), LLAgent::getRegion(), LLAgent::getSecureSessionID(), LLVector3d::getValue(), gVFS, llendl, llinfos, LLTransactionID::makeAssetID(), mAssetID, mJPEGImage, LLUploadDialog::modalUploadDialog(), mPosTakenGlobal, mTransactionID, LLHTTPClient::post(), LLFloater::removeDependentFloater(), LLFloater::setVisible(), LLAssetStorage::storeAssetData(), uploadCallback(), and LLVFile::writeFile().
LLPointer<LLImageJPEG> LLFloaterPostcard::mJPEGImage [protected] |
Definition at line 74 of file llfloaterpostcard.h.
Referenced by draw(), sendPostcard(), and ~LLFloaterPostcard().
LLPointer<LLImageGL> LLFloaterPostcard::mViewerImage [protected] |
LLTransactionID LLFloaterPostcard::mTransactionID [protected] |
LLAssetID LLFloaterPostcard::mAssetID [protected] |
LLVector2 LLFloaterPostcard::mImageScale [protected] |
LLVector3d LLFloaterPostcard::mPosTakenGlobal [protected] |
boolean LLFloaterPostcard::mHasFirstMsgFocus [protected] |
Definition at line 80 of file llfloaterpostcard.h.
LLFloaterPostcard::instance_list_t LLFloaterPostcard::sInstances [static, protected] |
---------------------------------------------------------------------------- Local function declarations, constants, enums, and typedefs ----------------------------------------------------------------------------
Definition at line 83 of file llfloaterpostcard.h.
Referenced by init(), updateUserInfo(), and ~LLFloaterPostcard().