17 #ifndef _ulistbox_hpp_ 18 #define _ulistbox_hpp_ 1 19 #include <ubit/uinteractors.hpp> 20 #include <ubit/uchoice.hpp> 126 bool isTransparent()
const {
return transp_style;}
127 UListbox& setTransparent(
bool s =
true) {transp_style = s;
return *
this;}
144 virtual UListbox& addItem(
UStr&
string,
bool duplicate);
168 virtual UListbox& addItems(
const char* items[]);
169 virtual UListbox& addItems(
const std::vector<UStr*>& items,
bool duplicate =
true);
170 virtual UListbox& addItems(
const UArgs& prefix,
const char* items[]);
171 virtual UListbox& addItems(
const UArgs& prefix,
const std::vector<UStr*>& items,
172 bool duplicate =
true);
226 bool isTextMode()
const {
return text_only;};
232 UElem& entry() {
return *pentry;}
239 virtual void changedCB(
UEvent&);
240 virtual void actionCB(
UEvent&);
242 virtual void syncText();
251 void constructs(
const UArgs&);
Radiobox container: makes buttons (and items, checkboxes, etc) contained in this box exclusive...
Definition: ulistbox.hpp:28
UMenu & menu()
gives access to combobox subcomponents.
Definition: ulistbox.hpp:233
Box container.
Definition: ubox.hpp:64
virtual URadiobox & setSelectedIndex(int n)
selects the Nth item; selects the last selectable item if n = -1.
Definition: ulistbox.cpp:49
Ubit Event class.
Definition: uevent.hpp:30
virtual UBox * getSelectedItem() const
returns the selected item; null if there is no selected item.
Definition: ulistbox.cpp:31
Makes the children of a widget (exclusively) selectable.
Definition: uchoice.hpp:30
virtual int getSelectedIndex() const
returns the index of the selected item; -1 if there is no selected item.
Definition: ulistbox.cpp:35
URadiobox & select(int n)
selects the Nth item (synonym for setSelectedIndex()).
Definition: ulistbox.hpp:53
lightweight general purpose container.
Definition: uelem.hpp:44
List widget: enforces a list layout and makes buttons (and items, checkboxes, etc) contained in this ...
Definition: ulistbox.hpp:117
Textfield widget: single line editor.
Definition: uinteractors.hpp:163
Smart Pointer for UObject instances (.
Definition: uobject.hpp:365
URadiobox & select(UBox &item)
selects this item (synonym for setSelectedItem()).
Definition: ulistbox.hpp:50
Argument list (for passing arguments to constructor or add functions).
Definition: uargs.hpp:43
UListbox & select(int n)
selects the Nth item (synonym for setSelectedIndex()).
Definition: ulistbox.hpp:139
static UStyle * createStyle()
static function that returns the style of this class (see details!).
Definition: ubox.cpp:50
Definition: uhardfont.hpp:31
const UChoice & choice() const
returns the internal UChoice object that controls the selection.
Definition: ulistbox.hpp:59
static const UArgs none
the empty arglist.
Definition: uargs.hpp:45
virtual URadiobox & setSelectedItem(UBox &item)
selects this item.
Combo box gadget.
Definition: ulistbox.hpp:213
UListbox & select(UBox &item)
selects this item (synonym for setSelectedItem()).
Definition: ulistbox.hpp:136
Compiled Object Style.
Definition: ustyle.hpp:44
UChoice & choice()
returns the internal UChoice object that controls the selection.
Definition: ulistbox.hpp:56
URadiobox(const UArgs &args=UArgs::none)
creates a new Radiobox widget (see also shortcut function uradiobox()).
Definition: ulistbox.cpp:25
Ubit String.
Definition: ustr.hpp:72