30 #ifndef _CEGUICombobox_h_
31 #define _CEGUICombobox_h_
33 #include "CEGUI/Base.h"
34 #include "CEGUI/Window.h"
35 #include "CEGUI/RegexMatcher.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
189 bool isHit(
const Vector2f& position,
190 const bool allow_disabled =
false)
const;
200 bool getSingleClickEnabled(
void)
const;
210 bool isDropDownListVisible(
void)
const;
251 bool getAutoSizeListHeightToContent()
const;
254 bool getAutoSizeListWidthToContent()
const;
266 bool hasInputFocus(
void)
const;
277 bool isReadOnly(
void)
const;
308 const String& getValidationString(
void)
const;
318 size_t getCaretIndex(
void)
const;
329 size_t getSelectionStartIndex(
void)
const;
340 size_t getSelectionEndIndex(
void)
const;
350 size_t getSelectionLength(
void)
const;
364 size_t getMaxTextLength(
void)
const;
377 size_t getItemCount(
void)
const;
403 ListboxItem* getListboxItemFromIndex(
size_t index)
const;
418 size_t getItemIndex(
const ListboxItem* item)
const;
428 bool isSortEnabled(
void)
const;
443 bool isItemSelected(
size_t index)
const;
473 bool isListboxItemInList(
const ListboxItem* item)
const;
484 bool isVertScrollbarAlwaysShown(
void)
const;
495 bool isHorzScrollbarAlwaysShown(
void)
const;
511 virtual void initialiseComponents(
void);
521 void showDropList(
void);
531 void hideDropList(
void);
545 void setSingleClickEnabled(
bool setting);
548 void selectListItemWithEditboxText();
555 void setAutoSizeListHeightToContent(
bool auto_size);
562 void setAutoSizeListWidthToContent(
bool auto_size);
565 void updateAutoSizedDropList();
581 void setReadOnly(
bool setting);
598 void setValidationString(
const String& validation_string);
612 void setCaretIndex(
size_t caret_pos);
630 void setSelection(
size_t start_pos,
size_t end_pos);
642 void setSelectionStart(
size_t start_pos);
654 void setSelectionLength(
size_t length);
670 void setMaxTextLength(
size_t max_len);
680 void activateEditbox(
void);
692 void resetList(
void);
750 void clearAllSelections(
void);
763 void setSortingEnabled(
bool setting);
777 void setShowVertScrollbar(
bool setting);
791 void setShowHorzScrollbar(
bool setting);
813 void setItemSelectState(
ListboxItem* item,
bool state);
835 void setItemSelectState(
size_t item_index,
bool state);
850 void handleUpdatedListItemData(
void);
878 bool button_PressHandler(
const EventArgs& e);
885 bool droplist_SelectionAcceptedHandler(
const EventArgs& e);
892 bool droplist_HiddenHandler(
const EventArgs& e);
899 bool editbox_MouseDownHandler(
const EventArgs& e);
906 void itemSelectChangeTextUpdate(
const ListboxItem*
const item,
907 bool new_state,
bool old_state);
912 bool editbox_ReadOnlyChangedHandler(
const EventArgs& e);
913 bool editbox_ValidationStringChangedHandler(
const EventArgs& e);
914 bool editbox_MaximumTextLengthChangedHandler(
const EventArgs& e);
915 bool editbox_TextValidityChangedHandler(
const EventArgs& e);
916 bool editbox_CaretMovedHandler(
const EventArgs& e);
917 bool editbox_TextSelectionChangedHandler(
const EventArgs& e);
918 bool editbox_EditboxFullEventHandler(
const EventArgs& e);
919 bool editbox_TextAcceptedEventHandler(
const EventArgs& e);
920 bool editbox_TextChangedEventHandler(
const EventArgs& e);
921 bool listbox_ListContentsChangedHandler(
const EventArgs& e);
922 bool listbox_ListSelectionChangedHandler(
const EventArgs& e);
923 bool listbox_SortModeChangedHandler(
const EventArgs& e);
924 bool listbox_VertScrollModeChangedHandler(
const EventArgs& e);
925 bool listbox_HorzScrollModeChangedHandler(
const EventArgs& e);
1060 bool d_autoSizeHeight;
1061 bool d_autoSizeWidth;
1067 void addComboboxProperties(
void);
1072 #if defined(_MSC_VER)
1073 # pragma warning(pop)
1076 #endif // end of guard _CEGUICombobox_h_