LLViewerTextEditor Class Reference

#include <llviewertexteditor.h>

Inheritance diagram for LLViewerTextEditor:

Inheritance graph
[legend]
Collaboration diagram for LLViewerTextEditor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLViewerTextEditor (const LLString &name, const LLRect &rect, S32 max_length, const LLString &default_text=LLString(), const LLFontGL *glfont=NULL, BOOL allow_embedded_items=FALSE)
virtual ~LLViewerTextEditor ()
virtual void makePristine ()
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual BOOL handleToolTip (S32 x, S32 y, LLString &msg, LLRect *sticky_rect)
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
class LLInventoryItemgetDragItem () const
virtual BOOL importBuffer (const LLString &buffer)
virtual bool importStream (std::istream &str)
virtual BOOL exportBuffer (LLString &buffer)
void setNotecardInfo (const LLUUID &notecard_item_id, const LLUUID &object_id)
void setASCIIEmbeddedText (const LLString &instr)
void setEmbeddedText (const LLString &instr)
LLString getEmbeddedText ()
LLString appendTime (bool prepend_newline)
void copyInventory (const LLInventoryItem *item, U32 callback_id=0)
bool hasEmbeddedInventory ()

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)

Private Member Functions

virtual llwchar pasteEmbeddedItem (llwchar ext_char)
virtual void bindEmbeddedChars (LLFontGL *font) const
virtual void unbindEmbeddedChars (LLFontGL *font) const
BOOL getEmbeddedItemToolTipAtPos (S32 pos, LLWString &wmsg) const
BOOL openEmbeddedItemAtPos (S32 pos)
BOOL openEmbeddedItem (LLInventoryItem *item)
S32 insertEmbeddedItem (S32 pos, LLInventoryItem *item)
void openEmbeddedTexture (LLInventoryItem *item)
void openEmbeddedSound (LLInventoryItem *item)
void openEmbeddedLandmark (LLInventoryItem *item)
void openEmbeddedNotecard (LLInventoryItem *item)
void showCopyToInvDialog (LLInventoryItem *item)
void showUnsavedAlertDialog (LLInventoryItem *item)

Static Private Member Functions

static void onCopyToInvDialog (S32 option, void *userdata)
static void onNotecardDialog (S32 option, void *userdata)

Private Attributes

LLPointer< LLInventoryItemmDragItem
BOOL mDragItemSaved
class LLEmbeddedItemsmEmbeddedItemList
LLUUID mObjectID
LLUUID mNotecardInventoryID
LLPointer< class
LLEmbeddedNotecardOpener
mInventoryCallback

Classes

class  LLTextCmdInsertEmbeddedItem


Detailed Description

Definition at line 41 of file llviewertexteditor.h.


Constructor & Destructor Documentation

LLViewerTextEditor::LLViewerTextEditor ( const LLString name,
const LLRect rect,
S32  max_length,
const LLString default_text = LLString(),
const LLFontGL glfont = NULL,
BOOL  allow_embedded_items = FALSE 
)

Definition at line 564 of file llviewertexteditor.cpp.

References mEmbeddedItemList, and mInventoryCallback.

Referenced by fromXML().

Here is the caller graph for this function:

LLViewerTextEditor::~LLViewerTextEditor (  )  [virtual]

Definition at line 591 of file llviewertexteditor.cpp.

References mEmbeddedItemList, mInventoryCallback, and NULL.


Member Function Documentation

void LLViewerTextEditor::makePristine (  )  [virtual]

Reimplemented from LLTextEditor.

Definition at line 603 of file llviewertexteditor.cpp.

References LLTextEditor::makePristine(), LLEmbeddedItems::markSaved(), and mEmbeddedItemList.

Referenced by LLPreviewNotecard::loadAsset(), LLPreviewNotecard::onLoadComplete(), LLPreviewNotecard::postBuild(), and LLPreviewNotecard::saveIfNeeded().

Here is the call graph for this function:

Here is the caller graph for this function:

LLView * LLViewerTextEditor::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

BOOL LLViewerTextEditor::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLViewerTextEditor::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLViewerTextEditor::handleRightMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 963 of file llviewertexteditor.cpp.

References LLView::childrenHandleRightMouseDown(), and NULL.

Here is the call graph for this function:

BOOL LLViewerTextEditor::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLViewerTextEditor::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLViewerTextEditor::handleToolTip ( S32  x,
S32  y,
LLString msg,
LLRect sticky_rect 
) [virtual]

BOOL LLViewerTextEditor::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void *  cargo_data,
EAcceptance accept,
LLString tooltip_msg 
) [virtual]

class LLInventoryItem* LLViewerTextEditor::getDragItem (  )  const [inline]

Definition at line 70 of file llviewertexteditor.h.

References mDragItem.

Referenced by LLPreviewNotecard::getDragItem().

Here is the caller graph for this function:

BOOL LLViewerTextEditor::importBuffer ( const LLString buffer  )  [virtual]

Reimplemented from LLTextEditor.

Definition at line 1522 of file llviewertexteditor.cpp.

References importStream().

Referenced by onCovenantLoadComplete(), LLPreviewNotecard::onLoadComplete(), and LLPanelEstateCovenant::onLoadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLViewerTextEditor::importStream ( std::istream &  str  )  [virtual]

BOOL LLViewerTextEditor::exportBuffer ( LLString buffer  )  [virtual]

Reimplemented from LLTextEditor.

Definition at line 1528 of file llviewertexteditor.cpp.

References LLNotecard::exportStream(), LLEmbeddedItems::getEmbeddedItemList(), getEmbeddedText(), LLNotecard::MAX_SIZE, mEmbeddedItemList, LLNotecard::setItems(), LLNotecard::setText(), and TRUE.

Referenced by LLPreviewNotecard::saveIfNeeded().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::setNotecardInfo ( const LLUUID notecard_item_id,
const LLUUID object_id 
) [inline]

Definition at line 74 of file llviewertexteditor.h.

References mNotecardInventoryID, and mObjectID.

Referenced by LLPreviewNotecard::postBuild().

Here is the caller graph for this function:

void LLViewerTextEditor::setASCIIEmbeddedText ( const LLString instr  ) 

Definition at line 1168 of file llviewertexteditor.cpp.

References LLEmbeddedItems::getEmbeddedCharFromIndex(), mEmbeddedItemList, S32, and LLTextEditor::setWText().

Referenced by importStream().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::setEmbeddedText ( const LLString instr  ) 

Definition at line 1190 of file llviewertexteditor.cpp.

References LLTextEditor::FIRST_EMBEDDED_CHAR, LLEmbeddedItems::getEmbeddedCharFromIndex(), i, LLTextEditor::LAST_EMBEDDED_CHAR, mEmbeddedItemList, S32, LLTextEditor::setWText(), and utf8str_to_wstring().

Referenced by importStream().

Here is the call graph for this function:

Here is the caller graph for this function:

LLString LLViewerTextEditor::getEmbeddedText (  ) 

LLString LLViewerTextEditor::appendTime ( bool  prepend_newline  ) 

Definition at line 1245 of file llviewertexteditor.cpp.

References LLTextEditor::appendColoredText(), gPacificDaylightTime, LLColor4::grey, llformat(), time_corrected(), tut::tm(), and utc_to_pacific_time().

Referenced by add_timestamped_line(), and LLFloaterIMPanel::addHistoryLine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::copyInventory ( const LLInventoryItem item,
U32  callback_id = 0 
)

Definition at line 1508 of file llviewertexteditor.cpp.

References copy_inventory_from_notecard(), mNotecardInventoryID, and mObjectID.

Referenced by onCopyToInvDialog(), LLPreviewNotecard::onSaveComplete(), and openEmbeddedNotecard().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLViewerTextEditor::hasEmbeddedInventory (  ) 

Definition at line 1515 of file llviewertexteditor.cpp.

References LLEmbeddedItems::empty(), and mEmbeddedItemList.

Referenced by LLPreviewNotecard::hasEmbeddedInventory().

Here is the call graph for this function:

Here is the caller graph for this function:

llwchar LLViewerTextEditor::pasteEmbeddedItem ( llwchar  ext_char  )  [private, virtual]

Reimplemented from LLTextEditor.

Definition at line 1266 of file llviewertexteditor.cpp.

References LLEmbeddedItems::getEmbeddedItem(), LLEmbeddedItems::hasEmbeddedItem(), LLEmbeddedItems::insertEmbeddedItem(), LL_UNKNOWN_CHAR, and mEmbeddedItemList.

Here is the call graph for this function:

void LLViewerTextEditor::bindEmbeddedChars ( LLFontGL font  )  const [private, virtual]

Reimplemented from LLTextEditor.

Definition at line 1285 of file llviewertexteditor.cpp.

References LLEmbeddedItems::bindEmbeddedChars(), and mEmbeddedItemList.

Here is the call graph for this function:

void LLViewerTextEditor::unbindEmbeddedChars ( LLFontGL font  )  const [private, virtual]

Reimplemented from LLTextEditor.

Definition at line 1290 of file llviewertexteditor.cpp.

References mEmbeddedItemList, and LLEmbeddedItems::unbindEmbeddedChars().

Here is the call graph for this function:

BOOL LLViewerTextEditor::getEmbeddedItemToolTipAtPos ( S32  pos,
LLWString wmsg 
) const [private]

Definition at line 1295 of file llviewertexteditor.cpp.

References FALSE, LLInventoryItem::getDescription(), LLEmbeddedItems::getEmbeddedItem(), LLTextEditor::getLength(), LLInventoryObject::getName(), LLTextEditor::getWChar(), TRUE, and utf8str_to_wstring().

Referenced by handleToolTip().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLViewerTextEditor::openEmbeddedItemAtPos ( S32  pos  )  [private]

Definition at line 1312 of file llviewertexteditor.cpp.

References FALSE, LLEmbeddedItems::getEmbeddedItem(), LLEmbeddedItems::getEmbeddedItemSaved(), LLTextEditor::getLength(), LLTextEditor::getWChar(), openEmbeddedItem(), and showUnsavedAlertDialog().

Referenced by handleDoubleClick().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLViewerTextEditor::openEmbeddedItem ( LLInventoryItem item  )  [private]

S32 LLViewerTextEditor::insertEmbeddedItem ( S32  pos,
LLInventoryItem item 
) [private]

Definition at line 1478 of file llviewertexteditor.cpp.

References LLTextEditor::execute().

Referenced by handleDragAndDrop().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::openEmbeddedTexture ( LLInventoryItem item  )  [private]

void LLViewerTextEditor::openEmbeddedSound ( LLInventoryItem item  )  [private]

Definition at line 1398 of file llviewertexteditor.cpp.

References gAgent, gAgentID, gAudiop, LLInventoryItem::getAssetUUID(), LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLAgent::getPositionGlobal(), gSavedSettings, showCopyToInvDialog(), SOUND_GAIN, and LLAudioEngine::triggerSound().

Referenced by openEmbeddedItem().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::openEmbeddedLandmark ( LLInventoryItem item  )  [private]

Definition at line 1412 of file llviewertexteditor.cpp.

References FALSE, LLInventoryObject::getName(), LLInventoryObject::getUUID(), open_landmark(), LLLandmarkBridge::prefix(), and TRUE.

Referenced by openEmbeddedItem().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::openEmbeddedNotecard ( LLInventoryItem item  )  [private]

Definition at line 1419 of file llviewertexteditor.cpp.

References copyInventory(), gInventoryCallbacks, mInventoryCallback, and LLInventoryCallbackManager::registerCB().

Referenced by openEmbeddedItem().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::showCopyToInvDialog ( LLInventoryItem item  )  [private]

Definition at line 1457 of file llviewertexteditor.cpp.

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

Referenced by openEmbeddedItem(), and openEmbeddedSound().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::showUnsavedAlertDialog ( LLInventoryItem item  )  [private]

Definition at line 1437 of file llviewertexteditor.cpp.

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

Referenced by handleMouseUp(), and openEmbeddedItemAtPos().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::onCopyToInvDialog ( S32  option,
void *  userdata 
) [static, private]

Definition at line 1465 of file llviewertexteditor.cpp.

References copyInventory(), LLNotecardCopyInfo::mItem, and LLNotecardCopyInfo::mTextEd.

Referenced by showCopyToInvDialog().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerTextEditor::onNotecardDialog ( S32  option,
void *  userdata 
) [static, private]

Definition at line 1444 of file llviewertexteditor.cpp.

References LLNotecardCopyInfo::mItem, mNotecardInventoryID, LLNotecardCopyInfo::mTextEd, and LLPreview::save().

Referenced by showUnsavedAlertDialog().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 119 of file llviewertexteditor.h.

Referenced by getDragItem(), handleHover(), handleMouseDown(), and handleMouseUp().

Definition at line 120 of file llviewertexteditor.h.

Referenced by handleMouseDown(), and handleMouseUp().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:34:06 2008 for SecondLife by  doxygen 1.5.5