#include <llcolorswatch.h>
Inheritance diagram for LLColorSwatchCtrl:
Definition at line 48 of file llcolorswatch.h.
LLColorSwatchCtrl::LLColorSwatchCtrl | ( | const std::string & | name, | |
const LLRect & | rect, | |||
const LLColor4 & | color, | |||
void(*)(LLUICtrl *ctrl, void *userdata) | on_commit_callback, | |||
void * | callback_userdata | |||
) |
Definition at line 52 of file llcolorswatch.cpp.
References LLView::addChild(), LLViewBorder::BEVEL_IN, BTN_HEIGHT_SMALL, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, LLRectBase< Type >::getHeight(), LLViewerImageList::getImageFromUUID(), LLControlGroup::getString(), LLRectBase< Type >::getWidth(), gImageList, gViewerArt, mAlphaGradientImage, mBorder, mCaption, MIPMAP_FALSE, LLView::mRect, LLStringBase< char >::null, LLView::setFollows(), LLFontGL::sSansSerifSmall, and TRUE.
Referenced by fromXML().
LLColorSwatchCtrl::LLColorSwatchCtrl | ( | const std::string & | name, | |
const LLRect & | rect, | |||
const std::string & | label, | |||
const LLColor4 & | color, | |||
void(*)(LLUICtrl *ctrl, void *userdata) | on_commit_callback, | |||
void * | callback_userdata | |||
) |
Definition at line 80 of file llcolorswatch.cpp.
References LLView::addChild(), LLViewBorder::BEVEL_IN, BTN_HEIGHT_SMALL, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, LLRectBase< Type >::getHeight(), LLViewerImageList::getImageFromUUID(), LLControlGroup::getString(), LLRectBase< Type >::getWidth(), gImageList, gViewerArt, mAlphaGradientImage, mBorder, mCaption, MIPMAP_FALSE, LLView::mRect, LLStringBase< char >::null, LLView::setFollows(), LLFontGL::sSansSerifSmall, and TRUE.
LLColorSwatchCtrl::~LLColorSwatchCtrl | ( | ) |
Definition at line 108 of file llcolorswatch.cpp.
References LLFloaterColorPicker::cancelSelection(), LLFloater::close(), LLFloater::getFloaterByHandle(), mAlphaGradientImage, mPickerHandle, and NULL.
void LLColorSwatchCtrl::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 203 of file llcolorswatch.cpp.
References LLViewerImage::bindTexture(), LLColor4::black, border, BTN_HEIGHT_SMALL, LLView::draw(), FALSE, LLRectBase< Type >::getHeight(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gl_draw_x(), gl_rect_2d(), gl_rect_2d_checkerboard(), gl_rect_2d_simple_tex(), glColor4fv, glPopMatrix, glTranslatef, LLColor4::grey, LLUICtrl::hasFocus(), mAlphaGradientImage, mBorder, mBorderColor, LLRectBase< Type >::mBottom, mColor, LLRectBase< Type >::mLeft, LLView::mRect, LLColor4::mV, mValid, LLPointer< Type >::notNull(), LLViewBorder::setKeyboardFocusHighlight(), LLRectBase< Type >::stretch(), TRUE, and VALPHA.
LLView * LLColorSwatchCtrl::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Definition at line 358 of file llcolorswatch.cpp.
References LLView::createRect(), f, FALSE, LLUICtrl::initFromXML(), LLColorSwatchCtrl(), NULL, and setCanApplyImmediately().
const LLColor4& LLColorSwatchCtrl::get | ( | ) | [inline] |
Definition at line 72 of file llcolorswatch.h.
References mColor.
Referenced by LLPanelEditWearable::onColorCommit(), LLPanelVolume::onCommitLight(), LLPanelVolume::onLightSelectColor(), and LLPanelFace::sendColor().
virtual LLSD LLColorSwatchCtrl::getValue | ( | ) | const [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 71 of file llcolorswatch.h.
References LLColor4::getValue(), and mColor.
Referenced by LLFloaterSettingsDebug::updateControl().
virtual LLString LLColorSwatchCtrl::getWidgetTag | ( | ) | const [inline, virtual] |
Implements LLView.
Definition at line 70 of file llcolorswatch.h.
References LL_COLOR_SWATCH_CTRL_TAG.
virtual EWidgetType LLColorSwatchCtrl::getWidgetType | ( | ) | const [inline, virtual] |
Implements LLView.
Definition at line 69 of file llcolorswatch.h.
References WIDGET_TYPE_COLOR_SWATCH.
LLXMLNodePtr LLColorSwatchCtrl::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 340 of file llcolorswatch.cpp.
References LLTextBox::getText(), LLUICtrl::getXML(), mBorderColor, mCanApplyImmediately, mCaption, mColor, LLColor4::mV, and TRUE.
Reimplemented from LLView.
Definition at line 120 of file llcolorswatch.cpp.
References handleMouseDown().
Reimplemented from LLView.
Definition at line 125 of file llcolorswatch.cpp.
References LLView::getWindow(), LLWindow::setCursor(), TRUE, and UI_CURSOR_HAND.
Reimplemented from LLView.
Definition at line 170 of file llcolorswatch.cpp.
References gViewerWindow, LLViewerWindow::setMouseCapture(), and TRUE.
Referenced by handleDoubleClick().
Reimplemented from LLView.
Definition at line 180 of file llcolorswatch.cpp.
References FALSE, LLView::getVisible(), gViewerWindow, LLView::hasMouseCapture(), llassert, LLView::mEnabled, NULL, LLView::pointInView(), LLViewerWindow::setMouseCapture(), showPicker(), and TRUE.
BOOL LLColorSwatchCtrl::handleUnicodeCharHere | ( | llwchar | uni_char, | |
BOOL | called_from_parent | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 131 of file llcolorswatch.cpp.
References LLView::getVisible(), LLView::handleUnicodeCharHere(), LLView::mEnabled, showPicker(), and TRUE.
void LLColorSwatchCtrl::onColorChanged | ( | void * | data, | |
EColorPickOp | pick_op = COLOR_CHANGE | |||
) | [static] |
Definition at line 273 of file llcolorswatch.cpp.
References COLOR_CANCEL, COLOR_SELECT, LLFloaterColorPicker::getCurB(), LLFloaterColorPicker::getCurG(), LLFloaterColorPicker::getCurR(), LLFloater::getFloaterByHandle(), LLView::setControlValue(), and VALPHA.
Referenced by LLFloaterColorPicker::cancelSelection(), LLFloaterColorPicker::handleMouseDown(), LLFloaterColorPicker::handleMouseUp(), LLFloaterColorPicker::onClickSelect(), LLFloaterColorPicker::onColorSelect(), LLFloaterColorPicker::onImmediateCheck(), LLFloaterColorPicker::onTextEntryChanged(), and LLFloaterColorPicker::showUI().
void LLColorSwatchCtrl::set | ( | const LLColor4 & | color, | |
BOOL | update_picker = FALSE , |
|||
BOOL | from_event = FALSE | |||
) |
Definition at line 151 of file llcolorswatch.cpp.
References LLFloater::getFloaterByHandle(), LLColor4::getValue(), mColor, mPickerHandle, LLColor4::mV, LLView::setControlValue(), LLFloaterColorPicker::setCurRgb(), VBLUE, VGREEN, and VRED.
Referenced by LLPanelEditWearable::draw(), LLPanelVolume::getState(), LLPanelFace::getState(), setValue(), and LLFloaterSettingsDebug::updateControl().
Definition at line 78 of file llcolorswatch.h.
References mCanApplyImmediately.
Referenced by fromXML(), LLPanelFace::getState(), and LLPanelFace::postBuild().
Reimplemented from LLView.
Definition at line 249 of file llcolorswatch.cpp.
References LLFloaterColorPicker::cancelSelection(), LLFloater::close(), LLFloater::getFloaterByHandle(), mCaption, mPickerHandle, and LLView::setEnabled().
Referenced by LLPanelVolume::clearCtrls(), LLPanelVolume::getState(), and LLPanelFace::getState().
void LLColorSwatchCtrl::setLabel | ( | const std::string & | label | ) |
void LLColorSwatchCtrl::setOnCancelCallback | ( | LLUICtrlCallback | cb | ) | [inline] |
Definition at line 79 of file llcolorswatch.h.
References mOnCancelCallback.
Referenced by LLPanelVolume::postBuild(), and LLPanelFace::postBuild().
void LLColorSwatchCtrl::setOnSelectCallback | ( | LLUICtrlCallback | cb | ) | [inline] |
Definition at line 80 of file llcolorswatch.h.
References mOnSelectCallback.
Referenced by LLPanelVolume::postBuild(), and LLPanelFace::postBuild().
Definition at line 141 of file llcolorswatch.cpp.
References LLFloater::getFloaterByHandle(), mColor, mPickerHandle, LLColor4::mV, LLFloaterColorPicker::setOrigRgb(), VBLUE, VGREEN, and VRED.
Referenced by LLPanelFace::getState().
Definition at line 306 of file llcolorswatch.cpp.
References LLFloater::getFloaterByHandle(), mPickerHandle, mValid, and LLFloaterColorPicker::setActive().
Referenced by LLPanelVolume::clearCtrls(), LLPanelVolume::getState(), and LLPanelFace::getState().
Reimplemented from LLView.
Definition at line 266 of file llcolorswatch.cpp.
Referenced by LLFloaterSettingsDebug::updateControl().
Definition at line 317 of file llcolorswatch.cpp.
References LLFloater::addDependentFloater(), LLFloater::getFloaterByHandle(), LLFloaterView::getParentFloater(), gFloaterView, LLFloaterColorPicker::initUI(), mCanApplyImmediately, mColor, mPickerHandle, LLColor4::mV, LLFloater::setFocus(), LLFloaterColorPicker::showUI(), TRUE, VBLUE, VGREEN, and VRED.
Referenced by handleMouseUp(), and handleUnicodeCharHere().
LLPointer<LLViewerImage> LLColorSwatchCtrl::mAlphaGradientImage [protected] |
Definition at line 107 of file llcolorswatch.h.
Referenced by draw(), LLColorSwatchCtrl(), and ~LLColorSwatchCtrl().
LLViewBorder* LLColorSwatchCtrl::mBorder [protected] |
LLColor4 LLColorSwatchCtrl::mBorderColor [protected] |
BOOL LLColorSwatchCtrl::mCanApplyImmediately [protected] |
Definition at line 103 of file llcolorswatch.h.
Referenced by getXML(), setCanApplyImmediately(), and showPicker().
LLTextBox* LLColorSwatchCtrl::mCaption [protected] |
Definition at line 100 of file llcolorswatch.h.
Referenced by getXML(), LLColorSwatchCtrl(), setEnabled(), and setLabel().
LLColor4 LLColorSwatchCtrl::mColor [protected] |
Definition at line 98 of file llcolorswatch.h.
Referenced by draw(), get(), getValue(), getXML(), set(), setOriginal(), and showPicker().
LLUICtrlCallback LLColorSwatchCtrl::mOnCancelCallback [protected] |
LLUICtrlCallback LLColorSwatchCtrl::mOnSelectCallback [protected] |
LLViewHandle LLColorSwatchCtrl::mPickerHandle [protected] |
Definition at line 101 of file llcolorswatch.h.
Referenced by set(), setEnabled(), setOriginal(), setValid(), showPicker(), and ~LLColorSwatchCtrl().
BOOL LLColorSwatchCtrl::mValid [protected] |