diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/lluictrlfactory.cpp | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/linden/indra/llui/lluictrlfactory.cpp b/linden/indra/llui/lluictrlfactory.cpp index 79f7313..70f1e3e 100644 --- a/linden/indra/llui/lluictrlfactory.cpp +++ b/linden/indra/llui/lluictrlfactory.cpp | |||
@@ -89,7 +89,7 @@ const LLString LLUICtrlFactory::sUICtrlNames[WIDGET_TYPE_COUNT] = | |||
89 | LLString("web_browser"), //WIDGET_TYPE_WEBBROWSER | 89 | LLString("web_browser"), //WIDGET_TYPE_WEBBROWSER |
90 | LLString("slider"), //WIDGET_TYPE_SLIDER, actually LLSliderCtrl | 90 | LLString("slider"), //WIDGET_TYPE_SLIDER, actually LLSliderCtrl |
91 | LLString("slider_bar"), //WIDGET_TYPE_SLIDER_BAR, actually LLSlider | 91 | LLString("slider_bar"), //WIDGET_TYPE_SLIDER_BAR, actually LLSlider |
92 | LLString("volume_slider"), //WIDGET_TYPE_VOLUME_SLIDER, actually LLVolumeSliderCtrl | 92 | LLString("volume_slider"), //WIDGET_TYPE_VOLUME_SLIDER, actually LLSlider + "volume" param |
93 | LLString("spinner"), //WIDGET_TYPE_SPINNER, actually LLSpinCtrl | 93 | LLString("spinner"), //WIDGET_TYPE_SPINNER, actually LLSpinCtrl |
94 | LLString("text_editor"), //WIDGET_TYPE_TEXT_EDITOR | 94 | LLString("text_editor"), //WIDGET_TYPE_TEXT_EDITOR |
95 | LLString("texture_picker"),//WIDGET_TYPE_TEXTURE_PICKER | 95 | LLString("texture_picker"),//WIDGET_TYPE_TEXTURE_PICKER |
@@ -155,6 +155,7 @@ const LLString LLUICtrlFactory::sUICtrlNames[WIDGET_TYPE_COUNT] = | |||
155 | LLString("texture_view"), //WIDGET_TYPE_TEXTURE_VIEW | 155 | LLString("texture_view"), //WIDGET_TYPE_TEXTURE_VIEW |
156 | LLString("memory_view"), //WIDGET_TYPE_MEMORY_VIEW | 156 | LLString("memory_view"), //WIDGET_TYPE_MEMORY_VIEW |
157 | LLString("frame_stat_view"), //WIDGET_TYPE_FRAME_STAT_VIEW | 157 | LLString("frame_stat_view"), //WIDGET_TYPE_FRAME_STAT_VIEW |
158 | LLString("layout_stack"), //WIDGET_TYPE_LAYOUT_STACK | ||
158 | LLString("DONT_CARE"), //WIDGET_TYPE_DONTCARE | 159 | LLString("DONT_CARE"), //WIDGET_TYPE_DONTCARE |
159 | }; | 160 | }; |
160 | 161 | ||
@@ -197,6 +198,7 @@ LLUICtrlFactory::LLUICtrlFactory() | |||
197 | LLUICtrlCreator<LLScrollListCtrl>::registerCreator(LL_SCROLL_LIST_CTRL_TAG, this); | 198 | LLUICtrlCreator<LLScrollListCtrl>::registerCreator(LL_SCROLL_LIST_CTRL_TAG, this); |
198 | LLUICtrlCreator<LLSliderCtrl>::registerCreator(LL_SLIDER_CTRL_TAG, this); | 199 | LLUICtrlCreator<LLSliderCtrl>::registerCreator(LL_SLIDER_CTRL_TAG, this); |
199 | LLUICtrlCreator<LLSlider>::registerCreator(LL_SLIDER_TAG, this); | 200 | LLUICtrlCreator<LLSlider>::registerCreator(LL_SLIDER_TAG, this); |
201 | LLUICtrlCreator<LLSlider>::registerCreator(LL_VOLUME_SLIDER_CTRL_TAG, this); | ||
200 | LLUICtrlCreator<LLSpinCtrl>::registerCreator(LL_SPIN_CTRL_TAG, this); | 202 | LLUICtrlCreator<LLSpinCtrl>::registerCreator(LL_SPIN_CTRL_TAG, this); |
201 | LLUICtrlCreator<LLTextBox>::registerCreator(LL_TEXT_BOX_TAG, this); | 203 | LLUICtrlCreator<LLTextBox>::registerCreator(LL_TEXT_BOX_TAG, this); |
202 | LLUICtrlCreator<LLRadioGroup>::registerCreator(LL_RADIO_GROUP_TAG, this); | 204 | LLUICtrlCreator<LLRadioGroup>::registerCreator(LL_RADIO_GROUP_TAG, this); |
@@ -210,6 +212,7 @@ LLUICtrlFactory::LLUICtrlFactory() | |||
210 | LLUICtrlCreator<LLMenuGL>::registerCreator(LL_MENU_GL_TAG, this); | 212 | LLUICtrlCreator<LLMenuGL>::registerCreator(LL_MENU_GL_TAG, this); |
211 | LLUICtrlCreator<LLMenuBarGL>::registerCreator(LL_MENU_BAR_GL_TAG, this); | 213 | LLUICtrlCreator<LLMenuBarGL>::registerCreator(LL_MENU_BAR_GL_TAG, this); |
212 | LLUICtrlCreator<LLScrollingPanelList>::registerCreator(LL_SCROLLING_PANEL_LIST_TAG, this); | 214 | LLUICtrlCreator<LLScrollingPanelList>::registerCreator(LL_SCROLLING_PANEL_LIST_TAG, this); |
215 | LLUICtrlCreator<LLLayoutStack>::registerCreator(LL_LAYOUT_STACK_TAG, this); | ||
213 | 216 | ||
214 | setupPaths(); | 217 | setupPaths(); |
215 | 218 | ||
@@ -765,6 +768,37 @@ LLScrollingPanelList* LLUICtrlFactory::getScrollingPanelList(LLPanel* panelp, co | |||
765 | return (LLScrollingPanelList*)panelp->getCtrlByNameAndType(name, WIDGET_TYPE_SCROLLING_PANEL_LIST); | 768 | return (LLScrollingPanelList*)panelp->getCtrlByNameAndType(name, WIDGET_TYPE_SCROLLING_PANEL_LIST); |
766 | } | 769 | } |
767 | 770 | ||
771 | |||
772 | LLCtrlListInterface* LLUICtrlFactory::getListInterfaceByName(LLPanel* panelp, const LLString& name) | ||
773 | { | ||
774 | LLView* viewp = panelp->getCtrlByNameAndType(name, WIDGET_TYPE_DONTCARE); | ||
775 | if (viewp && viewp->isCtrl()) | ||
776 | { | ||
777 | return ((LLUICtrl*)viewp)->getListInterface(); | ||
778 | } | ||
779 | return NULL; | ||
780 | } | ||
781 | |||
782 | LLCtrlSelectionInterface* LLUICtrlFactory::getSelectionInterfaceByName(LLPanel* panelp, const LLString& name) | ||
783 | { | ||
784 | LLView* viewp = panelp->getCtrlByNameAndType(name, WIDGET_TYPE_DONTCARE); | ||
785 | if (viewp && viewp->isCtrl()) | ||
786 | { | ||
787 | return ((LLUICtrl*)viewp)->getSelectionInterface(); | ||
788 | } | ||
789 | return NULL; | ||
790 | } | ||
791 | |||
792 | LLCtrlScrollInterface* LLUICtrlFactory::getScrollInterfaceByName(LLPanel* panelp, const LLString& name) | ||
793 | { | ||
794 | LLView* viewp = panelp->getCtrlByNameAndType(name, WIDGET_TYPE_DONTCARE); | ||
795 | if (viewp && viewp->isCtrl()) | ||
796 | { | ||
797 | return ((LLUICtrl*)viewp)->getScrollInterface(); | ||
798 | } | ||
799 | return NULL; | ||
800 | } | ||
801 | |||
768 | void LLUICtrlFactory::registerCreator(LLString ctrlname, creator_function_t function) | 802 | void LLUICtrlFactory::registerCreator(LLString ctrlname, creator_function_t function) |
769 | { | 803 | { |
770 | LLString::toLower(ctrlname); | 804 | LLString::toLower(ctrlname); |