3 summary:: A view displaying a list of text items.
8 A view that displays a list of text items and allows one of them to be selected.
10 An item can be selected by clicking on it. Pressing the up or down arrow keys while an item is selected will select the previous or next item respectively (if available).
26 The list of items displayed by the view.
29 An Array of Strings, each String defining the text to represent an item.
32 The index of the currently selected item, or nil when no item is selected.
38 Sets link::#-value:: and triggers the link::#-action::.
42 SUBSECTION:: Appearance
45 The background colors of the items.
48 An Array of Colors, one Color for each item.
51 The color used to display all the text of all unselected items.
56 METHOD:: selectedStringColor
57 The color used to display the selected item's text.
63 The color used to indicate the selected item (aside from the color of its text).
71 SUBSECTION:: Interaction
73 METHOD:: selectionMode
74 note:: Only available in Qt GUI ::
76 The allowed mode of item selection, according to the following table:
79 ## strong::Value:: || strong::Meaning::
80 ## \none || No item can be selected.
81 ## \single || Only a single item can be selected at once.
82 ## \multi || Multiple items can be selected. An item's selection is toggled when clicked.
83 ## \extended || Multiple items can be selected, individually by holding the Ctrl key, and in a batch by holding the Shift key.
84 ## \contiguous || Mutliple neighbouring items can be selected by holding the Shift key.
88 One of the Symbols listed in the table above.
95 The action object evaluated whenever the user changes the item selection.
97 METHOD:: enterKeyAction
98 The action object evaluated whenever the user presses the Enter (Return) key.
100 METHOD:: defaultKeyDownAction
102 Implements the default effects of key presses as follows:
105 ## strong::Key:: || strong::Effect::
106 ## space || select next item and trigger action
107 ## r || trigger enterKeyAction
108 ## n || trigger enterKeyAction
109 ## a number || trigger enterKeyAction
110 ## up arrow || select previous item and trigger action
111 ## down arrow || select next item and trigger action
112 ## left arrow || select previous item and trigger action
113 ## right arrow || select next item and trigger action
118 SUBSECTION:: Drag and drop
120 METHOD:: defaultGetDrag
124 METHOD:: defaultCanReceiveDrag
126 True if the current drag data is a number.
128 METHOD:: defaultReceiveDrag
129 Sets link::#-valueAction:: to the current drag data.