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

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

?? skins.tcl

?? Linux下的MSN聊天程序源碼
?? TCL
?? 第 1 頁 / 共 3 頁
字號:
##########################################################################             skins.tcl - aMSN Skins System (0.95B)                  ####  ----------------------------------------------------------------  ####   If you want to add any option to skins system, please, be sure   ####    of commenting out your code and keep your values in a proper    ####      section of settings.xml, so the system remains coherent       ##########################################################################namespace eval ::skin {	variable preview_skin_change 0	################################################################	# ::skin::getKey (key, [default])	# This procedure get the value of a skin's configuration key	# supplied by $key and returns it. If the given key doesn't	# exists, it will return $default if supplied, or "" if not.	# Arguments:	#  - key => The requested skin's configurarion key.	#  - default => [NOT REQUIRED] the fallback value.	proc getKey {key {default ""}} {		if { [info exists ::skin_setting($key)] } {			return [::set ::skin_setting($key)]		} else {			return $default		}	}	################################################################	# ::skin::setKey (key, value)	# This procedure assigns a value (supplied by $value) to a 	# skin's configuration key supplied by $key. It returns nothing.	# Arguments:	#  - key => The name of the skin's configurarion key.	#  - value => The data assigned to $key	proc setKey {key value} {		::set ::skin_setting($key) $value	}	################################################################	# ::skin::InitSkinDefaults ()	# Here we set every data wich depends on skins to default, so we	# can load a skin without problems.	proc InitSkinDefaults { } {		global emoticon_number emotions emotions_names emotions_data		set emoticon_number 0		set emotions_names [list]		if { [info exists emotions] } {unset emotions}		if { [info exists emotions_data] } {unset emotions_data}		::skin::setKey bigstate_xpad 0		::skin::setKey bigstate_ypad 3				::skin::setKey mystatus_xpad 5		::skin::setKey mystatus_ypad 0				::skin::setKey mailbox_xpad 5		::skin::setKey mailbox_ypad 0				::skin::setKey contract_xpad 5		::skin::setKey contract_ypad 0				::skin::setKey expand_xpad 5		::skin::setKey expand_ypad 0			}	################################################################	# ::skin::setPixmap (pixmap_name, pixmap_file [, location])	# This procedure sets the image name -- file name association 	# in order to load pictures on demand.	# Arguments:	#  - pixmap_name => Name of the image resource to be used in amsn	#  - pixmap_file => The image file	#  - location => [NOT REQUIRED, defaults to pixmaps]	#                Which folder in skins the file is under (eg pixmaps or smileys)	#  - fblocation => [NOT REQUIRED] Directory to check if file not found in the skins (for plugins)	proc setPixmap {pixmap_name pixmap_file {location pixmaps} {fblocation ""}} {		variable ${location}_names		variable ${location}_fblocation		set ${location}_names($pixmap_name) $pixmap_file		set ${location}_fblocation($pixmap_name) $fblocation	}	################################################################	# ::skin::loadPixmap (pixmap_name [, location])	# Checks if the image was previously loaded, or we need to load	# it. This way, the pixmaps will be loaded first time they're 	# used, on demand. It returns the image resource to be used.	# Arguments:	#  - pixmap_name => Name of the image resource to be used in amsn	#  - location => [NOT REQUIRED, defaults to pixmaps]	#                Which folder in the skins folder the file is under (eg pixmaps or smileys)	proc loadPixmap {pixmap_name {location pixmaps}} {		# Check if pixmap is already loaded		variable loaded_${location}		if { [info exists loaded_${location}($pixmap_name)] } {			return [set loaded_${location}($pixmap_name)]		}		# Not loaded, so let's load it		variable ${location}_names		variable ${location}_fblocation		if { ! [info exists ${location}_names($pixmap_name) ] } {			return ""		}		#for better image naming convention		switch "$location" {				smileys {					set naming "emoticonStd_std"				}				pixmaps {					set naming "uiElement_std"				}				default {					set naming $location				}		}		#If the loading pixmap is corrupted (like someone stupid trying to change the smileys by himself and is doing something bad), just show a null picture		if { [catch {set loaded_${location}($pixmap_name) [image create photo ${naming}_${pixmap_name} -file [::skin::GetSkinFile ${location} [set ${location}_names($pixmap_name)] \			"" [set ${location}_fblocation($pixmap_name)]] -format cximage] } res ] } {		 	status_log "Error while loading pixmap $res"		 	set loaded_${location}($pixmap_name) [image create photo ${naming}_${pixmap_name} -file [::skin::GetSkinFile pixmaps null \			 -format cximage]]		 }			return [set loaded_${location}($pixmap_name)]	}	################################################################	# ::skin::getNoDisplayPicture ([skin_name])	# Checks if the image was previously loaded, or we need to load	# it. This way, the displaypicture_std_none will be loaded first time it's used.	# It always returns 'displaypicture_std_none', is always the same name (static).	# Arguments:	#  - skin_name => [NOT REQUIRED] Overrides the current skin.	proc getNoDisplayPicture { {skin_name ""} } {		variable loaded_images		if { [info exists loaded_images(displaypicture_std_none)] } {			return displaypicture_std_none		}		image create photo displaypicture_std_none -file [::skin::GetSkinFile displaypic nopic.gif $skin_name] -format cximage		set loaded_images(displaypicture_std_none) 1		return displaypicture_std_none	}	proc getDisplayPicture { email {force 0}} {		global HOME						set picName displaypicture_std_$email				if {[catch {image width $picName}] == 0  && $force == 0} {			return $picName		}		set filename [::abook::getContactData $email displaypicfile ""]		set file "[file join $HOME displaypic cache ${filename}].png"		if { $filename != "" && [file readable "[file join $HOME displaypic cache ${filename}].png"] } {			catch {image create photo $picName -file "$file" -format cximage}		} else {			# We do like that to have a better update of the image when switching from no pic to another			#image create photo $picName -file [::skin::GetSkinFile displaypic nopic.gif] -format cximage			image create photo $picName			$picName copy [::skin::getNoDisplayPicture]			set file [::skin::GetSkinFile displaypic nopic.gif]		}				if {[catch {image width $picName} res]} {			#status_log "Error while loading $picName: $res"			image create photo $picName			$picName copy [::skin::getNoDisplayPicture]			set file [::skin::GetSkinFile displaypic nopic.gif]		}				if { [catch {::picture::GetPictureSize $file} cursize] } {			#Corrupted image.. might as well delete it and redownload it some other time..			status_log "Error opening $file: $cursize\n"			catch {file delete $file}		} elseif { [::config::getKey autoresizedp] && ![::picture::IsAnimated $file] && $cursize != "96x96"} {			::picture::Resize $picName 96 96		}		if { [catch {image height displaypicture_tny_$email} height] == 0} {			#Little DP exists so we have to update it			::skin::getLittleDisplayPicture $email $height 1		}		return $picName	}	proc getLittleDisplayPicture { email height {force 0}} {		global HOME		set picName displaypicture_tny_$email				if {[catch {image width $picName}] == 0  && $force == 0} {			return $picName		}		set filename [::abook::getContactData $email displaypicfile ""]		set file "[file join $HOME displaypic cache ${filename}].png"		if { $filename != "" && [file readable $file] } {			catch {image create photo $picName -file "$file" -format cximage}		} else {			image create photo $picName			$picName copy [::skin::getNoDisplayPicture]			set file [::skin::GetSkinFile displaypic nopic.gif]		}				if {[catch {image width $picName} res]} {			#status_log "Error while loading $picName: $res"			image create photo $picName			$picName copy [::skin::getNoDisplayPicture]			set file [::skin::GetSkinFile displaypic nopic.gif]		}				if { [catch {::picture::GetPictureSize $file} cursize] } {			status_log "Error opening $file: $cursize\n"			return ""		}		set animated [::picture::IsAnimated $file]		if { $animated == 0 } {			::picture::ResizeWithRatio $picName $height $height			return $picName		} else {			set tmpPic [imageTemp]  ;#gets destroyed			$tmpPic copy $picName			image delete $picName			image create photo $picName			$picName copy $tmpPic			image delete $tmpPic			::picture::ResizeWithRatio $picName $height $height			return $picName		}		return ""	}	#Convert a display picture from a user to another size	proc ConvertDPSize {user width height} {		if {[catch {			::picture::Resize [getDisplayPicture $user] $width $height		} res]} {			msg_box $res		}	}	################################################################	# ::skin::getColorBar ([skin_name])	# Creates the special image that is placed below of the nickname	# in the contacts' list. It returns the image resource.	# Arguments:	#  - skin_name => [NOT REQUIRED] Overrides the current skin.	proc getColorBar { {skin_name ""} } {		# Get the contact list width		global pgBuddyTop		global pgbuddy_colorbar_width		set win_width [winfo width [winfo parent $pgBuddyTop]]		# Avoid deleting/recreating the colorbar every CL refresh!		if { [info exists pgbuddy_colorbar_width] && $pgbuddy_colorbar_width == $win_width } {			return uiDynamicElement_mainbar		}		set width $win_width		# Delete old uiDynamicElement_mainbar, and load colorbar		# The colorbar will be loaded as follows:		# [first 10 px][11th px repeating to fill][the rest of the colorbar]		catch {image delete uiDynamicElement_mainbar}		set barheight [image height [loadPixmap colorbar]]		set barwidth [image width [loadPixmap colorbar]]		set barendwidth [expr {$barwidth - 11}]		if { $width < $barwidth } {			set width $barwidth		}		set barendstart [expr {$width - $barendwidth}]		# Create the color bar copying from the pixmap		image create photo uiDynamicElement_mainbar -width $width -height $barheight		uiDynamicElement_mainbar blank		uiDynamicElement_mainbar copy [loadPixmap colorbar] -from 0 0 10 $barheight		uiDynamicElement_mainbar copy [loadPixmap colorbar] -from 10 0 11 $barheight -to 10 0 $barendstart $barheight		uiDynamicElement_mainbar copy [loadPixmap colorbar] -from [expr {$barwidth - $barendwidth}] 0 $barwidth $barheight -to $barendstart 0 $width $barheight		set pgbuddy_colorbar_width $win_width		set ::skin::loaded_images(colorbar) 1		return uiDynamicElement_mainbar	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久国产精品麻豆ai换脸| 日韩欧美一级二级三级| 麻豆精品国产传媒mv男同 | 91黄视频在线观看| 国产一区二区三区在线观看免费| 亚洲精品成人在线| 中文字幕巨乱亚洲| 91精品国产综合久久久久久久| 成人av免费观看| 精品亚洲免费视频| 五月激情六月综合| 亚洲美女免费视频| 国产欧美日韩亚州综合| 日韩免费性生活视频播放| 欧美日韩视频一区二区| 99视频有精品| 国产精品一二三区| 国精产品一区一区三区mba桃花| 一区二区在线电影| 亚洲成人高清在线| 26uuu亚洲综合色| 毛片基地黄久久久久久天堂| 精品国产乱子伦一区| 欧美在线一二三| av成人免费在线| 国产高清久久久| 久久99九九99精品| 久久精品久久综合| 青青草国产成人99久久| 亚洲v精品v日韩v欧美v专区| 夜夜精品视频一区二区| 综合在线观看色| 中文字幕一区二区三中文字幕| 久久久99免费| 亚洲最新在线观看| 亚洲欧美日韩国产另类专区| 中文字幕av一区二区三区免费看 | 精品久久久久一区二区国产| 91麻豆精品国产91久久久久 | 欧美国产激情一区二区三区蜜月| 日韩视频在线一区二区| 91精品国产黑色紧身裤美女| 欧美日韩国产综合一区二区三区| 欧美亚洲综合另类| 欧美日韩一区二区欧美激情| 欧美性生活久久| 欧美性一区二区| 欧美日韩国产一二三| 91精品国产综合久久久久| 欧美日韩一区三区| 日韩欧美激情四射| 精品日韩一区二区三区| 久久综合色之久久综合| 欧美国产丝袜视频| 亚洲人成在线播放网站岛国| 亚洲国产三级在线| 日韩av中文字幕一区二区| 国产一区在线视频| 成人免费黄色大片| 色屁屁一区二区| 这里是久久伊人| 久久久久久久久久久久电影| 中文字幕精品一区二区精品绿巨人 | 色久优优欧美色久优优| 精品视频免费在线| 日韩免费视频一区二区| 国产午夜精品福利| 亚洲日本免费电影| 五月天欧美精品| 国产麻豆精品theporn| 99久久精品免费| 91精品国产综合久久香蕉麻豆 | 精品国产乱码久久久久久免费 | 亚洲欧美在线视频| 亚洲gay无套男同| 激情丁香综合五月| 91捆绑美女网站| 欧美欧美午夜aⅴ在线观看| 久久一二三国产| 亚洲美女一区二区三区| 蜜桃av一区二区在线观看| 午夜av电影一区| 成人激情开心网| 国产精品久久久一区麻豆最新章节| 91精品国产乱| 国产精品久久综合| 亚洲va欧美va国产va天堂影院| 国产最新精品精品你懂的| 91视频.com| 久久蜜桃一区二区| 国产成人综合亚洲91猫咪| 91久久精品一区二区| 日韩欧美二区三区| 一卡二卡三卡日韩欧美| 国产高清精品网站| 欧美精品色综合| 亚洲欧洲制服丝袜| 久久不见久久见免费视频7| 一本久久综合亚洲鲁鲁五月天| 日韩一二三区视频| 亚洲精品国产a| 国产成人精品午夜视频免费| 欧美乱熟臀69xxxxxx| 亚洲精品免费一二三区| 国产精品主播直播| 欧美一区二区三区思思人| 亚洲资源中文字幕| 9i在线看片成人免费| 久久久国际精品| 久久精品噜噜噜成人88aⅴ| 91成人看片片| 国产精品美女久久久久久2018| 久久国产精品色| 欧美色图在线观看| 亚洲乱码一区二区三区在线观看| 精品亚洲欧美一区| 日韩欧美国产三级电影视频| 首页亚洲欧美制服丝腿| 在线观看三级视频欧美| 亚洲欧洲日产国码二区| 国产黄色91视频| 久久影音资源网| 紧缚捆绑精品一区二区| 日韩欧美久久久| 91久久精品午夜一区二区| 波多野结衣在线一区| 免费在线一区观看| 亚洲欧美另类小说| 欧美卡1卡2卡| 精品成人私密视频| 麻豆精品在线观看| 欧美成人vr18sexvr| 热久久久久久久| 日韩视频中午一区| 免费成人美女在线观看.| 欧美日韩精品二区第二页| 亚洲在线观看免费视频| 日本高清不卡视频| 一区二区欧美精品| 欧美色图一区二区三区| 亚洲一区二区在线免费观看视频| 色婷婷精品久久二区二区蜜臂av| 亚洲少妇最新在线视频| 91在线精品一区二区| 亚洲三级在线看| 欧美优质美女网站| 亚洲电影一级黄| 日韩欧美一区中文| 韩国一区二区三区| 国产精品不卡在线| 色视频成人在线观看免| 亚洲小说春色综合另类电影| 国产精品热久久久久夜色精品三区| 欧美日韩一级片网站| 国产一区二区三区国产| 国产激情一区二区三区| 青青草国产精品亚洲专区无| 日韩欧美一区电影| 国产福利一区二区三区视频| 中文字幕在线不卡一区| 99精品久久99久久久久| 亚洲大片一区二区三区| 日韩一区二区三区免费看 | 精品国产成人系列| 国产白丝网站精品污在线入口| 中文字幕一区视频| 欧美精品乱人伦久久久久久| 久久国内精品自在自线400部| 久久日韩精品一区二区五区| 99视频精品在线| 亚洲.国产.中文慕字在线| 久久亚洲免费视频| 91在线视频播放地址| 免费高清在线视频一区·| 午夜不卡av免费| 国产盗摄精品一区二区三区在线 | 91国产福利在线| 成人黄色a**站在线观看| 日韩一级免费观看| 欧美日韩aaaaaa| 国产伦精品一区二区三区免费迷| 日韩美女啊v在线免费观看| 欧美精品亚洲二区| 成人97人人超碰人人99| 首页国产欧美日韩丝袜| 欧美国产日韩a欧美在线观看| 欧洲国产伦久久久久久久| 精品一区二区在线播放| 亚洲一级在线观看| 久久精品视频一区二区| 欧美视频你懂的| 成人免费av网站| 麻豆成人91精品二区三区| 亚洲人被黑人高潮完整版| 精品国产亚洲在线| 欧美日韩一区二区欧美激情| 成+人+亚洲+综合天堂| 久久av资源网| 亚洲韩国精品一区| 中文字幕在线不卡视频|