Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
31
Src/Wasabi/api/wnd/wndclass/SelItemList.h
Normal file
31
Src/Wasabi/api/wnd/wndclass/SelItemList.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef NULLSOFT_SELITEMLISTH
|
||||
#define NULLSOFT_SELITEMLISTH
|
||||
|
||||
class ListWnd;
|
||||
|
||||
#define SELITEMEXPAND 2040
|
||||
|
||||
//note to whoever redid this as a bitlist
|
||||
// a) this is pointlessly slow as a bitlist given the memory used
|
||||
// b) perhaps you should investigate bitlist.h
|
||||
class SelItemList
|
||||
{
|
||||
public:
|
||||
SelItemList(ListWnd *parent);
|
||||
|
||||
void setSelected(int pos, int selected, int cb=1);
|
||||
int isSelected(int pos);
|
||||
int getNumSelected();
|
||||
|
||||
void deleteByPos(int pos);
|
||||
protected:
|
||||
friend ListWnd;
|
||||
void deselectAll();
|
||||
|
||||
private:
|
||||
ListWnd *listwnd;
|
||||
MemBlock<char> list;
|
||||
int num_selected;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue