LLFloaterColorPicker Class Reference

#include <llfloatercolorpicker.h>

Inheritance diagram for LLFloaterColorPicker:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterColorPicker:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFloaterColorPicker (LLColorSwatchCtrl *swatch, BOOL show_apply_immediate=FALSE)
virtual ~LLFloaterColorPicker ()
virtual BOOL postBuild ()
virtual void draw ()
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual void onMouseCaptureLost ()
virtual void onClose (bool app_quitting)
void createUI ()
void initUI (F32 rValIn, F32 gValIn, F32 bValIn)
void showUI ()
void destroyUI ()
void cancelSelection ()
LLColorSwatchCtrlgetSwatch ()
void setOrigRgb (F32 origRIn, F32 origGIn, F32 origBIn)
void getOrigRgb (F32 &origROut, F32 &origGOut, F32 &origBOut)
F32 getOrigR ()
F32 getOrigG ()
F32 getOrigB ()
void setCurRgb (F32 curRIn, F32 curGIn, F32 curBIn)
void getCurRgb (F32 &curROut, F32 &curGOut, F32 &curBOut)
F32 getCurR ()
F32 getCurG ()
F32 getCurB ()
void setCurHsl (F32 curHIn, F32 curSIn, F32 curLIn)
void getCurHsl (F32 &curHOut, F32 &curSOut, F32 &curLOut)
F32 getCurH ()
F32 getCurS ()
F32 getCurL ()
BOOL updateRgbHslFromPoint (S32 xPosIn, S32 yPosIn)
void updateTextEntry ()
void stopUsingPipette ()
void setMouseDownInHueRegion (BOOL mouse_down_in_region)
BOOL getMouseDownInHueRegion ()
void setMouseDownInLumRegion (BOOL mouse_down_in_region)
BOOL getMouseDownInLumRegion ()
void setMouseDownInSwatch (BOOL mouse_down_in_swatch)
BOOL getMouseDownInSwatch ()
void onTextEntryChanged (LLUICtrl *ctrl)
void hslToRgb (F32 hValIn, F32 sValIn, F32 lValIn, F32 &rValOut, F32 &gValOut, F32 &bValOut)
F32 hueToRgb (F32 val1In, F32 val2In, F32 valHUeIn)
void setActive (BOOL active)

Static Protected Member Functions

static void onClickCancel (void *data)
static void onClickSelect (void *data)
static void onClickPipette (void *data)
static void onTextCommit (LLUICtrl *ctrl, void *data)
static void onImmediateCheck (LLUICtrl *ctrl, void *data)
static void onColorSelect (const LLTextureEntry &te, void *data)

Private Member Functions

void enableTextCallbacks (BOOL stateIn)
void drawPalette ()
LLColor4getComplimentaryColor (LLColor4 &backgroundColor)

Private Attributes

F32 origR
F32 origG
F32 origB
F32 curR
F32 curG
F32 curB
F32 curH
F32 curS
F32 curL
const S32 mComponents
BOOL mMouseDownInLumRegion
BOOL mMouseDownInHueRegion
BOOL mMouseDownInSwatch
const S32 mRGBViewerImageLeft
const S32 mRGBViewerImageTop
const S32 mRGBViewerImageWidth
const S32 mRGBViewerImageHeight
const S32 mLumRegionLeft
const S32 mLumRegionTop
const S32 mLumRegionWidth
const S32 mLumRegionHeight
const S32 mLumMarkerSize
const S32 mSwatchRegionLeft
const S32 mSwatchRegionTop
const S32 mSwatchRegionWidth
const S32 mSwatchRegionHeight
LLViewmSwatchView
const S32 numPaletteColumns
const S32 numPaletteRows
std::vector< LLColor4 * > mPalette
S32 highlightEntry
const S32 mPaletteRegionLeft
const S32 mPaletteRegionTop
const S32 mPaletteRegionWidth
const S32 mPaletteRegionHeight
LLPointer< LLImageGLmRGBImage
LLColorSwatchCtrlmSwatch
BOOL mActive
LLCheckBoxCtrlmApplyImmediateCheck
BOOL mCanApplyImmediately
LLButtonmSelectBtn
LLButtonmCancelBtn
LLButtonmPipetteBtn
F32 mContextConeOpacity

Detailed Description

Definition at line 49 of file llfloatercolorpicker.h.


Constructor & Destructor Documentation

LLFloaterColorPicker::LLFloaterColorPicker ( LLColorSwatchCtrl swatch,
BOOL  show_apply_immediate = FALSE 
)

Definition at line 80 of file llfloatercolorpicker.cpp.

References createUI(), FALSE, mApplyImmediateCheck, mCanApplyImmediately, LLCheckBoxCtrl::set(), and LLCheckBoxCtrl::setEnabled().

LLFloaterColorPicker::~LLFloaterColorPicker (  )  [virtual]

Definition at line 128 of file llfloatercolorpicker.cpp.

References destroyUI().


Member Function Documentation

void LLFloaterColorPicker::cancelSelection (  ) 

Definition at line 1165 of file llfloatercolorpicker.cpp.

References LLColorSwatchCtrl::COLOR_CANCEL, enableTextCallbacks(), FALSE, getOrigB(), getOrigG(), getOrigR(), getSwatch(), LLColorSwatchCtrl::onColorChanged(), setCurRgb(), and LLFloater::setVisible().

Referenced by LLColorSwatchCtrl::setEnabled(), and LLColorSwatchCtrl::~LLColorSwatchCtrl().

void LLFloaterColorPicker::createUI (  ) 

Definition at line 138 of file llfloatercolorpicker.cpp.

References LLUICtrlFactory::buildFloater(), codec, f, FALSE, LLControlGroup::getColor4(), gSavedSettings, gUICtrlFactory, hslToRgb(), mComponents, mPalette, mRGBImage, mRGBViewerImageHeight, mRGBViewerImageWidth, numPaletteColumns, numPaletteRows, s, S32, LLFloater::setVisible(), TRUE, x, and y.

Referenced by LLFloaterColorPicker().

void LLFloaterColorPicker::destroyUI (  ) 

Definition at line 283 of file llfloatercolorpicker.cpp.

References mPalette, mSwatchView, NULL, LLView::removeChild(), and stopUsingPipette().

Referenced by ~LLFloaterColorPicker().

void LLFloaterColorPicker::draw (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 538 of file llfloatercolorpicker.cpp.

References LLFocusMgr::childHasKeyboardFocus(), LLFocusMgr::childHasMouseCapture(), CONTEXT_CONE_IN_ALPHA, CONTEXT_CONE_OUT_ALPHA, CONTEXT_FADE_TIME, LLFloater::draw(), drawPalette(), f, FALSE, getCurB(), getCurG(), getCurH(), getCurL(), getCurR(), LLToolMgr::getCurrentTool(), getCurS(), LLControlGroup::getF32(), LLCriticalDamp::getInterpolant(), LLView::getLocalRect(), gFocusMgr, gl_draw_image(), gl_line_2d(), gl_rect_2d(), gl_triangle_2d(), glBegin, glColor4f, glEnd, gSavedSettings, gToolMgr, gToolPipette, hslToRgb(), LLView::isInVisibleChain(), lerp(), LLView::localRectToOtherView(), mActive, mApplyImmediateCheck, LLRectBase< Type >::mBottom, mCanApplyImmediately, mContextConeOpacity, LLFloater::mDragHandle, LLRectBase< Type >::mLeft, mLumMarkerSize, mLumRegionHeight, mLumRegionLeft, mLumRegionTop, mLumRegionWidth, mPipetteBtn, mRGBImage, mRGBViewerImageHeight, mRGBViewerImageLeft, mRGBViewerImageTop, mRGBViewerImageWidth, LLRectBase< Type >::mRight, mSelectBtn, mSwatch, mSwatchRegionHeight, mSwatchRegionLeft, mSwatchRegionTop, mSwatchRegionWidth, LLRectBase< Type >::mTop, NULL, S32, LLCheckBoxCtrl::setEnabled(), LLView::setEnabled(), LLButton::setToggleState(), TRUE, LLColor4::white, and y.

void LLFloaterColorPicker::drawPalette (  )  [private]

Definition at line 700 of file llfloatercolorpicker.cpp.

References f, FALSE, getComplimentaryColor(), gl_line_2d(), gl_rect_2d(), highlightEntry, mPalette, mPaletteRegionHeight, mPaletteRegionLeft, mPaletteRegionTop, mPaletteRegionWidth, numPaletteColumns, numPaletteRows, S32, TRUE, x, and y.

Referenced by draw().

void LLFloaterColorPicker::enableTextCallbacks ( BOOL  stateIn  )  [private]

Definition at line 768 of file llfloatercolorpicker.cpp.

References LLPanel::childSetCommitCallback(), and onTextCommit().

Referenced by cancelSelection(), handleMouseDown(), initUI(), onTextEntryChanged(), and setCurRgb().

LLColor4 & LLFloaterColorPicker::getComplimentaryColor ( LLColor4 backgroundColor  )  [private]

Definition at line 678 of file llfloatercolorpicker.cpp.

References LLColor4::black, LLColor4::calcHSL(), f, and LLColor4::white.

Referenced by drawPalette().

F32 LLFloaterColorPicker::getCurB (  )  [inline]

Definition at line 85 of file llfloatercolorpicker.h.

References curB.

Referenced by draw(), handleMouseUp(), LLColorSwatchCtrl::onColorChanged(), and updateTextEntry().

F32 LLFloaterColorPicker::getCurG (  )  [inline]

Definition at line 84 of file llfloatercolorpicker.h.

References curG.

Referenced by draw(), handleMouseUp(), LLColorSwatchCtrl::onColorChanged(), and updateTextEntry().

F32 LLFloaterColorPicker::getCurH (  )  [inline]

Definition at line 90 of file llfloatercolorpicker.h.

References curH.

Referenced by draw(), updateRgbHslFromPoint(), and updateTextEntry().

void LLFloaterColorPicker::getCurHsl ( F32 curHOut,
F32 curSOut,
F32 curLOut 
)

Definition at line 423 of file llfloatercolorpicker.cpp.

References curH, curL, and curS.

Referenced by onTextEntryChanged().

F32 LLFloaterColorPicker::getCurL (  )  [inline]

Definition at line 92 of file llfloatercolorpicker.h.

References curL.

Referenced by draw(), updateRgbHslFromPoint(), and updateTextEntry().

F32 LLFloaterColorPicker::getCurR (  )  [inline]

Definition at line 83 of file llfloatercolorpicker.h.

References curR.

Referenced by draw(), handleMouseUp(), LLColorSwatchCtrl::onColorChanged(), and updateTextEntry().

void LLFloaterColorPicker::getCurRgb ( F32 curROut,
F32 curGOut,
F32 curBOut 
)

Definition at line 397 of file llfloatercolorpicker.cpp.

References curB, curG, and curR.

Referenced by onTextEntryChanged().

F32 LLFloaterColorPicker::getCurS (  )  [inline]

Definition at line 91 of file llfloatercolorpicker.h.

References curS.

Referenced by draw(), updateRgbHslFromPoint(), and updateTextEntry().

BOOL LLFloaterColorPicker::getMouseDownInHueRegion (  )  [inline]

Definition at line 104 of file llfloatercolorpicker.h.

References mMouseDownInHueRegion.

Referenced by handleHover(), and handleMouseUp().

BOOL LLFloaterColorPicker::getMouseDownInLumRegion (  )  [inline]

Definition at line 107 of file llfloatercolorpicker.h.

References mMouseDownInLumRegion.

Referenced by handleHover(), and handleMouseUp().

BOOL LLFloaterColorPicker::getMouseDownInSwatch (  )  [inline]

Definition at line 110 of file llfloatercolorpicker.h.

References mMouseDownInSwatch.

F32 LLFloaterColorPicker::getOrigB (  )  [inline]

Definition at line 78 of file llfloatercolorpicker.h.

References origB.

Referenced by cancelSelection().

F32 LLFloaterColorPicker::getOrigG (  )  [inline]

Definition at line 77 of file llfloatercolorpicker.h.

References origG.

Referenced by cancelSelection().

F32 LLFloaterColorPicker::getOrigR (  )  [inline]

Definition at line 76 of file llfloatercolorpicker.h.

References origR.

Referenced by cancelSelection().

void LLFloaterColorPicker::getOrigRgb ( F32 origROut,
F32 origGOut,
F32 origBOut 
)

Definition at line 364 of file llfloatercolorpicker.cpp.

References origB, origG, and origR.

LLColorSwatchCtrl* LLFloaterColorPicker::getSwatch (  )  [inline]

Definition at line 71 of file llfloatercolorpicker.h.

References mSwatch.

Referenced by cancelSelection(), handleMouseDown(), handleMouseUp(), onTextEntryChanged(), and showUI().

BOOL LLFloaterColorPicker::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1010 of file llfloatercolorpicker.cpp.

References getMouseDownInHueRegion(), getMouseDownInLumRegion(), LLView::getWindow(), LLView::handleHover(), highlightEntry, LLFloater::isFrontmost(), llclamp(), mLumRegionHeight, mLumRegionLeft, mLumRegionTop, mLumRegionWidth, mMouseDownInSwatch, mPaletteRegionHeight, mPaletteRegionLeft, mPaletteRegionTop, mPaletteRegionWidth, mRGBViewerImageHeight, mRGBViewerImageLeft, mRGBViewerImageTop, mRGBViewerImageWidth, numPaletteColumns, numPaletteRows, LLRectBase< Type >::pointInRect(), S32, LLWindow::setCursor(), TRUE, UI_CURSOR_ARROWDRAG, updateRgbHslFromPoint(), and updateTextEntry().

BOOL LLFloaterColorPicker::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLFloater.

Definition at line 904 of file llfloatercolorpicker.cpp.

References LLFloaterView::bringToFront(), c, LLFocusMgr::childHasKeyboardFocus(), LLColorSwatchCtrl::COLOR_CHANGE, enableTextCallbacks(), FALSE, LLCheckBoxCtrl::get(), getSwatch(), gFloaterView, gFocusMgr, gViewerWindow, LLFloater::handleMouseDown(), mApplyImmediateCheck, LLFloater::mForeground, mLumMarkerSize, mLumRegionHeight, mLumRegionLeft, mLumRegionTop, mLumRegionWidth, mPalette, mPaletteRegionHeight, mPaletteRegionLeft, mPaletteRegionTop, mPaletteRegionWidth, mRGBViewerImageHeight, mRGBViewerImageLeft, mRGBViewerImageTop, mRGBViewerImageWidth, mSelectBtn, mSwatchRegionHeight, mSwatchRegionLeft, mSwatchRegionTop, mSwatchRegionWidth, numPaletteColumns, numPaletteRows, LLColorSwatchCtrl::onColorChanged(), LLRectBase< Type >::pointInRect(), r, S32, setCurRgb(), LLUICtrl::setFocus(), LLViewerWindow::setMouseCapture(), setMouseDownInHueRegion(), setMouseDownInLumRegion(), setMouseDownInSwatch(), TRUE, updateRgbHslFromPoint(), and updateTextEntry().

BOOL LLFloaterColorPicker::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1088 of file llfloatercolorpicker.cpp.

References bottom, codec, LLColorSwatchCtrl::COLOR_CHANGE, f, FALSE, LLCheckBoxCtrl::get(), getCurB(), getCurG(), getCurR(), getMouseDownInHueRegion(), getMouseDownInLumRegion(), getSwatch(), LLView::getWindow(), gSavedSettings, gViewerWindow, LLView::handleMouseUp(), LLView::hasMouseCapture(), left, mApplyImmediateCheck, mMouseDownInSwatch, mPalette, mPaletteRegionHeight, mPaletteRegionLeft, mPaletteRegionTop, mPaletteRegionWidth, NULL, numPaletteColumns, numPaletteRows, LLColorSwatchCtrl::onColorChanged(), LLRectBase< Type >::pointInRect(), right, s, S32, LLControlGroup::setColor4(), LLWindow::setCursor(), LLViewerWindow::setMouseCapture(), setMouseDownInHueRegion(), setMouseDownInLumRegion(), top, and UI_CURSOR_ARROW.

void LLFloaterColorPicker::hslToRgb ( F32  hValIn,
F32  sValIn,
F32  lValIn,
F32 rValOut,
F32 gValOut,
F32 bValOut 
)

Definition at line 323 of file llfloatercolorpicker.cpp.

References f, and hueToRgb().

Referenced by createUI(), draw(), and setCurHsl().

F32 LLFloaterColorPicker::hueToRgb ( F32  val1In,
F32  val2In,
F32  valHUeIn 
)

Definition at line 309 of file llfloatercolorpicker.cpp.

References f.

Referenced by hslToRgb().

void LLFloaterColorPicker::initUI ( F32  rValIn,
F32  gValIn,
F32  bValIn 
)

Definition at line 259 of file llfloatercolorpicker.cpp.

References enableTextCallbacks(), f, llclamp(), setCurRgb(), setOrigRgb(), TRUE, and updateTextEntry().

Referenced by LLColorSwatchCtrl::showPicker().

void LLFloaterColorPicker::onClickCancel ( void data  )  [static, protected]

Definition at line 434 of file llfloatercolorpicker.cpp.

Referenced by postBuild().

void LLFloaterColorPicker::onClickPipette ( void data  )  [static, protected]

Definition at line 467 of file llfloatercolorpicker.cpp.

References LLToolMgr::clearTransientTool(), gToolMgr, gToolPipette, onColorSelect(), LLToolPipette::setSelectCallback(), and LLToolMgr::setTransientTool().

Referenced by postBuild().

void LLFloaterColorPicker::onClickSelect ( void data  )  [static, protected]

Definition at line 452 of file llfloatercolorpicker.cpp.

References LLColorSwatchCtrl::COLOR_SELECT, and LLColorSwatchCtrl::onColorChanged().

Referenced by postBuild().

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

Reimplemented from LLFloater.

Definition at line 1076 of file llfloatercolorpicker.cpp.

References LLFloater::onClose().

void LLFloaterColorPicker::onColorSelect ( const LLTextureEntry te,
void data 
) [static, protected]

Definition at line 517 of file llfloatercolorpicker.cpp.

References LLColorSwatchCtrl::COLOR_CHANGE, LLTextureEntry::getColor(), LLColor4::mV, LLColorSwatchCtrl::onColorChanged(), VBLUE, VGREEN, and VRED.

Referenced by onClickPipette().

void LLFloaterColorPicker::onImmediateCheck ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 503 of file llfloatercolorpicker.cpp.

References LLColorSwatchCtrl::COLOR_CHANGE, gSavedSettings, LLColorSwatchCtrl::onColorChanged(), and LLControlGroup::setBOOL().

Referenced by postBuild().

void LLFloaterColorPicker::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLView.

Definition at line 530 of file llfloatercolorpicker.cpp.

References FALSE, setMouseDownInHueRegion(), and setMouseDownInLumRegion().

void LLFloaterColorPicker::onTextCommit ( LLUICtrl ctrl,
void data 
) [static, protected]

Definition at line 491 of file llfloatercolorpicker.cpp.

Referenced by enableTextCallbacks(), and postBuild().

void LLFloaterColorPicker::onTextEntryChanged ( LLUICtrl ctrl  ) 

Definition at line 795 of file llfloatercolorpicker.cpp.

References LLSD::asReal(), LLColorSwatchCtrl::COLOR_CHANGE, enableTextCallbacks(), FALSE, LLCheckBoxCtrl::get(), getCurHsl(), getCurRgb(), LLView::getName(), getSwatch(), LLUICtrl::getValue(), mApplyImmediateCheck, LLColorSwatchCtrl::onColorChanged(), setCurHsl(), setCurRgb(), TRUE, and updateTextEntry().

BOOL LLFloaterColorPicker::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 222 of file llfloatercolorpicker.cpp.

References LLPanel::childSetCommitCallback(), LLControlGroup::getBOOL(), LLUICtrlFactory::getButtonByName(), LLUICtrlFactory::getCheckBoxByName(), gSavedSettings, mApplyImmediateCheck, mCancelBtn, mPipetteBtn, mSelectBtn, onClickCancel(), onClickPipette(), onClickSelect(), onImmediateCheck(), onTextCommit(), LLCheckBoxCtrl::set(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLUICtrl::setCommitCallback(), LLUICtrl::setFocus(), LLButton::setImages(), and TRUE.

void LLFloaterColorPicker::setActive ( BOOL  active  ) 

Definition at line 1219 of file llfloatercolorpicker.cpp.

References LLButton::getToggleState(), mActive, mPipetteBtn, and stopUsingPipette().

Referenced by LLColorSwatchCtrl::setValid().

void LLFloaterColorPicker::setCurHsl ( F32  curHIn,
F32  curSIn,
F32  curLIn 
)

Definition at line 408 of file llfloatercolorpicker.cpp.

References curB, curG, curH, curL, curR, curS, and hslToRgb().

Referenced by onTextEntryChanged(), and updateRgbHslFromPoint().

void LLFloaterColorPicker::setCurRgb ( F32  curRIn,
F32  curGIn,
F32  curBIn 
)

Definition at line 375 of file llfloatercolorpicker.cpp.

References curB, curG, curH, curL, curR, curS, enableTextCallbacks(), FALSE, TRUE, and updateTextEntry().

Referenced by cancelSelection(), handleMouseDown(), initUI(), onTextEntryChanged(), LLColorSwatchCtrl::set(), and showUI().

void LLFloaterColorPicker::setMouseDownInHueRegion ( BOOL  mouse_down_in_region  ) 

Definition at line 1180 of file llfloatercolorpicker.cpp.

References LLFocusMgr::childHasKeyboardFocus(), gFocusMgr, mMouseDownInHueRegion, mSelectBtn, LLUICtrl::setFocus(), and TRUE.

Referenced by handleMouseDown(), handleMouseUp(), and onMouseCaptureLost().

void LLFloaterColorPicker::setMouseDownInLumRegion ( BOOL  mouse_down_in_region  ) 

Definition at line 1193 of file llfloatercolorpicker.cpp.

References LLFocusMgr::childHasKeyboardFocus(), gFocusMgr, mMouseDownInLumRegion, mSelectBtn, LLUICtrl::setFocus(), and TRUE.

Referenced by handleMouseDown(), handleMouseUp(), and onMouseCaptureLost().

void LLFloaterColorPicker::setMouseDownInSwatch ( BOOL  mouse_down_in_swatch  ) 

Definition at line 1206 of file llfloatercolorpicker.cpp.

References LLFocusMgr::childHasKeyboardFocus(), gFocusMgr, mMouseDownInSwatch, mSelectBtn, LLUICtrl::setFocus(), and TRUE.

Referenced by handleMouseDown().

void LLFloaterColorPicker::setOrigRgb ( F32  origRIn,
F32  origGIn,
F32  origBIn 
)

Definition at line 353 of file llfloatercolorpicker.cpp.

References origB, origG, and origR.

Referenced by initUI(), LLColorSwatchCtrl::setOriginal(), and showUI().

void LLFloaterColorPicker::showUI (  ) 

Definition at line 187 of file llfloatercolorpicker.cpp.

References LLFloater::close(), LLColorSwatchCtrl::COLOR_CHANGE, LLWindow::dialog_color_picker(), FALSE, LLControlGroup::getBOOL(), getSwatch(), LLViewerWindow::getWindow(), gSavedSettings, gViewerWindow, LLColorSwatchCtrl::onColorChanged(), LLFloater::open(), send_agent_pause(), send_agent_resume(), setCurRgb(), LLFloater::setFocus(), setOrigRgb(), LLFloater::setVisible(), and TRUE.

Referenced by LLColorSwatchCtrl::showPicker().

void LLFloaterColorPicker::stopUsingPipette (  ) 

Definition at line 1229 of file llfloatercolorpicker.cpp.

References LLToolMgr::clearTransientTool(), LLToolMgr::getCurrentTool(), gToolMgr, and gToolPipette.

Referenced by destroyUI(), and setActive().

BOOL LLFloaterColorPicker::updateRgbHslFromPoint ( S32  xPosIn,
S32  yPosIn 
)

Definition at line 866 of file llfloatercolorpicker.cpp.

References FALSE, getCurH(), getCurL(), getCurS(), mLumRegionHeight, mLumRegionLeft, mLumRegionTop, mLumRegionWidth, mRGBViewerImageHeight, mRGBViewerImageLeft, mRGBViewerImageTop, mRGBViewerImageWidth, setCurHsl(), and TRUE.

Referenced by handleHover(), and handleMouseDown().

void LLFloaterColorPicker::updateTextEntry (  ) 

Definition at line 753 of file llfloatercolorpicker.cpp.

References LLPanel::childSetValue(), f, getCurB(), getCurG(), getCurH(), getCurL(), getCurR(), and getCurS().

Referenced by handleHover(), handleMouseDown(), initUI(), onTextEntryChanged(), and setCurRgb().


Member Data Documentation

F32 LLFloaterColorPicker::curB [private]

Definition at line 143 of file llfloatercolorpicker.h.

Referenced by getCurB(), getCurRgb(), setCurHsl(), and setCurRgb().

F32 LLFloaterColorPicker::curG [private]

Definition at line 143 of file llfloatercolorpicker.h.

Referenced by getCurG(), getCurRgb(), setCurHsl(), and setCurRgb().

F32 LLFloaterColorPicker::curH [private]

Definition at line 144 of file llfloatercolorpicker.h.

Referenced by getCurH(), getCurHsl(), setCurHsl(), and setCurRgb().

F32 LLFloaterColorPicker::curL [private]

Definition at line 144 of file llfloatercolorpicker.h.

Referenced by getCurHsl(), getCurL(), setCurHsl(), and setCurRgb().

F32 LLFloaterColorPicker::curR [private]

Definition at line 143 of file llfloatercolorpicker.h.

Referenced by getCurR(), getCurRgb(), setCurHsl(), and setCurRgb().

F32 LLFloaterColorPicker::curS [private]

Definition at line 144 of file llfloatercolorpicker.h.

Referenced by getCurHsl(), getCurS(), setCurHsl(), and setCurRgb().

S32 LLFloaterColorPicker::highlightEntry [private]

Definition at line 174 of file llfloatercolorpicker.h.

Referenced by drawPalette(), and handleHover().

BOOL LLFloaterColorPicker::mActive [private]

Definition at line 187 of file llfloatercolorpicker.h.

Referenced by draw(), and setActive().

LLCheckBoxCtrl* LLFloaterColorPicker::mApplyImmediateCheck [private]

Definition at line 190 of file llfloatercolorpicker.h.

Referenced by draw(), handleMouseDown(), handleMouseUp(), LLFloaterColorPicker(), onTextEntryChanged(), and postBuild().

BOOL LLFloaterColorPicker::mCanApplyImmediately [private]

Definition at line 191 of file llfloatercolorpicker.h.

Referenced by draw(), and LLFloaterColorPicker().

LLButton* LLFloaterColorPicker::mCancelBtn [private]

Definition at line 194 of file llfloatercolorpicker.h.

Referenced by postBuild().

const S32 LLFloaterColorPicker::mComponents [private]

Definition at line 146 of file llfloatercolorpicker.h.

Referenced by createUI().

F32 LLFloaterColorPicker::mContextConeOpacity [private]

Definition at line 198 of file llfloatercolorpicker.h.

Referenced by draw().

const S32 LLFloaterColorPicker::mLumMarkerSize [private]

Definition at line 161 of file llfloatercolorpicker.h.

Referenced by draw(), and handleMouseDown().

const S32 LLFloaterColorPicker::mLumRegionHeight [private]

Definition at line 160 of file llfloatercolorpicker.h.

Referenced by draw(), handleHover(), handleMouseDown(), and updateRgbHslFromPoint().

const S32 LLFloaterColorPicker::mLumRegionLeft [private]

Definition at line 157 of file llfloatercolorpicker.h.

Referenced by draw(), handleHover(), handleMouseDown(), and updateRgbHslFromPoint().

const S32 LLFloaterColorPicker::mLumRegionTop [private]

Definition at line 158 of file llfloatercolorpicker.h.

Referenced by draw(), handleHover(), handleMouseDown(), and updateRgbHslFromPoint().

const S32 LLFloaterColorPicker::mLumRegionWidth [private]

Definition at line 159 of file llfloatercolorpicker.h.

Referenced by draw(), handleHover(), handleMouseDown(), and updateRgbHslFromPoint().

BOOL LLFloaterColorPicker::mMouseDownInHueRegion [private]

Definition at line 149 of file llfloatercolorpicker.h.

Referenced by getMouseDownInHueRegion(), and setMouseDownInHueRegion().

BOOL LLFloaterColorPicker::mMouseDownInLumRegion [private]

Definition at line 148 of file llfloatercolorpicker.h.

Referenced by getMouseDownInLumRegion(), and setMouseDownInLumRegion().

BOOL LLFloaterColorPicker::mMouseDownInSwatch [private]

Definition at line 150 of file llfloatercolorpicker.h.

Referenced by getMouseDownInSwatch(), handleHover(), handleMouseUp(), and setMouseDownInSwatch().

std::vector< LLColor4* > LLFloaterColorPicker::mPalette [private]

Definition at line 173 of file llfloatercolorpicker.h.

Referenced by createUI(), destroyUI(), drawPalette(), handleMouseDown(), and handleMouseUp().

const S32 LLFloaterColorPicker::mPaletteRegionHeight [private]

Definition at line 178 of file llfloatercolorpicker.h.

Referenced by drawPalette(), handleHover(), handleMouseDown(), and handleMouseUp().

const S32 LLFloaterColorPicker::mPaletteRegionLeft [private]

Definition at line 175 of file llfloatercolorpicker.h.

Referenced by drawPalette(), handleHover(), handleMouseDown(), and handleMouseUp().

const S32 LLFloaterColorPicker::mPaletteRegionTop [private]

Definition at line 176 of file llfloatercolorpicker.h.

Referenced by drawPalette(), handleHover(), handleMouseDown(), and handleMouseUp().

const S32 LLFloaterColorPicker::mPaletteRegionWidth [private]

Definition at line 177 of file llfloatercolorpicker.h.

Referenced by drawPalette(), handleHover(), handleMouseDown(), and handleMouseUp().

LLButton* LLFloaterColorPicker::mPipetteBtn [private]

Definition at line 196 of file llfloatercolorpicker.h.

Referenced by draw(), postBuild(), and setActive().

LLPointer<LLImageGL> LLFloaterColorPicker::mRGBImage [private]

Definition at line 181 of file llfloatercolorpicker.h.

Referenced by createUI(), and draw().

const S32 LLFloaterColorPicker::mRGBViewerImageHeight [private]

Definition at line 155 of file llfloatercolorpicker.h.

Referenced by createUI(), draw(), handleHover(), handleMouseDown(), and updateRgbHslFromPoint().

const S32 LLFloaterColorPicker::mRGBViewerImageLeft [private]

Definition at line 152 of file llfloatercolorpicker.h.

Referenced by draw(), handleHover(), handleMouseDown(), and updateRgbHslFromPoint().

const S32 LLFloaterColorPicker::mRGBViewerImageTop [private]

Definition at line 153 of file llfloatercolorpicker.h.

Referenced by draw(), handleHover(), handleMouseDown(), and updateRgbHslFromPoint().

const S32 LLFloaterColorPicker::mRGBViewerImageWidth [private]

Definition at line 154 of file llfloatercolorpicker.h.

Referenced by createUI(), draw(), handleHover(), handleMouseDown(), and updateRgbHslFromPoint().

LLButton* LLFloaterColorPicker::mSelectBtn [private]

Definition at line 193 of file llfloatercolorpicker.h.

Referenced by draw(), handleMouseDown(), postBuild(), setMouseDownInHueRegion(), setMouseDownInLumRegion(), and setMouseDownInSwatch().

LLColorSwatchCtrl* LLFloaterColorPicker::mSwatch [private]

Definition at line 184 of file llfloatercolorpicker.h.

Referenced by draw(), and getSwatch().

const S32 LLFloaterColorPicker::mSwatchRegionHeight [private]

Definition at line 167 of file llfloatercolorpicker.h.

Referenced by draw(), and handleMouseDown().

const S32 LLFloaterColorPicker::mSwatchRegionLeft [private]

Definition at line 164 of file llfloatercolorpicker.h.

Referenced by draw(), and handleMouseDown().

const S32 LLFloaterColorPicker::mSwatchRegionTop [private]

Definition at line 165 of file llfloatercolorpicker.h.

Referenced by draw(), and handleMouseDown().

const S32 LLFloaterColorPicker::mSwatchRegionWidth [private]

Definition at line 166 of file llfloatercolorpicker.h.

Referenced by draw(), and handleMouseDown().

LLView* LLFloaterColorPicker::mSwatchView [private]

Definition at line 169 of file llfloatercolorpicker.h.

Referenced by destroyUI().

const S32 LLFloaterColorPicker::numPaletteColumns [private]

Definition at line 171 of file llfloatercolorpicker.h.

Referenced by createUI(), drawPalette(), handleHover(), handleMouseDown(), and handleMouseUp().

const S32 LLFloaterColorPicker::numPaletteRows [private]

Definition at line 172 of file llfloatercolorpicker.h.

Referenced by createUI(), drawPalette(), handleHover(), handleMouseDown(), and handleMouseUp().

F32 LLFloaterColorPicker::origB [private]

Definition at line 140 of file llfloatercolorpicker.h.

Referenced by getOrigB(), getOrigRgb(), and setOrigRgb().

F32 LLFloaterColorPicker::origG [private]

Definition at line 140 of file llfloatercolorpicker.h.

Referenced by getOrigG(), getOrigRgb(), and setOrigRgb().

F32 LLFloaterColorPicker::origR [private]

Definition at line 140 of file llfloatercolorpicker.h.

Referenced by getOrigR(), getOrigRgb(), and setOrigRgb().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:18 2010 for Second Life Viewer by  doxygen 1.4.7