|
| | CTreeViewModel () |
| | ~CTreeViewModel () |
| void | ModifyTreeViewModelFlags (UINT style, UINT op=ADD_FLAGS, BOOL is_refresh=FALSE) |
| | 设置树模型标志
|
| UINT | IsHasTreeViewModelFlags (UINT flags) const |
| UINT | GetTreeViewModelFlags () const |
| CTreeModelNode * | InsertTreeNode (CTreeModelNode *parent, CTreeModelNode *prev, const std::shared_ptr< CNodeSpanCell > &item, LPCTSTR text_id=NULL) |
| | 插入节点
|
| BOOL | RemoveItem (CTreeModelNode *item) |
| | 删除节点
|
| void | Clear (BOOL is_erase=TRUE) |
| | 删除此函数将删除节点的所有子节点
|
| CTreeModelNode * | RootNode () |
| | 根节点
|
| CTreeModelNode * | SelectItem (CTreeModelNode *item) |
| | 选中指定节点
|
| CTreeModelNode * | SetHighLightItem (CTreeModelNode *item) |
| | 高亮指定节点
|
| CTreeModelNode * | GetTreeLeafEntry (CTreeModelNode *node) |
| CTreeModelNode * | GetTreeUpEntry (CTreeModelNode *node) |
| CTreeModelNode * | MoveTreeNodeStep (CTreeModelNode *node, int step) |
| CTreeModelNode * | PtInTreeNode (int dy) |
| CTreeModelNode * | GetRowNode (int row) const |
| | 获得第row行的节点
|
| CNodeData * | GetNodeData (int row, int col) const |
| | 获得(row,col)单元格数据
|
| CTreeModelNode * | GetSelectNode () const |
| | 获得当前选中对象
|
| CTreeModelNode * | FindTreeNodeByID (CTreeModelNode *node, LPCTSTR text_id) |
| | 查找指定节点
|
| void | ChangeModelThemeColors () |
| | 主题切换
|
| int | GetRowHeight (BOOL display=TRUE) const |
| | 数据行高度
|
| void | SetRowHeight (int h) |
| | 设置行高度
|
| int | GetNodeChildCount (CTreeModelNode *node) |
| | 获得node节点的孩子节点总数
|
| void | SetLevelLineType (PenType type) |
| | 设置层级线风格,虚线、实线
|
| void | SetItemRoundRadius (RoundRectRadius &radius) |
| | 设置高亮时圆角尺寸
|
| void | SetItemRoundSize (int rx, int ry) |
| | 设置高亮时圆角尺寸
|
| void | SetSpacing (int space) |
| | 设置行距
|
| void | SetExpandSize (int size) |
| | 设置扩展按钮尺寸
|
| void | SetChildOffsetX (int size) |
| | 设置父节点与子节点之间的偏移量
|
| void | SetCheckBoxSize (int size) |
| | 设置复选框按钮尺寸
|
| void | SetSearchMode (BOOL is_search) |
| | 开启(或禁用)查找模式
|
| void | SetCheckBoxImage (SelectState state, GImageIconInfo *img) |
| | 设置复选框图案
|
| void | MatchTextNode (LPCTSTR str) |
| | 搜索匹配的节点
|
| BOOL | Expand (CTreeModelNode *hItem, BOOL is_expand) |
| | 设定项是否展开(TRUE表示折叠).
|
| BOOL | IsExpand (CTreeModelNode *hItem) const |
| | 判断定项是否展开
|
| BOOL | IsInVisibleView (CTreeModelNode *hItem) const |
| | 是否在可视区域内
|
| BOOL | IsTreeEmpty () const |
| | 是否为空树
|
| void | PrintToFile (FILE *fp, LPCSTR space_prefix=" ") const |
| | 格式化输出到文件中
|
| | MouseDragHelper () |
| | ~MouseDragHelper () |
| void | SetBeginDragPoint (POINT pt) |
| void | UpdateCurrentDragPoint (POINT pt) |
| SIZE | MoveOffset () const |
| POINT | TargetPoint () const |
| void | SetDragState (DragStateFlag state) |
| DragStateFlag | DragState () const |
| void | SetDragMoveEnable (BOOL is_enable_drag) |
| BOOL | IsDragMoveEnable () const |
|
| void | OnTranslateLanguage () |
| void | SetAllSelectState (bool state) |
| UINT | GetRowCount () const |
| void | ReBuildDepth () |
| void | DrawTreeCell (CNodeSpanCell *cell, RECT rc_view, const GColor &color_text, UINT text_align) |
| BOOL | PtInTreeItemCheckBox (CTreeModelNode *item, POINT pt) |
| BOOL | PtInExpandBtn (CTreeModelNode *hItem, POINT pt) |
| void | SetTreeItemCheckBox (CTreeModelNode *item, SelectState state) |
| void | SetChildItemCheckState (CTreeModelNode *child, SelectState state) |
| void | DrawTreeItem (ISurface *surface, RECT *rect_update, CTreeModelNode *node, const GColor &color, int dx=0) |
| void | DrawTreeDataCell (ISurface *surface, int paint_state, RECT *rect_update, CTreeModelNode *node, RECT rc_cell, const GColor &color) |
| void | DrawTreeItemLevelLine (ISurface *surface, RECT &rc_view, CTreeModelNode *node, const GColor &color, int font_height, int begin_row, int scroll_x, int scroll_y) |
| void | RefreshTreeNode (CTreeModelNode *node1, CTreeModelNode *node2, int base_x, int width) |
| BOOL | GetTreeNodeCellYBound (CTreeModelNode *node, int &y1, int &y2) const |
| void | ShellModelAttribute (const BeString &str_name, const BeString &str_value) |
| | 命令控制和属性设置接口
|
| virtual void | OnInvalidateRect (RECT *rc, BOOL bClient)=0 |
| virtual int | GetModelColumCount ()=0 |
| virtual POINT | GetScrollOffsetPoint ()=0 |
| virtual void | OnSelectItem (CTreeModelNode *item)=0 |