Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/weaponsystem/src/ceguilua/ceguilua-0.5.0/package/elements/ItemListBase.pkg @ 2898

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

Merged buildsystem3 containing buildsystem2 containing Adi's buildsystem branch back to the trunk.
Please update the media directory if you were not using buildsystem3 before.

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1/***********************************************************************
2        ItemListBase
3***********************************************************************/
4class ItemListBase : public Window
5{
6    enum SortMode
7    {
8        Ascending,
9        Descending,
10        UserSort
11    };
12
13        unsigned int getItemCount() const;
14        ItemEntry* getItemFromIndex(unsigned int index) const;
15        unsigned int getItemIndex(const ItemEntry* item) const;
16        ItemEntry* findItemWithText(string text, const ItemEntry* start_item);
17        bool isItemInList(const ItemEntry* item) const;
18        bool isAutoResizeEnabled() const;
19        bool isSortEnabled() const;
20        SortMode getSortMode() const;
21        Rect getItemRenderArea() const;
22    Window* getContentPane() const;
23
24        void resetList();
25        void addItem(ItemEntry* item);
26        void insertItem(ItemEntry* item, const ItemEntry* position);
27        void removeItem(ItemEntry* item);
28        void handleUpdatedItemData();
29        void setAutoResizeEnabled(bool setting);
30        void sizeToContent();
31    void setSortEnabled(bool setting);
32    void setSortMode(SortMode mode);
33    void sortList();
34};
Note: See TracBrowser for help on using the repository browser.