diff options
Diffstat (limited to 'linden/indra/llui/llcombobox.cpp')
-rw-r--r-- | linden/indra/llui/llcombobox.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/linden/indra/llui/llcombobox.cpp b/linden/indra/llui/llcombobox.cpp index cbc67fe..ce75f03 100644 --- a/linden/indra/llui/llcombobox.cpp +++ b/linden/indra/llui/llcombobox.cpp | |||
@@ -120,6 +120,8 @@ LLXMLNodePtr LLComboBox::getXML(bool save_children) const | |||
120 | { | 120 | { |
121 | LLXMLNodePtr node = LLUICtrl::getXML(); | 121 | LLXMLNodePtr node = LLUICtrl::getXML(); |
122 | 122 | ||
123 | node->setName(LL_COMBO_BOX_TAG); | ||
124 | |||
123 | // Attributes | 125 | // Attributes |
124 | 126 | ||
125 | node->createChild("allow_text_entry", TRUE)->setBoolValue(mAllowTextEntry); | 127 | node->createChild("allow_text_entry", TRUE)->setBoolValue(mAllowTextEntry); |
@@ -1172,6 +1174,33 @@ LLFlyoutButton::LLFlyoutButton( | |||
1172 | updateLayout(); | 1174 | updateLayout(); |
1173 | } | 1175 | } |
1174 | 1176 | ||
1177 | // virtual | ||
1178 | LLXMLNodePtr LLFlyoutButton::getXML(bool save_children) const | ||
1179 | { | ||
1180 | LLXMLNodePtr node = LLComboBox::getXML(); | ||
1181 | |||
1182 | node->setName(LL_FLYOUT_BUTTON_TAG); | ||
1183 | |||
1184 | LLXMLNodePtr child; | ||
1185 | |||
1186 | for (child = node->getFirstChild(); child.notNull();) | ||
1187 | { | ||
1188 | if (child->hasName("combo_item")) | ||
1189 | { | ||
1190 | child->setName(LL_FLYOUT_BUTTON_ITEM_TAG); | ||
1191 | |||
1192 | //setName does a delete and add, so we have to start over | ||
1193 | child = node->getFirstChild(); | ||
1194 | } | ||
1195 | else | ||
1196 | { | ||
1197 | child = child->getNextSibling(); | ||
1198 | } | ||
1199 | } | ||
1200 | |||
1201 | return node; | ||
1202 | } | ||
1203 | |||
1175 | //static | 1204 | //static |
1176 | LLView* LLFlyoutButton::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) | 1205 | LLView* LLFlyoutButton::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
1177 | { | 1206 | { |