Merge viewer-neko
commit
c2d9c3f634
|
|
@ -666,6 +666,37 @@ void LLAccordionCtrl::onScrollPosChangeCallback(S32, LLScrollbar*)
|
|||
{
|
||||
updateLayout(getRect().getWidth(),getRect().getHeight());
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLAccordionCtrl::onChildGotFocus(const LLUICtrl *cntrl)
|
||||
{
|
||||
if (mScrollbar && mScrollbar->getVisible())
|
||||
{
|
||||
// same as scrollToShowRect
|
||||
LLRect rect;
|
||||
cntrl->localRectToOtherView(cntrl->getLocalRect(), &rect, this);
|
||||
|
||||
// Translate to parent coordinatess to check if we are in visible rectangle
|
||||
rect.translate(getRect().mLeft, getRect().mBottom);
|
||||
|
||||
if (!getRect().contains(rect))
|
||||
{
|
||||
// for accordition's scroll, height is in pixels
|
||||
// Back to local coords and calculate position for scroller
|
||||
S32 bottom = mScrollbar->getDocPos() - rect.mBottom + getRect().mBottom;
|
||||
S32 top = mScrollbar->getDocPos() - rect.mTop + getRect().mTop;
|
||||
|
||||
S32 scroll_pos = llclamp(mScrollbar->getDocPos(),
|
||||
bottom, // min vertical scroll
|
||||
top); // max vertical scroll
|
||||
|
||||
mScrollbar->setDocPos(scroll_pos);
|
||||
}
|
||||
}
|
||||
|
||||
LLUICtrl::onChildGotFocus(cntrl);
|
||||
}
|
||||
|
||||
void LLAccordionCtrl::onOpen (const LLSD& key)
|
||||
{
|
||||
for(size_t i=0;i<mAccordionTabs.size();++i)
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@ public:
|
|||
void draw();
|
||||
|
||||
void onScrollPosChangeCallback(S32, LLScrollbar*);
|
||||
virtual void onChildGotFocus(const LLUICtrl * cntrl);
|
||||
|
||||
void onOpen (const LLSD& key);
|
||||
S32 notifyParent(const LLSD& info);
|
||||
|
|
|
|||
|
|
@ -452,6 +452,35 @@ void LLAccordionCtrlTab::onVisibilityChange(BOOL new_visibility)
|
|||
notifyParent(LLSD().with("child_visibility_change", new_visibility));
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLAccordionCtrlTab::onChildGotFocus(const LLUICtrl *cntrl)
|
||||
{
|
||||
if (mScrollbar && mScrollbar->getVisible())
|
||||
{
|
||||
LLRect rect;
|
||||
cntrl->localRectToOtherView(cntrl->getLocalRect(), &rect, this);
|
||||
|
||||
// Translate to parent coordinatess to check if we are in visible rectangle
|
||||
rect.translate(getRect().mLeft, getRect().mBottom);
|
||||
|
||||
if (!getRect().contains(rect))
|
||||
{
|
||||
// for accordition's scroll, height is in pixels
|
||||
// Back to local coords and calculate position for scroller
|
||||
S32 bottom = mScrollbar->getDocPos() - rect.mBottom + getRect().mBottom;
|
||||
S32 top = mScrollbar->getDocPos() - rect.mTop + getRect().mTop;
|
||||
|
||||
S32 scroll_pos = llclamp(mScrollbar->getDocPos(),
|
||||
bottom, // min vertical scroll
|
||||
top); // max vertical scroll
|
||||
|
||||
mScrollbar->setDocPos(scroll_pos);
|
||||
}
|
||||
}
|
||||
|
||||
LLUICtrl::onChildGotFocus(cntrl);
|
||||
}
|
||||
|
||||
BOOL LLAccordionCtrlTab::handleMouseDown(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
if(mCollapsible && mHeaderVisible && mCanOpenClose)
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ public:
|
|||
* Raises notifyParent event with "child_visibility_change" = new_visibility
|
||||
*/
|
||||
void onVisibilityChange(BOOL new_visibility);
|
||||
virtual void onChildGotFocus(const LLUICtrl * cntrl);
|
||||
|
||||
// Changes expand/collapse state and triggers expand/collapse callbacks
|
||||
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
|
||||
|
|
|
|||
|
|
@ -709,6 +709,7 @@ void LLUICtrl::setFocus(BOOL b)
|
|||
if (!hasFocus())
|
||||
{
|
||||
gFocusMgr.setKeyboardFocus( this );
|
||||
onChildGotFocus(this);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -685,6 +685,16 @@ void LLView::onVisibilityChange ( BOOL new_visibility )
|
|||
}
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLView::onChildGotFocus(const LLUICtrl * cntrl)
|
||||
{
|
||||
LLView* parent_view = getParent();
|
||||
if (parent_view)
|
||||
{
|
||||
parent_view->onChildGotFocus(cntrl);
|
||||
}
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLView::translate(S32 x, S32 y)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -307,6 +307,7 @@ public:
|
|||
virtual BOOL setLabelArg( const std::string& key, const LLStringExplicit& text );
|
||||
|
||||
virtual void onVisibilityChange ( BOOL new_visibility );
|
||||
virtual void onChildGotFocus(const LLUICtrl * cntrl);
|
||||
|
||||
void pushVisible(BOOL visible) { mLastVisible = mVisible; setVisible(visible); }
|
||||
void popVisible() { setVisible(mLastVisible); }
|
||||
|
|
|
|||
|
|
@ -65,6 +65,11 @@ void LLFloaterLoadPrefPreset::onOpen(const LLSD& key)
|
|||
|
||||
EDefaultOptions option = DEFAULT_TOP;
|
||||
LLPresetsManager::getInstance()->setPresetNamesInComboBox(mSubdirectory, combo, option);
|
||||
std::string preset_graphic_active = gSavedSettings.getString("PresetGraphicActive");
|
||||
if (!preset_graphic_active.empty())
|
||||
{
|
||||
combo->setSimple(preset_graphic_active);
|
||||
}
|
||||
}
|
||||
|
||||
void LLFloaterLoadPrefPreset::onPresetsListChange()
|
||||
|
|
@ -73,6 +78,11 @@ void LLFloaterLoadPrefPreset::onPresetsListChange()
|
|||
|
||||
EDefaultOptions option = DEFAULT_TOP;
|
||||
LLPresetsManager::getInstance()->setPresetNamesInComboBox(mSubdirectory, combo, option);
|
||||
std::string preset_graphic_active = gSavedSettings.getString("PresetGraphicActive");
|
||||
if (!preset_graphic_active.empty())
|
||||
{
|
||||
combo->setSimple(preset_graphic_active);
|
||||
}
|
||||
}
|
||||
|
||||
void LLFloaterLoadPrefPreset::onBtnCancel()
|
||||
|
|
|
|||
|
|
@ -87,7 +87,10 @@ void LLFloaterSavePrefPreset::onBtnSave()
|
|||
{
|
||||
std::string name = mPresetCombo->getSimple();
|
||||
|
||||
if ((name == LLTrans::getString(PRESETS_DEFAULT)) || (name == PRESETS_DEFAULT))
|
||||
std::string upper_name(name);
|
||||
LLStringUtil::toUpper(upper_name);
|
||||
|
||||
if ((name == LLTrans::getString(PRESETS_DEFAULT)) || (upper_name == PRESETS_DEFAULT_UPPER))
|
||||
{
|
||||
LLNotificationsUtil::add("DefaultPresetNotSaved");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1219,6 +1219,7 @@ void LLPanelFace::updateUI(bool force_set_values /*false*/)
|
|||
|
||||
bool enabled = (editable && isIdenticalPlanarTexgen());
|
||||
childSetValue("checkbox planar align", align_planar && enabled);
|
||||
childSetVisible("checkbox planar align", enabled);
|
||||
childSetEnabled("checkbox planar align", enabled);
|
||||
childSetEnabled("button align textures", enabled && LLSelectMgr::getInstance()->getSelection()->getObjectCount() > 1);
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
#include <map>
|
||||
|
||||
static const std::string PRESETS_DEFAULT = "Default";
|
||||
static const std::string PRESETS_DEFAULT_UPPER = "DEFAULT";
|
||||
static const std::string PRESETS_DIR = "presets";
|
||||
static const std::string PRESETS_GRAPHIC = "graphic";
|
||||
static const std::string PRESETS_CAMERA = "camera";
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ Apenas lotes maiores podem ser listados na busca.
|
|||
Avatares em outros lotes podem ver e conversar com avatares neste lote
|
||||
</text>
|
||||
<check_box label="Ver avatares" name="SeeAvatarsCheck" top="170" tool_tip="Permite que os avatares em outros lotes vejam e batam papo com avatares neste lote. Você poderá vê-los e conversar com eles."/>
|
||||
<text name="landing_point">
|
||||
<text name="landing_point" width="225">
|
||||
Ponto de Aterrissagem: [LANDING]
|
||||
</text>
|
||||
<button label="Definir" label_selected="Definir" name="Set" tool_tip="Define o ponto de aterrissagem de visitantes. Define para o ponto em que seu avatar se encontra neste lote."/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue