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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? widget.tcl

?? Linux下的MSN聊天程序源碼
?? TCL
?? 第 1 頁 / 共 4 頁
字號:
# ----------------------------------------------------------------------------#  widget.tcl#  This file is part of Unifix BWidget Toolkit#  $Id: widget.tcl 5686 2005-12-29 14:11:56Z lephilousophe $# ----------------------------------------------------------------------------#  Index of commands:#     - Widget::tkinclude#     - Widget::bwinclude#     - Widget::declare#     - Widget::addmap#     - Widget::init#     - Widget::destroy#     - Widget::setoption#     - Widget::configure#     - Widget::cget#     - Widget::subcget#     - Widget::hasChanged#     - Widget::options#     - Widget::_get_tkwidget_options#     - Widget::_test_tkresource#     - Widget::_test_bwresource#     - Widget::_test_synonym#     - Widget::_test_string#     - Widget::_test_flag#     - Widget::_test_enum#     - Widget::_test_int#     - Widget::_test_boolean# ----------------------------------------------------------------------------# Each megawidget gets a namespace of the same name inside the Widget namespace# Each of these has an array opt, which contains information about the # megawidget options.  It maps megawidget options to a list with this format:#     {optionType defaultValue isReadonly {additionalOptionalInfo}}# Option types and their additional optional info are:#	TkResource	{genericTkWidget genericTkWidgetOptionName}#	BwResource	{nothing}#	Enum		{list of enumeration values}#	Int		{Boundary information}#	Boolean		{nothing}#	String		{nothing}#	Flag		{string of valid flag characters}#	Synonym		{nothing}#	Color		{nothing}## Next, each namespace has an array map, which maps class options to their# component widget options:#	map(-foreground) => {.e -foreground .f -foreground}## Each has an array ${path}:opt, which contains the value of each megawidget# option for a particular instance $path of the megawidget, and an array# ${path}:mod, which stores the "changed" status of configuration options.# Steps for creating a bwidget megawidget:# 1. parse args to extract subwidget spec# 2. Create frame with appropriate class and command line options# 3. Get initialization options from optionDB, using frame# 4. create subwidgets# Uses newer string operationspackage require Tcl 8.1.1namespace eval Widget {    variable _optiontype    variable _class    variable _tk_widget    array set _optiontype {        TkResource Widget::_test_tkresource        BwResource Widget::_test_bwresource        Enum       Widget::_test_enum        Int        Widget::_test_int        Boolean    Widget::_test_boolean        String     Widget::_test_string        Flag       Widget::_test_flag        Synonym    Widget::_test_synonym        Color      Widget::_test_color        Padding    Widget::_test_padding    }    proc use {} {}}# ----------------------------------------------------------------------------#  Command Widget::tkinclude#     Includes tk widget resources to BWidget widget.#  class      class name of the BWidget#  tkwidget   tk widget to include#  subpath    subpath to configure#  args       additionnal args for included options# ----------------------------------------------------------------------------proc Widget::tkinclude { class tkwidget subpath args } {    foreach {cmd lopt} $args {        # cmd can be        #   include      options to include            lopt = {opt ...}        #   remove       options to remove             lopt = {opt ...}        #   rename       options to rename             lopt = {opt newopt ...}        #   prefix       options to prefix             lopt = {pref opt opt ..}        #   initialize   set default value for options lopt = {opt value ...}        #   readonly     set readonly flag for options lopt = {opt flag ...}        switch -- $cmd {            remove {                foreach option $lopt {                    set remove($option) 1                }            }            include {                foreach option $lopt {                    set include($option) 1                }            }            prefix {                set prefix [lindex $lopt 0]                foreach option [lrange $lopt 1 end] {                    set rename($option) "-$prefix[string range $option 1 end]"                }            }            rename     -            readonly   -            initialize {                array set $cmd $lopt            }            default {                return -code error "invalid argument \"$cmd\""            }        }    }    namespace eval $class {}    upvar 0 ${class}::opt classopt    upvar 0 ${class}::map classmap    upvar 0 ${class}::map$subpath submap    upvar 0 ${class}::optionExports exports    set foo [$tkwidget ".ericFoo###"]    # create resources informations from tk widget resources    foreach optdesc [_get_tkwidget_options $tkwidget] {        set option [lindex $optdesc 0]        if { (![info exists include] || [info exists include($option)]) &&             ![info exists remove($option)] } {            if { [llength $optdesc] == 3 } {                # option is a synonym                set syn [lindex $optdesc 1]                if { ![info exists remove($syn)] } {                    # original option is not removed                    if { [info exists rename($syn)] } {                        set classopt($option) [list Synonym $rename($syn)]                    } else {                        set classopt($option) [list Synonym $syn]                    }                }            } else {                if { [info exists rename($option)] } {                    set realopt $option                    set option  $rename($option)                } else {                    set realopt $option                }                if { [info exists initialize($option)] } {                    set value $initialize($option)                } else {                    set value [lindex $optdesc 1]                }                if { [info exists readonly($option)] } {                    set ro $readonly($option)                } else {                    set ro 0                }                set classopt($option) \			[list TkResource $value $ro [list $tkwidget $realopt]]		# Add an option database entry for this option		set optionDbName ".[lindex [_configure_option $option ""] 0]"		if { ![string equal $subpath ":cmd"] } {		    set optionDbName "$subpath$optionDbName"		}		option add *${class}$optionDbName $value widgetDefault		lappend exports($option) "$optionDbName"		# Store the forward and backward mappings for this		# option <-> realoption pair                lappend classmap($option) $subpath "" $realopt		set submap($realopt) $option            }        }    }    ::destroy $foo}# ----------------------------------------------------------------------------#  Command Widget::bwinclude#     Includes BWidget resources to BWidget widget.#  class    class name of the BWidget#  subclass BWidget class to include#  subpath  subpath to configure#  args     additionnal args for included options# ----------------------------------------------------------------------------proc Widget::bwinclude { class subclass subpath args } {    foreach {cmd lopt} $args {        # cmd can be        #   include      options to include            lopt = {opt ...}        #   remove       options to remove             lopt = {opt ...}        #   rename       options to rename             lopt = {opt newopt ...}        #   prefix       options to prefix             lopt = {prefix opt opt ...}        #   initialize   set default value for options lopt = {opt value ...}        #   readonly     set readonly flag for options lopt = {opt flag ...}        switch -- $cmd {            remove {                foreach option $lopt {                    set remove($option) 1                }            }            include {                foreach option $lopt {                    set include($option) 1                }            }            prefix {                set prefix [lindex $lopt 0]                foreach option [lrange $lopt 1 end] {                    set rename($option) "-$prefix[string range $option 1 end]"                }            }            rename     -            readonly   -            initialize {                array set $cmd $lopt            }            default {                return -code error "invalid argument \"$cmd\""            }        }    }    namespace eval $class {}    upvar 0 ${class}::opt classopt    upvar 0 ${class}::map classmap    upvar 0 ${class}::map$subpath submap    upvar 0 ${class}::optionExports exports    upvar 0 ${subclass}::opt subclassopt    upvar 0 ${subclass}::optionExports subexports    # create resources informations from BWidget resources    foreach {option optdesc} [array get subclassopt] {	set subOption $option        if { (![info exists include] || [info exists include($option)]) &&             ![info exists remove($option)] } {            set type [lindex $optdesc 0]            if { [string equal $type "Synonym"] } {                # option is a synonym                set syn [lindex $optdesc 1]                if { ![info exists remove($syn)] } {                    if { [info exists rename($syn)] } {                        set classopt($option) [list Synonym $rename($syn)]                    } else {                        set classopt($option) [list Synonym $syn]                    }                }            } else {                if { [info exists rename($option)] } {                    set realopt $option                    set option  $rename($option)                } else {                    set realopt $option                }                if { [info exists initialize($option)] } {                    set value $initialize($option)                } else {                    set value [lindex $optdesc 1]                }                if { [info exists readonly($option)] } {                    set ro $readonly($option)                } else {                    set ro [lindex $optdesc 2]                }                set classopt($option) \			[list $type $value $ro [lindex $optdesc 3]]		# Add an option database entry for this option		foreach optionDbName $subexports($subOption) {		    if { ![string equal $subpath ":cmd"] } {			set optionDbName "$subpath$optionDbName"		    }		    # Only add the option db entry if we are overriding the		    # normal widget default		    if { [info exists initialize($option)] } {			option add *${class}$optionDbName $value \				widgetDefault		    }		    lappend exports($option) "$optionDbName"		}		# Store the forward and backward mappings for this		# option <-> realoption pair                lappend classmap($option) $subpath $subclass $realopt		set submap($realopt) $option            }        }    }}# ----------------------------------------------------------------------------#  Command Widget::declare#    Declares new options to BWidget class.# ----------------------------------------------------------------------------proc Widget::declare { class optlist } {    variable _optiontype    namespace eval $class {}    upvar 0 ${class}::opt classopt    upvar 0 ${class}::optionExports exports    upvar 0 ${class}::optionClass optionClass    foreach optdesc $optlist {        set option  [lindex $optdesc 0]        set optdesc [lrange $optdesc 1 end]        set type    [lindex $optdesc 0]        if { ![info exists _optiontype($type)] } {            # invalid resource type            return -code error "invalid option type \"$type\""        }        if { [string equal $type "Synonym"] } {            # test existence of synonym option            set syn [lindex $optdesc 1]            if { ![info exists classopt($syn)] } {                return -code error "unknow option \"$syn\" for Synonym \"$option\""            }            set classopt($option) [list Synonym $syn]            continue        }        # all other resource may have default value, readonly flag and        # optional arg depending on type        set value [lindex $optdesc 1]        set ro    [lindex $optdesc 2]        set arg   [lindex $optdesc 3]        if { [string equal $type "BwResource"] } {            # We don't keep BwResource. We simplify to type of sub BWidget            set subclass    [lindex $arg 0]            set realopt     [lindex $arg 1]            if { ![string length $realopt] } {                set realopt $option            }            upvar 0 ${subclass}::opt subclassopt            if { ![info exists subclassopt($realopt)] } {                return -code error "unknow option \"$realopt\""            }            set suboptdesc $subclassopt($realopt)            if { $value == "" } {                # We initialize default value                set value [lindex $suboptdesc 1]            }            set type [lindex $suboptdesc 0]            set ro   [lindex $suboptdesc 2]            set arg  [lindex $suboptdesc 3]	    set optionDbName ".[lindex [_configure_option $option ""] 0]"	    option add *${class}${optionDbName} $value widgetDefault	    set exports($option) $optionDbName            set classopt($option) [list $type $value $ro $arg]            continue        }        # retreive default value for TkResource        if { [string equal $type "TkResource"] } {            set tkwidget [lindex $arg 0]	    set foo [$tkwidget ".ericFoo##"]            set realopt  [lindex $arg 1]            if { ![string length $realopt] } {                set realopt $option            }            set tkoptions [_get_tkwidget_options $tkwidget]            if { ![string length $value] } {                # We initialize default value		set ind [lsearch $tkoptions [list $realopt *]]                set value [lindex [lindex $tkoptions $ind] end]            }	    set optionDbName ".[lindex [_configure_option $option ""] 0]"	    option add *${class}${optionDbName} $value widgetDefault

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕中文字幕一区| 欧美人与z0zoxxxx视频| 视频一区视频二区中文| 欧美性欧美巨大黑白大战| 亚洲精品日产精品乱码不卡| 日本韩国视频一区二区| 亚洲综合丝袜美腿| 91精品国产黑色紧身裤美女| 黑人巨大精品欧美一区| 国产精品久久久久久久久免费丝袜| 成人激情黄色小说| 亚洲成av人片在线观看无码| 日韩欧美激情在线| av电影在线观看不卡| 亚洲午夜成aⅴ人片| 日韩一区二区在线看片| 风间由美性色一区二区三区| 亚洲黄色av一区| 欧美mv和日韩mv国产网站| 国产精品一区二区男女羞羞无遮挡| 中文字幕在线观看不卡视频| 欧美三级中文字幕在线观看| 国产综合一区二区| 亚洲美女屁股眼交3| 欧美一区二区三区啪啪| 成人精品gif动图一区| 亚洲成人久久影院| 久久九九国产精品| 欧美另类变人与禽xxxxx| 国产成人在线观看免费网站| 亚洲一区二区美女| 国产偷国产偷亚洲高清人白洁| 色哟哟一区二区在线观看| 免费xxxx性欧美18vr| 欧美激情一区二区在线| 91麻豆精品国产91久久久久久 | 136国产福利精品导航| 欧美精品在线一区二区| 成人精品gif动图一区| 欧美a一区二区| 亚洲伊人色欲综合网| 欧美mv日韩mv国产| 欧美日韩一级大片网址| 成人午夜电影久久影院| 美女一区二区视频| 午夜一区二区三区在线观看| 国产日产欧美一区二区视频| 日韩欧美自拍偷拍| 欧美日韩免费不卡视频一区二区三区| 国产成人综合亚洲91猫咪| 日本美女一区二区三区视频| 一区av在线播放| 国产精品久久久久9999吃药| 精品黑人一区二区三区久久| 欧美精品精品一区| 色丁香久综合在线久综合在线观看| 国产福利精品一区二区| 黑人精品欧美一区二区蜜桃| 婷婷综合另类小说色区| 一区二区三区国产| 亚洲欧美色一区| 国产精品麻豆99久久久久久| 久久青草欧美一区二区三区| 91精品国产一区二区三区香蕉| 欧美在线观看视频在线| 一本大道久久精品懂色aⅴ| av亚洲精华国产精华精华| 国产一区二区三区蝌蚪| 九九国产精品视频| 极品少妇一区二区| 韩国v欧美v亚洲v日本v| 久久精工是国产品牌吗| 久久99精品视频| 久久精品国产**网站演员| 蜜桃在线一区二区三区| 蜜臀久久99精品久久久久久9| 爽好多水快深点欧美视频| 香港成人在线视频| 蜜臀99久久精品久久久久久软件| 日本欧美加勒比视频| 青青草国产精品97视觉盛宴| 免播放器亚洲一区| 国产一区二区在线观看视频| 国产精品91xxx| 暴力调教一区二区三区| 99re66热这里只有精品3直播| 91丨九色丨蝌蚪富婆spa| 色噜噜夜夜夜综合网| 欧美日韩午夜在线| 91精品国产一区二区人妖| 精品乱码亚洲一区二区不卡| 国产午夜精品在线观看| 综合电影一区二区三区 | 亚洲精品乱码久久久久久久久 | 亚洲一区二区三区自拍| 天天色天天爱天天射综合| 青椒成人免费视频| 国产精品18久久久| 91网上在线视频| 欧美精选在线播放| 久久一区二区视频| 亚洲欧洲99久久| 亚欧色一区w666天堂| 国产主播一区二区| 91丨porny丨国产入口| 欧美日韩另类国产亚洲欧美一级| 日韩一区二区三区视频| 国产午夜三级一区二区三| 亚洲黄色在线视频| 久久国产婷婷国产香蕉| 不卡视频一二三| 日韩一区二区三区视频| 国产精品国产馆在线真实露脸| 亚洲小少妇裸体bbw| 韩国毛片一区二区三区| 99在线精品免费| 欧美一级免费大片| 亚洲色欲色欲www在线观看| 日韩1区2区3区| www.欧美日韩| 日韩免费福利电影在线观看| 国产精品成人免费| 久久国产日韩欧美精品| 91美女精品福利| 国产亚洲精品超碰| 日精品一区二区三区| a4yy欧美一区二区三区| 欧美刺激午夜性久久久久久久| 中文字幕人成不卡一区| 久久精品国产精品亚洲红杏| 91视频在线观看| 久久蜜桃一区二区| 日日夜夜免费精品| 色视频欧美一区二区三区| 久久久www免费人成精品| 午夜视频一区二区| 色综合天天性综合| 亚洲天堂a在线| 久久国产视频网| 欧美精品在线一区二区三区| 亚洲视频在线一区| 国产高清无密码一区二区三区| 欧美精品v日韩精品v韩国精品v| 一区在线播放视频| 国产白丝精品91爽爽久久| 欧美久久久久久久久| 一区二区视频免费在线观看| 风流少妇一区二区| 久久久精品中文字幕麻豆发布| 日韩精品91亚洲二区在线观看| 色噜噜狠狠色综合中国| 国产精品国产三级国产aⅴ无密码| 久草在线在线精品观看| 欧美一区二区久久| 日韩—二三区免费观看av| 欧美视频日韩视频在线观看| 亚洲精品五月天| 91麻豆文化传媒在线观看| 中文字幕一区日韩精品欧美| 成人综合婷婷国产精品久久蜜臀 | 日韩专区中文字幕一区二区| 国产日韩欧美综合在线| 国产专区综合网| 久久久噜噜噜久噜久久综合| 久久国产视频网| 欧美精品一区男女天堂| 激情综合色播五月| 久久久无码精品亚洲日韩按摩| 国产一区二区三区美女| 国产婷婷一区二区| 成人一区二区三区视频在线观看| 久久久久国产一区二区三区四区| 国产一区二区三区高清播放| 久久久亚洲精华液精华液精华液| 国产乱码精品一区二区三| 久久亚洲私人国产精品va媚药| 国产精品77777竹菊影视小说| 久久久亚洲精华液精华液精华液| 高清不卡在线观看| 亚洲色图欧洲色图婷婷| 欧美亚洲愉拍一区二区| 图片区小说区区亚洲影院| 日韩精品一区在线观看| 国产精品一二二区| 国产精品久久久久久久久免费樱桃 | 一区二区三区在线不卡| 欧美色区777第一页| 日韩avvvv在线播放| 日韩avvvv在线播放| 精品福利一二区| 国产成人av电影在线观看| 亚洲欧美偷拍三级| 91精品国产综合久久福利| 韩国理伦片一区二区三区在线播放 | 欧美日韩国产高清一区二区三区 | 成人动漫在线一区| 亚洲一二三区不卡| 精品久久久久久久久久久久包黑料 | 91香蕉视频污| 日韩精品成人一区二区在线|