Public Types |
typedef std::vector< ListViewRow
*>::const_iterator | const_iterator |
typedef std::vector< int > | column_map |
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,
F_NO_HEADER = 0x0010,
F_NO_COL_REMAP = 0x0020
} |
enum | {
INV_HEIGHT = 0x01,
INV_WIDTH = 0x02,
INV_VISUAL = 0x04
} |
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 | LabelChanged (const std::string &cNewLabel) |
virtual void | EnableStatusChanged (bool bIsEnabled) |
virtual bool | Invoked (Message *pcMessage) |
| Intercept outgoing messages. More...
|
virtual void | Invoked (int nFirstRow, int nLastRow) |
virtual void | SelectionChanged (int nFirstRow, int nLastRow) |
virtual bool | DragSelection (const Point &cPos) |
virtual void | __reserved1__ () |
virtual void | __reserved2__ () |
virtual void | __reserved3__ () |
virtual void | __reserved4__ () |
void | StartScroll (scroll_direction eDirection, bool bSelect) |
void | StopScroll () |
bool | IsMultiSelect () const |
void | SetMultiSelect (bool bMulti) |
bool | IsAutoSort () const |
void | SetAutoSort (bool bAuto) |
bool | HasBorder () const |
void | SetRenderBorder (bool bRender) |
bool | HasColumnHeader () const |
void | SetHasColumnHeader (bool bFlag) |
void | MakeVisible (int nRow, bool bCenter=true) |
int | InsertColumn (const char *pzTitle, int nWidth, int nPos=-1) |
const column_map & | GetColumnMapping () const |
void | SetColumnMapping (const column_map &cMap) |
void | InsertRow (int nPos, ListViewRow *pcRow, bool bUpdate=true) |
void | InsertRow (ListViewRow *pcRow, bool bUpdate=true) |
ListViewRow * | RemoveRow (int nIndex, bool bUpdate=true) |
void | InvalidateRow (int nRow, uint32 nFlags) |
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, bool bSelect=true) |
void | Select (int nRow, bool bReplace=true, bool bSelect=true) |
void | ClearSelection () |
void | Highlight (int nFirst, int nLast, bool bReplace, bool bHighlight=true) |
void | Highlight (int nRow, bool bReplace, bool bHighlight=true) |
void | SetCurrentRow (int nRow) |
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 hook called by the system when the view is resized. More...
|
virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
| Hook called by the system when a key is pressed while the view has focus. More...
|
virtual void | AllAttached () |
virtual bool | HasFocus (void) const |
const_iterator | begin () const |
const_iterator | end () const |
Friends |
class | ListViewContainer |
class | ListViewHeader |