|
| | CTreeViewModel () |
| |
| | ~CTreeViewModel () |
| |
| void | ModifyTreeViewModelFlags (UINT style, UINT op=ADD_FLAGS, BOOL bRefresh=FALSE) |
| | 设置树模型标志
|
| |
| UINT | IsHasTreeViewModelFlags (UINT flags) const |
| |
| UINT | GetTreeViewModelFlags () const |
| |
| CTreeModelNode * | InsertTreeNode (CTreeModelNode *parent, CTreeModelNode *prev, std::shared_ptr< CNodeSpanCell > item) |
| | 插入节点
|
| |
| BOOL | RemoveItem (CTreeModelNode *hItem) |
| | 删除节点
|
| |
| void | Clear (BOOL bErase=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)单元格数据
|
| |
| 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 bSearch) |
| | 开启(或禁用)查找模式
|
| |
| void | SetCheckBoxImage (SelectState state, GImageIconInfo *img) |
| | 设置复选框图案
|
| |
| void | MatchTextNode (LPCTSTR str) |
| | 搜索匹配的节点
|
| |
| BOOL | Expand (CTreeModelNode *hItem, BOOL bExpand) |
| | 设定项是否展开 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 bEnableDrag) |
| |
| BOOL | IsDragMoveEnable () const |
| |
|
| void | OnTranslateLanguage () |
| |
| void | SetAllSelectState (bool state) |
| |
| UINT | GetRowCount () const |
| |
| void | ReBuildDepth () |
| |
| void | DrawTreeCell (CNodeSpanCell *pCell, RECT rcView, const GColor &color_text, UINT textAlignFlag) |
| |
| BOOL | PtInTreeItemCheckBox (CTreeModelNode *hItem, POINT pt) |
| |
| BOOL | PtInExpandBtn (CTreeModelNode *hItem, POINT pt) |
| |
| void | SetTreeItemCheckBox (CTreeModelNode *hItem, SelectState state) |
| |
| void | SetChildItemCheckState (CTreeModelNode *hchild, SelectState nstate) |
| |
| void | DrawTreeItem (ISurface *pSurface, RECT *lpUpdate, CTreeModelNode *node, const GColor &color, int dx=0) |
| |
| void | DrawTreeDataCell (ISurface *pSurface, int paintState, RECT *lpUpdate, CTreeModelNode *node, RECT rcCell, const GColor &color) |
| |
| void | DrawTreeItemLevelLine (ISurface *pSurface, RECT &rcView, CTreeModelNode *node, const GColor &color, int fontHeight, int firstRow, 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 &szName, const BeString &szText) |
| | 命令控制和属性设置接口
|
| |
| virtual void | OnInvalidateRect (RECT *rc, BOOL bClient)=0 |
| |
| virtual int | GetModelColumCount ()=0 |
| |
| virtual POINT | GetScrollOffsetPoint ()=0 |
| |
| virtual void | OnSelectItem (CTreeModelNode *item)=0 |
| |