LLPanelEditWearable Class Reference

Inheritance diagram for LLPanelEditWearable:

Inheritance graph
[legend]
Collaboration diagram for LLPanelEditWearable:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLPanelEditWearable (EWearableType type)
virtual ~LLPanelEditWearable ()
virtual BOOL postBuild ()
virtual void draw ()
virtual BOOL isDirty () const
void addSubpart (const LLString &name, ESubpart id, LLSubpart *part)
void addTextureDropTarget (LLVOAvatar::ETextureIndex te, const LLString &name, const LLUUID &default_image_id, BOOL allow_no_texture)
void addColorSwatch (LLVOAvatar::ETextureIndex te, const LLString &name)
const char * getLabel ()
EWearableType getType ()
LLSubpartgetCurrentSubpart ()
ESubpart getDefaultSubpart ()
void setSubpart (ESubpart subpart)
void switchToDefaultSubpart ()
void setWearable (LLWearable *wearable, U32 perm_mask, BOOL is_complete)
void addVisualParamToUndoBuffer (S32 param_id, F32 current_weight)
void setUIPermissions (U32 perm_mask, BOOL is_complete)
virtual void setVisible (BOOL visible)
virtual void undo ()
virtual BOOL canUndo () const
virtual void redo ()
virtual BOOL canRedo () const

Static Public Member Functions

static void onBtnSubpart (void *userdata)
static void onBtnTakeOff (void *userdata)
static void onBtnRandomize (void *userdata)
static void onBtnSave (void *userdata)
static void onBtnSaveAs (void *userdata)
static void onSaveAsCommit (LLWearableSaveAsDialog *save_as_dialog, void *userdata)
static void onBtnRevert (void *userdata)
static void onBtnTakeOffDialog (S32 option, void *userdata)
static void onBtnCreateNew (void *userdata)
static void onTextureCommit (LLUICtrl *ctrl, void *userdata)
static void onColorCommit (LLUICtrl *ctrl, void *userdata)
static void onCommitSexChange (LLUICtrl *, void *userdata)
static void onSelectAutoWearOption (S32 option, void *data)

Private Attributes

EWearableType mType
BOOL mCanTakeOff
std::map< LLString, S32mTextureList
std::map< LLString, S32mColorList
std::map< ESubpart, LLSubpart * > mSubpartList
ESubpart mCurrentSubpart
LLUndoBuffermUndoBuffer


Detailed Description

Definition at line 378 of file llfloatercustomize.cpp.


Constructor & Destructor Documentation

LLPanelEditWearable::LLPanelEditWearable ( EWearableType  type  ) 

Definition at line 445 of file llfloatercustomize.cpp.

References LLUndoWearable::create(), mUndoBuffer, and S32.

Here is the call graph for this function:

LLPanelEditWearable::~LLPanelEditWearable (  )  [virtual]


Member Function Documentation

BOOL LLPanelEditWearable::postBuild ( void   )  [virtual]

void LLPanelEditWearable::draw ( void   )  [virtual]

BOOL LLPanelEditWearable::isDirty (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 1018 of file llfloatercustomize.cpp.

References FALSE, gAgent, LLAgent::getWearable(), LLWearable::isDirty(), mType, and TRUE.

Referenced by draw().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::addSubpart ( const LLString name,
ESubpart  id,
LLSubpart part 
)

Definition at line 492 of file llfloatercustomize.cpp.

References LLPanel::childSetAction(), LLSubpart::mButtonName, mSubpartList, and onBtnSubpart().

Referenced by LLFloaterCustomize::initWearablePanels().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::addTextureDropTarget ( LLVOAvatar::ETextureIndex  te,
const LLString name,
const LLUUID default_image_id,
BOOL  allow_no_texture 
)

void LLPanelEditWearable::addColorSwatch ( LLVOAvatar::ETextureIndex  te,
const LLString name 
)

Definition at line 697 of file llfloatercustomize.cpp.

References LLPanel::childSetCommitCallback(), mColorList, and onColorCommit().

Referenced by LLFloaterCustomize::initWearablePanels().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* LLPanelEditWearable::getLabel ( void   )  [inline]

Definition at line 392 of file llfloatercustomize.cpp.

References mType, and LLWearable::typeToTypeLabel().

Here is the call graph for this function:

EWearableType LLPanelEditWearable::getType (  )  [inline]

Definition at line 393 of file llfloatercustomize.cpp.

References mType.

Referenced by LLFloaterCustomize::updateInventoryUI(), and LLFloaterCustomize::updateScrollingPanelUI().

Here is the caller graph for this function:

LLSubpart* LLPanelEditWearable::getCurrentSubpart (  )  [inline]

Definition at line 395 of file llfloatercustomize.cpp.

References mCurrentSubpart, and mSubpartList.

Referenced by LLFloaterCustomize::getEditGroup().

Here is the caller graph for this function:

ESubpart LLPanelEditWearable::getDefaultSubpart (  ) 

void LLPanelEditWearable::setSubpart ( ESubpart  subpart  ) 

void LLPanelEditWearable::switchToDefaultSubpart (  ) 

Definition at line 993 of file llfloatercustomize.cpp.

References getDefaultSubpart(), and setSubpart().

Referenced by LLFloaterCustomize::switchToDefaultSubpart().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::setWearable ( LLWearable wearable,
U32  perm_mask,
BOOL  is_complete 
)

Definition at line 978 of file llfloatercustomize.cpp.

References LLUndoBuffer::flushActions(), mUndoBuffer, and setUIPermissions().

Referenced by LLFloaterCustomize::setWearable().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::addVisualParamToUndoBuffer ( S32  param_id,
F32  current_weight 
)

Definition at line 987 of file llfloatercustomize.cpp.

References LLUndoBuffer::getNextAction(), mUndoBuffer, and LLUndoWearable::setVisualParam().

Referenced by LLScrollingPanelParam::onHintMouseDown(), and LLScrollingPanelParam::onSliderMouseDown().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::setUIPermissions ( U32  perm_mask,
BOOL  is_complete 
)

Definition at line 1073 of file llfloatercustomize.cpp.

References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), FALSE, mColorList, mTextureList, PERM_COPY, PERM_MODIFY, and TRUE.

Referenced by setSubpart(), setWearable(), and LLFloaterCustomize::updateInventoryUI().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::setVisible ( BOOL  visible  )  [virtual]

Reimplemented from LLView.

Definition at line 998 of file llfloatercustomize.cpp.

References LLPanel::childSetEnabled(), FALSE, LLEditMenuHandler::gEditMenuHandler, mColorList, NULL, and LLView::setVisible().

Here is the call graph for this function:

virtual void LLPanelEditWearable::undo (  )  [inline, virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 409 of file llfloatercustomize.cpp.

References mUndoBuffer, and LLUndoBuffer::undoAction().

Here is the call graph for this function:

virtual BOOL LLPanelEditWearable::canUndo (  )  const [inline, virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 410 of file llfloatercustomize.cpp.

References LLUndoBuffer::canUndo(), and mUndoBuffer.

Here is the call graph for this function:

virtual void LLPanelEditWearable::redo (  )  [inline, virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 411 of file llfloatercustomize.cpp.

References mUndoBuffer, and LLUndoBuffer::redoAction().

Here is the call graph for this function:

virtual BOOL LLPanelEditWearable::canRedo (  )  const [inline, virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 412 of file llfloatercustomize.cpp.

References LLUndoBuffer::canRedo(), and mUndoBuffer.

Here is the call graph for this function:

void LLPanelEditWearable::onBtnSubpart ( void *  userdata  )  [static]

Definition at line 504 of file llfloatercustomize.cpp.

References LLFloaterCustomize::getCurrentWearablePanel(), and setSubpart().

Referenced by addSubpart().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::onBtnTakeOff ( void *  userdata  )  [static]

Definition at line 616 of file llfloatercustomize.cpp.

References gAgent, LLAgent::getWearable(), and LLAgent::removeWearable().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::onBtnRandomize ( void *  userdata  )  [static]

void LLPanelEditWearable::onBtnSave ( void *  userdata  )  [static]

Definition at line 630 of file llfloatercustomize.cpp.

References gAgent, and LLAgent::saveWearable().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::onBtnSaveAs ( void *  userdata  )  [static]

Definition at line 637 of file llfloatercustomize.cpp.

References gAgent, LLWearable::getName(), LLAgent::getWearable(), onSaveAsCommit(), and LLWearableSaveAsDialog::startModal().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::onSaveAsCommit ( LLWearableSaveAsDialog save_as_dialog,
void *  userdata 
) [static]

Definition at line 650 of file llfloatercustomize.cpp.

References FALSE, gAgent, LLAgent::getAvatarObject(), LLWearableSaveAsDialog::getItemName(), and LLAgent::saveWearableAs().

Referenced by onBtnSaveAs().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::onBtnRevert ( void *  userdata  )  [static]

Definition at line 662 of file llfloatercustomize.cpp.

References gAgent, and LLAgent::revertWearable().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

static void LLPanelEditWearable::onBtnTakeOffDialog ( S32  option,
void *  userdata 
) [static]

void LLPanelEditWearable::onBtnCreateNew ( void *  userdata  )  [static]

Definition at line 669 of file llfloatercustomize.cpp.

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

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelEditWearable::onTextureCommit ( LLUICtrl ctrl,
void *  userdata 
) [static]

void LLPanelEditWearable::onColorCommit ( LLUICtrl ctrl,
void *  userdata 
) [static]

void LLPanelEditWearable::onCommitSexChange ( LLUICtrl ,
void *  userdata 
) [static]

void LLPanelEditWearable::onSelectAutoWearOption ( S32  option,
void *  data 
) [static]


Member Data Documentation

Definition at line 435 of file llfloatercustomize.cpp.

Referenced by draw(), and postBuild().

Definition at line 436 of file llfloatercustomize.cpp.

Referenced by addTextureDropTarget(), draw(), and setUIPermissions().

Definition at line 437 of file llfloatercustomize.cpp.

Referenced by addColorSwatch(), draw(), setUIPermissions(), and setVisible().

Definition at line 439 of file llfloatercustomize.cpp.

Referenced by getCurrentSubpart(), and setSubpart().


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

Generated on Fri May 16 08:56:14 2008 for SecondLife by  doxygen 1.5.5