本文整理汇总了C++中LLXMLNodePtr::setName方法的典型用法代码示例。如果您正苦于以下问题:C++ LLXMLNodePtr::setName方法的具体用法?C++ LLXMLNodePtr::setName怎么用?C++ LLXMLNodePtr::setName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLXMLNodePtr
的用法示例。
在下文中一共展示了LLXMLNodePtr::setName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getXML
// virtual
LLXMLNodePtr LLFlyoutButton::getXML(bool save_children) const
{
LLXMLNodePtr node = LLComboBox::getXML();
node->setName(LL_FLYOUT_BUTTON_TAG);
LLXMLNodePtr child;
for (child = node->getFirstChild(); child.notNull();)
{
if (child->hasName("combo_item"))
{
child->setName(LL_FLYOUT_BUTTON_ITEM_TAG);
//setName does a delete and add, so we have to start over
child = node->getFirstChild();
}
else
{
child = child->getNextSibling();
}
}
return node;
}
示例2: getXML
// virtual
LLXMLNodePtr LLSliderCtrl::getXML(bool save_children) const
{
LLXMLNodePtr node = LLUICtrl::getXML();
node->setName(LL_SLIDER_CTRL_TAG);
node->createChild("show_text", TRUE)->setBoolValue(mShowText);
node->createChild("can_edit_text", TRUE)->setBoolValue(mCanEditText);
node->createChild("volume", TRUE)->setBoolValue(mVolumeSlider);
node->createChild("decimal_digits", TRUE)->setIntValue(mPrecision);
if (mLabelBox)
{
node->createChild("label", TRUE)->setStringValue(mLabelBox->getText());
}
// TomY TODO: Do we really want to export the transient state of the slider?
node->createChild("value", TRUE)->setFloatValue(mValue);
if (mSlider)
{
node->createChild("initial_val", TRUE)->setFloatValue(mSlider->getInitialValue());
node->createChild("min_val", TRUE)->setFloatValue(mSlider->getMinValue());
node->createChild("max_val", TRUE)->setFloatValue(mSlider->getMaxValue());
node->createChild("increment", TRUE)->setFloatValue(mSlider->getIncrement());
}
addColorXML(node, mTextEnabledColor, "text_enabled_color", "LabelTextColor");
addColorXML(node, mTextDisabledColor, "text_disabled_color", "LabelDisabledColor");
return node;
}
示例3: getXML
// virtual
LLXMLNodePtr LLSpinCtrl::getXML(bool save_children) const
{
LLXMLNodePtr node = LLUICtrl::getXML();
node->setName(LL_SPIN_CTRL_TAG);
node->createChild("decimal_digits", TRUE)->setIntValue(mPrecision);
if (mLabelBox)
{
node->createChild("label", TRUE)->setStringValue(mLabelBox->getText());
node->createChild("label_width", TRUE)->setIntValue(mLabelBox->getRect().getWidth());
}
node->createChild("initial_val", TRUE)->setFloatValue(mInitialValue);
node->createChild("min_val", TRUE)->setFloatValue(mMinValue);
node->createChild("max_val", TRUE)->setFloatValue(mMaxValue);
node->createChild("increment", TRUE)->setFloatValue(mIncrement);
addColorXML(node, mTextEnabledColor, "text_enabled_color", "LabelTextColor");
addColorXML(node, mTextDisabledColor, "text_disabled_color", "LabelDisabledColor");
return node;
}
示例4: getXML
// virtual
LLXMLNodePtr LLRadioGroup::getXML(bool save_children) const
{
LLXMLNodePtr node = LLUICtrl::getXML();
node->setName(LL_RADIO_GROUP_TAG);
// Attributes
node->createChild("draw_border", TRUE)->setBoolValue(mHasBorder);
node->createChild("allow_deselect", TRUE)->setBoolValue(mAllowDeselect);
// Contents
for (button_list_t::const_iterator iter = mRadioButtons.begin();
iter != mRadioButtons.end(); ++iter)
{
LLRadioCtrl* radio = *iter;
LLXMLNodePtr child_node = radio->getXML();
node->addChild(child_node);
}
return node;
}
示例5: getXML
// virtual
LLXMLNodePtr LLScrollingPanelList::getXML(bool save_children) const
{
LLXMLNodePtr node = LLUICtrl::getXML();
node->setName(LL_SCROLLING_PANEL_LIST_TAG);
return node;
}
示例6: getXML
// virtual
LLXMLNodePtr LLViewerTextEditor::getXML(bool save_children) const
{
LLXMLNodePtr node = LLTextEditor::getXML();
node->setName(LL_TEXT_EDITOR_TAG);
return node;
}
示例7: getXML
// virtual
LLXMLNodePtr LLProgressBar::getXML(bool save_children) const
{
LLXMLNodePtr node = LLView::getXML();
node->setName(LL_PROGRESS_BAR_TAG);
return node;
}
示例8: getXML
LLXMLNodePtr LLJoystickAgentSlide::getXML(bool save_children) const
{
LLXMLNodePtr node = LLJoystick::getXML();
node->setName(LL_JOYSTICK_SLIDE);
return node;
}
示例9: getXML
// virtual
LLXMLNodePtr LLMediaCtrl::getXML(bool save_children) const
{
LLXMLNodePtr node = LLUICtrl::getXML();
node->setName(LL_WEB_BROWSER_CTRL_TAG);
return node;
}
示例10: getXML
virtual LLXMLNodePtr getXML(bool save_children = true) const
{
LLXMLNodePtr node = LLUICtrl::getXML();
node->setName(LL_UI_CTRL_LOCATE_TAG);
return node;
}
示例11: getXML
// virtual
LLXMLNodePtr LLViewBorder::getXML(bool save_children) const
{
LLXMLNodePtr node = LLView::getXML();
node->setName(LL_VIEW_BORDER_TAG);
return node;
}
示例12: getXML
// virtual
LLXMLNodePtr LLNameEditor::getXML(bool save_children) const
{
LLXMLNodePtr node = LLLineEditor::getXML();
node->setName(LL_NAME_EDITOR_TAG);
return node;
}
示例13: getXML
// virtual
LLXMLNodePtr LLTabContainer::getXML(bool save_children) const
{
LLXMLNodePtr node = LLPanel::getXML();
node->setName(LL_TAB_CONTAINER_COMMON_TAG);
node->createChild("tab_position", TRUE)->setStringValue((getTabPosition() == TOP ? "top" : "bottom"));
return node;
}
示例14: getXML
// virtual
LLXMLNodePtr LLInventoryPanel::getXML(bool save_children) const
{
LLXMLNodePtr node = LLPanel::getXML(false); // Do not print out children
node->setName(LL_INVENTORY_PANEL_TAG);
node->createChild("allow_multi_select", TRUE)->setBoolValue(mFolderRoot.get()->getAllowMultiSelect());
return node;
}
示例15: getXML
// virtual
LLXMLNodePtr LLRadioCtrl::getXML(bool save_children) const
{
LLXMLNodePtr node = LLCheckBoxCtrl::getXML();
node->setName(LL_RADIO_ITEM_TAG);
node->setStringValue(getLabel());
return node;
}