LLPreviewNotecard Class Reference

#include <llpreviewnotecard.h>

Inheritance diagram for LLPreviewNotecard:

Inheritance graph
[legend]
Collaboration diagram for LLPreviewNotecard:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLPreviewNotecard (const std::string &name, const LLRect &rect, const std::string &title, const LLUUID &item_id, const LLUUID &object_id=LLUUID::null, const LLUUID &asset_id=LLUUID::null, BOOL show_keep_discard=FALSE, LLPointer< LLViewerInventoryItem > inv_item=NULL)
virtual ~LLPreviewNotecard ()
virtual bool saveItem (LLPointer< LLInventoryItem > *itemptr)
virtual void draw ()
virtual BOOL handleKeyHere (KEY key, MASK mask)
virtual void setEnabled (BOOL enabled)
virtual void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)
virtual BOOL canClose ()
virtual BOOL postBuild ()
const LLInventoryItemgetDragItem ()
bool hasEmbeddedInventory ()
void refreshFromInventory ()

Protected Member Functions

virtual void loadAsset ()
bool saveIfNeeded (LLInventoryItem *copyitem=NULL)
virtual const char * getTitleName () const

Static Protected Member Functions

static LLPreviewNotecardgetInstance (const LLUUID &uuid)
static void onLoadComplete (LLVFS *vfs, const LLUUID &asset_uuid, LLAssetType::EType type, void *user_data, S32 status, LLExtStat ext_status)
static void onClickSave (void *data)
static void onSaveComplete (const LLUUID &asset_uuid, void *user_data, S32 status, LLExtStat ext_status)
static void handleSaveChangesDialog (S32 option, void *userdata)

Protected Attributes

LLViewerTextEditormEditor
LLButtonmSaveBtn
LLUUID mAssetID
LLUUID mNotecardItemID
LLUUID mObjectID


Detailed Description

Definition at line 48 of file llpreviewnotecard.h.


Constructor & Destructor Documentation

LLPreviewNotecard::LLPreviewNotecard ( const std::string &  name,
const LLRect rect,
const std::string &  title,
const LLUUID item_id,
const LLUUID object_id = LLUUID::null,
const LLUUID asset_id = LLUUID::null,
BOOL  show_keep_discard = FALSE,
LLPointer< LLViewerInventoryItem inv_item = NULL 
)

LLPreviewNotecard::~LLPreviewNotecard (  )  [virtual]

Definition at line 151 of file llpreviewnotecard.cpp.


Member Function Documentation

bool LLPreviewNotecard::saveItem ( LLPointer< LLInventoryItem > *  itemptr  )  [virtual]

Reimplemented from LLPreview.

Definition at line 166 of file llpreviewnotecard.cpp.

References LLPointer< Type >::notNull(), NULL, and saveIfNeeded().

Here is the call graph for this function:

void LLPreviewNotecard::draw ( void   )  [virtual]

Reimplemented from LLPreview.

Definition at line 194 of file llpreviewnotecard.cpp.

References LLPanel::childSetEnabled(), LLPreview::draw(), LLView::getEnabled(), and LLTextEditor::isPristine().

Here is the call graph for this function:

BOOL LLPreviewNotecard::handleKeyHere ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented from LLPanel.

Definition at line 209 of file llpreviewnotecard.cpp.

References LLPanel::handleKeyHere(), MASK_CONTROL, saveIfNeeded(), and TRUE.

Here is the call graph for this function:

void LLPreviewNotecard::setEnabled ( BOOL  enabled  )  [virtual]

Reimplemented from LLView.

Definition at line 181 of file llpreviewnotecard.cpp.

References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), and LLTextEditor::isPristine().

Referenced by onLoadComplete(), and saveIfNeeded().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPreviewNotecard::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [virtual]

Reimplemented from LLFloater.

Definition at line 641 of file llpreviewnotecard.cpp.

References LLView::getRect(), gSavedSettings, LLFloater::isMinimized(), LLFloater::reshape(), and LLControlGroup::setRect().

Referenced by LLPreviewNotecard().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLPreviewNotecard::canClose (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 221 of file llpreviewnotecard.cpp.

References LLViewerWindow::alertXml(), FALSE, gViewerWindow, handleSaveChangesDialog(), LLTextEditor::isPristine(), LLPreview::mForceClose, and TRUE.

Here is the call graph for this function:

BOOL LLPreviewNotecard::postBuild ( void   )  [virtual]

Reimplemented from LLPanel.

Definition at line 155 of file llpreviewnotecard.cpp.

References LLViewerTextEditor::makePristine(), mNotecardItemID, mObjectID, LLViewerTextEditor::setNotecardInfo(), and TRUE.

Here is the call graph for this function:

const LLInventoryItem * LLPreviewNotecard::getDragItem (  ) 

Definition at line 240 of file llpreviewnotecard.cpp.

References LLViewerTextEditor::getDragItem(), and NULL.

Referenced by LLToolDragAndDrop::locateInventory().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLPreviewNotecard::hasEmbeddedInventory (  ) 

Definition at line 251 of file llpreviewnotecard.cpp.

References LLViewerTextEditor::hasEmbeddedInventory(), and NULL.

Referenced by LLUpdateTaskInventoryResponder::uploadComplete(), and LLUpdateAgentInventoryResponder::uploadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPreviewNotecard::refreshFromInventory (  ) 

Definition at line 259 of file llpreviewnotecard.cpp.

References lldebugs, llendl, and loadAsset().

Referenced by LLUpdateTaskInventoryResponder::uploadComplete(), and LLUpdateAgentInventoryResponder::uploadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPreviewNotecard::loadAsset (  )  [protected, virtual]

bool LLPreviewNotecard::saveIfNeeded ( LLInventoryItem copyitem = NULL  )  [protected]

LLPreviewNotecard * LLPreviewNotecard::getInstance ( const LLUUID uuid  )  [static, protected]

Definition at line 425 of file llpreviewnotecard.cpp.

References NULL, and LLPreview::sInstances.

Referenced by onLoadComplete().

Here is the caller graph for this function:

void LLPreviewNotecard::onLoadComplete ( LLVFS vfs,
const LLUUID asset_uuid,
LLAssetType::EType  type,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

void LLPreviewNotecard::onClickSave ( void *  data  )  [static, protected]

Definition at line 437 of file llpreviewnotecard.cpp.

References saveIfNeeded().

Referenced by handleSaveChangesDialog(), and LLPreviewNotecard().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPreviewNotecard::onSaveComplete ( const LLUUID asset_uuid,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

void LLPreviewNotecard::handleSaveChangesDialog ( S32  option,
void *  userdata 
) [static, protected]

Definition at line 618 of file llpreviewnotecard.cpp.

References LLAppViewer::abortQuit(), LLAppViewer::instance(), onClickSave(), and TRUE.

Referenced by canClose().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual const char* LLPreviewNotecard::getTitleName (  )  const [inline, protected, virtual]

Reimplemented from LLPreview.

Definition at line 106 of file llpreviewnotecard.h.


Member Data Documentation

Definition at line 109 of file llpreviewnotecard.h.

Definition at line 110 of file llpreviewnotecard.h.

Definition at line 112 of file llpreviewnotecard.h.

Referenced by LLPreviewNotecard(), and loadAsset().

Definition at line 114 of file llpreviewnotecard.h.

Referenced by postBuild().

Reimplemented from LLPreview.

Definition at line 115 of file llpreviewnotecard.h.

Referenced by postBuild().


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

Generated on Fri May 16 09:00:33 2008 for SecondLife by  doxygen 1.5.5