1
0

SelItemList.h 587 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef NULLSOFT_SELITEMLISTH
  2. #define NULLSOFT_SELITEMLISTH
  3. class ListWnd;
  4. #define SELITEMEXPAND 2040
  5. //note to whoever redid this as a bitlist
  6. // a) this is pointlessly slow as a bitlist given the memory used
  7. // b) perhaps you should investigate bitlist.h
  8. class SelItemList
  9. {
  10. public:
  11. SelItemList(ListWnd *parent);
  12. void setSelected(int pos, int selected, int cb=1);
  13. int isSelected(int pos);
  14. int getNumSelected();
  15. void deleteByPos(int pos);
  16. protected:
  17. friend ListWnd;
  18. void deselectAll();
  19. private:
  20. ListWnd *listwnd;
  21. MemBlock<char> list;
  22. int num_selected;
  23. };
  24. #endif