LLFloaterPostcard Class Reference

#include <llfloaterpostcard.h>

Inheritance diagram for LLFloaterPostcard:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterPostcard:

Collaboration graph
[legend]
List of all members.

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 LLFloaterPostcardshowFromSnapshot (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 onClickPublishHelp (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 (LLUICtrl *receiver, void *data)
static void missingSubjMsgAlertCallback (S32 option, void *data)

Protected Attributes

LLPointer< LLImageJPEGmJPEGImage
LLPointer< LLImageGLmViewerImage
LLTransactionID mTransactionID
LLAssetID mAssetID
LLVector2 mImageScale
LLVector3d mPosTakenGlobal
boolean mHasFirstMsgFocus

Static Protected Attributes

static LLLinkedList< LLFloaterPostcardsInstances

Detailed Description

Definition at line 45 of file llfloaterpostcard.h.


Constructor & Destructor Documentation

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]

Definition at line 105 of file llfloaterpostcard.cpp.

References mJPEGImage, NULL, LLLinkedList< DATA_TYPE >::removeData(), and sInstances.


Member Function Documentation

void LLFloaterPostcard::draw (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 170 of file llfloaterpostcard.cpp.

References LLFloater::draw(), f, LLView::getVisible(), gl_draw_scaled_image(), gl_rect_2d(), glPopMatrix, mImageScale, mJPEGImage, LLFloater::mMinimized, LLView::mRect, LLVector2::mV, mViewerImage, LLPointer< Type >::notNull(), S32, VX, VY, and LLColor4::white.

void LLFloaterPostcard::init (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 88 of file llfloaterpostcard.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_SessionID, _PREHASH_UserInfoRequest, LLLinkedList< DATA_TYPE >::addData(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLUUID::isNull(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLAgent::sendReliableMessage(), and sInstances.

Referenced by LLFloaterPostcard().

void LLFloaterPostcard::missingSubjMsgAlertCallback ( S32  option,
void data 
) [static]

Definition at line 365 of file llfloaterpostcard.cpp.

Referenced by onClickSend().

void LLFloaterPostcard::onClickCancel ( void data  )  [static]

Definition at line 223 of file llfloaterpostcard.cpp.

Referenced by postBuild().

void LLFloaterPostcard::onClickPublishHelp ( void data  )  [static]

Definition at line 291 of file llfloaterpostcard.cpp.

References LLViewerWindow::alertXml(), and gViewerWindow.

Referenced by postBuild().

void LLFloaterPostcard::onClickSend ( void data  )  [static]

Definition at line 251 of file llfloaterpostcard.cpp.

References LLViewerWindow::alertXml(), gViewerWindow, and missingSubjMsgAlertCallback().

Referenced by postBuild().

void LLFloaterPostcard::onMsgFormFocusRecieved ( LLUICtrl receiver,
void data 
) [static]

Definition at line 351 of file llfloaterpostcard.cpp.

References LLUICtrlFactory::getTextEditorByName(), LLUICtrl::hasFocus(), LLStringBase< char >::null, and LLTextEditor::setText().

Referenced by postBuild().

BOOL LLFloaterPostcard::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 111 of file llfloaterpostcard.cpp.

References LLAgent::buildFullname(), LLPanel::childDisable(), LLPanel::childHide(), LLPanel::childSetAction(), LLPanel::childSetFocus(), LLPanel::childSetValue(), gAgent, LLUICtrlFactory::getTextEditorByName(), LLAgent::isTeen(), onClickCancel(), onClickPublishHelp(), onClickSend(), onMsgFormFocusRecieved(), LLUICtrl::setCallbackUserData(), LLUICtrl::setFocusChangedCallback(), LLTextEditor::setWordWrap(), and TRUE.

void LLFloaterPostcard::sendPostcard (  ) 

Definition at line 391 of file llfloaterpostcard.cpp.

References LLSD::asBoolean(), 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().

LLFloaterPostcard * LLFloaterPostcard::showFromSnapshot ( LLImageJPEG jpeg,
LLImageGL img,
const LLVector2 img_scale,
const LLVector3d pos_taken_global 
) [static]

Definition at line 153 of file llfloaterpostcard.cpp.

References LLUICtrlFactory::buildFloater(), LLRectBase< Type >::getHeight(), LLFloaterView::getNewFloaterPosition(), LLView::getRect(), gFloaterView, gUICtrlFactory, left, LLFloaterPostcard(), LLFloater::open(), S32, LLView::setOrigin(), and top.

Referenced by LLSnapshotLivePreview::savePostcard().

void LLFloaterPostcard::updateUserInfo ( const char *  email  )  [static]

Definition at line 335 of file llfloaterpostcard.cpp.

References LLSD::asString(), LLPanel::childGetValue(), LLPanel::childSetValue(), LLLinkedList< DATA_TYPE >::getNextData(), LLLinkedList< DATA_TYPE >::resetList(), and sInstances.

Referenced by process_user_info_reply().

void LLFloaterPostcard::uploadCallback ( const LLUUID asset_id,
void user_data,
S32  result,
LLExtStat  ext_status 
) [static]

Definition at line 297 of file llfloaterpostcard.cpp.

References LLMessageSystem::addBOOL(), LLMessageSystem::addString(), LLMessageSystem::addUUID(), LLMessageSystem::addVector3d(), LLViewerWindow::alertXml(), gAgent, LLAssetStorage::getErrorString(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, gViewerWindow, LLUploadDialog::modalUploadFinished(), LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLAgent::sendReliableMessage().

Referenced by sendPostcard().


Member Data Documentation

LLAssetID LLFloaterPostcard::mAssetID [protected]

Definition at line 78 of file llfloaterpostcard.h.

Referenced by sendPostcard().

boolean LLFloaterPostcard::mHasFirstMsgFocus [protected]

Definition at line 81 of file llfloaterpostcard.h.

LLVector2 LLFloaterPostcard::mImageScale [protected]

Definition at line 79 of file llfloaterpostcard.h.

Referenced by draw().

LLPointer<LLImageJPEG> LLFloaterPostcard::mJPEGImage [protected]

Definition at line 75 of file llfloaterpostcard.h.

Referenced by draw(), sendPostcard(), and ~LLFloaterPostcard().

LLVector3d LLFloaterPostcard::mPosTakenGlobal [protected]

Definition at line 80 of file llfloaterpostcard.h.

Referenced by sendPostcard().

LLTransactionID LLFloaterPostcard::mTransactionID [protected]

Definition at line 77 of file llfloaterpostcard.h.

Referenced by sendPostcard().

LLPointer<LLImageGL> LLFloaterPostcard::mViewerImage [protected]

Definition at line 76 of file llfloaterpostcard.h.

Referenced by draw().

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


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:20 2010 for Second Life Viewer by  doxygen 1.4.7