30 #ifndef _CEGUICombobox_h_
31 #define _CEGUICombobox_h_
33 #include "../CEGUIBase.h"
34 #include "../CEGUIWindow.h"
35 #include "CEGUIComboboxProperties.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
184 bool isHit(
const Vector2& position,
185 const bool allow_disabled =
false)
const;
195 bool getSingleClickEnabled(
void)
const;
205 bool isDropDownListVisible(
void)
const;
256 bool hasInputFocus(
void)
const;
267 bool isReadOnly(
void)
const;
286 bool isTextValid(
void)
const;
300 const String& getValidationString(
void)
const;
310 size_t getCaratIndex(
void)
const;
321 size_t getSelectionStartIndex(
void)
const;
332 size_t getSelectionEndIndex(
void)
const;
342 size_t getSelectionLength(
void)
const;
356 size_t getMaxTextLength(
void)
const;
369 size_t getItemCount(
void)
const;
395 ListboxItem* getListboxItemFromIndex(
size_t index)
const;
410 size_t getItemIndex(
const ListboxItem* item)
const;
420 bool isSortEnabled(
void)
const;
435 bool isItemSelected(
size_t index)
const;
465 bool isListboxItemInList(
const ListboxItem* item)
const;
476 bool isVertScrollbarAlwaysShown(
void)
const;
487 bool isHorzScrollbarAlwaysShown(
void)
const;
503 virtual void initialiseComponents(
void);
513 void showDropList(
void);
523 void hideDropList(
void);
537 void setSingleClickEnabled(
bool setting);
554 void setReadOnly(
bool setting);
571 void setValidationString(
const String& validation_string);
585 void setCaratIndex(
size_t carat_pos);
603 void setSelection(
size_t start_pos,
size_t end_pos);
620 void setMaxTextLength(
size_t max_len);
630 void activateEditbox(
void);
642 void resetList(
void);
700 void clearAllSelections(
void);
713 void setSortingEnabled(
bool setting);
727 void setShowVertScrollbar(
bool setting);
741 void setShowHorzScrollbar(
bool setting);
763 void setItemSelectState(
ListboxItem* item,
bool state);
785 void setItemSelectState(
size_t item_index,
bool state);
800 void handleUpdatedListItemData(
void);
828 bool button_PressHandler(
const EventArgs& e);
835 bool droplist_SelectionAcceptedHandler(
const EventArgs& e);
842 bool droplist_HiddenHandler(
const EventArgs& e);
849 bool editbox_MouseDownHandler(
const EventArgs& e);
864 if (class_name==
"Combobox")
return true;
873 void itemSelectChangeTextUpdate(
const ListboxItem*
const item,
874 bool new_state,
bool old_state);
879 bool editbox_ReadOnlyChangedHandler(
const EventArgs& e);
880 bool editbox_ValidationStringChangedHandler(
const EventArgs& e);
881 bool editbox_MaximumTextLengthChangedHandler(
const EventArgs& e);
882 bool editbox_TextInvalidatedEventHandler(
const EventArgs& e);
883 bool editbox_InvalidEntryAttemptedHandler(
const EventArgs& e);
884 bool editbox_CaratMovedHandler(
const EventArgs& e);
885 bool editbox_TextSelectionChangedHandler(
const EventArgs& e);
886 bool editbox_EditboxFullEventHandler(
const EventArgs& e);
887 bool editbox_TextAcceptedEventHandler(
const EventArgs& e);
888 bool editbox_TextChangedEventHandler(
const EventArgs& e);
889 bool listbox_ListContentsChangedHandler(
const EventArgs& e);
890 bool listbox_ListSelectionChangedHandler(
const EventArgs& e);
891 bool listbox_SortModeChangedHandler(
const EventArgs& e);
892 bool listbox_VertScrollModeChangedHandler(
const EventArgs& e);
893 bool listbox_HorzScrollModeChangedHandler(
const EventArgs& e);
1053 void addComboboxProperties(
void);
1058 #if defined(_MSC_VER)
1059 # pragma warning(pop)
1062 #endif // end of guard _CEGUICombobox_h_
Property to access the current selection length.
Definition: CEGUIComboboxProperties.h:159
static const String EventEditboxFull
Definition: CEGUICombobox.h:112
Class used as a two dimensional vector (aka a Point)
Definition: CEGUIVector.h:45
static const String EventReadOnlyModeChanged
Definition: CEGUICombobox.h:67
static const String EventListContentsChanged
Definition: CEGUICombobox.h:127
Property to access the sort setting of the list box.
Definition: CEGUIComboboxProperties.h:210
Property to access the maximum text length for the edit box.
Definition: CEGUIComboboxProperties.h:184
Base class for the Combobox widget.
Definition: CEGUICombobox.h:52
Property to access the read-only setting of the edit box.
Definition: CEGUIComboboxProperties.h:59
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUIWindow.h:3928
Base class for the combo box drop down list. This is a specialisation of the Listbox class...
Definition: CEGUIComboDropList.h:49
static const String EventVertScrollbarModeChanged
Definition: CEGUICombobox.h:147
Property to access the 'single click mode' setting for the combo box.
Definition: CEGUIComboboxProperties.h:288
bool d_singleClickOperation
true if user can show and select from list in a single click.
Definition: CEGUICombobox.h:1032
static const String EventListSelectionChanged
Definition: CEGUICombobox.h:134
static const String EventHorzScrollbarModeChanged
Definition: CEGUICombobox.h:154
static const String EventNamespace
Namespace for global events.
Definition: CEGUICombobox.h:55
static const String EventInvalidEntryAttempted
Definition: CEGUICombobox.h:93
Property to access the current carat index.
Definition: CEGUIComboboxProperties.h:109
static const String EventTextAccepted
Definition: CEGUICombobox.h:119
static const String WidgetTypeName
Window factory name.
Definition: CEGUICombobox.h:56
Property to access the string used for regular expression validation of the edit box text...
Definition: CEGUIComboboxProperties.h:84
static const String EventMaximumTextLengthChanged
Definition: CEGUICombobox.h:79
static const String EventDropListRemoved
Definition: CEGUICombobox.h:168
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
Base class for list box items.
Definition: CEGUIListboxItem.h:50
static const String EventSortModeChanged
Definition: CEGUICombobox.h:140
static const String EventDropListDisplayed
Definition: CEGUICombobox.h:162
static const String EventListSelectionAccepted
Definition: CEGUICombobox.h:174
Base class for an Editbox widget.
Definition: CEGUIEditbox.h:70
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUICombobox.h:862
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: CEGUIInputEvent.h:245
static const String EventValidationStringChanged
Definition: CEGUICombobox.h:73
static const String EventCaratMoved
Definition: CEGUICombobox.h:99
static const String EditboxNameSuffix
Widget name suffix for the editbox component.
Definition: CEGUICombobox.h:179
Property to access the current selection start index.
Definition: CEGUIComboboxProperties.h:134
static const String DropListNameSuffix
Widget name suffix for the drop list component.
Definition: CEGUICombobox.h:180
static const String ButtonNameSuffix
Widget name suffix for the button component.
Definition: CEGUICombobox.h:181
EventArgs based class that is used for Activated and Deactivated window events.
Definition: CEGUIInputEvent.h:323
static const String EventTextInvalidated
Definition: CEGUICombobox.h:86
String class used within the GUI system.
Definition: CEGUIString.h:57
static const String EventTextSelectionChanged
Definition: CEGUICombobox.h:105