PCB论坛网

 找回密码
 注册
查看: 1313|回复: 4

请教GENESIS2000编程高手

[复制链接]
发表于 2005-5-5 12:09:53 | 显示全部楼层 |阅读模式
#!/bin/csh
# This script is for GUI demo.
##################################################################################
alias gui  '${GENESIS_DIR}/e${GENESIS_VER}/all/gui'
alias gui_out 'echo \!:* >> $GuiDefFile'
alias gui_lst 'cat \!:* >> $GuiDefFile'
alias dogui  'gui < $GuiDefFile > $GuiDatFile; source $GuiDatFile; rm -f $GuiDefFile $GuiDatFile'
if ($?GENESIS_TMP) then
set TMP = $GENESIS_TMP
else if ($?GENESIS_DIR) then
set TMP = $GENESIS_DIR/tmp
else
set TMP = /genesis/tmp
endif
# Set gui parameters
set GuiDefFile = $TMP/GuiDefFile.$$
set GuiDatFile = $TMP/GuiDatFile.$$
# Set fonts for gui
set TitleFont = hbr18
set NormFont = hbr14
set HintFont = hbi14
# Set colors for gui
set RedColor = 990000
set WhiteColor = 999999
set TitleColor = 772288
set NormColor = 222299
###############################################################
set job_list = `dbutil list jobs | awk95 '{print $1}'`
gui_out WIN 200 200
gui_out BG $WhiteColor
gui_out LABEL @/tmp/orblogo.xbm
gui_out BG $TitleColor
gui_out FG $WhiteColor
gui_out LABEL GUI Demo
gui_out BG $NormColor
gui_out TEXT user_name User name :
gui_out DTEXT user_name Tim Chen
gui_out BW 3
gui_out FORM
gui_out LABEL 'Select Job -->'
gui_out LIST StepJob 5 S 1
foreach JobName ($job_list)
if ($JobName != "genesislib") then
  gui_out $JobName
endif
end
gui_out END
gui_out ENDFORM
gui_out BW 1
gui_out OPTION pnl_size Panel size:
gui_out 16x18
gui_out 18x24
gui_out 20x24
gui_out END
gui_out RADIO sel_pnl \'Panel name method:\' H 1 $RedColor
gui_out Default
gui_out Keyin
gui_out END
gui_out FORM sel_pnl 2
gui_out TEXT pnl_name Panel name:
gui_out ENDFORM
gui_out CLABEL OK
gui_out END
dogui
谁能帮我解释上面写的是什么?怎样才能让GUI在GENESIS2000中运行?特别是;set job_list = `dbutil list jobs | awk95 '{print $1}'`有何作用?
回复

使用道具 举报

发表于 2005-5-8 22:28:12 | 显示全部楼层
第一段是定义别名、设置要用到的共同文件。直接在GENESIS2000运行SCRIPTS。显示料号(第一个位置是存在的)
回复 支持 反对

使用道具 举报

发表于 2005-6-2 05:54:12 | 显示全部楼层
[em06]
回复 支持 反对

使用道具 举报

发表于 2005-6-12 06:07:20 | 显示全部楼层
没有搞过这方面的东东,不明 
回复 支持 反对

使用道具 举报

发表于 2005-6-15 14:39:20 | 显示全部楼层

HAO DONG XI

[em01]
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|手机版|PCB设计论坛|EDA论坛|PCB论坛网 ( 沪ICP备05006956号-1 )

GMT+8, 2024-9-22 10:33 , Processed in 0.127430 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表