void LLFloaterTexturePicker::setActive( BOOL active ) { if (!active && getChild<LLUICtrl>("Pipette")->getValue().asBoolean()) { stopUsingPipette(); } mActive = active; }
void LLFloaterTexturePicker::onClose(bool app_quitting) { if (mOwner) { mOwner->onFloaterClose(); } stopUsingPipette(); }
void LLFloaterTexturePicker::setActive( BOOL active ) { if (!active && childGetValue("Pipette").asBoolean()) { stopUsingPipette(); } mActive = active; }
void LLFloaterColorPicker::setActive(BOOL active) { // shut down pipette tool if active if (!active && mPipetteBtn->getToggleState()) { stopUsingPipette(); } mActive = active; }
void LLFloaterColorPicker::destroyUI () { // shut down pipette tool if active stopUsingPipette(); // delete palette we created std::vector < LLColor4* >::iterator iter = mPalette.begin (); while ( iter != mPalette.end () ) { delete ( *iter ); ++iter; } if ( mSwatchView ) { this->removeChild ( mSwatchView ); delete mSwatchView; mSwatchView = NULL; } }