Unnamed Fossil Project

Check-in [36c7c055cc]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:new code and fixes for treeview
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:36c7c055ccbc1a4f28cfdac8cd52cb7b5fc404b3
User & Date: arnulf 2013-09-15 19:37:12
Context
2013-09-17
19:42
new code for treeview insert check-in: 9640fda380 user: arnulf tags: trunk
2013-09-15
19:37
new code and fixes for treeview check-in: 36c7c055cc user: arnulf tags: trunk
13:58
new code for treeview and new class tagset check-in: 1e7da3b02d user: arnulf tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to library/ntkBorderElement.tcl.

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
...
148
149
150
151
152
153
154

155
156
157
158
159
160
161
...
165
166
167
168
169
170
171

172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
    protected option [list -background Background Background] \
            -default #d9d9d9
    protected option [list -borderwidth borderWidth BorderWidth] \
            -default 2
    protected option [list -depth depth Depth] \
            -default 0
    protected option [list -relief Relief Relief] \
            -default flat

    private method DrawCorner {x y width height corner color}
    public method InitializeOptionValues {styleName tkwin state}
    public method ElementSize {widthVar heightVar paddingVar}
    private method BorderElementDraw {box state}
    public method ElementDraw {box state}

................................................................................
}

#================================ ElementDraw ============================
#     
#=========================================================================

::itcl::body BorderElement::ElementDraw {box state} {

#puts stderr "BorderElement ElementDraw $box $state![cget -borderwidth]![cget -relief]!"
#puts stderr "CLOPT border![info options]![cget -relief]![cget -background]![cget -borderwidth]!"
    set borderWidth [cget -borderwidth]
    set depth [cget -depth]
    set relief [cget -relief]
    set backgroundVal [cget -background]
    set backgroundColor [ColorValue2RGBA $backgroundVal]
................................................................................
#puts stderr "POS border!$box!$pos1!$pos2!$pos3!$pos4!"
    set shadows [::ntk::classes::border::GetShadows $backgroundColor]
#puts stderr "SHADOWS2!$shadows!"
    lassign $shadows darkColor lightColor

    if {$borderWidth > 0 && $relief ne "flat"} {
	lassign $box x y width height

	set z 0
	set box [list $x $y $z $width $height $depth]
	::ntk::classes::border::DrawRectangleBorder $box $borderWidth $relief $shadows
        ::gles2::swapbuffers

	set x [expr {$x + $borderWidth}]
	set y [expr {$y + $borderWidth}]
	set width [expr {$width - 2 *$borderWidth}]
	set height [expr {$height - 2 *$borderWidth}]
	set backbox [list $x $y $width $height]
        lassign [GetElementPositions $backbox] pos1 pos2 pos3 pos4
#puts stderr "BACKGROUND2!$pos1!$pos2!$pos3!$pos4!"
        ::gles2::builtin::fillrectangle [list $pos1 $backgroundColor] [list $pos2 $backgroundColor] [list $pos3 $backgroundColor] [list $pos4 $backgroundColor]
        ::gles2::swapbuffers
    }
    ::ntk::Debug::DebugInput
}

} ; # end namespace ::ntk::classes








|







 







>







 







>












|
|






43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
...
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
...
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
    protected option [list -background Background Background] \
            -default #d9d9d9
    protected option [list -borderwidth borderWidth BorderWidth] \
            -default 2
    protected option [list -depth depth Depth] \
            -default 0
    protected option [list -relief Relief Relief] \
            -default raised

    private method DrawCorner {x y width height corner color}
    public method InitializeOptionValues {styleName tkwin state}
    public method ElementSize {widthVar heightVar paddingVar}
    private method BorderElementDraw {box state}
    public method ElementDraw {box state}

................................................................................
}

#================================ ElementDraw ============================
#     
#=========================================================================

::itcl::body BorderElement::ElementDraw {box state} {
#puts stderr "BorderElement::ElementDraw!$box!"
#puts stderr "BorderElement ElementDraw $box $state![cget -borderwidth]![cget -relief]!"
#puts stderr "CLOPT border![info options]![cget -relief]![cget -background]![cget -borderwidth]!"
    set borderWidth [cget -borderwidth]
    set depth [cget -depth]
    set relief [cget -relief]
    set backgroundVal [cget -background]
    set backgroundColor [ColorValue2RGBA $backgroundVal]
................................................................................
#puts stderr "POS border!$box!$pos1!$pos2!$pos3!$pos4!"
    set shadows [::ntk::classes::border::GetShadows $backgroundColor]
#puts stderr "SHADOWS2!$shadows!"
    lassign $shadows darkColor lightColor

    if {$borderWidth > 0 && $relief ne "flat"} {
	lassign $box x y width height
#puts stderr "BorderElementDraw1!$box!"
	set z 0
	set box [list $x $y $z $width $height $depth]
	::ntk::classes::border::DrawRectangleBorder $box $borderWidth $relief $shadows
        ::gles2::swapbuffers

	set x [expr {$x + $borderWidth}]
	set y [expr {$y + $borderWidth}]
	set width [expr {$width - 2 *$borderWidth}]
	set height [expr {$height - 2 *$borderWidth}]
	set backbox [list $x $y $width $height]
        lassign [GetElementPositions $backbox] pos1 pos2 pos3 pos4
#puts stderr "BACKGROUND2!$pos1!$pos2!$pos3!$pos4!"
#        ::gles2::builtin::fillrectangle [list $pos1 $backgroundColor] [list $pos2 $backgroundColor] [list $pos3 $backgroundColor] [list $pos4 $backgroundColor]
#        ::gles2::swapbuffers
    }
    ::ntk::Debug::DebugInput
}

} ; # end namespace ::ntk::classes

Changes to library/ntkFieldElement.tcl.

15
16
17
18
19
20
21


















22
23
24
25
26
27
28
..
71
72
73
74
75
76
77





78
79
80
81
82

83
84
85
86
87
88

89
90
91
92
#--------------------------------------------------------------------------

namespace eval ::ntk::classes {

::itcl::extendedclass FieldElement {
    inherit baseElement utils



















    protected option [list -fieldbackground fieldBackground Background] \
            -default white
    protected option [list -borderwidth borderWidth BorderWidth] \
            -default 2
    protected option [list -depth borderWidth BorderWidth] \
            -default 0

................................................................................
#puts stderr "POS border!$box!$pos1!$pos2!$pos3!$pos4!"
    set shadows [::ntk::classes::border::GetShadows $backgroundColor]
#puts stderr "SHADOWS2!$shadows!"
    lassign $shadows darkColor lightColor
    lassign $box x y width height
    set z 0






    set x [expr {$x + $borderWidth}]
    set y [expr {$y + $borderWidth}]
    set width [expr {$width - 2 *$borderWidth}]
    set height [expr {$height - 2 *$borderWidth}]
    set backbox [list $x $y $width $height]

    lassign [GetElementPositions $backbox] pos1 pos2 pos3 pos4
#puts stderr "BACKGROUND2!$pos1!$pos2!$pos3!$pos4!$backgroundColor!"
    ::gles2::builtin::fillrectangle [list $pos1 $backgroundColor] [list $pos2 $backgroundColor] [list $pos3 $backgroundColor] [list $pos4 $backgroundColor]

    set box [list $x $y $z $width $height $depth]
    ::ntk::classes::border::DrawRectangleBorder $box $borderWidth $relief $shadows

    ::gles2::swapbuffers
}

} ; # end namespace ::ntk::classes







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
>
>
|
|
|
|
|
>
|

|

<
<
>




15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
..
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110


111
112
113
114
115
#--------------------------------------------------------------------------

namespace eval ::ntk::classes {

::itcl::extendedclass FieldElement {
    inherit baseElement utils

    private common shadowColors
    # top-left outer, top-left inner, bottom-right inner, bottom-right outer
    set shadowColors(flat)   [list FLAT FLAT FLAT FLAT]
    set shadowColors(groove) [list DARK LITE DARK LITE]
    set shadowColors(raised) [list LITE FLAT DARK BRDR]
    set shadowColors(ridge)  [list LITE DARK LITE DARK]
    set shadowColors(solid)  [list BRDR BRDR BRDR BRDR]
    set shadowColors(sunken) [list BRDR DARK FLAT LITE]

    private common thinShadowColors
    # top-left, bottom-right
    set thinShadowColors(flat)   [list FLAT FLAT]
    set thinShadowColors(groove) [list DARK LITE]
    set thinShadowColors(raised) [list LITE DARK]
    set thinShadowColors(ridge)  [list LITE DARK]
    set thinShadowColors(solid)  [list BRDR BRDR]
    set thinShadowColors(sunken) [list DARK LITE]

    protected option [list -fieldbackground fieldBackground Background] \
            -default white
    protected option [list -borderwidth borderWidth BorderWidth] \
            -default 2
    protected option [list -depth borderWidth BorderWidth] \
            -default 0

................................................................................
#puts stderr "POS border!$box!$pos1!$pos2!$pos3!$pos4!"
    set shadows [::ntk::classes::border::GetShadows $backgroundColor]
#puts stderr "SHADOWS2!$shadows!"
    lassign $shadows darkColor lightColor
    lassign $box x y width height
    set z 0

    if {$borderWidth > 0 && $relief ne "flat"} {
	set box [list $x $y $z $width $height $depth]
	::ntk::classes::border::DrawRectangleBorder $box $borderWidth $relief $shadows
        ::gles2::swapbuffers

        set x [expr {$x + $borderWidth}]
        set y [expr {$y + $borderWidth}]
        set width [expr {$width - 2 *$borderWidth}]
        set height [expr {$height - 2 *$borderWidth}]
        set backbox [list $x $y $width $height]
#puts stderr "FieldElement::ElementDraw!$backbox!"
        lassign [GetElementPositions $backbox] pos1 pos2 pos3 pos4
#puts stderr "BACKGROUND2!$pos1!$pos2!$pos3!$pos4!$backgroundColor!"
        ::gles2::builtin::fillrectangle [list $pos1 $backgroundColor] [list $pos2 $backgroundColor] [list $pos3 $backgroundColor] [list $pos4 $backgroundColor]



    }
    ::gles2::swapbuffers
}

} ; # end namespace ::ntk::classes

Changes to library/ntkImageElement.tcl.

56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#=========================================================================

::itcl::body ImageElement::ElementSize {widthVar heightVar paddingVar} {
    upvar $widthVar width
    upvar $heightVar height
    upvar $paddingVar padding

puts stderr "ImageElement::ELementSize"
    # FIX ME !!
    set width 0
    set height 0
}

#================================ ElementDraw ============================
#     







|







56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#=========================================================================

::itcl::body ImageElement::ElementSize {widthVar heightVar paddingVar} {
    upvar $widthVar width
    upvar $heightVar height
    upvar $paddingVar padding

#puts stderr "ImageElement::ELementSize"
    # FIX ME !!
    set width 0
    set height 0
}

#================================ ElementDraw ============================
#     

Changes to library/ntkLayout.tcl.

232
233
234
235
236
237
238

239
240
241
242

243
244
245

246
247
248

249
250
251



252
253
254
255
256
257
258
...
670
671
672
673
674
675
676


677
678
679
680
681
682
683
...
943
944
945
946
947
948
949
950

951
952
953
954
955
956
957
#     
#=========================================================================

::itcl::body layout::PackBox {cavityVar width height side} {
    upvar $cavityVar cavity

    switch $side {

    "pack_top" -
    default {
        return [packTop cavity $height]
      }

    "pack_bottom" {
        return [packBottom cavity $height]
      }

    "pack_left" {
        return [packLeft cavity $width]
      }

    "pack_right" {
        return [packRight cavity $width]
      }



    }
}

#================================ InitPadding ============================
#    InitPadding --
#        Common factor of GetPadding and GetBorder.
#        Initializes Padding record, supplying default values
................................................................................

    set style [::ntk::classes::theme::GetStyle $theme $styleName]
    set layoutTemplate [::ntk::classes::theme::FindLayoutTemplate $theme $styleName]
    if {$layoutTemplate eq ""} {
        return -code error "Layout $styleName not found"
    }
    set node [InstantiateLayout $theme $layoutTemplate]


    return [NewLayout $style $recordPtr $node]
}

#================================ RebindSubLayout ============================
# RebindSublayout --
#     Bind sublayout to new data source.
#=========================================================================
................................................................................
#    Returns the inner area of a specified layout node,
#    based on current parcel and element's internal padding.
#=========================================================================

::itcl::body layout::LayoutNodeInternalParcel {layout node} {
#puts stderr "LayoutNodeInternalParcel!"
    set padding [LayoutNodeInternalPadding $layout $node]
    return [PadBox [dict get $node -parcel] $padding]

}

#================================ FindNode ============================
#    Look up an element by name
#=========================================================================

::itcl::body layout::FindNode {node nodeName} {







>
|
<


>



>



>



>
>
>







 







>
>







 







|
>







232
233
234
235
236
237
238
239
240

241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
...
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
...
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
#     
#=========================================================================

::itcl::body layout::PackBox {cavityVar width height side} {
    upvar $cavityVar cavity

    switch $side {
    "side_top" -
    "pack_top" {

        return [packTop cavity $height]
      }
    "side_bottom" -
    "pack_bottom" {
        return [packBottom cavity $height]
      }
    "side_left" -
    "pack_left" {
        return [packLeft cavity $width]
      }
    "side_right" -
    "pack_right" {
        return [packRight cavity $width]
      }
    default {
        return -code error "PackBox!bad side: $side!"
      }
    }
}

#================================ InitPadding ============================
#    InitPadding --
#        Common factor of GetPadding and GetBorder.
#        Initializes Padding record, supplying default values
................................................................................

    set style [::ntk::classes::theme::GetStyle $theme $styleName]
    set layoutTemplate [::ntk::classes::theme::FindLayoutTemplate $theme $styleName]
    if {$layoutTemplate eq ""} {
        return -code error "Layout $styleName not found"
    }
    set node [InstantiateLayout $theme $layoutTemplate]
#puts stderr "Sublayout!"
#printDict $node
    return [NewLayout $style $recordPtr $node]
}

#================================ RebindSubLayout ============================
# RebindSublayout --
#     Bind sublayout to new data source.
#=========================================================================
................................................................................
#    Returns the inner area of a specified layout node,
#    based on current parcel and element's internal padding.
#=========================================================================

::itcl::body layout::LayoutNodeInternalParcel {layout node} {
#puts stderr "LayoutNodeInternalParcel!"
    set padding [LayoutNodeInternalPadding $layout $node]
    set padding2 [PadBox [dict get $node -parcel] $padding]
    return $padding2
}

#================================ FindNode ============================
#    Look up an element by name
#=========================================================================

::itcl::body layout::FindNode {node nodeName} {

Changes to library/ntkTTreeview.tcl.

32
33
34
35
36
37
38

39
40
41
42
43
44
45
46
47
48
...
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275


276
277
278
279
280
281
282
...
317
318
319
320
321
322
323
324


325
326
327
328



329






330









































331


332




333
334
335
336


























337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352

353
354
355
356
357
358
359
...
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
...
419
420
421
422
423
424
425


426
427
428
429
430
431
432
...
441
442
443
444
445
446
447
448

449
450
451
452
453
454
455
...
457
458
459
460
461
462
463


464
465
466
467
468
469









470

471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
...
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685






686
687
688
689
690
691
692

693
694
695
696
697
698
699
...
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720

721
722
723
724
725




726
727
728
729

730
731
732
733
734
735
736
...
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
...
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926

    constructor {args} {}

    private method InitColumn {columnVar}
    public method TreeviewInitialize {recordPtr}
    public method TreeviewCleanup {args}
    private method TreeviewInitColumns {}

    private method TreeviewInitDisplayColumns {}
    private method ScrollbarUpdateRequired {scrollHandle}
    private method RecomputeSlack {recordPtr}
    public method TreeviewConfigure {args}
    public method TreeviewPostConfigure {recordPtr mask}
    private method NewItem {}
    private method GetSublayout {theme parentLayout layoutName optionTable layoutVar}
    public method TreeviewGetLayout {theme recordPtr}
    public method TreeviewSize {recordPtr widthVar heightVar}
    private method FirstColumn {}
................................................................................

#    tv->tree.tagTable = CreateTagTable( tv->core.tkwin, TagOptionSpecs, sizeof(DisplayItem));
#    tv->tree.bindingTable = Tk_CreateBindingTable(interp);
#    Tk_CreateEventHandler(tv->core.tkwin, TreeviewBindEventMask, TreeviewBindEventProc, tv);
     dict set tree tagTable [dict create]
     dict set tree bindingTable [dict create]

    dict set tree itemLayout 0
    dict set tree cellLayout 0
    dict set tree headingLayout 0
    dict set tree rowLayout 0
    dict set tree headingHeight 20
    dict set tree rowHeight 20
    dict set tree indent 20

    dict set tree columnNames [dict create]
    dict set tree nColumns 0
    dict set tree nDisplayColumns 0
    dict set tree columns ""
    dict set tree displayColumns ""
    dict set tree showFlags ""



    InitColumn column0
    dict set tree column0 $column0
#    Tk_InitOptions( interp, (ClientData)(&tv->tree.column0), tv->tree.columnOptionTable, tv->core.tkwin);
#    Tk_InitOptions( interp, (ClientData)(&tv->tree.column0), tv->tree.headingOptionTable, tv->core.tkwin);

    dict set tree items [dict create]
................................................................................
#     Cleanup hooks.
#=========================================================================

::itcl::body treeview::TreeviewCleanup {recordPtr} {
}

#================================ TreeviewInitColumns ============================
# 


#=========================================================================

::itcl::body treeview::TreeviewInitColumns {} {
puts stderr "TreeviewInitColumns!"



}
















































#================================ TreeviewInitDisplayColumns ============================


# 




#=========================================================================

::itcl::body treeview::TreeviewInitDisplayColumns {} {
puts stderr "TreeviewInitDisplayColumns!"


























}

#================================ ScrollbarUpdateRequired ============================
# 
#=========================================================================

::itcl::body treeview::ScrollbarUpdateRequired {scrollHandle} {
puts stderr "ScrollbarUpdateRequired!"
}

#================================ RecomputeSlack ============================
# 
#=========================================================================

::itcl::body treeview::RecomputeSlack {recordPtr} {
puts stderr "RecomputeSlack!"

}

#================================ TreeviewConfigure ============================
# TreeviewConfigure --
#     Configuration widget hook.
# 
#     BUG: If user sets -columns and -displaycolumns, but -displaycolumns
................................................................................
#     has an error, the widget is left in an inconsistent state.
#=========================================================================

::itcl::body treeview::TreeviewConfigure {recordPtr mask} {
#puts stderr "TreeviewConfigure!$mask!"

    set showFlags [dict get $tree showFlags]
    if {[lsearch $mask columnsChanged] >= 0} {
        if {[TreeviewInitColumns] != TCL_OK} {
            return TCL_ERROR;
        }
        lappend mask dcolumnsChanged
    }
    if {[lsearch $mask dcolumnsChanged] >= 0} {
        if {[TreeviewInitDisplayColumns] != TCL_OK} {
            return TCL_ERROR;
        }
    }
    if {[lsearch $mask scrollcmdChanged] >= 0} {
        ScrollbarUpdateRequired [dict get $tree xscrollHandle]
        ScrollbarUpdateRequired [dict get $tree yscrollHandle]
    }
    if {[lsearch $mask showChanged] >= 0} {
        set showFlags [dict get $tree showObj showStrings]
    }
    CoreConfigure $mask
    dict set tree showFlags $showFlags

    if {[lsearch $mask show_changed] >= 0 || [lsearch $mask dcolumnsChanged] >= 0} {
        RecomputeSlack
    }
}

#================================ TreeviewPostConfigure ============================
#     Post-configuration hook.
#=========================================================================
................................................................................

::itcl::body treeview::TreeviewGetLayout {theme recordPtr} {
#puts stderr "TreeviewGetLayout!$theme!"
    set treeLayout [WidgetGetLayout $theme $recordPtr]
    if {$treeLayout eq ""} {
        return 0
    }


    set tagOptionTable [dict get $tree tagOptionTable]
    set itemLayout [dict get $tree itemLayout]
    if {[GetSublayout $theme $treeLayout ".Item" $tagOptionTable itemLayout] eq ""} {
        return 0
    }
    dict set tree itemLayout $itemLayout
    set cellLayout [dict get $tree cellLayout]
................................................................................
    dict set tree headingLayout $headingLayout
    set rowLayout [dict get $tree rowLayout]
    if {[GetSublayout $theme $treeLayout ".Row" $tagOptionTable rowLayout] eq ""} {
        return 0
    }
    dict set tree rowLayout $rowLayout
    # Compute heading height.
    dict set tree headingLayout [dict get $tree column0]

    ::ntk::classes::layout::LayoutSize $headingLayout 0 unused [dict get $tree headingHeight]

    # Get item height, indent from style:
    # @@@ TODO: sanity-check.

    dict set tree rowHeight 20
    dict set tree indent 20
................................................................................
    dict set tree indent 20

    return $treeLayout
}

#================================ TreeviewSize ============================
# TreeviewSize --


#=========================================================================

::itcl::body treeview::TreeviewSize {recordPtr widthVar heightVar} {
    upvar $widthVar width
    upvar $heightVar height
#puts stderr "TreeviewSize!"









puts stderr "TreeviewSize END!$width!$height!"

}

#================================ FirstColumn ============================
#
#=========================================================================

::itcl::body treeview::FirstColumn {} {
#puts stderr "FirstColumn!"
    set flags [dict get $tree showFlags]
    if {[lsearch $flags showTree] >= 0} {
        return 0
    } else {
        return 1
    }
}

#================================ Stretch ============================
................................................................................
# Side effects:
#     Computes headingArea and treeArea.
#     Computes subtree height.
#     Invokes scroll callbacks.
#=========================================================================

::itcl::body treeview::TreeviewDoLayout {recordPtr} {
puts stderr "TreeviewDoLayout!"
    # ASSERT: SLACKINVARIANT 

    set layout [dict get $core layout]
    set box [list 0 0 0 0]
    ::ntk::classes::layout::PlaceLayout layout [dict get $core state] $box
    dict set core layout $layout
    set box [::ntk::classes::layout::ClientRegion [dict get $core layout] "treearea"]
puts stderr "BOX!$box!"
    lassign $box x y width height
    dict set tree treeArea x $x
    dict set tree treeArea y $y
    dict set tree treeArea width $width
    dict set tree treeArea height $height

    ResizeColumns [dict get $tree treeArea width]
    # ASSERT: SLACKINVARIANT

    set start [dict get $tree xscrollHandle xscroll first]
    set end [expr {[dict get $tree xscrollHandle xscroll first] + [dict get $tree treeArea width]}]
    Scrolled [dict get $tree xscrollHandle] $start $end [TreeWidth]

    if {[lsearch [dict get $tree showFlags] showHeadings] >= 0} {
        set box [list [dict get $tree treeArea x] [dict get $tree treeArea y] [dict get $tree treeArea width] [dict get $tree treeArea height] ]
        dict set tree headingArea [::ntk::classes::layout::PackBox $box 1 [dict get $tree headingHeight] side_top]






    } else {
        dict set tree headingArea x 0
        dict set tree headingArea y 0
        dict set tree headingArea width 0
        dict set tree headingArea height 0
    }
    set visibleRows [expr {[dict get $tree treeArea height] / [dict get $tree rowHeight]}]

    dict lappend tree root state stateOpen
    set start [dict get $tree yscrollHandle yscroll first]
    set end [expr {[dict get $tree yscrollHandle yscroll first] + $visibleRows}]
    Scrolled [dict get $tree yscrollHandle] $start $end [expr {[CountRows [dict get $tree root]] - 1}]

}

................................................................................
# DisplayLayout --
#     Rebind, place, and draw a layout + object combination.
#=========================================================================

::itcl::body treeview::DisplayLayout {layoutVar recordPtr state box} {
    upvar $layoutVar layout

puts stderr "DisplayLayout!"
    ::ntk::classes::layout::RebindSubLayout layout $recordPtr
    ::ntk::classes::layout::PlaceLayout layout $state $box
    ::ntk::classes::layout::DrawLayout $layout $state
}

#================================ DrawHeadings ============================
# DrawHeadings --
#     Draw tree headings.
#=========================================================================

::itcl::body treeview::DrawHeadings {} {
puts stderr "DrawHeadings!"

    set x0 [expr {[dict get $tree headingArea x] - [dict get $tree xscroll first]}]
    set y0 [dict get $tree headingArea y]
    set h0 [dict get $tree headingArea height]
    set i [FirstColumn]
    set x 0





    while {$i < [dict get $tree nDisplayColumns]} {
        set column [lindex [dict get $tree displayColumns] $i]
        parcel [list [expr {$x0 + $x}] $y, [dict get $column width] $h0]

        set headingLayout [dict get $tree headingLayout]
        DisplayLayout headingLayout $column [dict get $column headingState] $parcel
        dict set tree headingLayout $headingLayout
        set x [expr {$x + [dict get $column width]}]
        incr i
    }
}
................................................................................
    # Draw row background:

    set rowBox [lst $x $y [TreeWidth] $rowHeight]
    DisplayLayout [dict get $tree rowLayout] displayItem $state $rowBox

    # Draw tree label:

    if {[lsearch [dict get $tree showFlags] showTree] >= 0} {
        set indent [expr {$depth * [dict get $tree indent]}]
        set colwidth [dict get $tree column0 width]
        set parcel [list [expr {$x+$indent}] $y [expr {$colwidth-$indent}] $rowHeight]
        if {[dict get $item textObj] ne ""} {
            dict set displayItem textObj [dict get $item textObj]
        }
        if {[dict get $item imageObj] ne ""} {
................................................................................

#================================ TreeviewDisplay ============================
# TreeviewDisplay --
#     Display() widget hook.  Draw the widget contents.
#=========================================================================

::itcl::body treeview::TreeviewDisplay {} {
puts stderr "TreeviewDisplay!"
    ::ntk::classes::layout::DrawLayout [dict get $core layout] [dict get $core state]
    if {[lsearch [dict get $tree showFlags] showHeadings] >= 0 } {
        DrawHeadings
    }
    DrawForest [dict get $tree root children] 0 0
}

#================================ TreeviewBBoxCommand ============================
#     
#=========================================================================

::itcl::body treeview::TreeviewBBoxCommand {args} {







>


|







 







|
|
|
|




|


|


>
>







 







|
>
>



|
>
>
>
|
>
>
>
>
>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

>
>
|
>
>
>
>



|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







|



|


|
|
>







 







|
|
|



|
|
|


|



|





|







 







>
>







 







|
>







 







>
>






>
>
>
>
>
>
>
>
>
|
>









|







 







|



|



|













|

|
>
>
>
>
>
>







>







 







|











|
>
|




>
>
>
>



|
>







 







|







 







|

|


|







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
...
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
...
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
...
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
...
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
...
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
...
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
...
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
...
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
...
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
....
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042

    constructor {args} {}

    private method InitColumn {columnVar}
    public method TreeviewInitialize {recordPtr}
    public method TreeviewCleanup {args}
    private method TreeviewInitColumns {}
    private method GetColumn {columnIDObj}
    private method TreeviewInitDisplayColumns {}
    private method ScrollbarUpdateRequired {scrollHandle}
    private method RecomputeSlack {}
    public method TreeviewConfigure {args}
    public method TreeviewPostConfigure {recordPtr mask}
    private method NewItem {}
    private method GetSublayout {theme parentLayout layoutName optionTable layoutVar}
    public method TreeviewGetLayout {theme recordPtr}
    public method TreeviewSize {recordPtr widthVar heightVar}
    private method FirstColumn {}
................................................................................

#    tv->tree.tagTable = CreateTagTable( tv->core.tkwin, TagOptionSpecs, sizeof(DisplayItem));
#    tv->tree.bindingTable = Tk_CreateBindingTable(interp);
#    Tk_CreateEventHandler(tv->core.tkwin, TreeviewBindEventMask, TreeviewBindEventProc, tv);
     dict set tree tagTable [dict create]
     dict set tree bindingTable [dict create]

    dict set tree itemLayout ""
    dict set tree cellLayout ""
    dict set tree headingLayout ""
    dict set tree rowLayout ""
    dict set tree headingHeight 20
    dict set tree rowHeight 20
    dict set tree indent 20

    dict set tree columnNames [list]
    dict set tree nColumns 0
    dict set tree nDisplayColumns 0
    dict set tree columns [list]
    dict set tree displayColumns ""
    dict set tree showFlags ""
    dict set tree showObj [dict create]
    dict set tree showObj showStrings [list tree headings]

    InitColumn column0
    dict set tree column0 $column0
#    Tk_InitOptions( interp, (ClientData)(&tv->tree.column0), tv->tree.columnOptionTable, tv->core.tkwin);
#    Tk_InitOptions( interp, (ClientData)(&tv->tree.column0), tv->tree.headingOptionTable, tv->core.tkwin);

    dict set tree items [dict create]
................................................................................
#     Cleanup hooks.
#=========================================================================

::itcl::body treeview::TreeviewCleanup {recordPtr} {
}

#================================ TreeviewInitColumns ============================
# TreeviewInitColumns --
#     Initialize column data when -columns changes.
#     Returns: 0 (OK) or 1 (ERROR)
#=========================================================================

::itcl::body treeview::TreeviewInitColumns {} {
#puts stderr "TreeviewInitColumns!"
    # Free old values:
    dict set tree columns [list]
    dict set tree columnNames [list]

    # Initialize columns list and columnNames list
    set columns [cget -columns]
    if {$columns eq ""} {
        set nCols 0
    } else {
        set nCols [llength $columns]
    }
    if {$nCols > 0} {
        foreach columName $columns {
            dict lappend tree columnNames $columnName
            InitColumn column
            dict set column idObj $columnName
            dict lappend columns $column
#            Tk_InitOptions((tv->tree.columns + i), tv->tree.columnOptionTable, tv->core.tkwin);
#            Tk_InitOptions((tv->tree.columns + i), tv->tree.headingOptionTable, tv->core.tkwin);
        }
    }
    return 0
}

#================================ GetColumn ============================
# GetColumn --
#     Look up column by name or number.
#     Returns: pointer to column table entry, "" if not found.
#     Leaves an error message on error.
#=========================================================================

::itcl::body treeview::GetColumn {columnIDObj} {
    # Check for named column:

    set entryIdx [lsearch [dict get $tree columnNames] $columnIDObj]
    if {$entryIdx >= 0} {
        return $columnIDObj
    }

    # Check for number:
 
    if {[string is integer $columnIDObj]} {
        if {$columnIDObj < 0 || $columnIDObj >= [dict get $tree nColumns]} {
            return -code error "Column index $columnIDObj out of bounds"
        }

        return [lindex [dict get $tree columns] $columnIDObj]
    } else {
        return -code error "Invalid column index $columnIDObj"
    }
}

#================================ TreeviewInitDisplayColumns ============================
# TreeviewInitDisplayColumns --
#     Initializes the 'displayColumns' array.
#
#     Note that displayColumns[0] is always the tree column,
#     even when SHOW_TREE is not set.
#
#@@@ TODO: disallow duplicated columns
#=========================================================================

::itcl::body treeview::TreeviewInitDisplayColumns {} {
#puts stderr "TreeviewInitDisplayColumns!"
    set displayColumns 0

    set dcolumns [cget -displaycolumns]

    set ndcols [dict get $tree nColumns]
    set displayColumns [list]
    set index 0
    if {$dcolumns eq "#all"} {
        while {$index < $ndcols} {
            lappend displayColumns [lindex [dict get $tree columns] $index]
            incr index
        }
    } else {
        while {$index < $ndcols} {
            lappend displayColumns [GetColumn [lindex $dcolumns $index]]
#            if (!displayColumns[index+1]) {
#                ckfree(displayColumns);
#                return TCL_ERROR;
#            }
            incr index
        }
    }
    lappend displayColumns [dict get $tree column0]
    dict set tree displayColumns $displayColumns
    dict set tree nDisplayColumns [expr {$ndcols + 1}]
    return 0
}

#================================ ScrollbarUpdateRequired ============================
# 
#=========================================================================

::itcl::body treeview::ScrollbarUpdateRequired {scrollHandle} {
#puts stderr "ScrollbarUpdateRequired!"
}

#================================ RecomputeSlack ============================
# RecomputeSlack --
#=========================================================================

::itcl::body treeview::RecomputeSlack {} {
#puts stderr "RecomputeSlack!"
    dict set tree slack [expr {[dict get $tree treeArea width] - [TreeWidth]}]
}

#================================ TreeviewConfigure ============================
# TreeviewConfigure --
#     Configuration widget hook.
# 
#     BUG: If user sets -columns and -displaycolumns, but -displaycolumns
................................................................................
#     has an error, the widget is left in an inconsistent state.
#=========================================================================

::itcl::body treeview::TreeviewConfigure {recordPtr mask} {
#puts stderr "TreeviewConfigure!$mask!"

    set showFlags [dict get $tree showFlags]
    if {[lsearch $mask columnsChanged] >= 0 || [lsearch $mask allChanged] >= 0} {
        if {[TreeviewInitColumns] != 0} {
            return -code error "Error in TreeviewInitColumns"
        }
        lappend mask dcolumnsChanged
    }
    if {[lsearch $mask dcolumnsChanged] >= 0 || [lsearch $mask allChanged] >= 0} {
        if {[TreeviewInitDisplayColumns] != 0} {
            return -code error "Error in TreeviewInitDisplayColumns"
        }
    }
    if {[lsearch $mask scrollcmdChanged] >= 0 || [lsearch $mask allChanged] >= 0} {
        ScrollbarUpdateRequired [dict get $tree xscrollHandle]
        ScrollbarUpdateRequired [dict get $tree yscrollHandle]
    }
    if {[lsearch $mask showChanged] >= 0 || [lsearch $mask allChanged] >= 0} {
        set showFlags [dict get $tree showObj showStrings]
    }
    CoreConfigure $mask
    dict set tree showFlags $showFlags

    if {[lsearch $mask showChanged] >= 0 || [lsearch $mask dcolumnsChanged] >= 0 || [lsearch $mask allChanged] >= 0} {
        RecomputeSlack
    }
}

#================================ TreeviewPostConfigure ============================
#     Post-configuration hook.
#=========================================================================
................................................................................

::itcl::body treeview::TreeviewGetLayout {theme recordPtr} {
#puts stderr "TreeviewGetLayout!$theme!"
    set treeLayout [WidgetGetLayout $theme $recordPtr]
    if {$treeLayout eq ""} {
        return 0
    }
#puts stderr "treeLayout!"
#::ntk::classes::layout::printDict $treeLayout
    set tagOptionTable [dict get $tree tagOptionTable]
    set itemLayout [dict get $tree itemLayout]
    if {[GetSublayout $theme $treeLayout ".Item" $tagOptionTable itemLayout] eq ""} {
        return 0
    }
    dict set tree itemLayout $itemLayout
    set cellLayout [dict get $tree cellLayout]
................................................................................
    dict set tree headingLayout $headingLayout
    set rowLayout [dict get $tree rowLayout]
    if {[GetSublayout $theme $treeLayout ".Row" $tagOptionTable rowLayout] eq ""} {
        return 0
    }
    dict set tree rowLayout $rowLayout
    # Compute heading height.
    ::ntk::classes::layout::RebindSubLayout headingLayout [dict get $tree column0]
    dict set tree headingLayout $headingLayout
    ::ntk::classes::layout::LayoutSize $headingLayout 0 unused [dict get $tree headingHeight]

    # Get item height, indent from style:
    # @@@ TODO: sanity-check.

    dict set tree rowHeight 20
    dict set tree indent 20
................................................................................
    dict set tree indent 20

    return $treeLayout
}

#================================ TreeviewSize ============================
# TreeviewSize --
#     SizeProc() widget hook.  Size is determined by
#     -height option and column widths.
#=========================================================================

::itcl::body treeview::TreeviewSize {recordPtr widthVar heightVar} {
    upvar $widthVar width
    upvar $heightVar height
#puts stderr "TreeviewSize!"
    ::ntk::classes::layout::LayoutSize [dict get $core layout] [dict get $core state] padWidth padHeight
    set nRows [cget -height]
#puts stderr "TreeviewSize1!$padWidth!$padHeight!$nRows![TreeWidth]!"
    set width [expr {$padWidth + [TreeWidth]}]
    set height [expr {$padHeight + [dict get $tree rowHeight] * $nRows}]

    if {[lsearch [dict get $tree showFlags] headings] >= 0} {
        set height [expr {$height + [dict get $tree headingHeight]}]
    }
#puts stderr "TreeviewSize END!$width!$height!"
    return 1;
}

#================================ FirstColumn ============================
#
#=========================================================================

::itcl::body treeview::FirstColumn {} {
#puts stderr "FirstColumn!"
    set flags [dict get $tree showFlags]
    if {[lsearch $flags tree] >= 0} {
        return 0
    } else {
        return 1
    }
}

#================================ Stretch ============================
................................................................................
# Side effects:
#     Computes headingArea and treeArea.
#     Computes subtree height.
#     Invokes scroll callbacks.
#=========================================================================

::itcl::body treeview::TreeviewDoLayout {recordPtr} {
#puts stderr "TreeviewDoLayout!"
    # ASSERT: SLACKINVARIANT 

    set layout [dict get $core layout]
    set box [list [dict get $core x] [dict get $core y] [dict get $core width] [dict get $core height]]
    ::ntk::classes::layout::PlaceLayout layout [dict get $core state] $box
    dict set core layout $layout
    set box [::ntk::classes::layout::ClientRegion [dict get $core layout] "treearea"]
#puts stderr "treeArea!$box!"
    lassign $box x y width height
    dict set tree treeArea x $x
    dict set tree treeArea y $y
    dict set tree treeArea width $width
    dict set tree treeArea height $height

    ResizeColumns [dict get $tree treeArea width]
    # ASSERT: SLACKINVARIANT

    set start [dict get $tree xscrollHandle xscroll first]
    set end [expr {[dict get $tree xscrollHandle xscroll first] + [dict get $tree treeArea width]}]
    Scrolled [dict get $tree xscrollHandle] $start $end [TreeWidth]

    if {[lsearch [dict get $tree showFlags] headings] >= 0} {
        set box [list [dict get $tree treeArea x] [dict get $tree treeArea y] [dict get $tree treeArea width] [dict get $tree treeArea height] ]
        set headBox [::ntk::classes::layout::PackBox box 1 [dict get $tree headingHeight] side_top]
#puts stderr "headArea!$headBox![dict get $tree headingHeight]!"
        lassign $headBox x y width height
        dict set tree headingArea x $x
        dict set tree headingArea y $y
        dict set tree headingArea width $width
        dict set tree headingArea height $height
    } else {
        dict set tree headingArea x 0
        dict set tree headingArea y 0
        dict set tree headingArea width 0
        dict set tree headingArea height 0
    }
    set visibleRows [expr {[dict get $tree treeArea height] / [dict get $tree rowHeight]}]
#puts stderr "visibleRows!$visibleRows!"
    dict lappend tree root state stateOpen
    set start [dict get $tree yscrollHandle yscroll first]
    set end [expr {[dict get $tree yscrollHandle yscroll first] + $visibleRows}]
    Scrolled [dict get $tree yscrollHandle] $start $end [expr {[CountRows [dict get $tree root]] - 1}]

}

................................................................................
# DisplayLayout --
#     Rebind, place, and draw a layout + object combination.
#=========================================================================

::itcl::body treeview::DisplayLayout {layoutVar recordPtr state box} {
    upvar $layoutVar layout

#puts stderr "DisplayLayout!$box!"
    ::ntk::classes::layout::RebindSubLayout layout $recordPtr
    ::ntk::classes::layout::PlaceLayout layout $state $box
    ::ntk::classes::layout::DrawLayout $layout $state
}

#================================ DrawHeadings ============================
# DrawHeadings --
#     Draw tree headings.
#=========================================================================

::itcl::body treeview::DrawHeadings {} {
#puts stderr "DrawHeadings![dict get $tree headingArea]!"
#::ntk::classes::layout::printDict $tree
    set x0 [expr {[dict get $tree headingArea x] - [dict get $tree xscrollHandle xscroll first]}]
    set y0 [dict get $tree headingArea y]
    set h0 [dict get $tree headingArea height]
    set i [FirstColumn]
    set x 0
# FIXME !!! temporary ??? eventually ned to figure out how GC is used ???
set coreHeight [dict get $core height]
set y0 [expr {$y0 + $coreHeight - $h0}]
#puts stderr "DrawHeadings0![dict get $tree xscrollHandle xscroll first]! $x0!$y0!$h0!"

    while {$i < [dict get $tree nDisplayColumns]} {
        set column [lindex [dict get $tree displayColumns] $i]
        set parcel [list [expr {$x0 + $x}] $y0 [dict get $column width] $h0]
#puts stderr "DrawHeadings!col!$i!$parcel!"
        set headingLayout [dict get $tree headingLayout]
        DisplayLayout headingLayout $column [dict get $column headingState] $parcel
        dict set tree headingLayout $headingLayout
        set x [expr {$x + [dict get $column width]}]
        incr i
    }
}
................................................................................
    # Draw row background:

    set rowBox [lst $x $y [TreeWidth] $rowHeight]
    DisplayLayout [dict get $tree rowLayout] displayItem $state $rowBox

    # Draw tree label:

    if {[lsearch [dict get $tree showFlags] tree] >= 0} {
        set indent [expr {$depth * [dict get $tree indent]}]
        set colwidth [dict get $tree column0 width]
        set parcel [list [expr {$x+$indent}] $y [expr {$colwidth-$indent}] $rowHeight]
        if {[dict get $item textObj] ne ""} {
            dict set displayItem textObj [dict get $item textObj]
        }
        if {[dict get $item imageObj] ne ""} {
................................................................................

#================================ TreeviewDisplay ============================
# TreeviewDisplay --
#     Display() widget hook.  Draw the widget contents.
#=========================================================================

::itcl::body treeview::TreeviewDisplay {} {
#puts stderr "TreeviewDisplay!"
    ::ntk::classes::layout::DrawLayout [dict get $core layout] [dict get $core state]
    if {[lsearch [dict get $tree showFlags] headings] >= 0 } {
        DrawHeadings
    }
#    DrawForest [dict get $tree root children] 0 0
}

#================================ TreeviewBBoxCommand ============================
#     
#=========================================================================

::itcl::body treeview::TreeviewBBoxCommand {args} {

Changes to library/ntkTextElement.tcl.

75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#     
#=========================================================================

::itcl::body TextElement::ElementSize {widthVar heightVar paddingVar} {
    upvar $widthVar width
    upvar $heightVar height
    upvar $paddingVar padding
puts stderr "TextElement::Size!"

    set width 72
    set height 16
}

#================================ ElementDraw ==================
#     







|







75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#     
#=========================================================================

::itcl::body TextElement::ElementSize {widthVar heightVar paddingVar} {
    upvar $widthVar width
    upvar $heightVar height
    upvar $paddingVar padding
#puts stderr "TextElement::Size!"

    set width 72
    set height 16
}

#================================ ElementDraw ==================
#     

Changes to library/ntkTreeareaElement.tcl.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#---------------------------------------------------------------------------
# ntkTreerowElement.tcl --
#
# This file contains a ntkWidget TreerowElement commands implementation
#
# this code is derived from the tile/ttk implementation written by
# Joe English
#
# Copyright (c) 2007-2013 by Arnulf P. Wiedemann
#
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# @(#) $Id: ntkTreerowElement.tcl
#--------------------------------------------------------------------------

namespace eval ::ntk::classes {

# Used in scrollbars and scales in place of "border".

::itcl::extendedclass TreerowElement {
    inherit baseElement utils

    # Please excuse the gross misspelling "LITE" for "LIGHT",
    # but it makes things line up nicer.
    
    private common shadowColors
    # top-left outer, top-left inner, bottom-right inner, bottom-right outer
    set shadowColors(flat)   [list FLAT FLAT FLAT FLAT]
    set shadowColors(groove) [list DARK LITE DARK LITE]
    set shadowColors(raised) [list LITE FLAT DARK BRDR]
    set shadowColors(ridge)  [list LITE DARK LITE DARK]
    set shadowColors(solid)  [list BRDR BRDR BRDR BRDR]
    set shadowColors(sunken) [list BRDR DARK FLAT LITE]

    private common thinShadowColors
    # top-left, bottom-right
    set thinShadowColors(flat)   [list FLAT FLAT]
    set thinShadowColors(groove) [list DARK LITE]
    set thinShadowColors(raised) [list LITE DARK]
    set thinShadowColors(ridge)  [list LITE DARK]
    set thinShadowColors(solid)  [list BRDR BRDR]
    set thinShadowColors(sunken) [list DARK LITE]

    protected option [list -borderwidth borderwidth Borderwidth] \
            -default 2
    protected option [list -treerowcolor treerowcolor TreerowColor] \
            -default #a9a9a9
    protected option [list -treerowrelief treerowRelief TreerowRelief] \
            -default sunken
    protected option [list -depth depth Depth] \
            -default 0

    constructor {args} {}

    public method InitializeOptionValues {styleName tkwin state}
    public method ElementSize {widthVar heightVar treerowVar}
    public method ElementDraw {box state}
 
}

#================================ constructor ============================
#     
#=========================================================================

::itcl::body TreerowElement::constructor {args} {
#puts stderr "++++ TreerowElement::constructor!$args!"
}

#================================ InitializeOptionValues ============================
#     
#=========================================================================

::itcl::body TreerowElement::InitializeOptionValues {styleName tkwin state} {
#puts stderr "++++ InitializeOptionValues!sN!$styleName!t!$tkwin!s!$state!"
    InitializeOptionValuesBase $styleName $tkwin $state
    return
}

#================================ ElementSize ============================
#     
#=========================================================================

::itcl::body TreerowElement::ElementSize {widthVar heightVar paddingVar} {
    upvar $widthVar width
    upvar $heightVar height
    upvar $paddingVar padding

    set borderWidth [cget -borderwidth]
    set padding [list $borderWidth $borderWidth $borderWidth $borderWidth]
#puts stderr "TreerowElement::ElementSize!bw!$borderWidth!w!$width!h!$height!p!$padding!"
}

#================================ ElementDraw ============================
#     
#=========================================================================

::itcl::body TreerowElement::ElementDraw {box state} {
#puts stderr "TreerowElement ElementDraw $box $state"
    set depth [cget -depth]
    set borderWidth [cget -borderwidth]
    set relief [cget -treerowrelief]
    set backgroundValue [cget -treerowcolor]
    set backgroundColor [ColorValue2RGBA $backgroundValue]
    lassign [GetElementPositions $box] pos1 pos2 pos3 pos4
    set shadows [::ntk::classes::border::GetShadows $backgroundColor]
    lassign $shadows darkColor lightColor
    lassign [GetElementPositions $box] pos1 pos2 pos3 pos4
#puts stderr "BACKGROUND2!$pos1!$pos2!$pos3!$pos4!"
    ::gles2::builtin::fillrectangle [list $pos1 $backgroundColor] [list $pos2 $backgroundColor] [list $pos3 $backgroundColor] [list $pos4 $backgroundColor]
    if {$borderWidth > 0 && $relief ne "flat"} {
	lassign $box x y width height
	set z 0
	set mybox [list $x $y $z $width $height $depth]
	::ntk::classes::border::DrawRectangleBorder $mybox $borderWidth $relief $shadows
        ::gles2::swapbuffers
    }
}

} ; # end namepsace ::ntk::classes

|

|









|




<
<
|


<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<




|








|
|






|

<
<






|
|
<
<
<
<
<
<






|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


19
20
21





























22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44


45
46
47
48
49
50
51
52






53
54
55
56
57
58
59
60


















61
62
63
#---------------------------------------------------------------------------
# ntkTreeareaElement.tcl --
#
# This file contains a ntkWidget TreeareaElement commands implementation
#
# this code is derived from the tile/ttk implementation written by
# Joe English
#
# Copyright (c) 2007-2013 by Arnulf P. Wiedemann
#
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# @(#) $Id: ntkTreeareaElement.tcl
#--------------------------------------------------------------------------

namespace eval ::ntk::classes {



::itcl::extendedclass TreeareaElement {
    inherit baseElement utils































    constructor {args} {}

    public method InitializeOptionValues {styleName tkwin state}
    public method ElementSize {widthVar heightVar treeareaVar}
    public method ElementDraw {box state}
 
}

#================================ constructor ============================
#     
#=========================================================================

::itcl::body TreeareaElement::constructor {args} {
#puts stderr "++++ TreeareaElement::constructor!$args!"
}

#================================ InitializeOptionValues ============================
#     
#=========================================================================

::itcl::body TreeareaElement::InitializeOptionValues {styleName tkwin state} {
#puts stderr "++++ InitializeOptionValues!sN!$styleName!t!$tkwin!s!$state!"


}

#================================ ElementSize ============================
#     
#=========================================================================

::itcl::body TreeareaElement::ElementSize {widthVar heightVar paddingVar} {
#puts stderr "TreeareaElement::ElementSize!!"






}

#================================ ElementDraw ============================
#     
#=========================================================================

::itcl::body TreeareaElement::ElementDraw {box state} {
#puts stderr "TreeareaElement::ElementDraw!$box!"


















}

} ; # end namepsace ::ntk::classes

Changes to library/ntkTreerowElement.tcl.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23




24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

54
55
56
57
58
59
60








61
62
63
#---------------------------------------------------------------------------
# ntkTreeareaElement.tcl --
#
# This file contains a ntkWidget TreeareaElement commands implementation
#
# this code is derived from the tile/ttk implementation written by
# Joe English
#
# Copyright (c) 2007-2013 by Arnulf P. Wiedemann
#
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# @(#) $Id: ntkTreeareaElement.tcl
#--------------------------------------------------------------------------

namespace eval ::ntk::classes {

# Used in scrollbars and scales in place of "border".

::itcl::extendedclass TreeareaElement {
    inherit baseElement utils






    constructor {args} {}

    public method InitializeOptionValues {styleName tkwin state}
    public method ElementSize {widthVar heightVar treeareaVar}
    public method ElementDraw {box state}
 
}

#================================ constructor ============================
#     
#=========================================================================

::itcl::body TreeareaElement::constructor {args} {
#puts stderr "++++ TreeareaElement::constructor!$args!"
}

#================================ InitializeOptionValues ============================
#     
#=========================================================================

::itcl::body TreeareaElement::InitializeOptionValues {styleName tkwin state} {
#puts stderr "++++ InitializeOptionValues!sN!$styleName!t!$tkwin!s!$state!"
}

#================================ ElementSize ============================
#     
#=========================================================================

::itcl::body TreeareaElement::ElementSize {widthVar heightVar paddingVar} {

}

#================================ ElementDraw ============================
#     
#=========================================================================

::itcl::body TreeareaElement::ElementDraw {box state} {








}

} ; # end namepsace ::ntk::classes

|

|









|




<
<
|


>
>
>
>













|
|






|







|
>






|
>
>
>
>
>
>
>
>



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#---------------------------------------------------------------------------
# ntkTreerowElement.tcl --
#
# This file contains a ntkWidget TreerowElement commands implementation
#
# this code is derived from the tile/ttk implementation written by
# Joe English
#
# Copyright (c) 2007-2013 by Arnulf P. Wiedemann
#
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# @(#) $Id: ntkTreerowElement.tcl
#--------------------------------------------------------------------------

namespace eval ::ntk::classes {



::itcl::extendedclass TreerowElement {
    inherit baseElement utils

    protected option [list -background background Background] \
            -default #f9f9f9
    protected option [list -rownumber rowNumber RowNumber] \
            -default 0

    constructor {args} {}

    public method InitializeOptionValues {styleName tkwin state}
    public method ElementSize {widthVar heightVar treeareaVar}
    public method ElementDraw {box state}
 
}

#================================ constructor ============================
#     
#=========================================================================

::itcl::body TreerowElement::constructor {args} {
#puts stderr "++++ TreerowElement::constructor!$args!"
}

#================================ InitializeOptionValues ============================
#     
#=========================================================================

::itcl::body TreerowElement::InitializeOptionValues {styleName tkwin state} {
#puts stderr "++++ InitializeOptionValues!sN!$styleName!t!$tkwin!s!$state!"
}

#================================ ElementSize ============================
#     
#=========================================================================

::itcl::body TreerowElement::ElementSize {widthVar heightVar paddingVar} {
#puts stderr "TreerowElement::ElementSize!!"
}

#================================ ElementDraw ============================
#     
#=========================================================================

::itcl::body TreerowElement::ElementDraw {box state} {
#puts stderr "TreerowElement::ElementDraw!$box!"
    set backgroundVal [cget -background]
set backgroundVal #d9d9d9
    set backgroundColor [ColorValue2RGBA $backgroundVal]
#puts stderr "backgroundColor!$backgroundColor!"
    lassign [GetElementPositions $box] pos1 pos2 pos3 pos4
    ::gles2::builtin::fillrectangle [list $pos1 $backgroundColor] [list $pos2 $backgroundColor] [list $pos3 $backgroundColor] [list $pos4 $backgroundColor]
    ::gles2::swapbuffers
}

} ; # end namepsace ::ntk::classes

Changes to library/ntkWidget.tcl.

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# @(#) $Id: ntkWidget.tcl
#--------------------------------------------------------------------------

namespace eval ::ntk::classes {

::itcl::extendedclass widget {
    private common coreEventMask [list Exposure StructureNotify FocusChange VirtualEvent Activate EnterWindow LeaveWindow]
    private common allTypeMasks [list  "readonlyOption" "styleChanged" "geometryChanged" "sizeChanged" "stateChanged" "defaultStateChanged"]

    private variable elementObjects
    protected variable core
    public variable widgetInfo

    public option [list -cursor cursor Cursor] -default -1
    public option [list -style style Style] -default -1







|







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# @(#) $Id: ntkWidget.tcl
#--------------------------------------------------------------------------

namespace eval ::ntk::classes {

::itcl::extendedclass widget {
    private common coreEventMask [list Exposure StructureNotify FocusChange VirtualEvent Activate EnterWindow LeaveWindow]
    private common allTypeMasks [list  "readonlyOption" "styleChanged" "geometryChanged" "sizeChanged" "stateChanged" "defaultStateChanged" "allChanged"]

    private variable elementObjects
    protected variable core
    public variable widgetInfo

    public option [list -cursor cursor Cursor] -default -1
    public option [list -style style Style] -default -1

Changes to library/tclIndex.

66
67
68
69
70
71
72

73
74
75
76
77
78
79
..
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
...
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
...
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
set auto_index(::ntk::treeview) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::constructor) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::InitColumn) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::NewItem) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewInitialize) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewCleanup) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewInitColumns) [list source [file join $dir ntkTTreeview.tcl]]

set auto_index(::ntk::treeview::TreeviewInitDisplayColumns) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::ScrollbarUpdateRequired) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::RecomputeSlack) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewConfigure) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewPostConfigure) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::GetSublayout) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewGetLayout) [list source [file join $dir ntkTTreeview.tcl]]
................................................................................
set auto_index(::ntk::treeview::DepositSlack) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::ResizeColumns) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeWidth) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::CountRows) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewDoLayout) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DisplayLayout) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawHeadings) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TagSetApplyStyle) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::PrepareItem) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::ItemState) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawCells) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawItem) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawSubtree) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawForest) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewDisplay) [list source [file join $dir ntkTTreeview.tcl]]
................................................................................
set auto_index(::ntk::classes::border::LeftTopBevel) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::LeftBottomBevel) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::VerticalBevel) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::HorizontalBevel) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::DrawRectangleBorder) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::GetShadows) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::DrawDiamondBorder) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::TreerowElement) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::TreerowElement::constructor) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::TreerowElement::InitializeOptionValues) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::TreerowElement::ElementSize) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::TreerowElement::ElementDraw) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::BorderElement) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::DrawCorner) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::InitializeOptionValues) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::ElementSize) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::BorderElementDraw) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::ElementDraw) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::widget) [list source [file join $dir ntkWidget.tcl]]
................................................................................
set auto_index(::ntk::classes::layout::DrawLayout) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::LayoutNodeInternalPadding) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::LayoutNodeInternalParcel) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::FindNode) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::PlaceElement) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::FindElement) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::ClientRegion) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::TreeareaElement) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::TreeareaElement::constructor) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::TreeareaElement::InitializeOptionValues) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::TreeareaElement::ElementSize) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::TreeareaElement::ElementDraw) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::place) [list source [file join $dir ntkPlace.tcl]]
set auto_index(::ntk::classes::place::place) [list source [file join $dir ntkPlace.tcl]]
set auto_index(::ntk::classes::place::place) [list source [file join $dir ntkPlace.tcl]]
set auto_index(::ntk::radiobutton) [list source [file join $dir ntkTRadiobutton.tcl]]
set auto_index(::ntk::radiobutton::constructor) [list source [file join $dir ntkTRadiobutton.tcl]]
set auto_index(::ntk::radiobutton::RadiobuttonVariableChanged) [list source [file join $dir ntkTRadiobutton.tcl]]
set auto_index(::ntk::radiobutton::RadiobuttonCleanup) [list source [file join $dir ntkTRadiobutton.tcl]]







>







 







<







 







|
|
|
|
|







 







|
|
|
|
|







66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
..
87
88
89
90
91
92
93

94
95
96
97
98
99
100
...
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
...
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
set auto_index(::ntk::treeview) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::constructor) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::InitColumn) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::NewItem) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewInitialize) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewCleanup) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewInitColumns) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::GetColumn) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewInitDisplayColumns) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::ScrollbarUpdateRequired) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::RecomputeSlack) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewConfigure) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewPostConfigure) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::GetSublayout) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewGetLayout) [list source [file join $dir ntkTTreeview.tcl]]
................................................................................
set auto_index(::ntk::treeview::DepositSlack) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::ResizeColumns) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeWidth) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::CountRows) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewDoLayout) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DisplayLayout) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawHeadings) [list source [file join $dir ntkTTreeview.tcl]]

set auto_index(::ntk::treeview::PrepareItem) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::ItemState) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawCells) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawItem) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawSubtree) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::DrawForest) [list source [file join $dir ntkTTreeview.tcl]]
set auto_index(::ntk::treeview::TreeviewDisplay) [list source [file join $dir ntkTTreeview.tcl]]
................................................................................
set auto_index(::ntk::classes::border::LeftTopBevel) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::LeftBottomBevel) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::VerticalBevel) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::HorizontalBevel) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::DrawRectangleBorder) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::GetShadows) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::border::DrawDiamondBorder) [list source [file join $dir ntkBorder.tcl]]
set auto_index(::ntk::classes::TreeareaElement) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::TreeareaElement::constructor) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::TreeareaElement::InitializeOptionValues) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::TreeareaElement::ElementSize) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::TreeareaElement::ElementDraw) [list source [file join $dir ntkTreeareaElement.tcl]]
set auto_index(::ntk::classes::BorderElement) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::DrawCorner) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::InitializeOptionValues) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::ElementSize) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::BorderElementDraw) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::BorderElement::ElementDraw) [list source [file join $dir ntkBorderElement.tcl]]
set auto_index(::ntk::classes::widget) [list source [file join $dir ntkWidget.tcl]]
................................................................................
set auto_index(::ntk::classes::layout::DrawLayout) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::LayoutNodeInternalPadding) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::LayoutNodeInternalParcel) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::FindNode) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::PlaceElement) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::FindElement) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::layout::ClientRegion) [list source [file join $dir ntkLayout.tcl]]
set auto_index(::ntk::classes::TreerowElement) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::TreerowElement::constructor) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::TreerowElement::InitializeOptionValues) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::TreerowElement::ElementSize) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::TreerowElement::ElementDraw) [list source [file join $dir ntkTreerowElement.tcl]]
set auto_index(::ntk::classes::place) [list source [file join $dir ntkPlace.tcl]]
set auto_index(::ntk::classes::place::place) [list source [file join $dir ntkPlace.tcl]]
set auto_index(::ntk::classes::place::place) [list source [file join $dir ntkPlace.tcl]]
set auto_index(::ntk::radiobutton) [list source [file join $dir ntkTRadiobutton.tcl]]
set auto_index(::ntk::radiobutton::constructor) [list source [file join $dir ntkTRadiobutton.tcl]]
set auto_index(::ntk::radiobutton::RadiobuttonVariableChanged) [list source [file join $dir ntkTRadiobutton.tcl]]
set auto_index(::ntk::radiobutton::RadiobuttonCleanup) [list source [file join $dir ntkTRadiobutton.tcl]]