亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? notebook.tcl

?? The BWidget Toolkit is a high-level Widget Set for Tcl/Tk built using native Tcl/Tk 8.x namespaces.
?? TCL
?? 第 1 頁 / 共 3 頁
字號:
	incr top -2
    }

    # Precompute some coord values that we use a lot
    set topPlusRadius	[expr {$top + $arcRadius}]
    set rightPlusRadius	[expr {$xf + $arcRadius}]
    set leftPlusRadius	[expr {$xd + $arcRadius}]

    # Sven
    set side [Widget::cget $path -side]
    set tabsOnBottom [string equal $side "bottom"]

    set h1 [expr {[winfo height $path]}]
    set bd [Widget::cget $path -borderwidth]
    if {$bd < 1} { set bd 1 }

    if { $tabsOnBottom } {
	set top [expr {$top * -1}]
	set topPlusRadius [expr {$topPlusRadius * -1}]
	# Hrm... the canvas has an issue with drawing diagonal segments
	# of lines from the bottom to the top, so we have to draw this line
	# backwards (ie, lt is actually the bottom, drawn from right to left)
        set lt  [list \
		$rightPlusRadius			[expr {$h1-$h-1}] \
		[expr {$rightPlusRadius - $xBevel}]	[expr {$h1 + $topPlusRadius}] \
		[expr {$xf - $xBevel}]			[expr {$h1 + $top}] \
		[expr {$leftPlusRadius + $xBevel}]	[expr {$h1 + $top}] \
		]
        set lb  [list \
		[expr {$leftPlusRadius + $xBevel}]	[expr {$h1 + $top}] \
		[expr {$xd + $xBevel}]			[expr {$h1 + $topPlusRadius}] \
		$xd					[expr {$h1-$h-1}] \
		]
	# Because we have to do this funky reverse order thing, we have to
	# swap the top/bottom colors too.
	set tmp $fgt
	set fgt $fgb
	set fgb $tmp
    } else {
	set lt [list \
		$xd					$h \
		[expr {$xd + $xBevel}]			$topPlusRadius \
		[expr {$leftPlusRadius + $xBevel}]	$top \
		[expr {$xf + 1 - $xBevel}]		$top \
		]
	set lb [list \
		[expr {$xf + 1 - $xBevel}] 		[expr {$top + 1}] \
		[expr {$rightPlusRadius - $xBevel}]	$topPlusRadius \
		$rightPlusRadius			$h \
		]
    }

    set img [Widget::cget $path.f$page -image]

    set ytext $top
    if { $tabsOnBottom } {
	# The "+ 2" below moves the text closer to the bottom of the tab,
	# so it doesn't look so cramped.  I should be able to achieve the
	# same goal by changing the anchor of the text and using this formula:
	# ytext = $top + $h1 - $textOffsetY
	# but that doesn't quite work (I think the linespace from the text
	# gets in the way)
	incr ytext [expr {$h1 - $h + 2}]
    }
    incr ytext $textOffsetY

    set xtext [expr {$xd + $textOffsetX}]
    if { $img != "" } {
	# if there's an image, put it on the left and move the text right
	set ximg $xtext
	incr xtext [expr {[image width $img] + 2}]
    }
	
    if { $data(select) == $page } {
        set bd    [Widget::cget $path -borderwidth]
	if {$bd < 1} { set bd 1 }
        set fg    [_getoption $path $page -foreground]
    } else {
        set bd    1
        if { [Widget::cget $path.f$page -state] == "normal" } {
            set fg [_getoption $path $page -foreground]
        } else {
            set fg [_getoption $path $page -disabledforeground]
        }
    }

    # --- creation ou modification de l'onglet --------------------------------
    # Sven
    if { $create } {
	# Create the tab region
        eval [list $path.c create polygon] [concat $lt $lb] [list \
		-tags		[list page p:$page $page:poly] \
		-outline	$bg \
		-fill		$bg \
		]
        eval [list $path.c create line] $lt [list \
            -tags [list page p:$page $page:top top] -fill $fgt -width $bd]
        eval [list $path.c create line] $lb [list \
            -tags [list page p:$page $page:bot bot] -fill $fgb -width $bd]
        $path.c create text $xtext $ytext 			\
		-text	[Widget::cget $path.f$page -text]	\
		-font	[Widget::cget $path -font]		\
		-fill	$fg					\
		-anchor	nw					\
		-tags	[list page p:$page $page:text]

        $path.c bind p:$page <ButtonPress-1> \
		[list NoteBook::_select $path $page]
        $path.c bind p:$page <Enter> \
		[list NoteBook::_highlight on  $path $page]
        $path.c bind p:$page <Leave> \
		[list NoteBook::_highlight off $path $page]
    } else {
        $path.c coords "$page:text" $xtext $ytext

        $path.c itemconfigure "$page:text" \
            -text [Widget::cget $path.f$page -text] \
            -font [Widget::cget $path -font] \
            -fill $fg
    }
    eval [list $path.c coords "$page:poly"] [concat $lt $lb]
    eval [list $path.c coords "$page:top"]  $lt
    eval [list $path.c coords "$page:bot"]  $lb
    $path.c itemconfigure "$page:poly" -fill $bg  -outline $bg
    $path.c itemconfigure "$page:top"  -fill $fgt -width $bd
    $path.c itemconfigure "$page:bot"  -fill $fgb -width $bd
    
    # Sven end

    if { $img != "" } {
        # Sven
	set id [$path.c find withtag $page:img]
	if { [string equal $id ""] } {
	    set id [$path.c create image $ximg $ytext \
		    -anchor nw    \
		    -tags   [list page p:$page $page:img]]
        }
        $path.c coords $id $ximg $ytext
        $path.c itemconfigure $id -image $img
        # Sven end
    } else {
        $path.c delete $page:img
    }

    if { $data(select) == $page } {
        $path.c raise p:$page
    } elseif { $pos == 0 } {
        if { $data(select) == "" } {
            $path.c raise p:$page
        } else {
            $path.c lower p:$page p:$data(select)
        }
    } else {
        set pred [lindex $data(pages) [expr {$pos-1}]]
        if { $data(select) != $pred || $pos == 1 } {
            $path.c lower p:$page p:$pred
        } else {
            $path.c lower p:$page p:[lindex $data(pages) [expr {$pos-2}]]
        }
    }
}


# -----------------------------------------------------------------------------
#  Command NoteBook::_draw_arrows
# -----------------------------------------------------------------------------
proc NoteBook::_draw_arrows { path } {
    variable _warrow
    variable $path
    upvar 0  $path data

    set w       [expr {[winfo width $path]-1}]
    set h       [expr {$data(hpage)-1}]
    set nbpages [llength $data(pages)]
    set xl      0
    set xr      [expr {$w-$_warrow+1}]
    # Sven
    set side [Widget::cget $path -side]
    if { [string equal $side "bottom"] } {
        set h1 [expr {[winfo height $path]-1}]
        set bd [Widget::cget $path -borderwidth]
	if {$bd < 1} { set bd 1 }
        set y0 [expr {$h1 - $data(hpage) + $bd}]
    } else {
        set y0 1
    }
    # Sven end (all y positions where replaced with $y0 later)

    if { $data(base) > 0 } {
        # Sven 
        if { ![llength [$path.c find withtag "leftarrow"]] } {
            $path.c create window $xl $y0 \
                -width  $_warrow            \
                -height $h                  \
                -anchor nw                  \
                -window $path.c.fg            \
                -tags   "leftarrow"
        } else {
            $path.c coords "leftarrow" $xl $y0
            $path.c itemconfigure "leftarrow" -width $_warrow -height $h
        }
        # Sven end
    } else {
        $path.c delete "leftarrow"
    }

    if { $data(base) < $nbpages-1 &&
         $data(wpage) + [_get_x_page $path 0] + 6 > $w } {
        # Sven
        if { ![llength [$path.c find withtag "rightarrow"]] } {
            $path.c create window $xr $y0 \
                -width  $_warrow            \
                -height $h                  \
                -window $path.c.fd            \
                -anchor nw                  \
                -tags   "rightarrow"
        } else {
            $path.c coords "rightarrow" $xr $y0
            $path.c itemconfigure "rightarrow" -width $_warrow -height $h
        }
        # Sven end
    } else {
        $path.c delete "rightarrow"
    }
}


# -----------------------------------------------------------------------------
#  Command NoteBook::_draw_area
# -----------------------------------------------------------------------------
proc NoteBook::_draw_area { path } {
    variable $path
    upvar 0  $path data

    set w   [expr {[winfo width  $path] - 1}]
    set h   [expr {[winfo height $path] - 1}]
    set bd  [Widget::cget $path -borderwidth]
    if {$bd < 1} { set bd 1 }
    set x0  [expr {$bd - 1}]

    set arcRadius [Widget::cget $path -arcradius]

    # Sven
    set side [Widget::cget $path -side]
    if {"$side" == "bottom"} {
        set y0 0
        set y1 [expr {$h - $data(hpage)}]
        set yo $y1
    } else {
        set y0 $data(hpage)
        set y1 $h
        set yo [expr {$h-$y0}]
    }
    # Sven end
    set dbg $data(dbg)
    set sel $data(select)
    if {  $sel == "" } {
        set xd  [expr {$w/2}]
        set xf  $xd
        set lbg $data(dbg)
    } else {
        set xd [_get_x_page $path [lsearch -exact $data(pages) $data(select)]]
        set xf [expr {$xd + $data($sel,width) + $arcRadius + 1}]
        set lbg $data(lbg)
    }

    # Sven
    if { [llength [$path.c find withtag rect]] == 0} {
        $path.c create line $xd $y0 $x0 $y0 $x0 $y1 \
            -tags "rect toprect1" 
        $path.c create line $w $y0 $xf $y0 \
            -tags "rect toprect2"
        $path.c create line 1 $h $w $h $w $y0 \
            -tags "rect botrect"
    }
    if {"$side" == "bottom"} {
        $path.c coords "toprect1" $w $y0 $x0 $y0 $x0 $y1
        $path.c coords "toprect2" $x0 $y1 $xd $y1
        $path.c coords "botrect"  $xf $y1 $w $y1 $w $y0
        $path.c itemconfigure "toprect1" -fill $lbg -width $bd
        $path.c itemconfigure "toprect2" -fill $dbg -width $bd
        $path.c itemconfigure "botrect" -fill $dbg -width $bd
    } else {
        $path.c coords "toprect1" $xd $y0 $x0 $y0 $x0 $y1
        $path.c coords "toprect2" $w $y0 $xf $y0
        $path.c coords "botrect"  $x0 $h $w $h $w $y0
        $path.c itemconfigure "toprect1" -fill $lbg -width $bd
        $path.c itemconfigure "toprect2" -fill $lbg -width $bd
        $path.c itemconfigure "botrect" -fill $dbg -width $bd
    }
    $path.c raise "rect"
    # Sven end

    if { $sel != "" } {
        # Sven
        if { [llength [$path.c find withtag "window"]] == 0 } {
            $path.c create window 2 [expr {$y0+1}] \
                -width  [expr {$w-3}]           \
                -height [expr {$yo-3}]          \
                -anchor nw                      \
                -tags   "window"                \
                -window $path.f$sel
        }
        $path.c coords "window" 2 [expr {$y0+1}]
        $path.c itemconfigure "window"    \
            -width  [expr {$w-3}]           \
            -height [expr {$yo-3}]          \
            -window $path.f$sel
        # Sven end
    } else {
        $path.c delete "window"
    }
}


# -----------------------------------------------------------------------------
#  Command NoteBook::_resize
# -----------------------------------------------------------------------------
proc NoteBook::_resize { path } {
    variable $path
    upvar 0  $path data

    if {!$data(realized)} {
	if { [set width  [Widget::cget $path -width]]  == 0 ||
	     [set height [Widget::cget $path -height]] == 0 } {
	    compute_size $path
	}
	set data(realized) 1
    }

    NoteBook::_redraw $path
}


# Tree::_set_help --
#
#	Register dynamic help for a node in the tree.
#
# Arguments:
#	path		Tree to query
#	node		Node in the tree
#       force		Optional argument to force a reset of the help
#
# Results:
#	none
# Tree::_set_help --
#
#	Register dynamic help for a node in the tree.
#
# Arguments:
#	path		Tree to query
#	node		Node in the tree
#       force		Optional argument to force a reset of the help
#
# Results:
#	none
proc NoteBook::_set_help { path page } {
    Widget::getVariable $path help

    set item $path.f$page
    set opts [list -helptype -helptext -helpvar]
    foreach {cty ctx cv} [eval [list Widget::hasChangedX $item] $opts] break
    set text [Widget::getoption $item -helptext]

    ## If we've never set help for this item before, and text is not blank,
    ## we need to setup help.  We also need to reset help if any of the
    ## options have changed.
    if { (![info exists help($page)] && $text != "") || $cty || $ctx || $cv } {
	set help($page) 1
	set type [Widget::getoption $item -helptype]
        switch $type {
            balloon {
		DynamicHelp::register $path.c balloon p:$page $text
            }
            variable {
		set var [Widget::getoption $item -helpvar]
		DynamicHelp::register $path.c variable p:$page $var $text
            }
        }
    }
}


proc NoteBook::_get_page_name { path {item current} {tagindex end-1} } {
    return [string range [lindex [$path.c gettags $item] $tagindex] 2 end]
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲成人自拍| 午夜精品久久久久久久| 亚洲一二三四久久| 九一九一国产精品| 欧美图区在线视频| 欧美激情一区三区| 精品一区二区精品| 欧美久久久久久久久久| 日韩伦理av电影| 韩国三级电影一区二区| 欧美视频一区二| 《视频一区视频二区| 国产一区二区在线视频| 日韩欧美高清一区| 日韩国产高清影视| 在线视频观看一区| 亚洲女同一区二区| 成人综合在线视频| 久久精品视频免费观看| 美女网站色91| 欧美美女一区二区在线观看| 亚洲精品国产无套在线观| 国产一区二区三区不卡在线观看 | 亚洲精品写真福利| 成人性生交大片免费看中文网站| 日韩视频在线你懂得| 同产精品九九九| 欧美浪妇xxxx高跟鞋交| 一区二区视频在线看| 不卡av在线免费观看| 国产精品入口麻豆原神| 国产福利一区在线| 国产午夜精品久久久久久免费视 | 粉嫩av亚洲一区二区图片| 欧美一区二区在线视频| 日韩精品三区四区| 欧美日韩视频一区二区| 肉色丝袜一区二区| 欧美一区二区免费观在线| 日韩精品电影一区亚洲| 在线91免费看| 麻豆精品新av中文字幕| 欧美一级久久久久久久大片| 青青草97国产精品免费观看无弹窗版| 欧美特级限制片免费在线观看| 亚洲黄色av一区| 欧美日韩一卡二卡| 欧美aaaaaa午夜精品| 欧美一区二区精品久久911| 精品亚洲porn| 国产午夜精品久久| 91亚洲永久精品| 亚洲天堂久久久久久久| 欧美综合视频在线观看| 丝袜诱惑亚洲看片| 精品日韩欧美在线| 国产激情精品久久久第一区二区| 国产精品免费人成网站| 91色|porny| 午夜av区久久| 国产欧美日韩激情| 91传媒视频在线播放| 日韩精品电影一区亚洲| 国产偷国产偷精品高清尤物| 99久久er热在这里只有精品15 | 综合电影一区二区三区| 欧美日韩国产一区二区三区地区| 美国欧美日韩国产在线播放| 国产精品久久影院| 欧美日韩中文精品| 韩国精品在线观看| 一区二区三区四区视频精品免费| 在线观看91精品国产麻豆| 国产精品综合一区二区三区| 亚洲六月丁香色婷婷综合久久| 欧美大片在线观看| 色狠狠色狠狠综合| 激情欧美一区二区| 一级日本不卡的影视| 精品国产麻豆免费人成网站| 色婷婷精品大在线视频| 久久er99精品| 一区二区三区在线影院| 久久久久久99久久久精品网站| 欧美专区亚洲专区| 激情久久五月天| 一区二区三区在线观看视频 | 日韩精品一区二区三区视频播放 | 欧美一区二区福利视频| 91视频一区二区| 精品一区二区久久| 亚洲成av人**亚洲成av**| 国产欧美一区在线| 日韩精品一区二区三区老鸭窝| 91在线观看地址| 国产成a人亚洲| 美女被吸乳得到大胸91| 亚洲制服丝袜在线| 中文字幕一区av| 精品奇米国产一区二区三区| 欧美三区在线观看| av网站免费线看精品| 国产伦理精品不卡| 久久99精品国产.久久久久久| 亚洲图片欧美一区| 一区二区视频在线看| 中文字幕一区二区5566日韩| 国产色91在线| 国产亚洲午夜高清国产拍精品 | 欧美精选一区二区| 91福利小视频| 色综合久久中文综合久久97| 99视频超级精品| 成人av在线影院| 99久久精品一区二区| 成人激情av网| 成人免费高清视频| 成人一区在线看| 成人天堂资源www在线| 国产suv精品一区二区6| 国产成人福利片| 成人一级视频在线观看| 99视频精品在线| 色婷婷亚洲综合| 欧美日韩精品一区二区三区四区 | 欧美激情在线一区二区三区| 国产网站一区二区三区| 国产精品午夜免费| 国产精品久久看| 亚洲乱码中文字幕| 亚洲精品成人在线| 亚洲午夜在线观看视频在线| 亚洲第一电影网| 久久99精品国产麻豆婷婷| 国产麻豆成人传媒免费观看| 福利电影一区二区三区| av中文字幕在线不卡| 欧美日韩中文字幕一区二区| 91麻豆精品国产| 亚洲精品一区二区在线观看| 久久久久99精品国产片| 亚洲美女淫视频| 日韩av中文在线观看| 国产一区二三区好的| 97久久精品人人澡人人爽| 欧美精品v国产精品v日韩精品 | 欧美性猛交xxxx黑人交| 欧美一区二区日韩一区二区| 久久午夜色播影院免费高清| 中文字幕一区二区三区四区| 午夜久久电影网| 国产精品1区二区.| 91国内精品野花午夜精品| 制服丝袜在线91| 亚洲国产成人在线| 亚洲精品成a人| 韩日精品视频一区| 在线观看一区二区精品视频| 精品国产伦一区二区三区免费 | 国产精品久久久久久亚洲毛片| 一区二区三区不卡在线观看 | 久久影音资源网| 一区二区在线观看视频 | 午夜精品一区二区三区免费视频| 蜜臂av日日欢夜夜爽一区| 国v精品久久久网| 欧美日韩在线观看一区二区 | 亚洲va欧美va天堂v国产综合| 国产一区视频网站| 欧美色图片你懂的| 中文字幕的久久| 美女高潮久久久| 欧美精品免费视频| 亚洲免费视频中文字幕| 激情久久五月天| 日韩亚洲欧美在线观看| 亚洲狼人国产精品| 不卡在线观看av| 久久伊99综合婷婷久久伊| 亚洲高清久久久| 色老头久久综合| 国产精品无码永久免费888| 久久精品国产精品青草| 欧美三级中文字幕在线观看| 亚洲男女一区二区三区| 99天天综合性| 国产欧美日韩视频在线观看| 韩国精品主播一区二区在线观看| 欧美浪妇xxxx高跟鞋交| 亚洲高清免费观看高清完整版在线观看| 成人免费高清视频| 久久亚区不卡日本| 精一区二区三区| 欧美一级黄色大片| 日韩精品午夜视频| 欧美一区在线视频| 日本成人在线电影网| 欧美一级久久久久久久大片| 日韩电影在线一区| 欧美精品vⅰdeose4hd|