7 #ifndef __MYGUI_COMBO_BOX_H__
8 #define __MYGUI_COMBO_BOX_H__
42 size_t getItemCount() const;
45 void insertItemAt(
size_t _index, const
UString& _name,
Any _data =
Any::Null);
51 void removeItemAt(
size_t _index);
54 void removeAllItems();
58 size_t findItemIndexWith(const
UString& _name);
65 size_t getIndexSelected() const;
68 void setIndexSelected(
size_t _index);
71 void clearIndexSelected();
78 void setItemDataAt(
size_t _index,
Any _data);
81 void clearItemDataAt(
size_t _index);
84 template <typename ValueType>
85 ValueType* getItemDataAt(
size_t _index,
bool _throw = true)
95 void setItemNameAt(
size_t _index,
const UString& _name);
98 const UString& getItemNameAt(
size_t _index);
105 void beginToItemAt(
size_t _index);
108 void beginToItemFirst();
111 void beginToItemLast();
114 void beginToItemSelected();
121 void setComboModeDrop(
bool _value);
123 bool getComboModeDrop()
const;
126 void setSmoothShow(
bool _value);
128 bool getSmoothShow()
const;
131 void setMaxListLength(
int _value);
133 int getMaxListLength()
const;
159 virtual size_t _getItemCount();
161 virtual void _removeItemAt(
size_t _index);
162 virtual void _setItemNameAt(
size_t _index,
const UString& _name);
163 virtual const UString& _getItemNameAt(
size_t _index);
165 virtual void _resetContainer(
bool _update);
168 virtual void initialiseOverride();
169 virtual void shutdownOverride();
171 virtual void onKeyButtonPressed(
KeyCode _key,
Char _char);
173 virtual void setPropertyOverride(
const std::string& _key,
const std::string& _value);
178 void notifyListSelectAccept(
ListBox* _widget,
size_t _position);
179 void notifyListMouseItemActivate(
ListBox* _widget,
size_t _position);
180 void notifyListChangePosition(
ListBox* _widget,
size_t _position);
181 void notifyMouseWheel(
Widget* _sender,
int _rel);
183 void notifyEditTextChange(
EditBox* _sender);
210 #endif // __MYGUI_COMBO_BOX_H__