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

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

?? helpw32.tcl

?? windml3.0.3
?? TCL
字號:
# HELPW32.TCL - Automated help support for UITcl-created widgets
#
# Copyright (C) 1995-98 Wind River Systems, Inc.
#
# modification history
# --------------------
# 01d,13jan99,wmd  Update the file to WRS coding conventions.
# 01c,08oct98,tcy  fixed file case
# 01b,30sep98,tcy  changed SETUP.hh to SETUP.HH for UNIX
# 01a,26aug98,tcy  originally from host/resource/tcl/help.win32.tcl
#

##############################################################################
#
# Code to automate help for UITcl-created dialogs, windows, controls and
# toolbars follows
#

#
# Flag to enable debugging mode, wherein controls w/o help ids
# get logged to the console 
#

set nonExistentIdsLog 0

#
# Sub-classing the following functions:
#

rename controlCreate controlCreateOrig
rename dialogCreate dialogCreateOrig
rename windowCreate windowCreateOrig
rename toolbarCreate toolbarCreateOrig

##############################################################################
#
# shouldHaveHelp - determine if a control should have a helpid associated
#
# The following function determines if a control should have
# a helpid associated with it
#
# SYNOPSIS
# shouldHaveHelp <controlType>
#
# PARAMETERS:
#
# RETURNS:
#
# ERRORS:
#

proc shouldHaveHelp {controlType} {
    set noHelpControls [list frame rectangle group label]

    if {[lsearch $noHelpControls $controlType] == -1} {
        return 1
    } else {
        return 0
    }
}

##############################################################################
#
# getFileContents - get contents of a help file
# 
# This proc returns a list of symbolic and numeric IDs for a specified
#       help file
#
# SYNOPSIS
# getFileContents <helpFile>
#
#
# PARAMETERS:
#       helpFile : a helpfile path
#
# RETURNS: The contents of a helpfile.HH file or the NULL string if the file
#       doesn't exists.
#
# ERRORS:
#


proc getFileContents {helpFile} {
    set symbolicNumericHelpIdMap ""
    set dicFile [file join [cdromRootDirGet] RESOURCE HELP $helpFile.HH]

    if {[file exists $dicFile]} {
        set dicFileHandle [open $dicFile r]
        while {[gets $dicFileHandle line] >= 0} {
            if {$line != ""} {
                set symbolicNumericHelpIdMap "$symbolicNumericHelpIdMap $line"
            }
        }
        close $dicFileHandle
    } {
        puts "Can't find $dicFile"
    }

    return $symbolicNumericHelpIdMap
}

#
# Set the symbolicNumericHelpIDMap global variable only once for later symbolic
# and numeric mapping
#

set symbolicNumericHelpIdMap 	[getFileContents SETUP]

##############################################################################
#
# controlCreate - subclassed proc which looks for helpids
# 
# SYNOPSIS
# This function appends the "-helpid <id>" string to the control, and calls 
#       the real controlCreate function to complete the job.
#
# PARAMETERS:
#
# RETURNS: N/A
#
# ERRORS: N/A
# 

proc controlCreate {args} {
    global symbolicNumericHelpIdMap nonExistentIdsLog

    set controlIndex [expr [lsearch [lindex $args 1] "-name"] +1]	
    set controlName ""
    set controlType [lindex [lindex $args 1] 0]

    # Control has to be named and cannot be frame, etc.
    if {$controlIndex != 0 && [shouldHaveHelp $controlType]} {
        set controlName [lindex [lindex $args 1] $controlIndex]
    } 
    set windowName [lindex $args 0]

    set cmd ""
    if {$controlName != ""} {
        set symbolicHelpId [format "HIDC_%s_%s" $windowName $controlName]
        set idIndex [expr \
                    [lsearch $symbolicNumericHelpIdMap $symbolicHelpId] +1]
        if {$idIndex != 0} {
            set cmd [linsert [lindex $args 1] 1 -helpid \
                    [format "%d" [lindex $symbolicNumericHelpIdMap $idIndex]]]
        } else {
           if {$nonExistentIdsLog == "1"} {
               puts [format "No helpid for control %s.%s" $windowName \
                             $controlName]
           }
        }
    }

    if {$cmd == ""} {
        set cmd [lindex $args 1]
    }

    controlCreateOrig [lindex $args 0] $cmd
}


##############################################################################
#
# toolbarCreate - subclassed proc to append helpids to the toolbar
# 
# This procedure appends the "-helpid <id>" string to the toolbar
# control, and calls the real toolbarCreate function to complete the job.
#
# SYNOPSIS
# toolbarCreate <args>
#
#
# PARAMETERS:
#   args : arguments passed to the orignal toolbarCreate proc.
#
# RETURNS: N/A
#
# ERRORS: N/A
#

proc toolbarCreate {args} {
    global nextNumericHelpId symbolicNumericHelpIdMap nonExistentIdsLog

    set index [expr [lsearch $args "-name"] +1]
    set windowName ""
    set helpStr ""

    if {$index != 0 } {
        set windowName [lindex $args $index]
    }

    if {$windowName != ""} {
        set symbolicHelpId [format "HIDW_%s" $windowName]
        set idIndex [expr \
                    [lsearch $symbolicNumericHelpIdMap $symbolicHelpId] +1]

        if {$idIndex != 0} {
            set helpStr [format "-helpid %d" \
                [expr [lindex $symbolicNumericHelpIdMap $idIndex] - 0x50000]]
        } else {
            if {$nonExistentIdsLog == "1"} {
                puts [format "No helpid for toolbar %s" $windowName]
            }
        }
    }

    set cmd [format "toolbarCreateOrig %s %s" $helpStr $args]

    eval "$cmd"
}


##############################################################################
#
# dialogCreate - subclassed procedure to handle help ids.
# 
# This function appends the "-helpid <id>" string to the control,and calls
# the real dialogCreate function to complete the job.
#
# SYNOPSIS
# dialogCreate <args>
#
# PARAMETERS: The orignal args sent passed to dialogCreate
#
# RETURNS: N/A
#
# ERRORS: N/A
# 

proc dialogCreate {args} {
    global symbolicNumericHelpIdMap nonExistentIdsLog

    set cmd ""
    set helpStr ""
    set index [expr [lsearch $args "-name"] +1]
    set windowName ""

    if {$index != 0} {
        set windowName [lindex $args $index]
    }

    if {$windowName != ""} {
	set symbolicHelpId [format "HIDD_%s" $windowName]
        set index [expr [lsearch $symbolicNumericHelpIdMap $symbolicHelpId] +1]

        if {$index != 0} {
            set helpStr [format "-helpid %d" \
                [expr [lindex $symbolicNumericHelpIdMap $index] - 0x20000]]
        } else {
            if {$nonExistentIdsLog == "1"} {
                puts [format "No helpid for dialog %s" $windowName]
            }
        }
    }

    # If there is a -controls option, process all the controls as well
    set ctrlIndex [expr [lsearch $args "-controls"] +1]
    set newCtrlsData ""
	
    if {$ctrlIndex != 0} {
        set ctrlsData [lindex $args $ctrlIndex]
        set newCtrlsData [controlProcess $ctrlsData $windowName]
        set args [lreplace $args $ctrlIndex $ctrlIndex $newCtrlsData]
    } 

    set cmd [format "dialogCreateOrig %s %s" $helpStr $args]

    eval "$cmd"
}


##############################################################################
#
# windowCreate - procedure to append help ids
# 
# This function append the "-helpid <id>" string to the control, and calls
# the real windowCreate function to complete the job.
#
# SYNOPSIS
# windowCreate <args>
#
# PARAMETERS: 
#   args : the orignal args passed to windowCreate
#
# RETURNS: N/A
#
# ERRORS: N/A
# 

proc windowCreate {args} {
    global symbolicNumericHelpIdMap nonExistentIdsLog

    set cmd ""
    set index [expr [lsearch $args "-name"] +1]
    set windowName ""
    set helpStr ""

    if {$index != 0} {
        set windowName [lindex $args $index]
    }

    if {$windowName != ""} {
        set symbolicHelpId [format "HIDW_%s" $windowName]
        set index [expr [lsearch $symbolicNumericHelpIdMap $symbolicHelpId] +1]

        if {$index != 0} {
            set helpStr [format "-helpid %d" \
                        [expr [lindex $symbolicNumericHelpIdMap \
                         $index] - 0x50000]]
        } else {
            if {$nonExistentIdsLog == "1"} {
                puts [format "No helpid for window %s" $windowName]
            }
        }
    }

    # If there is a -controls option, process all the controls as well
    set ctrlIndex [expr [lsearch $args "-controls"] +1]
    set newCtrlsData ""

    if {$ctrlIndex != 0} {
        set ctrlsData [lindex $args $ctrlIndex]
        set newCtrlsData [controlProcess $ctrlsData $windowName]
        set args [lreplace $args $ctrlIndex $ctrlIndex $newCtrlsData]
    }

    set cmd [format "windowCreateOrig %s %s" $helpStr $args]

    eval "$cmd"
}


##############################################################################
#
# controlProcess -
# 
# This procedure takes a list of list, appends the "-helpid <id>" string to 
# each sublist, and returns the modified list of lists.
#
# SYNOPSIS
# controlProcess <args>
#
# PARAMETERS: 
#    args : the orginal arguments passed to the control
#
# RETURNS: N/A
#
# ERRORS: N/A
#

proc controlProcess {args} {
    global symbolicNumericHelpIdMap nonExistentIdsLog

    set windowName [lindex $args 1]

    foreach ctrlData [lindex $args 0] {
        set index [expr [lsearch $ctrlData "-name"] +1]
        set ctrlName ""
        set controlType [lindex $ctrlData 0]
		
        # Control has to be named and cannot be frame, etc.
        if {$index != 0 && [shouldHaveHelp $controlType]} {
            set ctrlName [lindex $ctrlData $index]
        }

        set newCtrlData ""
        if {$ctrlName != ""} {
            set symbolicHelpId [format "HIDC_%s_%s" $windowName $ctrlName]
            set idIndex [expr \
                        [lsearch $symbolicNumericHelpIdMap $symbolicHelpId] +1]

            if {$idIndex != 0} {
                set newCtrlData [linsert $ctrlData 1 "-helpid" \
  		    [format "%d" [lindex $symbolicNumericHelpIdMap $idIndex]]]
                lappend newCtrlsData $newCtrlData
            } else {
                if {$nonExistentIdsLog == "1"} {
                    puts [format "No helpid for %s.%s" $windowName $ctrlName]
                }
            }
        }
        if {$newCtrlData == ""} {
            lappend newCtrlsData $ctrlData
        }
    }
    return $newCtrlsData
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区视频| 国产黑丝在线一区二区三区| 色天天综合久久久久综合片| 亚洲欧美另类在线| 在线观看91视频| 日本欧美韩国一区三区| 欧美成人精品二区三区99精品| 久久国产精品72免费观看| 精品剧情v国产在线观看在线| 国产美女一区二区三区| 欧美国产日韩一二三区| 91在线观看成人| 视频一区欧美精品| 久久先锋影音av| 91在线观看污| 另类中文字幕网| 国产精品传媒入口麻豆| 亚洲综合一区在线| 91丨国产丨九色丨pron| 亚洲大片精品永久免费| 2024国产精品| 91丨九色丨蝌蚪丨老版| 同产精品九九九| 久久久久成人黄色影片| 欧美综合视频在线观看| 精一区二区三区| 日韩美女精品在线| 日韩精品中午字幕| 色狠狠一区二区三区香蕉| 国产综合一区二区| 亚洲自拍偷拍av| 国产欧美精品一区aⅴ影院| 欧美亚洲愉拍一区二区| 国产jizzjizz一区二区| 日本sm残虐另类| 亚洲三级电影网站| 亚洲精品在线三区| 欧美日韩在线免费视频| 成人免费电影视频| 麻豆精品一区二区三区| 亚洲香肠在线观看| 国产精品夫妻自拍| 精品电影一区二区三区| 在线电影院国产精品| eeuss鲁一区二区三区| 久久99久久久欧美国产| 一区二区国产盗摄色噜噜| 久久久久88色偷偷免费| 91精品国产麻豆国产自产在线| va亚洲va日韩不卡在线观看| 韩国在线一区二区| 亚洲成av人片观看| 亚洲精品五月天| 国产欧美一区二区精品性色超碰 | 国产成人一级电影| 青青草成人在线观看| 亚洲精品国产精华液| 日本一区二区高清| 久久久久久久免费视频了| 8x8x8国产精品| 欧美日韩电影一区| 欧美综合一区二区三区| 色偷偷一区二区三区| 成人a区在线观看| 福利91精品一区二区三区| 激情图区综合网| 久久电影国产免费久久电影 | 欧美一区二区三区视频在线| 欧美日韩在线观看一区二区| 日本精品裸体写真集在线观看 | 欧美午夜电影网| 一本久道中文字幕精品亚洲嫩| 成人av在线资源网| 成人综合婷婷国产精品久久蜜臀| 国产精品77777| 丁香激情综合五月| 成人免费av在线| 99re免费视频精品全部| 91视频在线看| 在线观看日韩电影| 欧美军同video69gay| 337p亚洲精品色噜噜噜| 日韩欧美国产一区二区三区| 日韩欧美中文一区| 精品人在线二区三区| 久久精品人人做| 国产欧美久久久精品影院| 国产精品无码永久免费888| 国产精品女同一区二区三区| 国产精品色在线| 亚洲精品国产无套在线观| 亚洲国产中文字幕| 久久精品国产在热久久| 国产传媒久久文化传媒| av电影在线观看一区| 在线观看国产91| 日韩欧美的一区| 国产欧美精品区一区二区三区 | 波多野结衣91| 欧美日韩中文字幕精品| 精品久久国产老人久久综合| 2020国产精品自拍| 亚洲视频精选在线| 午夜精品123| 国产精品羞羞答答xxdd| 色婷婷亚洲精品| 日韩一区二区三区在线视频| 欧美高清在线一区| 亚洲成人免费av| 国内外成人在线| 欧美综合亚洲图片综合区| 精品国产伦一区二区三区免费| 国产精品女主播在线观看| 亚洲妇女屁股眼交7| 国产精品自在欧美一区| 欧美制服丝袜第一页| 欧美精品一区二区三区四区| 亚洲欧美视频在线观看视频| 麻豆精品久久精品色综合| 97久久精品人人做人人爽50路| 日韩一区二区在线观看视频| 日韩理论在线观看| 精彩视频一区二区| 欧美日韩日日夜夜| 中文字幕一区二区在线播放| 日本欧美久久久久免费播放网| gogogo免费视频观看亚洲一| 欧美mv和日韩mv的网站| 亚洲成人久久影院| av网站免费线看精品| 久久婷婷国产综合精品青草| 午夜精品久久久久久久蜜桃app| 国产suv一区二区三区88区| 欧美一区二区黄| 亚洲精品老司机| gogogo免费视频观看亚洲一| 久久午夜羞羞影院免费观看| 日本vs亚洲vs韩国一区三区二区| 色猫猫国产区一区二在线视频| 欧美精品一区二| 亚洲成人免费在线| 北条麻妃国产九九精品视频| 欧美老女人第四色| 亚洲国产精品久久一线不卡| 国产经典欧美精品| 制服丝袜日韩国产| 亚洲成年人影院| 99久久99久久综合| 久久久精品黄色| 日韩不卡一区二区三区| 色94色欧美sute亚洲线路一ni| 欧美精品一区二区在线播放| 三级影片在线观看欧美日韩一区二区| 色综合久久中文综合久久97| 久久久五月婷婷| 麻豆高清免费国产一区| 在线精品视频免费观看| 久久精品视频一区| 国产成人综合亚洲91猫咪| 欧美一卡2卡三卡4卡5免费| 亚洲女性喷水在线观看一区| 免费高清视频精品| 日韩一区二区三区观看| 亚洲综合区在线| 99国产精品国产精品毛片| 久久精品日产第一区二区三区高清版| 国产一区二区在线观看视频| 91精品国产综合久久婷婷香蕉| 亚洲黄色性网站| 91视频在线观看| 亚洲国产日韩av| 欧美日韩国产大片| 亚洲最大成人综合| 日本韩国欧美三级| 丝袜美腿亚洲综合| 91麻豆精品国产91| 视频在线观看一区| 777色狠狠一区二区三区| 亚洲3atv精品一区二区三区| 欧美日韩亚洲综合一区二区三区 | 久久久另类综合| 国产一区 二区| 亚洲天天做日日做天天谢日日欢 | 国产激情91久久精品导航 | 奇米一区二区三区av| 日韩视频在线观看一区二区| 国产真实精品久久二三区| 精品奇米国产一区二区三区| 国产主播一区二区| 亚洲国产精品国自产拍av| 一本一本久久a久久精品综合麻豆| 亚洲欧美一区二区三区国产精品| 色综合色综合色综合| 国产欧美一区二区精品忘忧草 | 欧美sm极限捆绑bd| 国产成人精品在线看| 一区视频在线播放| 欧美精品亚洲二区| 久久99最新地址| 中文字幕第一页久久|