Public Types |
typedef std::vector<ListViewRow*>::const_iterator | const_iterator |
enum | scroll_direction { SCROLL_UP,
SCROLL_DOWN
} |
enum | { AUTOSCROLL_BORDER = 20
} |
enum | { F_MULTI_SELECT = 0x0001,
F_NO_AUTO_SORT = 0x0002,
F_RENDER_BORDER = 0x0004,
F_DONT_SCROLL = 0x0008
} |
Public Methods |
| ListView (const Rect &cFrame, const char *pzTitle, uint32 nModeFlags=F_MULTI_SELECT|F_RENDER_BORDER, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_FULL_UPDATE_ON_RESIZE) |
| ~ListView () |
virtual void | Invoked (int nFirstRow, int nLastRow) |
virtual void | SelectionChanged (int nFirstRow, int nLastRow) |
virtual bool | DragSelection (const Point &cPos) |
void | StartScroll (scroll_direction eDirection, bool bSelect) |
void | StopScroll () |
void | MakeVisible (int nRow, bool bCenter=true) |
int | InsertColumn (const char *pzTitle, int nWidth, int nPos=-1) |
const std::vector<int>& | GetColumnMapping () const |
void | SetColumnMapping (const std::vector< int > &cMap) |
void | InsertRow (ListViewRow *pcRow, bool bUpdate=true) |
ListViewRow* | RemoveRow (int nIndex, bool bUpdate=true) |
void | InvalidateRow (int nRow) |
uint | GetRowCount () const |
ListViewRow* | GetRow (const Point &cPos) const |
ListViewRow* | GetRow (uint nIndex) const |
int | HitTest (const Point &cPos) const |
float | GetRowPos (int nRow) |
void | Clear () |
bool | IsSelected (uint nRow) const |
void | Select (int nFirst, int nLast, bool bReplace=true) |
void | Select (int nRow, bool bReplace=true) |
void | Highlight (int nFirst, int nLast, bool bReplace, bool bHighlight=true) |
void | Highlight (int nRow, bool bReplace, bool bHighlight=true) |
void | Sort () |
int | GetFirstSelected () const |
int | GetLastSelected () const |
void | SetSelChangeMsg (Message *pcMsg) |
void | SetInvokeMsg (Message *pcMsg) |
Message* | GetSelChangeMsg () const |
Message* | GetInvokeMsg () const |
virtual void | Paint (const Rect &cUpdateRect) |
| Called by the system update "damaged" areas of the view. More...
|
virtual void | FrameSized (const Point &cDelta) |
virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
virtual void | AllAttached () |
virtual bool | HasFocus (void) const |
const_iterator | begin () const |
const_iterator | end () const |
Friends |
class | ListViewContainer |
class | ListViewHeader |