diff options
Diffstat (limited to 'linden/indra/llui/lluictrlfactory.cpp')
-rw-r--r-- | linden/indra/llui/lluictrlfactory.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/linden/indra/llui/lluictrlfactory.cpp b/linden/indra/llui/lluictrlfactory.cpp index 98228d5..a51d8e4 100644 --- a/linden/indra/llui/lluictrlfactory.cpp +++ b/linden/indra/llui/lluictrlfactory.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -173,7 +173,7 @@ std::vector<LLString> LLUICtrlFactory::mXUIPaths; | |||
173 | class LLUICtrlLocate : public LLUICtrl | 173 | class LLUICtrlLocate : public LLUICtrl |
174 | { | 174 | { |
175 | public: | 175 | public: |
176 | LLUICtrlLocate() : LLUICtrl("locate", LLRect(0,0,0,0), FALSE, NULL, NULL) {} | 176 | LLUICtrlLocate() : LLUICtrl("locate", LLRect(0,0,0,0), FALSE, NULL, NULL) { setTabStop(FALSE); } |
177 | virtual void draw() { } | 177 | virtual void draw() { } |
178 | 178 | ||
179 | virtual EWidgetType getWidgetType() const { return WIDGET_TYPE_LOCATE; } | 179 | virtual EWidgetType getWidgetType() const { return WIDGET_TYPE_LOCATE; } |
@@ -181,7 +181,11 @@ public: | |||
181 | 181 | ||
182 | static LLView *fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) | 182 | static LLView *fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
183 | { | 183 | { |
184 | LLString name("pad"); | ||
185 | node->getAttributeString("name", name); | ||
186 | |||
184 | LLUICtrlLocate *new_ctrl = new LLUICtrlLocate(); | 187 | LLUICtrlLocate *new_ctrl = new LLUICtrlLocate(); |
188 | new_ctrl->setName(name); | ||
185 | new_ctrl->initFromXML(node, parent); | 189 | new_ctrl->initFromXML(node, parent); |
186 | return new_ctrl; | 190 | return new_ctrl; |
187 | } | 191 | } |
@@ -196,6 +200,7 @@ LLUICtrlFactory::LLUICtrlFactory() | |||
196 | LLUICtrlCreator<LLButton>::registerCreator(LL_BUTTON_TAG, this); | 200 | LLUICtrlCreator<LLButton>::registerCreator(LL_BUTTON_TAG, this); |
197 | LLUICtrlCreator<LLCheckBoxCtrl>::registerCreator(LL_CHECK_BOX_CTRL_TAG, this); | 201 | LLUICtrlCreator<LLCheckBoxCtrl>::registerCreator(LL_CHECK_BOX_CTRL_TAG, this); |
198 | LLUICtrlCreator<LLComboBox>::registerCreator(LL_COMBO_BOX_TAG, this); | 202 | LLUICtrlCreator<LLComboBox>::registerCreator(LL_COMBO_BOX_TAG, this); |
203 | LLUICtrlCreator<LLFlyoutButton>::registerCreator(LL_FLYOUT_BUTTON_TAG, this); | ||
199 | LLUICtrlCreator<LLLineEditor>::registerCreator(LL_LINE_EDITOR_TAG, this); | 204 | LLUICtrlCreator<LLLineEditor>::registerCreator(LL_LINE_EDITOR_TAG, this); |
200 | LLUICtrlCreator<LLSearchEditor>::registerCreator(LL_SEARCH_EDITOR_TAG, this); | 205 | LLUICtrlCreator<LLSearchEditor>::registerCreator(LL_SEARCH_EDITOR_TAG, this); |
201 | LLUICtrlCreator<LLScrollListCtrl>::registerCreator(LL_SCROLL_LIST_CTRL_TAG, this); | 206 | LLUICtrlCreator<LLScrollListCtrl>::registerCreator(LL_SCROLL_LIST_CTRL_TAG, this); |
@@ -282,8 +287,11 @@ bool LLUICtrlFactory::getLayeredXMLNode(const LLString &filename, LLXMLNodePtr& | |||
282 | 287 | ||
283 | if (!LLXMLNode::parseFile(mXUIPaths.front() + filename, root, NULL)) | 288 | if (!LLXMLNode::parseFile(mXUIPaths.front() + filename, root, NULL)) |
284 | { | 289 | { |
285 | llwarns << "Problem reading UI description file: " << mXUIPaths.front() + filename << llendl; | 290 | if (!LLXMLNode::parseFile(filename, root, NULL)) |
286 | return FALSE; | 291 | { |
292 | llwarns << "Problem reading UI description file: " << mXUIPaths.front() + filename << llendl; | ||
293 | return FALSE; | ||
294 | } | ||
287 | } | 295 | } |
288 | 296 | ||
289 | LLXMLNodePtr updateRoot; | 297 | LLXMLNodePtr updateRoot; |