Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/external/ceguilua/ceguilua-0.5.0/package/elements/Combobox.pkg @ 8142

Last change on this file since 8142 was 5781, checked in by rgrieder, 15 years ago

Reverted trunk again. We might want to find a way to delete these revisions again (x3n's changes are still available as diff in the commit mails).

  • Property svn:eol-style set to native
File size: 2.0 KB
RevLine 
[2608]1/***********************************************************************
2        Combobox
3***********************************************************************/
4class Combobox : public Window
5{
6        bool getSingleClickEnabled() const;
7        bool isDropDownListVisible() const;
8
9    Editbox* getEditbox() const;
10    PushButton* getPushButton() const;
11    ComboDropList* getDropList() const;
12
13        bool hasInputFocus() const;
14        bool isReadOnly() const;
15        bool isTextValid() const;
16        string getValidationString() const;
17
18        unsigned long getCaratIndex() const;
19        unsigned long getSelectionStartIndex() const;
20        unsigned long getSelectionEndIndex() const;
21        unsigned long getSelectionLength() const;
22        unsigned long getMaxTextLength() const;
23
24        void activateEditbox();
25
26        unsigned long getItemCount() const;
27        ListboxItem* getSelectedItem() const;
28        ListboxItem* getListboxItemFromIndex(unsigned long index) const;
29        unsigned long getItemIndex(const ListboxItem* item) const;
30        bool isItemSelected(unsigned long index) const;
31        ListboxItem* findItemWithText(string text, const ListboxItem* start_item);
32        bool isListboxItemInList(const ListboxItem* item) const;
33
34        void resetList();
35        void addItem(ListboxItem* item);
36        void insertItem(ListboxItem* item, const ListboxItem* position);
37        void removeItem(const ListboxItem* item);
38        void clearAllSelections();
39        void setSortingEnabled(bool setting);
40        void setShowVertScrollbar(bool setting);
41        void setShowHorzScrollbar(bool setting);
42        void setItemSelectState(ListboxItem* item, bool state);
43        void setItemSelectState(unsigned long item_index, bool state);
44        void handleUpdatedListItemData();
45
46        bool isSortEnabled() const;
47        bool isVertScrollbarAlwaysShown() const;
48        bool isHorzScrollbarAlwaysShown() const;
49
50        void showDropList();
51        void hideDropList();
52        void setSingleClickEnabled(bool setting);
53
54        void setReadOnly(bool setting);
55        void setValidationString(string validation_string);
56        void setCaratIndex(unsigned long carat_pos);
57        void setSelection(unsigned long start_pos, unsigned long end_pos);
58        void setMaxTextLength(unsigned long max_len);
59};
Note: See TracBrowser for help on using the repository browser.