LLFloaterCustomize Class Reference

#include <llfloatercustomize.h>

Inheritance diagram for LLFloaterCustomize:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterCustomize:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::pair< BOOL,
LLViewerVisualParam * > 
editable_param
typedef std::map< F32,
editable_param
param_map

Public Member Functions

 LLFloaterCustomize ()
virtual ~LLFloaterCustomize ()
virtual BOOL postBuild ()
virtual void onClose (bool app_quitting)
virtual void draw ()
void clearScrollingPanelList ()
void generateVisualParamHints (LLViewerJointMesh *joint_mesh, param_map &params)
const LLStringgetEditGroup ()
void addVisualParamToUndoBuffer (LLViewerVisualParam *param, F32 current_weight)
void updateScrollingPanelList (BOOL allow_modify)
void setWearable (EWearableType type, LLWearable *wearable, U32 perm_mask, BOOL is_complete)
LLPanelEditWearablegetCurrentWearablePanel ()
virtual BOOL isDirty () const
void askToSaveAllIfDirty (void(*next_step_callback)(BOOL proceed, void *userdata), void *userdata)
void spawnWearableAppearance (EWearableType type)
void switchToDefaultSubpart ()
void fetchInventory ()
void updateInventoryUI ()
void updateScrollingPanelUI ()

Static Public Member Functions

static void setCurrentWearableType (EWearableType type)
static EWearableType getCurrentWearableType ()
static void onBtnSaveAll (void *userdata)
static void onBtnSnapshot (void *userdata)
static void onBtnMakeOutfit (void *userdata)
static void onMakeOutfitCommit (LLMakeOutfitDialog *dialog, void *userdata)
static void onTabChanged (void *userdata, bool from_click)
static void onSaveAllDialog (S32 option, void *userdata)

Protected Member Functions

void initWearablePanels ()
void initScrollingPanelList ()

Static Protected Member Functions

static void * createWearablePanel (void *userdata)

Protected Attributes

LLPanelEditWearablemWearablePanelList [WT_COUNT]
LLScrollingPanelListmScrollingPanelList
LLScrollableContainerViewmScrollContainer
LLGenePoolmGenePool
LLVisualParamResetmResetParams
LLInventoryObservermInventoryObserver
void(* mNextStepAfterSaveAllCallback )(BOOL proceed, void *userdata)
void * mNextStepAfterSaveAllUserdata

Static Protected Attributes

static EWearableType sCurrentWearableType = WT_SHAPE


Detailed Description

Definition at line 71 of file llfloatercustomize.h.


Member Typedef Documentation

Definition at line 74 of file llfloatercustomize.h.

Definition at line 75 of file llfloatercustomize.h.


Constructor & Destructor Documentation

LLFloaterCustomize::LLFloaterCustomize (  ) 

LLFloaterCustomize::~LLFloaterCustomize (  )  [virtual]

Definition at line 2081 of file llfloatercustomize.cpp.

References gInventory, llendl, llinfos, mGenePool, mInventoryObserver, mResetParams, and LLInventoryModel::removeObserver().

Here is the call graph for this function:


Member Function Documentation

BOOL LLFloaterCustomize::postBuild ( void   )  [virtual]

void LLFloaterCustomize::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 2152 of file llfloatercustomize.cpp.

References gFloaterView, handle_reset_view(), and LLView::sendChildToBack().

Here is the call graph for this function:

void LLFloaterCustomize::draw ( void   )  [virtual]

Reimplemented from LLFloater.

Definition at line 2110 of file llfloatercustomize.cpp.

References LLPanel::childSetEnabled(), LLFloater::draw(), isDirty(), LLFloater::isMinimized(), and updateInventoryUI().

Here is the call graph for this function:

void LLFloaterCustomize::clearScrollingPanelList (  ) 

Definition at line 2184 of file llfloatercustomize.cpp.

References LLScrollingPanelList::clearPanels(), and mScrollingPanelList.

Referenced by LLPanelEditWearable::onCommitSexChange().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::generateVisualParamHints ( LLViewerJointMesh joint_mesh,
LLFloaterCustomize::param_map params 
)

Definition at line 2192 of file llfloatercustomize.cpp.

References LLScrollingPanelList::addPanel(), LLScrollingPanelList::clearPanels(), and mScrollingPanelList.

Referenced by LLPanelEditWearable::setSubpart().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString & LLFloaterCustomize::getEditGroup (  ) 

Definition at line 1505 of file llfloatercustomize.cpp.

References LLPanelEditWearable::getCurrentSubpart(), getCurrentWearablePanel(), and LLSubpart::mEditGroup.

Here is the call graph for this function:

void LLFloaterCustomize::addVisualParamToUndoBuffer ( LLViewerVisualParam param,
F32  current_weight 
)

void LLFloaterCustomize::updateScrollingPanelList ( BOOL  allow_modify  ) 

Definition at line 2221 of file llfloatercustomize.cpp.

References mScrollingPanelList, and LLScrollingPanelList::updatePanels().

Referenced by LLUndoWearable::applyUndoRedo(), LLPanelEditWearable::onBtnRandomize(), setWearable(), and updateScrollingPanelUI().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::setWearable ( EWearableType  type,
LLWearable wearable,
U32  perm_mask,
BOOL  is_complete 
)

LLPanelEditWearable* LLFloaterCustomize::getCurrentWearablePanel (  )  [inline]

BOOL LLFloaterCustomize::isDirty (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 2131 of file llfloatercustomize.cpp.

References FALSE, i, mWearablePanelList, S32, TRUE, and WT_COUNT.

Referenced by askToSaveAllIfDirty(), and draw().

Here is the caller graph for this function:

void LLFloaterCustomize::askToSaveAllIfDirty ( void(*)(BOOL proceed, void *userdata)  next_step_callback,
void *  userdata 
)

void LLFloaterCustomize::spawnWearableAppearance ( EWearableType  type  ) 

Definition at line 2095 of file llfloatercustomize.cpp.

References gAgent, LLAgent::getAvatarObject(), mGenePool, and LLGenePool::spawn().

Referenced by LLPanelEditWearable::onBtnRandomize().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::switchToDefaultSubpart (  ) 

Definition at line 2090 of file llfloatercustomize.cpp.

References getCurrentWearablePanel(), and LLPanelEditWearable::switchToDefaultSubpart().

Referenced by setCurrentWearableType(), and LLMorphView::setVisible().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::setCurrentWearableType ( EWearableType  type  )  [static]

Definition at line 1609 of file llfloatercustomize.cpp.

References LLPanel::childShowTab(), LLView::getName(), mWearablePanelList, S32, and switchToDefaultSubpart().

Referenced by LLWearableBridge::editOnAvatar(), onSaveAllDialog(), onTabChanged(), LLAgent::setWearableOutfit(), and LLWearable::writeToAvatar().

Here is the call graph for this function:

Here is the caller graph for this function:

static EWearableType LLFloaterCustomize::getCurrentWearableType (  )  [inline, static]

Definition at line 109 of file llfloatercustomize.h.

References sCurrentWearableType.

Referenced by onSaveAllDialog().

Here is the caller graph for this function:

void LLFloaterCustomize::onBtnSaveAll ( void *  userdata  )  [static]

Definition at line 1627 of file llfloatercustomize.cpp.

References gAgent, and LLAgent::saveAllWearables().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::onBtnSnapshot ( void *  userdata  )  [static]

void LLFloaterCustomize::onBtnMakeOutfit ( void *  userdata  )  [static]

Definition at line 1660 of file llfloatercustomize.cpp.

References edit_wearable_for_teens(), FALSE, gAgent, LLAgent::getAvatarObject(), LLAgent::getWearable(), i, LLAgent::isTeen(), NULL, onMakeOutfitCommit(), S32, LLMakeOutfitDialog::setWearableToInclude(), LLModalDialog::startModal(), WT_COUNT, and WT_SHIRT.

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::onMakeOutfitCommit ( LLMakeOutfitDialog dialog,
void *  userdata 
) [static]

Definition at line 1687 of file llfloatercustomize.cpp.

References gAgent, LLAgent::getAvatarObject(), LLMakeOutfitDialog::getFolderName(), LLMakeOutfitDialog::getIncludedItems(), LLMakeOutfitDialog::getRenameClothing(), and LLAgent::makeNewOutfit().

Referenced by onBtnMakeOutfit().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::onTabChanged ( void *  userdata,
bool  from_click 
) [static]

Definition at line 2146 of file llfloatercustomize.cpp.

References setCurrentWearableType().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::onSaveAllDialog ( S32  option,
void *  userdata 
) [static]

Definition at line 2254 of file llfloatercustomize.cpp.

References FALSE, gAgent, getCurrentWearableType(), llassert, LLAgent::revertAllWearables(), LLAgent::saveAllWearables(), setCurrentWearableType(), and TRUE.

Referenced by askToSaveAllIfDirty().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::fetchInventory (  ) 

Definition at line 2300 of file llfloatercustomize.cpp.

References LLInventoryFetchObserver::fetchItems(), gAgent, LLAgent::getWearableItem(), LLUUID::notNull(), S32, WT_COUNT, and WT_SHAPE.

Referenced by LLMorphView::setVisible().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::updateInventoryUI (  ) 

void LLFloaterCustomize::updateScrollingPanelUI (  ) 

void * LLFloaterCustomize::createWearablePanel ( void *  userdata  )  [static, protected]

Definition at line 1704 of file llfloatercustomize.cpp.

References edit_wearable_for_teens(), gAgent, LLAgent::isTeen(), WearablePanelData::mFloater, WearablePanelData::mType, mWearablePanelList, and NULL.

Referenced by LLFloaterCustomize().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::initWearablePanels (  )  [protected]

Definition at line 1722 of file llfloatercustomize.cpp.

References LLPanelEditWearable::addColorSwatch(), LLPanelEditWearable::addSubpart(), LLPanelEditWearable::addTextureDropTarget(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), FALSE, LLControlGroup::getString(), gSavedSettings, LLSubpart::mCameraOffset, LLSubpart::mEditGroup, LLSubpart::mSex, LLSubpart::mTargetJoint, LLSubpart::mTargetOffset, mWearablePanelList, LLUUID::null, LLPanelEditWearable::onBtnRandomize(), LLPanelEditWearable::onCommitSexChange(), LLVector3d::setVec(), SEX_MALE, SUBPART_EYES, SUBPART_GLOVES, SUBPART_HAIR_COLOR, SUBPART_HAIR_EYEBROWS, SUBPART_HAIR_FACIAL, SUBPART_HAIR_STYLE, SUBPART_JACKET, SUBPART_PANTS, SUBPART_SHAPE_CHIN, SUBPART_SHAPE_EARS, SUBPART_SHAPE_EYES, SUBPART_SHAPE_HEAD, SUBPART_SHAPE_LEGS, SUBPART_SHAPE_MOUTH, SUBPART_SHAPE_NOSE, SUBPART_SHAPE_TORSO, SUBPART_SHAPE_WHOLE, SUBPART_SHIRT, SUBPART_SHOES, SUBPART_SKIN_BODYDETAIL, SUBPART_SKIN_COLOR, SUBPART_SKIN_FACEDETAIL, SUBPART_SKIN_MAKEUP, SUBPART_SKIRT, SUBPART_SOCKS, SUBPART_UNDERPANTS, SUBPART_UNDERSHIRT, LLVOAvatar::TEX_EYES_IRIS, LLVOAvatar::TEX_HAIR, LLVOAvatar::TEX_HEAD_BODYPAINT, LLVOAvatar::TEX_LOWER_BODYPAINT, LLVOAvatar::TEX_LOWER_JACKET, LLVOAvatar::TEX_LOWER_PANTS, LLVOAvatar::TEX_LOWER_SHOES, LLVOAvatar::TEX_LOWER_SOCKS, LLVOAvatar::TEX_LOWER_UNDERPANTS, LLVOAvatar::TEX_SKIRT, LLVOAvatar::TEX_UPPER_BODYPAINT, LLVOAvatar::TEX_UPPER_GLOVES, LLVOAvatar::TEX_UPPER_JACKET, LLVOAvatar::TEX_UPPER_SHIRT, LLVOAvatar::TEX_UPPER_UNDERSHIRT, TRUE, WT_EYES, WT_GLOVES, WT_HAIR, WT_JACKET, WT_PANTS, WT_SHAPE, WT_SHIRT, WT_SHOES, WT_SKIN, WT_SKIRT, WT_SOCKS, WT_UNDERPANTS, and WT_UNDERSHIRT.

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFloaterCustomize::initScrollingPanelList (  )  [protected]

Definition at line 2170 of file llfloatercustomize.cpp.

References LLView::addChild(), mScrollingPanelList, and LLScrollableContainerView::setScrolledView().

Referenced by postBuild().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 130 of file llfloatercustomize.h.

Definition at line 131 of file llfloatercustomize.h.

Referenced by spawnWearableAppearance(), and ~LLFloaterCustomize().

Definition at line 132 of file llfloatercustomize.h.

Referenced by LLFloaterCustomize(), and ~LLFloaterCustomize().

Definition at line 134 of file llfloatercustomize.h.

Referenced by LLFloaterCustomize(), and ~LLFloaterCustomize().

void(* LLFloaterCustomize::mNextStepAfterSaveAllCallback)(BOOL proceed, void *userdata) [protected]

Referenced by askToSaveAllIfDirty().

Definition at line 137 of file llfloatercustomize.h.

Referenced by askToSaveAllIfDirty().


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

Generated on Fri May 16 08:45:22 2008 for SecondLife by  doxygen 1.5.5