| 1 | /*********************************************************************** |
|---|
| 2 | Tree |
|---|
| 3 | ***********************************************************************/ |
|---|
| 4 | class Tree : public Window |
|---|
| 5 | { |
|---|
| 6 | size_t getItemCount(void) const; |
|---|
| 7 | size_t getSelectedCount(void) const; |
|---|
| 8 | |
|---|
| 9 | TreeItem* getFirstSelectedItem(void) const; |
|---|
| 10 | TreeItem* getLastSelectedItem(void) const; |
|---|
| 11 | |
|---|
| 12 | bool isSortEnabled(void) const; |
|---|
| 13 | bool isMultiselectEnabled(void) const; |
|---|
| 14 | bool isItemTooltipsEnabled(void) const; |
|---|
| 15 | |
|---|
| 16 | tolua_throws|CEGUI::Exception,error|std::exception,error|any,error| TreeItem* findFirstItemWithText(string text); |
|---|
| 17 | tolua_throws|CEGUI::Exception,error|std::exception,error|any,error| TreeItem* findNextItemWithText(string text, const TreeItem* start_item); |
|---|
| 18 | tolua_throws|CEGUI::Exception,error|std::exception,error|any,error| TreeItem* findFirstItemWithID(unsigned int searchID); |
|---|
| 19 | tolua_throws|CEGUI::Exception,error|std::exception,error|any,error| TreeItem* findNextItemWithID(unsigned int searchID, const TreeItem* start_item); |
|---|
| 20 | |
|---|
| 21 | bool isTreeItemInList(const TreeItem* item) const; |
|---|
| 22 | void resetList(void); |
|---|
| 23 | void addItem(TreeItem* item); |
|---|
| 24 | |
|---|
| 25 | tolua_throws|CEGUI::Exception,error|std::exception,error|any,error| void insertItem(TreeItem* item, const TreeItem* position); |
|---|
| 26 | void removeItem(const TreeItem* item); |
|---|
| 27 | void clearAllSelections(void); |
|---|
| 28 | void setSortingEnabled(bool setting); |
|---|
| 29 | void setMultiselectEnabled(bool setting); |
|---|
| 30 | void setItemSelectState(TreeItem* item, bool state); |
|---|
| 31 | tolua_throws|CEGUI::Exception,error|std::exception,error|any,error| void setItemSelectState(size_t item_index, bool state); |
|---|
| 32 | tolua_throws|CEGUI::Exception,error|std::exception,error|any,error| void ensureItemIsVisible(const TreeItem* item); |
|---|
| 33 | }; |
|---|