From 3dac1cb0db538a2525b649ab84a6fc3f375ef704 Mon Sep 17 00:00:00 2001 From: treectrl Date: Mon, 26 Jul 2004 17:23:12 +0000 Subject: New "-defaultstyle" widget option. Remove Tree_CreateColumn() declaration. --- generic/tkTreeCtrl.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/generic/tkTreeCtrl.h b/generic/tkTreeCtrl.h index 8893a61..73a90e6 100644 --- a/generic/tkTreeCtrl.h +++ b/generic/tkTreeCtrl.h @@ -6,7 +6,7 @@ * Copyright (c) 2002-2003 Christian Krone * Copyright (c) 2003 ActiveState Corporation * - * RCS: @(#) $Id: tkTreeCtrl.h,v 1.12 2003/11/25 22:12:27 hobbs2 Exp $ + * RCS: @(#) $Id: tkTreeCtrl.h,v 1.13 2004/07/26 17:23:12 treectrl Exp $ */ #include "tkPort.h" @@ -218,6 +218,12 @@ struct TreeCtrl int scanY; int scanXOrigin; int scanYOrigin; + + struct { + Tcl_Obj *stylesObj; + TreeStyle *styles; + int numStyles; + } defaultStyle; }; #define TREE_CONF_FONT 0x0001 @@ -234,6 +240,7 @@ struct TreeCtrl #define TREE_CONF_PROXY 0x0800 #define TREE_CONF_BUTTON 0x1000 #define TREE_CONF_LINE 0x2000 +#define TREE_CONF_DEFSTYLE 0x4000 extern void Tree_AddItem(TreeCtrl *tree, TreeItem item); extern void Tree_RemoveItem(TreeCtrl *tree, TreeItem item); @@ -406,7 +413,6 @@ extern void TreeNotify_Scroll(TreeCtrl *tree, double fractions[2], int vertical) /* tkTreeColumn.c */ extern void Tree_InitColumns(TreeCtrl *tree); -extern TreeColumn Tree_CreateColumn(TreeCtrl *tree, int columnIndex, int *isNew); extern TreeColumn Tree_FindColumn(TreeCtrl *tree, int columnIndex); #define CFO_NOT_TAIL 0x01 extern int Tree_FindColumnByTag(TreeCtrl *tree, Tcl_Obj *obj, TreeColumn *columnPtr, int flags); -- cgit v0.12