Viewer:UI/Widgets

From Second Life Wiki
Jump to navigation Jump to search


Overview

Widgets are the UI controls, i.e. the components that make up the UI.

Widget design and registration

Overview

Registration

A widget is registered by including the following code in the widget C++ file (e.g. llbutton.cpp):

   static LLDefaultChildRegistry::Register<LLButton> r("button");

= Test Plans = t

Classes

Widget Base Classes

  • LLView - Base class for all UI components
  • ui_ctrl - LLUICtrl - Base class for all widgets. LLUICtrl derives from LLView

Common Embedded Widgets

These are never used by themselves

Containers

UI Widgets

Misc Widgets

Menu Widgets

Button Widgets

  • button - LLButton - clickable push button
  • flyout_button - LLFlyoutButton - button with combo box like behavior

Input Widgets

  • check_box - LLCheckBoxCtrl
  • combo_box - LLComboBox (LLCtrlSelectionInterface, LLCtrlListInterface) - pop-up menu of items with optional direct text entry
  • line_editor - LLLineEditor (LLEditMenuHandler, LLPreeeditor) - single line input
  • multi_slider - LLMultiSliderCtrl
  • radio_group - LLRadioGroup (LLCtrlSelectionInterface) - group of radio buttons
    • radio_item - LLRadioCtrl - single radio button, usually part of a LLRadioGroup
  • scroll_list - LLScrollListCtrl (LLCtrlSelectionInterface, LLCtrlListInterface, LLCtrlScrollInterface) + LLEditMenuHandler - scrolling list of columns
  • search_editor - LLSearchEditor (contains LLLineEditor)
  • slider - LLSliderCtrl
  • spinner - LLSpinCtrl - spinner, integer or float value
  • star_view - LLStatView - grouping of statistics bars
    • star_bar - LLStatBar - statistics bar, horizontal
  • text - LLTextBox - read-only multi-line text output
  • simple_text_editor - LLTextEditor (LLEditMenuHandler, LLPreeeditor) - multi-line text input
    • See text_editor in Viewer section
  • view_border - LLViewBorder - decorator for views

Viewer Widgets

Containers

Misc

Color / Texture Input

Input

Camera / Joystick

Web

Also

  • string - This tag occurs in XML files to specify translatable strings