29 #ifndef _CEGUICombobox_h_
30 #define _CEGUICombobox_h_
32 #include "CEGUI/Base.h"
33 #include "CEGUI/Window.h"
34 #include "CEGUI/RegexMatcher.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
188 bool isHit(
const Vector2f& position,
189 const bool allow_disabled =
false)
const;
199 bool getSingleClickEnabled(
void)
const;
209 bool isDropDownListVisible(
void)
const;
250 bool getAutoSizeListHeightToContent()
const;
253 bool getAutoSizeListWidthToContent()
const;
265 bool hasInputFocus(
void)
const;
276 bool isReadOnly(
void)
const;
293 MatchState getTextMatchState()
const;
307 const String& getValidationString(
void)
const;
317 size_t getCaretIndex(
void)
const;
328 size_t getSelectionStartIndex(
void)
const;
339 size_t getSelectionEndIndex(
void)
const;
349 size_t getSelectionLength(
void)
const;
363 size_t getMaxTextLength(
void)
const;
376 size_t getItemCount(
void)
const;
402 ListboxItem* getListboxItemFromIndex(
size_t index)
const;
417 size_t getItemIndex(
const ListboxItem* item)
const;
427 bool isSortEnabled(
void)
const;
442 bool isItemSelected(
size_t index)
const;
472 bool isListboxItemInList(
const ListboxItem* item)
const;
483 bool isVertScrollbarAlwaysShown(
void)
const;
494 bool isHorzScrollbarAlwaysShown(
void)
const;
510 virtual void initialiseComponents(
void);
520 void showDropList(
void);
530 void hideDropList(
void);
544 void setSingleClickEnabled(
bool setting);
547 void selectListItemWithEditboxText();
554 void setAutoSizeListHeightToContent(
bool auto_size);
561 void setAutoSizeListWidthToContent(
bool auto_size);
564 void updateAutoSizedDropList();
580 void setReadOnly(
bool setting);
597 void setValidationString(
const String& validation_string);
611 void setCaretIndex(
size_t caret_pos);
629 void setSelection(
size_t start_pos,
size_t end_pos);
641 void setSelectionStart(
size_t start_pos);
653 void setSelectionLength(
size_t length);
669 void setMaxTextLength(
size_t max_len);
679 void activateEditbox(
void);
691 void resetList(
void);
749 void clearAllSelections(
void);
762 void setSortingEnabled(
bool setting);
776 void setShowVertScrollbar(
bool setting);
790 void setShowHorzScrollbar(
bool setting);
812 void setItemSelectState(
ListboxItem* item,
bool state);
834 void setItemSelectState(
size_t item_index,
bool state);
849 void handleUpdatedListItemData(
void);
877 bool button_PressHandler(
const EventArgs& e);
884 bool droplist_SelectionAcceptedHandler(
const EventArgs& e);
891 bool droplist_HiddenHandler(
const EventArgs& e);
898 bool editbox_MouseDownHandler(
const EventArgs& e);
905 void itemSelectChangeTextUpdate(
const ListboxItem*
const item,
906 bool new_state,
bool old_state);
911 bool editbox_ReadOnlyChangedHandler(
const EventArgs& e);
912 bool editbox_ValidationStringChangedHandler(
const EventArgs& e);
913 bool editbox_MaximumTextLengthChangedHandler(
const EventArgs& e);
914 bool editbox_TextValidityChangedHandler(
const EventArgs& e);
915 bool editbox_CaretMovedHandler(
const EventArgs& e);
916 bool editbox_TextSelectionChangedHandler(
const EventArgs& e);
917 bool editbox_EditboxFullEventHandler(
const EventArgs& e);
918 bool editbox_TextAcceptedEventHandler(
const EventArgs& e);
919 bool editbox_TextChangedEventHandler(
const EventArgs& e);
920 bool listbox_ListContentsChangedHandler(
const EventArgs& e);
921 bool listbox_ListSelectionChangedHandler(
const EventArgs& e);
922 bool listbox_SortModeChangedHandler(
const EventArgs& e);
923 bool listbox_VertScrollModeChangedHandler(
const EventArgs& e);
924 bool listbox_HorzScrollModeChangedHandler(
const EventArgs& e);
1059 bool d_autoSizeHeight;
1060 bool d_autoSizeWidth;
1066 void addComboboxProperties(
void);
1071 #if defined(_MSC_VER)
1072 # pragma warning(pop)
1075 #endif // end of guard _CEGUICombobox_h_
static const String EventEditboxFull
Definition: Combobox.h:112
static const String EventReadOnlyModeChanged
Definition: Combobox.h:67
static const String EventListContentsChanged
Definition: Combobox.h:127
static const String EditboxName
Widget name for the editbox component.
Definition: Combobox.h:183
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Base class for the Combobox widget.
Definition: Combobox.h:50
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
Base class for the combo box drop down list. This is a specialisation of the Listbox class...
Definition: ComboDropList.h:48
static const String EventTextValidityChanged
Definition: Combobox.h:93
static const String EventVertScrollbarModeChanged
Definition: Combobox.h:151
bool d_singleClickOperation
true if user can show and select from list in a single click.
Definition: Combobox.h:1058
Definition: RegexMatcher.h:69
static const String EventListSelectionChanged
Definition: Combobox.h:138
MatchState
Enumeration of possible states when cosidering a regex match.
Definition: RegexMatcher.h:44
static const String EventHorzScrollbarModeChanged
Definition: Combobox.h:158
static const String EventNamespace
Namespace for global events.
Definition: Combobox.h:55
static const String EventTextAccepted
Definition: Combobox.h:119
static const String WidgetTypeName
Window factory name.
Definition: Combobox.h:56
static const String EventMaximumTextLengthChanged
Definition: Combobox.h:79
static const String ButtonName
Widget suffix for the button component.
Definition: Combobox.h:185
static const String EventDropListRemoved
Definition: Combobox.h:172
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
Base class for list box items.
Definition: ListboxItem.h:51
static const String EventSortModeChanged
Definition: Combobox.h:144
static const String EventCaretMoved
Definition: Combobox.h:99
static const String EventDropListDisplayed
Definition: Combobox.h:166
static const String EventListSelectionAccepted
Definition: Combobox.h:178
Base class for an Editbox widget.
Definition: widgets/Editbox.h:69
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: Element.h:210
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:251
static const String EventValidationStringChanged
Definition: Combobox.h:73
static const String DropListName
Widget name for the drop list component.
Definition: Combobox.h:184
EventArgs based class that is used for Activated and Deactivated window events.
Definition: InputEvent.h:329
String class used within the GUI system.
Definition: String.h:62
static const String EventTextSelectionChanged
Definition: Combobox.h:105