18 #define _uchoice_hpp_ 1 19 #include <ubit/uattr.hpp> 81 virtual bool operator()(
const UBox*)
const;
131 virtual void changed(
bool update =
true);
133 virtual UBox* getSelectedItemImpl()
const;
165 virtual void setCanUnselectMode(
bool);
166 virtual bool isCanUnselectMode()
const;
178 UInt& index()
const {
return *pindex;}
190 virtual void changed(
bool update =
true);
205 bool can_unselect_mode;
210 void _selectItem(
UElem*);
Base class for attributes.
Definition: uattr.hpp:97
virtual void update()
updates parents graphics.
Definition: uchoice.cpp:83
Box container.
Definition: ubox.hpp:64
virtual void removingFrom(UChild &, UElem &parent)
called when this object is removed from a parent (SEE DETAILS IF YOU REDEFINE THIS METHOD)...
Definition: uchoice.cpp:72
UChoice()
create a new UChoice object;
Definition: uchoice.cpp:36
virtual UBox * setSelectedItem(UBox &)
selects and returns this item if it is in the list, returns null otherwise.
Makes the children of a widget (exclusively) selectable.
Definition: uchoice.hpp:30
virtual void clearSelection()
deselects the selected object.
Definition: uchoice.cpp:206
virtual int getSelectedIndex() const
returns the index of the selection; returns -1 if there is no selection.
Definition: uchoice.cpp:222
virtual void setSelectionRule(IsSelectable &)
define which objects can be selected in the list.
Definition: uchoice.cpp:34
lightweight general purpose container.
Definition: uelem.hpp:44
Smart Pointer for UObject instances (.
Definition: uobject.hpp:365
virtual UBox * getSelectableItem(int N) const
returns the Nth selectable object.
virtual UBox * getSelectedItem() const
returns the current selection; returns null if there is no selection.
Definition: uchoice.cpp:212
virtual void putProp(UUpdateContext *, UElem &)
[impl] changes corresponding value in the UUpdateContext
Definition: uchoice.cpp:87
Active Integer.
Definition: unumber.hpp:48
Definition: uupdatecontext.hpp:32
Definition: uhardfont.hpp:31
virtual void addingTo(UChild &, UElem &parent)
called when this object is added to a parent.
Definition: uchoice.cpp:52
virtual void changed(bool update=true)
[impl] called when object's content is changed.
Definition: uchoice.cpp:265
Makes widgets (exclusively) selectable.
Definition: uchoice.hpp:153
virtual UBox * setSelectedIndex(int N)
selects the Nth selectable object in the list.
Definition: uchoice.cpp:202
Ubit String.
Definition: ustr.hpp:72
Definition: uchoice.hpp:80
[impl] Internal implementation of a child node.
Definition: uchild.hpp:23