llfloatercustomize.cpp File Reference

The customize avatar floater, triggered by "Appearance...". More...

#include "llviewerprecompiledheaders.h"
#include "llfloatercustomize.h"
#include "llfontgl.h"
#include "llbutton.h"
#include "lliconctrl.h"
#include "llresmgr.h"
#include "llmorphview.h"
#include "llfloatertools.h"
#include "llagent.h"
#include "lltoolmorph.h"
#include "llvoavatar.h"
#include "llradiogroup.h"
#include "lltoolmgr.h"
#include "llviewermenu.h"
#include "llscrollcontainer.h"
#include "llscrollingpanellist.h"
#include "llsliderctrl.h"
#include "lltabcontainervertical.h"
#include "llviewerwindow.h"
#include "llinventorymodel.h"
#include "llinventoryview.h"
#include "lltextbox.h"
#include "lllineeditor.h"
#include "llviewerimagelist.h"
#include "llfocusmgr.h"
#include "llviewercamera.h"
#include "llgenepool.h"
#include "llappearance.h"
#include "imageids.h"
#include "llmodaldialog.h"
#include "llassetstorage.h"
#include "lltexturectrl.h"
#include "lltextureentry.h"
#include "llwearablelist.h"
#include "llviewerinventory.h"
#include "lldbstrings.h"
#include "llcolorswatch.h"
#include "llglheaders.h"
#include "llui.h"
#include "llviewermessage.h"
#include "llimagejpeg.h"
#include "llviewercontrol.h"
#include "llvieweruictrlfactory.h"
#include "llfilepicker.h"

Include dependency graph for llfloatercustomize.cpp:

Go to the source code of this file.

Classes

class  LLUndoWearable
class  LLFloaterCustomizeObserver
class  LLWearableSaveAsDialog
class  LLMakeOutfitDialog
struct  LLSubpart
class  LLPanelEditWearable
class  LLScrollingPanelParam
struct  WearablePanelData
class  LLCurrentlyWorn

Enumerations

enum  ESubpart {
  SUBPART_SHAPE_HEAD = 1, SUBPART_SHAPE_EYES, SUBPART_SHAPE_EARS, SUBPART_SHAPE_NOSE,
  SUBPART_SHAPE_MOUTH, SUBPART_SHAPE_CHIN, SUBPART_SHAPE_TORSO, SUBPART_SHAPE_LEGS,
  SUBPART_SHAPE_WHOLE, SUBPART_SHAPE_DETAIL, SUBPART_SKIN_COLOR, SUBPART_SKIN_FACEDETAIL,
  SUBPART_SKIN_MAKEUP, SUBPART_SKIN_BODYDETAIL, SUBPART_HAIR_COLOR, SUBPART_HAIR_STYLE,
  SUBPART_HAIR_EYEBROWS, SUBPART_HAIR_FACIAL, SUBPART_EYES, SUBPART_SHIRT,
  SUBPART_PANTS, SUBPART_SHOES, SUBPART_SOCKS, SUBPART_JACKET,
  SUBPART_GLOVES, SUBPART_UNDERSHIRT, SUBPART_UNDERPANTS, SUBPART_SKIRT
}

Functions

BOOL edit_wearable_for_teens (EWearableType type)

Variables

LLFloaterCustomizegFloaterCustomize = NULL
const F32 PARAM_STEP_TIME_THRESHOLD = 0.25f
const S32 BTN_BORDER = 2
const S32 PARAM_HINT_WIDTH = 128
const S32 PARAM_HINT_HEIGHT = 128
const S32 PARAM_HINT_LABEL_HEIGHT = 16
const S32 PARAM_PANEL_WIDTH = 2 * (3* BTN_BORDER + PARAM_HINT_WIDTH + LLPANEL_BORDER_WIDTH)
const S32 PARAM_PANEL_HEIGHT = 2 * BTN_BORDER + PARAM_HINT_HEIGHT + PARAM_HINT_LABEL_HEIGHT + 4 * LLPANEL_BORDER_WIDTH
const S32 LOWER_BTN_HEIGHT = 18 + 8
const S32 FLOATER_CUSTOMIZE_BUTTON_WIDTH = 82
const S32 FLOATER_CUSTOMIZE_BOTTOM_PAD = 30
const S32 LINE_HEIGHT = 16
const S32 HEADER_PAD = 8
const S32 HEADER_HEIGHT = 3 * (LINE_HEIGHT + LLFLOATER_VPAD) + (2 * LLPANEL_BORDER_WIDTH) + HEADER_PAD


Detailed Description

The customize avatar floater, triggered by "Appearance...".

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llfloatercustomize.cpp.


Enumeration Type Documentation

enum ESubpart

Enumerator:
SUBPART_SHAPE_HEAD 
SUBPART_SHAPE_EYES 
SUBPART_SHAPE_EARS 
SUBPART_SHAPE_NOSE 
SUBPART_SHAPE_MOUTH 
SUBPART_SHAPE_CHIN 
SUBPART_SHAPE_TORSO 
SUBPART_SHAPE_LEGS 
SUBPART_SHAPE_WHOLE 
SUBPART_SHAPE_DETAIL 
SUBPART_SKIN_COLOR 
SUBPART_SKIN_FACEDETAIL 
SUBPART_SKIN_MAKEUP 
SUBPART_SKIN_BODYDETAIL 
SUBPART_HAIR_COLOR 
SUBPART_HAIR_STYLE 
SUBPART_HAIR_EYEBROWS 
SUBPART_HAIR_FACIAL 
SUBPART_EYES 
SUBPART_SHIRT 
SUBPART_PANTS 
SUBPART_SHOES 
SUBPART_SOCKS 
SUBPART_JACKET 
SUBPART_GLOVES 
SUBPART_UNDERSHIRT 
SUBPART_UNDERPANTS 
SUBPART_SKIRT 

Definition at line 332 of file llfloatercustomize.cpp.


Function Documentation

BOOL edit_wearable_for_teens ( EWearableType  type  ) 

Definition at line 186 of file llfloatercustomize.cpp.

References FALSE, TRUE, WT_UNDERPANTS, and WT_UNDERSHIRT.

Referenced by LLFloaterCustomize::createWearablePanel(), LLMakeOutfitDialog::LLMakeOutfitDialog(), and LLFloaterCustomize::onBtnMakeOutfit().


Variable Documentation

const S32 BTN_BORDER = 2

Definition at line 1162 of file llfloatercustomize.cpp.

const S32 FLOATER_CUSTOMIZE_BOTTOM_PAD = 30

Definition at line 2192 of file llfloatercustomize.cpp.

const S32 FLOATER_CUSTOMIZE_BUTTON_WIDTH = 82

Definition at line 2191 of file llfloatercustomize.cpp.

LLFloaterCustomize* gFloaterCustomize = NULL

Definition at line 83 of file llfloatercustomize.cpp.

Referenced by LLUndoWearable::applyUndoRedo(), LLAgent::calcCustomizeAvatarUIOffset(), LLScrollingPanelParam::draw(), LLPanelEditWearable::draw(), handle_reset_view(), LLPanelEditWearable::onBtnRandomize(), LLPanelEditWearable::onBtnSubpart(), LLPanelEditWearable::onCommitSexChange(), LLScrollingPanelParam::onHintMouseDown(), LLScrollingPanelParam::onSliderMouseDown(), remove_inventory_category_from_avatar(), LLWearable::removeFromAvatar(), LLViewerWindow::restoreGL(), LLFloaterCustomize::setCurrentWearableType(), LLPanelEditWearable::setSubpart(), LLMorphView::setVisible(), LLAgent::userRemoveAllClothes(), wear_inventory_category_on_avatar(), and LLWearable::writeToAvatar().

const S32 HEADER_HEIGHT = 3 * (LINE_HEIGHT + LLFLOATER_VPAD) + (2 * LLPANEL_BORDER_WIDTH) + HEADER_PAD

Definition at line 2195 of file llfloatercustomize.cpp.

const S32 HEADER_PAD = 8

Definition at line 2194 of file llfloatercustomize.cpp.

const S32 LINE_HEIGHT = 16

Definition at line 2193 of file llfloatercustomize.cpp.

Referenced by LLAlertDialog::createDialog(), LLGroupNotifyBox::LLGroupNotifyBox(), and LLAlertDialog::setCheckBox().

const S32 LOWER_BTN_HEIGHT = 18 + 8

Definition at line 2189 of file llfloatercustomize.cpp.

const S32 PARAM_HINT_HEIGHT = 128

Definition at line 1164 of file llfloatercustomize.cpp.

const S32 PARAM_HINT_LABEL_HEIGHT = 16

Definition at line 1165 of file llfloatercustomize.cpp.

const S32 PARAM_HINT_WIDTH = 128

Definition at line 1163 of file llfloatercustomize.cpp.

const S32 PARAM_PANEL_HEIGHT = 2 * BTN_BORDER + PARAM_HINT_HEIGHT + PARAM_HINT_LABEL_HEIGHT + 4 * LLPANEL_BORDER_WIDTH

Definition at line 1167 of file llfloatercustomize.cpp.

const S32 PARAM_PANEL_WIDTH = 2 * (3* BTN_BORDER + PARAM_HINT_WIDTH + LLPANEL_BORDER_WIDTH)

Definition at line 1166 of file llfloatercustomize.cpp.

const F32 PARAM_STEP_TIME_THRESHOLD = 0.25f

Definition at line 85 of file llfloatercustomize.cpp.

Referenced by LLScrollingPanelParam::LLScrollingPanelParam(), LLScrollingPanelParam::onHintMaxMouseUp(), and LLScrollingPanelParam::onHintMinMouseUp().


Generated on Thu Jul 1 06:10:13 2010 for Second Life Viewer by  doxygen 1.4.7