Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua/ceguilua-0.5.0/package/elements/Combobox.pkg @ 2608

Last change on this file since 2608 was 2608, checked in by rgrieder, 16 years ago

Large cleanup in CEGUILua:

  • Removed the heavy 1.7MB bind files and added the small pkg files from the CEGUI source instead
  • Those pkg files get copied version incrementally (starting with 0.5.0) to the binary dir. That saves a lot of files when having 4 different versions.
  • Added support for CEGUI 0.6.0 and 0.6.2
  • Added library info files
  • CEGUILua 0.5.0 finally supports Lua 5.1 too That means all version support both Lua 5.0 and 5.1
  • Added unified diffs with the changes to the CEGUILua source
  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
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.