home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / x / volume19 / wkshtree / part01 < prev    next >
Encoding:
Text File  |  1993-04-27  |  50.2 KB  |  1,962 lines

  1. Newsgroups: comp.sources.x
  2. From: Eric_Wallengren@univel.com (Eric Wallengren)
  3. Subject: v19i070:  wkshTree - Windowing Korn Shell Widget Tree. Examples of wksh widgets., Part01/02
  4. Message-ID: <csx-v19i070=wkshTree.181256@sparky.IMD.Sterling.COM>
  5. X-Md4-Signature: 3d5be4a530cb8df0e9b637deb0e86b98
  6. Date: Sun, 4 Apr 1993 00:13:47 GMT
  7. Approved: chris@sparky.imd.sterling.com
  8.  
  9. Submitted-by: Eric_Wallengren@univel.com (Eric Wallengren)
  10. Posting-number: Volume 19, Issue 70
  11. Archive-name: wkshTree/part01
  12. Environment: X11. wksh
  13.  
  14. [I could not test this, as I don't have wksh running...]
  15. [   Chris Olson                                        ]
  16.  
  17. #!/bin/sh
  18. # This is a shell archive (produced by shar 3.49)
  19. # To extract the files from this archive, save it to a file, remove
  20. # everything above the "!/bin/sh" line above, and type "sh file_name".
  21. #
  22. # made 03/29/1993 23:22 UTC by eric@mr_big
  23. # Source directory /home/eric/wkshtree/temp
  24. #
  25. # existing files will NOT be overwritten unless -c is specified
  26. #
  27. # This shar contains:
  28. # length  mode       name
  29. # ------ ---------- ------------------------------------------
  30. #   1131 -rw-r--r-- Abbrevbutton
  31. #    677 -rw-r--r-- Abbrevmenubutton
  32. #    809 -rw-r--r-- Bulletinboard
  33. #   1076 -rw-r--r-- Caption
  34. #   1471 -rw-r--r-- Category
  35. #    441 -rw-r--r-- Checkbox
  36. #   1789 -rw-r--r-- Controlarea
  37. #    571 -rw-r--r-- Exclusives
  38. #   1849 -rw-r--r-- Flatbuttons
  39. #    596 -rw-r--r-- Flatcheckbox
  40. #    593 -rw-r--r-- Flatexclusives
  41. #    677 -rw-r--r-- Flatlist
  42. #    621 -rw-r--r-- Flatnonexclusives
  43. #    538 -rw-r--r-- Footer
  44. #    547 -rw-r--r-- Footerpanel
  45. #    962 -rw-r--r-- Form
  46. #    604 -rw-r--r-- Gauge
  47. #    604 -rw-r--r-- Guage
  48. #    964 -rw-r--r-- Help
  49. #    591 -rw-r--r-- Integerfield
  50. #    748 -rw-r--r-- MenuShell
  51. #    572 -rw-r--r-- Menubutton
  52. #    527 -rw-r--r-- Menubuttongadget
  53. #    431 -rw-r--r-- Modalshell
  54. #    546 -rw-r--r-- Nonexclusives
  55. #    467 -rw-r--r-- Noticeshell
  56. #    329 -rw-r--r-- Oblongbutton
  57. #    336 -rw-r--r-- Oblongbuttongadget
  58. #   1132 -rw-r--r-- Panes
  59. #    758 -rw-r--r-- Popupmenushell
  60. #    821 -rw-r--r-- Popupwindowshell
  61. #    327 -rw-r--r-- Rectbutton
  62. #   1114 -rw-r--r-- Rubbertile
  63. #    601 -rw-r--r-- Scrollbar
  64. #    866 -rw-r--r-- Scrolledwindow
  65. #    580 -rw-r--r-- Scrollinglist
  66. #    607 -rw-r--r-- Slider
  67. #   1554 -rw-r--r-- Statictext
  68. #   1253 -rw-r--r-- Stepfield
  69. #    637 -rw-r--r-- Stub
  70. #    438 -rw-r--r-- Text
  71. #    680 -rw-r--r-- Textedit
  72. #    595 -rw-r--r-- Textfield
  73. #  39051 -rwxr-xr-x wkshTree
  74. #    767 -rw-rw-r-- README
  75. #
  76. # ============= Abbrevbutton ==============
  77. if test -f 'Abbrevbutton' -a X"$1" != X"-c"; then
  78.     echo 'x - skipping Abbrevbutton (File already exists)'
  79. else
  80. echo 'x - extracting Abbrevbutton (Text)'
  81. sed 's/^X//' << 'SHAR_EOF' > 'Abbrevbutton' &&
  82. Abbrevbutton()
  83. {
  84. X    MENUITEMS="{Restart}, {Cancel}, {Abort}"
  85. X
  86. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  87. X        title:"WkshClass: AbbreviatedMenuButton"
  88. X
  89. X    acb $POPUP popdownCallback "pd $POPUP"
  90. X
  91. X    cps WINDOW popup popupWindowShell $POPUP \\\n
  92. X        title:"AbbreviatedButton Window"
  93. X
  94. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  95. X        label:"AbbreviatedButton (Window):" \\\n
  96. X        font:OlDefaultBoldFont
  97. X
  98. X    cmw ABW abbreviatedButton abbreviatedButton $CAPTION \\\n
  99. X        buttonType:windowBtn \\\n
  100. X        popupWidget:$WINDOW
  101. X
  102. X    cps MENU menu popupMenuShell $POPUP 
  103. X
  104. X    cmw BUTTONS buttons flatButtons $MENU \\\n
  105. X        numItems:3 \\\n
  106. X        numItemFields:1 \\\n
  107. X        itemFields:'{label}' \\\n
  108. X        items:"${MENUITEMS}" 
  109. X
  110. X    cmw CAPTION2 caption caption $POPUP_UCA \\\n
  111. X        label:"AbbreviatedButton (Menu):" \\\n
  112. X        font:OlDefaultBoldFont
  113. X
  114. X    cmw ABWC abbreviatedButton abbreviatedButton $CAPTION2 \\\n
  115. X        popupWidget:$MENU
  116. X        
  117. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  118. X        numItems:1 \\\n
  119. X        numItemFields:1 \\\n
  120. X        itemFields:'{label}' \\\n
  121. X        items:'{Ok}' 
  122. X
  123. X    sv $OK selectProc:"PopdownCB $POPUP"    
  124. X
  125. X    orh $POPUP "AbbreviatedButton Source" -f `pwd`/Abbrevbutton
  126. X
  127. X    pu $POPUP GrabNone
  128. }
  129. SHAR_EOF
  130. chmod 0644 Abbrevbutton ||
  131. echo 'restore of Abbrevbutton failed'
  132. Wc_c="`wc -c < 'Abbrevbutton'`"
  133. test 1131 -eq "$Wc_c" ||
  134.     echo 'Abbrevbutton: original size 1131, current size' "$Wc_c"
  135. fi
  136. # ============= Abbrevmenubutton ==============
  137. if test -f 'Abbrevmenubutton' -a X"$1" != X"-c"; then
  138.     echo 'x - skipping Abbrevmenubutton (File already exists)'
  139. else
  140. echo 'x - extracting Abbrevmenubutton (Text)'
  141. sed 's/^X//' << 'SHAR_EOF' > 'Abbrevmenubutton' &&
  142. AbbrevMenuButton()
  143. {
  144. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  145. X        title:"AbbreviatedMenuButton"
  146. X
  147. X    acb $POPUP popdownCallback "dw $POPUP"
  148. X
  149. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  150. X        label:"AbbreviatedMenuButton:" \\\n
  151. X        font:OlDefaultBoldFont
  152. X
  153. X    cmw ABBREV abbrevMenuButton abbrevMenuButton $CAPTION 
  154. X        
  155. X    cmw OPEN Open... oblongButton $ABBREV_MP \\\n
  156. X        buttonType:$BUTTON
  157. X
  158. X    cmw SAVE Save... oblongButton $ABBREV_MP \\\n
  159. X        buttonType:$BUTTON
  160. X
  161. X    cmw EXIT Exit oblongButton $ABBREV_MP \\\n
  162. X        buttonType:$BUTTON
  163. X
  164. X    cmw OK Ok oblongButton $POPUP_LCA \\\n
  165. X        buttonType:$BUTTON
  166. X
  167. X    orh $POPUP "AbbreviatedMenuButton Source" -f `pwd`/Abbrevmenubutton
  168. X
  169. X    pu $POPUP GrabNone
  170. }
  171. SHAR_EOF
  172. chmod 0644 Abbrevmenubutton ||
  173. echo 'restore of Abbrevmenubutton failed'
  174. Wc_c="`wc -c < 'Abbrevmenubutton'`"
  175. test 677 -eq "$Wc_c" ||
  176.     echo 'Abbrevmenubutton: original size 677, current size' "$Wc_c"
  177. fi
  178. # ============= Bulletinboard ==============
  179. if test -f 'Bulletinboard' -a X"$1" != X"-c"; then
  180.     echo 'x - skipping Bulletinboard (File already exists)'
  181. else
  182. echo 'x - extracting Bulletinboard (Text)'
  183. sed 's/^X//' << 'SHAR_EOF' > 'Bulletinboard' &&
  184. BulletinBoard()
  185. {
  186. X    cps TRANSHELL transient transientShell $PANE \\\n
  187. X        title:"WkshTree: BulletinBoard"
  188. X
  189. X    cmw CAP1 caption caption $TRANSHELL \\\n
  190. X        font:OlDefaultBoldFont \\\n
  191. X        label:"BulletinBoard:" \\\n
  192. X        position:top \\\n
  193. X        alignment:left
  194. X
  195. X    cmw BBOARD bulletinBoard bulletinBoard $CAP1 \\\n
  196. X        width:200 \\\n
  197. X        height:150 \\\n
  198. X        borderWidth:1
  199. X
  200. X    cmw ONE 0x0 staticText $BBOARD \\\n
  201. X        string:"(0,0)"
  202. X
  203. X    cmw TWO 100x100 staticText $BBOARD \\\n
  204. X        string:"(150,100)" \\\n
  205. X        x:100 y:100
  206. X
  207. X    cmw THREE 80x0 staticText $BBOARD \\\n
  208. X        string:"(80,0)" \\\n
  209. X        x:80 y:0
  210. X
  211. X    cmw OK OK flatButtons $BBOARD \\\n
  212. X        x:90 y:130 \\\n
  213. X        numItems:1 \\\n
  214. X        itemFields:'{label}' \\\n
  215. X        items:'{OK}' 
  216. X
  217. X    sv $OK selectProc:"PopdownCB $TRANSHELL"
  218. X    
  219. X    orh $TRANSHELL "BulletinBoard Source" -f `pwd`/Bulletinboard
  220. X
  221. X    pu $TRANSHELL GrabNone
  222. }
  223. SHAR_EOF
  224. chmod 0644 Bulletinboard ||
  225. echo 'restore of Bulletinboard failed'
  226. Wc_c="`wc -c < 'Bulletinboard'`"
  227. test 809 -eq "$Wc_c" ||
  228.     echo 'Bulletinboard: original size 809, current size' "$Wc_c"
  229. fi
  230. # ============= Caption ==============
  231. if test -f 'Caption' -a X"$1" != X"-c"; then
  232.     echo 'x - skipping Caption (File already exists)'
  233. else
  234. echo 'x - extracting Caption (Text)'
  235. sed 's/^X//' << 'SHAR_EOF' > 'Caption' &&
  236. Caption()
  237. {
  238. X    cmw POPCAPTION popupWidget popupWindowShell $PANE \\\n
  239. X        title:"Caption" 
  240. X
  241. X    acb $POPCAPTION popdownCallback "dw $POPCAPTION"
  242. X
  243. X    cmw CAP1 leftcaption caption $POPCAPTION_UCA \\\n
  244. X        label:"Position Left:" \\\n
  245. X        font:OlDefaultBoldFont \\\n
  246. X        position:left \\\n
  247. X        borderWidth:0
  248. X
  249. X    cmw CAP2 rightcaption caption $CAP1 \\\n
  250. X        label:":Position Right" \\\n
  251. X        font:OlDefaultBoldFont \\\n
  252. X        position:right \\\n
  253. X        borderWidth:1
  254. X
  255. X    cmw CAP3 topcaption caption $CAP2 \\\n
  256. X        label:"Position Top:" \\\n
  257. X        font:OlDefaultBoldFont \\\n
  258. X        position:top \\\n
  259. X        borderWidth:1
  260. X
  261. X    cmw CAP4 topcaption caption $CAP3 \\\n
  262. X        label:"Position Bottom:" \\\n
  263. X        font:OlDefaultBoldFont \\\n
  264. X        position:bottom \\\n
  265. X        borderWidth:1
  266. X
  267. X    cmw ABV abbrevmenu abbrevMenuButton $CAP4 
  268. X
  269. X    
  270. X    cmw MENUITEMS menuitems flatButtons $ABV_MP \\\n
  271. X        numItems:3 \\\n
  272. X        itemFields:'{label}' \\\n
  273. X        items:'{Open...}, {Save...}, {Exit}'
  274. X
  275. X    cmw OK Ok flatButtons $POPCAPTION_LCA \\\n
  276. X        numItems:1 \\\n
  277. X        itemFields:'{label}' \\\n
  278. X        items:'{Ok}' 
  279. X
  280. X    orh $POPCAPTION "Caption Help" -f `pwd`/Caption
  281. X
  282. X    pu $POPCAPTION GrabNone 
  283. }
  284. SHAR_EOF
  285. chmod 0644 Caption ||
  286. echo 'restore of Caption failed'
  287. Wc_c="`wc -c < 'Caption'`"
  288. test 1076 -eq "$Wc_c" ||
  289.     echo 'Caption: original size 1076, current size' "$Wc_c"
  290. fi
  291. # ============= Category ==============
  292. if test -f 'Category' -a X"$1" != X"-c"; then
  293.     echo 'x - skipping Category (File already exists)'
  294. else
  295. echo 'x - extracting Category (Text)'
  296. sed 's/^X//' << 'SHAR_EOF' > 'Category' &&
  297. Category()
  298. {
  299. X    PAGE1_ITEMS="{Red}, {Orange}, {Yellow}, {Green}, {Blue},
  300. X             {Indigo}, {Violet}"
  301. X
  302. X    PAGE2_ITEMS="{Apples}, {Oranges}, {Banannas}, {Grapes},
  303. X             {Watermellon}"
  304. X
  305. X    PAGE3_ITEMS="{Lions}, {Tigers}, {Bears}, {Elephants},
  306. X             {Zebras}, {Monkeys}, {Hippos}, {Deer}, 
  307. X             {Duck Billed Platypus}"
  308. X
  309. X    cps POPUP popup popupWindowShell $PANE \\\n
  310. X        title:"WkshTree: Category"
  311. X
  312. X    cmw CATEGORY category category $POPUP_UCA \\\n
  313. X        categoryLabel:"Category:" \\\n
  314. X        leftFoot:"LeftFoot" \\\n
  315. X        rightFoot:"RightFoot" \\\n
  316. X        showFooter:true
  317. X
  318. X    cmw COLORS colors flatButtons $CATEGORY \\\n
  319. X        pageLabel:"Colors" \\\n
  320. X        layoutType:fixedcols \\\n
  321. X        exclusives:true \\\n
  322. X        buttonType:rectBtn \\\n
  323. X        numItems:7 \\\n
  324. X        numItemFields:1 \\\n
  325. X        itemFields:'{label}' \\\n
  326. X        items:"$PAGE1_ITEMS" 
  327. X
  328. X    cmw FRUITS fruits flatButtons $CATEGORY \\\n
  329. X        pageLabel:"Fruits" \\\n
  330. X        layoutType:fixedcols \\\n
  331. X        exclusives:true \\\n
  332. X        buttonType:rectBtn \\\n
  333. X        numItems:5 \\\n
  334. X        numItemFields:1 \\\n
  335. X        itemFields:'{label}' \\\n
  336. X        items:"$PAGE2_ITEMS"
  337. X    
  338. X    cmw ANIMALS animals flatButtons $CATEGORY \\\n
  339. X        pageLabel:"Animals" \\\n
  340. X        layoutType:fixedcols \\\n
  341. X        exclusives:true \\\n
  342. X        buttonType:rectBtn \\\n
  343. X        numItems:9 \\\n
  344. X        numItemFields:1 \\\n
  345. X        itemFields:'{label}' \\\n
  346. X        items:"$PAGE3_ITEMS" 
  347. X
  348. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  349. X        numItems:1 \\\n
  350. X        numItemFields:1 \\\n
  351. X        itemFields:'{label}' \\\n
  352. X        items:'{Ok}'
  353. X
  354. X    orh $POPUP "Catogory Source" -f `pwd`/Category
  355. X
  356. X    pu $POPUP GrabNone
  357. }
  358. SHAR_EOF
  359. chmod 0644 Category ||
  360. echo 'restore of Category failed'
  361. Wc_c="`wc -c < 'Category'`"
  362. test 1471 -eq "$Wc_c" ||
  363.     echo 'Category: original size 1471, current size' "$Wc_c"
  364. fi
  365. # ============= Checkbox ==============
  366. if test -f 'Checkbox' -a X"$1" != X"-c"; then
  367.     echo 'x - skipping Checkbox (File already exists)'
  368. else
  369. echo 'x - extracting Checkbox (Text)'
  370. sed 's/^X//' << 'SHAR_EOF' > 'Checkbox' &&
  371. Checkbox()
  372. {
  373. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  374. X        title:"Checkbox"
  375. X
  376. X    acb $POPUP popdownCallback "dw $POPUP"
  377. X
  378. X    cmw CHECKBOX checkbox checkBox $POPUP_UCA \\\n
  379. X        label:"Checkbox:" \\\n
  380. X        font:OlDefaultBoldFont \\\n
  381. X        set:true
  382. X
  383. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  384. X        numItems:1 \\\n
  385. X        numItemFields:1 \\\n
  386. X        itemFields:'{label}' \\\n
  387. X        items:'{Ok}' 
  388. X
  389. X    orh $POPUP "CheckBox Source" -f `pwd`/Checkbox
  390. X
  391. X    pu $POPUP GrabNone
  392. }
  393. SHAR_EOF
  394. chmod 0644 Checkbox ||
  395. echo 'restore of Checkbox failed'
  396. Wc_c="`wc -c < 'Checkbox'`"
  397. test 441 -eq "$Wc_c" ||
  398.     echo 'Checkbox: original size 441, current size' "$Wc_c"
  399. fi
  400. # ============= Controlarea ==============
  401. if test -f 'Controlarea' -a X"$1" != X"-c"; then
  402.     echo 'x - skipping Controlarea (File already exists)'
  403. else
  404. echo 'x - extracting Controlarea (Text)'
  405. sed 's/^X//' << 'SHAR_EOF' > 'Controlarea' &&
  406. ControlArea()
  407. {
  408. X    THEFRUIT="{Apples}, {Oranges}, {Banannas}, {Grapes},
  409. X          {Watermelon}, {Kiwi}"
  410. X
  411. X    THECOLOR="{Red}, {Orange}, {Yellow}, {Green}, {Blue},
  412. X          {Indigo}, {Violet}, {Black}"
  413. X    
  414. X    THEANIMAL="{Lions}, {Tigers}, {Bears}, {Elephants}, 
  415. X           {Zebras}, {Monkeys}, {Hippos}, {Deer},
  416. X           {Duck Billed Platypus}"
  417. X
  418. X    cps POPCONTROLA transientShell transientShell $PANE \\\n
  419. X        title:"WkshTree: ControlArea"
  420. X
  421. X    cmw CAPTION caption caption $POPCONTROLA \\\n
  422. X        label:"ControlArea:" \\\n
  423. X        font:OlDefaultBoldFont \\\n
  424. X        position:top \\\n
  425. X        alignment:left
  426. X
  427. X    cmw CONTROLAREA controlarea controlArea $CAPTION \\\n
  428. X        alignCaptions:true \\\n
  429. X        layoutType:fixedcols \\\n
  430. X        center:true \\\n
  431. X        hSpace:10 
  432. X
  433. X    cmw FRUITS caption caption $CONTROLAREA \\\n
  434. X        label:"Fruits:" 
  435. X
  436. X    cmw FRUITBUTTONS fruitbuttons flatButtons $FRUITS \\\n
  437. X        layoutType:fixedcols \\\n
  438. X        buttonType:rectBtn \\\n
  439. X        exclusives:true \\\n
  440. X        measure:3 \\\n
  441. X        numItems:6 \\\n
  442. X        itemFields:'{label}' \\\n
  443. X        items:"$THEFRUIT" 
  444. X
  445. X    cmw COLORS caption caption $CONTROLAREA \\\n
  446. X        label:"Colors:"
  447. X
  448. X    cmw COLORBUTTONS colorButtons flatButtons $COLORS \\\n
  449. X        layoutType:fixedcols \\\n
  450. X        buttonType:rectBtn \\\n
  451. X        exclusives:true \\\n
  452. X        measure:4 \\\n
  453. X        numItems:8 \\\n
  454. X        itemFields:'{label}' \\\n
  455. X        items:"$THECOLOR" 
  456. X
  457. X    cmw ANIMALS caption caption $CONTROLAREA \\\n
  458. X        label:"Animals:"
  459. X    
  460. X    cmw ANIMALBUTTONS animalButtons flatButtons $ANIMALS \\\n
  461. X        layoutType:fixedcols \\\n
  462. X        buttonType:rectBtn \\\n
  463. X        exclusives:true \\\n
  464. X        measure:3 \\\n
  465. X        numItems:9 \\\n
  466. X        itemFields:'{label}' \\\n
  467. X        items:"$THEANIMAL" 
  468. X
  469. X    cmw OK Ok flatButtons $CONTROLAREA \\\n
  470. X        numItems:1 \\\n
  471. X        itemFields:'{label}' \\\n
  472. X        items:'{Ok}'
  473. X                
  474. X    sv $OK selectProc:"PopdownCB $POPCONTROLA"
  475. X
  476. X    orh $POPCONTROLA "ControlArea Source" -f `pwd`/Controlarea
  477. X
  478. X    pu $POPCONTROLA GrabNone
  479. }
  480. SHAR_EOF
  481. chmod 0644 Controlarea ||
  482. echo 'restore of Controlarea failed'
  483. Wc_c="`wc -c < 'Controlarea'`"
  484. test 1789 -eq "$Wc_c" ||
  485.     echo 'Controlarea: original size 1789, current size' "$Wc_c"
  486. fi
  487. # ============= Exclusives ==============
  488. if test -f 'Exclusives' -a X"$1" != X"-c"; then
  489.     echo 'x - skipping Exclusives (File already exists)'
  490. else
  491. echo 'x - extracting Exclusives (Text)'
  492. sed 's/^X//' << 'SHAR_EOF' > 'Exclusives' &&
  493. Exclusives()
  494. {
  495. X    cps POPEXCLUSIVES exclusives popupWindowShell $PANE \\\n
  496. X        title:"Exclusives"
  497. X
  498. X    acb $POPEXCLUSIVES popdownCallback "dw $POPEXCLUSIVES"
  499. X
  500. X    cmw CAPTION caption caption $POPEXCLUSIVES_UCA \\\n
  501. X        label:"Exclusives:" \\\n
  502. X        font:OlDefaultFont
  503. X
  504. X    cmw EXCLUSIVES exclusives exclusives $CAPTION
  505. X
  506. X    cmw ON On rectButton $EXCLUSIVES 
  507. X
  508. X    cmw OFF Off rectButton $EXCLUSIVES 
  509. X
  510. X    cmw OK Ok oblongButton $POPEXCLUSIVES_LCA \\\n
  511. X        buttonType:$BUTTON \\\n
  512. X        select:"pd $POPEXCLUSIVES"
  513. X
  514. X    orh $POPEXCLUSIVES "Exclusives Source" -f `pwd`/Exclusives
  515. X
  516. X    pu $POPEXCLUSIVES GrabNone
  517. }
  518. SHAR_EOF
  519. chmod 0644 Exclusives ||
  520. echo 'restore of Exclusives failed'
  521. Wc_c="`wc -c < 'Exclusives'`"
  522. test 571 -eq "$Wc_c" ||
  523.     echo 'Exclusives: original size 571, current size' "$Wc_c"
  524. fi
  525. # ============= Flatbuttons ==============
  526. if test -f 'Flatbuttons' -a X"$1" != X"-c"; then
  527.     echo 'x - skipping Flatbuttons (File already exists)'
  528. else
  529. echo 'x - extracting Flatbuttons (Text)'
  530. sed 's/^X//' << 'SHAR_EOF' > 'Flatbuttons' &&
  531. Flatbuttons()
  532. {
  533. X    LOWER_ITEMS="{Ok}, {Apply}, {Reset}, {Cancel},  {Help}"
  534. X    ONOFF_ITEMS="{On}, {Off}"
  535. X    COLOR_ITEMS="{Red}, {Green}, {Blue}"
  536. X    PERMISSION_ITEMS="{Read}, {Write}, {Execute}"
  537. X
  538. X    MENU_BUTTON_ITEMS="{Flat Menu Button}"
  539. X    MENU_ITEMS="{Menu Item 1}, {Menu Item 2}, {Menu Item 3}"
  540. X    SUB_MENU_ITEMS="{Menu Item 1}"
  541. X
  542. X    cmw POPUP popupWindowShell popupWindowShell $PANE \\\n
  543. X        title:"WkshTree: Flatbuttons"
  544. X
  545. X    acb $POPUP popdownCallback "dw $POPUP"
  546. X
  547. X    cmw BELL bell caption $POPUP_UCA \\\n
  548. X        label:"Bell:"
  549. X
  550. X    cmw ONOFF onoff flatButtons $BELL \\\n
  551. X        buttonType:rectBtn \\\n
  552. X        exclusives:true \\\n
  553. X        numItems:2 \\\n
  554. X        numItemFields:1 \\\n
  555. X        itemFields:'{label}' \\\n
  556. X        items:"$ONOFF_ITEMS"
  557. X
  558. X    cmw COLOR color caption $POPUP_UCA \\\n
  559. X        label:"Color:"
  560. X
  561. X    cmw SIZE size flatButtons $COLOR \\\n
  562. X        buttonType:rectBtn \\\n
  563. X        numItems:3 \\\n
  564. X        numItemFields:1 \\\n
  565. X        itemFields:'{label}' \\\n
  566. X        items:"$COLOR_ITEMS"
  567. X
  568. X    cmw PERMISSION permission caption $POPUP_UCA \\\n
  569. X        label:"Permissions:"
  570. X
  571. X    cmw PERMISSIONS permissions flatButtons $PERMISSION \\\n
  572. X        buttonType:checkbox \\\n
  573. X        numItems:3 \\\n
  574. X        numItemFields:1 \\\n
  575. X        itemFields:'{label}' \\\n
  576. X        items:"$PERMISSION_ITEMS"
  577. X
  578. X    cmw MENU_BUTTON menu_button caption $POPUP_UCA \\\n
  579. X        label:"Flat Menu Button:"
  580. X
  581. X    cmw MENU_BUTTON_ITEM menu_button_item menuButton $MENU_BUTTON \\\n
  582. X        buttonType:$BUTTON \\\n
  583. X        label:"Flat Menu Button"
  584. X
  585. X    cmw CA controlarea controlArea $MENU_BUTTON_ITEM_MP \\\n
  586. X        layoutType:fixedcols measure:1
  587. X
  588. X    cmw MENU_ITEM menu_items flatButtons $CA \\\n
  589. X        layoutType:fixedcols \\\n
  590. X        measure:1 \\\n
  591. X        numItems:3 \\\n
  592. X        numItemFields:1 \\\n
  593. X        itemFields:'{label}' \\\n
  594. X        items:"$MENU_ITEMS"
  595. X
  596. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  597. X        numItems:5 \\\n
  598. X        numItemFields:1 \\\n
  599. X        itemFields:'{label}' \\\n
  600. X        items:"$LOWER_ITEMS"
  601. X
  602. X    orh $POPUP "FlatButtons Source" -f `pwd`/Flatbuttons
  603. X
  604. X    pu $POPUP GrabNone
  605. }
  606. SHAR_EOF
  607. chmod 0644 Flatbuttons ||
  608. echo 'restore of Flatbuttons failed'
  609. Wc_c="`wc -c < 'Flatbuttons'`"
  610. test 1849 -eq "$Wc_c" ||
  611.     echo 'Flatbuttons: original size 1849, current size' "$Wc_c"
  612. fi
  613. # ============= Flatcheckbox ==============
  614. if test -f 'Flatcheckbox' -a X"$1" != X"-c"; then
  615.     echo 'x - skipping Flatcheckbox (File already exists)'
  616. else
  617. echo 'x - extracting Flatcheckbox (Text)'
  618. sed 's/^X//' << 'SHAR_EOF' > 'Flatcheckbox' &&
  619. Flatcheckbox()
  620. {
  621. X    RWXITEMS="{Read}, {Write}, {Execute}"
  622. X
  623. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  624. X        title:"FlatCheckBox"
  625. X
  626. X    acb $POPUP popdownCallback "dw $POPUP"
  627. X
  628. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  629. X        label:"FlatCheckBox:"
  630. X
  631. X    cmw FLATCBOX perrmission flatCheckBox $CAPTION \\\n
  632. X        numItems:3 \\\n
  633. X        numItemFields:1 \\\n
  634. X        itemFields:'{label}' \\\n
  635. X        items:"$RWXITEMS" 
  636. X
  637. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  638. X        numItems:1 \\\n
  639. X        numItemFields:1 \\\n
  640. X        itemFields:'{label}' \\\n
  641. X        items:'{Ok}' 
  642. X
  643. X    orh $POPUP "FlatCheckBox Source" -f `pwd`/Flatcheckbox
  644. X
  645. X    pu $POPUP GrabNone
  646. }
  647. SHAR_EOF
  648. chmod 0644 Flatcheckbox ||
  649. echo 'restore of Flatcheckbox failed'
  650. Wc_c="`wc -c < 'Flatcheckbox'`"
  651. test 596 -eq "$Wc_c" ||
  652.     echo 'Flatcheckbox: original size 596, current size' "$Wc_c"
  653. fi
  654. # ============= Flatexclusives ==============
  655. if test -f 'Flatexclusives' -a X"$1" != X"-c"; then
  656.     echo 'x - skipping Flatexclusives (File already exists)'
  657. else
  658. echo 'x - extracting Flatexclusives (Text)'
  659. sed 's/^X//' << 'SHAR_EOF' > 'Flatexclusives' &&
  660. Flatexclusives()
  661. {
  662. X    ONOFFITEMS="{On}, {Off}"
  663. X
  664. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  665. X        title:"FlatExclusives"
  666. X
  667. X    acb $POPUP popdownCallback "dw $POPUP"
  668. X
  669. X    cmw EXCLUSIVE exclusive caption $POPUP_UCA \\\n
  670. X        label:"FlatExclusive:"
  671. X
  672. X    cmw ONOFF onoff flatExclusives $EXCLUSIVE \\\n
  673. X        numItems:2 \\\n
  674. X        numItemFields:1 \\\n
  675. X        itemFields:'{label}' \\\n
  676. X        items:"$ONOFFITEMS" 
  677. X
  678. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  679. X        numItems:1 \\\n
  680. X        numItemFields:1 \\\n
  681. X        itemFields:'{label}' \\\n
  682. X        items:'{Ok}' 
  683. X
  684. X    orh $POPUP "FlatExclusives Source" -f `pwd`/Flatexclusives
  685. X
  686. X    pu $POPUP GrabNone
  687. }
  688. SHAR_EOF
  689. chmod 0644 Flatexclusives ||
  690. echo 'restore of Flatexclusives failed'
  691. Wc_c="`wc -c < 'Flatexclusives'`"
  692. test 593 -eq "$Wc_c" ||
  693.     echo 'Flatexclusives: original size 593, current size' "$Wc_c"
  694. fi
  695. # ============= Flatlist ==============
  696. if test -f 'Flatlist' -a X"$1" != X"-c"; then
  697.     echo 'x - skipping Flatlist (File already exists)'
  698. else
  699. echo 'x - extracting Flatlist (Text)'
  700. sed 's/^X//' << 'SHAR_EOF' > 'Flatlist' &&
  701. Flatlist()
  702. {
  703. X    COLOR_ITEMS="{Red}, {Green}, {Blue}, {Orange}, {Purple},
  704. X             {Pink}, {Black}, {White}"
  705. X
  706. X    cps POPUP popup popupWindowShell $PANE \\\n
  707. X        title:"WkshTree: FlatList"
  708. X
  709. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  710. X        label:"Flat List:"
  711. X
  712. X    cmw SW sw scrolledWindow $CAPTION \\\n
  713. X        forceVerticalSB:true
  714. X
  715. X    cmw FLIST flist flatList $SW \\\n
  716. X        exclusives:true \\\n
  717. X        viewHeight:4 \\\n
  718. X        numItems:8 \\\n
  719. X        numItemFields:1 \\\n
  720. X        itemFields:'{label}' \\\n
  721. X        items:"$COLOR_ITEMS"
  722. X
  723. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  724. X        numItems:1 \\\n
  725. X        numItemFields:1 \\\n
  726. X        itemFields:'{label}' \\\n
  727. X        items:'{Ok}'
  728. X
  729. X    orh $POPUP "FlatList Source" -f `pwd`/Flatlist
  730. X
  731. X    pu $POPUP GrabNone
  732. }
  733. SHAR_EOF
  734. chmod 0644 Flatlist ||
  735. echo 'restore of Flatlist failed'
  736. Wc_c="`wc -c < 'Flatlist'`"
  737. test 677 -eq "$Wc_c" ||
  738.     echo 'Flatlist: original size 677, current size' "$Wc_c"
  739. fi
  740. # ============= Flatnonexclusives ==============
  741. if test -f 'Flatnonexclusives' -a X"$1" != X"-c"; then
  742.     echo 'x - skipping Flatnonexclusives (File already exists)'
  743. else
  744. echo 'x - extracting Flatnonexclusives (Text)'
  745. sed 's/^X//' << 'SHAR_EOF' > 'Flatnonexclusives' &&
  746. Flatnonexclusives()
  747. {
  748. X    RWXITEMS="{Read}, {Write}, {Execute}"
  749. X
  750. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  751. X        title:"FlatNonexclusives" 
  752. X
  753. X    acb $POPUP popdownCallback "dw $POPUP"
  754. X
  755. X    cmw CAPTION lights caption $POPUP_UCA \\\n
  756. X        label:"FlatNonexclusive:"
  757. X
  758. X    cmw PERMS permission flatNonexclusives $CAPTION \\\n
  759. X        numItems:3 \\\n
  760. X        numItemFields:1 \\\n
  761. X        itemFields:'{label}' \\\n
  762. X        items:"$RWXITEMS" 
  763. X
  764. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  765. X        numItems:1 \\\n
  766. X        numItemFields:1 \\\n
  767. X        itemFields:'{label}' \\\n
  768. X        items:'{Ok}' 
  769. X
  770. X    orh $POPUP "FlatNonexclusives Source" -f `pwd`/Flatnonexclusives
  771. X
  772. X    pu $POPUP GrabNone
  773. }
  774. SHAR_EOF
  775. chmod 0644 Flatnonexclusives ||
  776. echo 'restore of Flatnonexclusives failed'
  777. Wc_c="`wc -c < 'Flatnonexclusives'`"
  778. test 621 -eq "$Wc_c" ||
  779.     echo 'Flatnonexclusives: original size 621, current size' "$Wc_c"
  780. fi
  781. # ============= Footer ==============
  782. if test -f 'Footer' -a X"$1" != X"-c"; then
  783.     echo 'x - skipping Footer (File already exists)'
  784. else
  785. echo 'x - extracting Footer (Text)'
  786. sed 's/^X//' << 'SHAR_EOF' > 'Footer' &&
  787. Footer()
  788. {
  789. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  790. X        resizeCorners:true \\\n
  791. X        title:"WkshTree: Footer"
  792. X
  793. X    acb $POPUP popdownCallback "dw $POPUP"
  794. X
  795. X    sv $POPUP_UCA width:295 
  796. X
  797. X    cmw FOOTER footer footer $POPUP_FP \\\n
  798. X        leftFoot:"Left footer message" \\\n
  799. X        leftWeight:1 \\\n
  800. X        rightFoot:"Right footer message" \\\n
  801. X        rightWeight:1
  802. X    
  803. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  804. X        numItems:1 \\\n
  805. X        numItemFields:1 \\\n
  806. X        itemFields:'{label}' \\\n
  807. X        items:'{Ok}' 
  808. X
  809. X    orh $POPUP "Footer Source" -f `pwd`/Footer
  810. X
  811. X    pu $POPUP GrabNone
  812. }
  813. SHAR_EOF
  814. chmod 0644 Footer ||
  815. echo 'restore of Footer failed'
  816. Wc_c="`wc -c < 'Footer'`"
  817. test 538 -eq "$Wc_c" ||
  818.     echo 'Footer: original size 538, current size' "$Wc_c"
  819. fi
  820. # ============= Footerpanel ==============
  821. if test -f 'Footerpanel' -a X"$1" != X"-c"; then
  822.     echo 'x - skipping Footerpanel (File already exists)'
  823. else
  824. echo 'x - extracting Footerpanel (Text)'
  825. sed 's/^X//' << 'SHAR_EOF' > 'Footerpanel' &&
  826. Footerpanel()
  827. {
  828. X    cps FOOTERPOPUP Footerpanel transientShell $PANE \\\n
  829. X        title:"WkshTree: FooterPanel" 
  830. X
  831. X    cmw FOOTERPANEL footerpanel footerPanel $FOOTERPOPUP
  832. X
  833. X    cmw OK Ok flatButtons $FOOTERPANEL \\\n
  834. X        gravity:center \\\n
  835. X        numItems:1 \\\n
  836. X        numItemFields:1 \\\n
  837. X        itemFields:'{label}' \\\n
  838. X        items:'{Ok}' 
  839. X
  840. X    sv $OK selectProc:"PopdownCB $FOOTERPOPUP"
  841. X
  842. X    cmw FOOTER footer footer $FOOTERPANEL \\\n
  843. X        leftFoot:"Left Message" \\\n
  844. X        rightFoot:"Right Message"
  845. X
  846. X    orh $FOOTERPOPUP "FooterPanel Source" -f `pwd`/Footerpanel
  847. X
  848. X    pu $FOOTERPOPUP GrabNone
  849. }
  850. SHAR_EOF
  851. chmod 0644 Footerpanel ||
  852. echo 'restore of Footerpanel failed'
  853. Wc_c="`wc -c < 'Footerpanel'`"
  854. test 547 -eq "$Wc_c" ||
  855.     echo 'Footerpanel: original size 547, current size' "$Wc_c"
  856. fi
  857. # ============= Form ==============
  858. if test -f 'Form' -a X"$1" != X"-c"; then
  859.     echo 'x - skipping Form (File already exists)'
  860. else
  861. echo 'x - extracting Form (Text)'
  862. sed 's/^X//' << 'SHAR_EOF' > 'Form' &&
  863. Form()
  864. {
  865. X    cps POPFORM transientShell transientShell $PANE \\\n
  866. X        title:"WkshTree: Form" 
  867. X
  868. X    cmw CAPTION caption caption $POPFORM \\\n
  869. X        label:"Form:" \\\n
  870. X        position:top \\\n
  871. X        alignment:left 
  872. X
  873. X    cmw FORM form form $CAPTION \\\n
  874. X        width:150 \\\n
  875. X        height:150 \\\n
  876. X        shadowThickness:0
  877. X
  878. X    cmw ATTACHLEFT AttachLeft staticText $FORM \\\n
  879. X        string:"Attach Left" \\\n
  880. X        yOffset:50
  881. X
  882. X    cmw ATTACHTOP AttachTop staticText $FORM \\\n
  883. X        string:"Attach Top" \\\n
  884. X        xRefName:AttachLeft \\\n
  885. X        xAddWidth:true
  886. X
  887. X    cmw ATTACHRIGHT AttachRight staticText $FORM \\\n
  888. X        string:"Attach Right" \\\n
  889. X        xAttachRight:true \\\n
  890. X        xAddWidth:true \\\n
  891. X        xVaryOffset:true \\\n
  892. X        yOffset:50 \\\n
  893. X        xRefName:AttachTop
  894. X
  895. X    cmw OK Ok oblongButton $FORM \\\n
  896. X        buttonType:$BUTTON \\\n
  897. X        yAttachBottom:true \\\n
  898. X        yRefName:AttachTop \\\n
  899. X        yAddHeight:true \\\n
  900. X        yVaryOffset:true \\\n
  901. X        xOffset:85
  902. X
  903. X    sv $OK select:"PopdownCB $POPFORM"
  904. X
  905. X    orh $POPFORM "Form Source" -f `pwd`/Form
  906. X
  907. X    pu $POPFORM GrabNone
  908. }
  909. SHAR_EOF
  910. chmod 0644 Form ||
  911. echo 'restore of Form failed'
  912. Wc_c="`wc -c < 'Form'`"
  913. test 962 -eq "$Wc_c" ||
  914.     echo 'Form: original size 962, current size' "$Wc_c"
  915. fi
  916. # ============= Gauge ==============
  917. if test -f 'Gauge' -a X"$1" != X"-c"; then
  918.     echo 'x - skipping Gauge (File already exists)'
  919. else
  920. echo 'x - extracting Gauge (Text)'
  921. sed 's/^X//' << 'SHAR_EOF' > 'Gauge' &&
  922. Gauge()
  923. {
  924. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  925. X        title:"Gauge" 
  926. X
  927. X    acb $POPUP popdownCallback "dw $POPUP"
  928. X
  929. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  930. X        label:"Gauge:" \\\n
  931. X        font:OlDefaultBoldFont \\\n
  932. X        position:left
  933. X
  934. X    cmw GAUGE gauge gauge $CAPTION \\\n
  935. X        span:100 \\\n
  936. X        sliderValue:33 \\\n
  937. X        minLabel:"0" \\\n
  938. X        maxLabel:"100" \\\n
  939. X        ticks:10 \\\n
  940. X        tickUnit:percent \\\n
  941. X        showValue:true
  942. X
  943. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  944. X        numItems:1 \\\n
  945. X        numItemFields:1 \\\n
  946. X        itemFields:'{label}' \\\n
  947. X        items:'{Ok}' 
  948. X
  949. X    orh $POPUP "Gauge Source" -f `pwd`/Gauge
  950. X
  951. X    pu $POPUP GrabNone
  952. }
  953. SHAR_EOF
  954. chmod 0644 Gauge ||
  955. echo 'restore of Gauge failed'
  956. Wc_c="`wc -c < 'Gauge'`"
  957. test 604 -eq "$Wc_c" ||
  958.     echo 'Gauge: original size 604, current size' "$Wc_c"
  959. fi
  960. # ============= Guage ==============
  961. if test -f 'Guage' -a X"$1" != X"-c"; then
  962.     echo 'x - skipping Guage (File already exists)'
  963. else
  964. echo 'x - extracting Guage (Text)'
  965. sed 's/^X//' << 'SHAR_EOF' > 'Guage' &&
  966. Gauge()
  967. {
  968. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  969. X        title:"Gauge" 
  970. X
  971. X    acb $POPUP popdownCallback "dw $POPUP"
  972. X
  973. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  974. X        label:"Gauge:" \\\n
  975. X        font:OlDefaultBoldFont \\\n
  976. X        position:left
  977. X
  978. X    cmw GAUGE gauge gauge $CAPTION \\\n
  979. X        span:100 \\\n
  980. X        sliderValue:33 \\\n
  981. X        minLabel:"0" \\\n
  982. X        maxLabel:"100" \\\n
  983. X        ticks:10 \\\n
  984. X        tickUnit:percent \\\n
  985. X        showValue:true
  986. X
  987. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  988. X        numItems:1 \\\n
  989. X        numItemFields:1 \\\n
  990. X        itemFields:'{label}' \\\n
  991. X        items:'{Ok}' 
  992. X
  993. X    orh $POPUP "Gauge Source" -f `pwd`/Gauge
  994. X
  995. X    pu $POPUP GrabNone
  996. }
  997. SHAR_EOF
  998. chmod 0644 Guage ||
  999. echo 'restore of Guage failed'
  1000. Wc_c="`wc -c < 'Guage'`"
  1001. test 604 -eq "$Wc_c" ||
  1002.     echo 'Guage: original size 604, current size' "$Wc_c"
  1003. fi
  1004. # ============= Help ==============
  1005. if test -f 'Help' -a X"$1" != X"-c"; then
  1006.     echo 'x - skipping Help (File already exists)'
  1007. else
  1008. echo 'x - extracting Help (Text)'
  1009. sed 's/^X//' << 'SHAR_EOF' > 'Help' &&
  1010. Help()
  1011. {
  1012. X    cps POPUP help popupWindowShell $PANE \\\n
  1013. X        title:"WkshTree: Help"
  1014. X
  1015. X    acb $POPUP popdownCallback "dw $POPUP"
  1016. X
  1017. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  1018. X        font:OlDefaultBoldFont \\\n
  1019. X        label:"Help:" 
  1020. X
  1021. X    cmw TEXT statictext staticText $CAPTION \\\n
  1022. X        string:"The Help Widget is not explicitly created and manipulated by an application. The OlRegisterHelp function is used in an application to register a help file, a help string, or a help function that is displayed when the user presses the Hel key (F1).  The Help widget is a shell that contains a magnifying glass to indicate the context, and a TextEdit widget to display the help message. \n\nPosition the curser here and press F1 for help." \\\n
  1023. X        alignment:left \\\n
  1024. X        width:350 \\\n
  1025. X        recomputeSize:false
  1026. X
  1027. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  1028. X        numItems:1 \\\n
  1029. X        numItemFields:1 \\\n
  1030. X        itemFields:'{label}' \\\n
  1031. X        items:'{Ok}' 
  1032. X        
  1033. X    orh $POPUP "Help Source" -f `pwd`/Help
  1034. X
  1035. X    pu $POPUP GrabNone
  1036. }
  1037. SHAR_EOF
  1038. chmod 0644 Help ||
  1039. echo 'restore of Help failed'
  1040. Wc_c="`wc -c < 'Help'`"
  1041. test 964 -eq "$Wc_c" ||
  1042.     echo 'Help: original size 964, current size' "$Wc_c"
  1043. fi
  1044. # ============= Integerfield ==============
  1045. if test -f 'Integerfield' -a X"$1" != X"-c"; then
  1046.     echo 'x - skipping Integerfield (File already exists)'
  1047. else
  1048. echo 'x - extracting Integerfield (Text)'
  1049. sed 's/^X//' << 'SHAR_EOF' > 'Integerfield' &&
  1050. Integerfield()
  1051. {
  1052. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1053. X        title:"IntegerField"
  1054. X
  1055. X    acb $POPUP popdownCallback "dw $POPUP"
  1056. X
  1057. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  1058. X        label:"IntegerField:" \\\n
  1059. X        font:OlDefaultBoldFont \\\n
  1060. X        position:left
  1061. X
  1062. X    cmw INTFIELD integerField integerField $CAPTION \\\n
  1063. X        value:10 \\\n
  1064. X        charsVisible:3
  1065. X
  1066. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  1067. X        numItems:1 \\\n
  1068. X        numItemFields:1 \\\n
  1069. X        itemFields:'{label}' \\\n
  1070. X        items:'{Ok}' 
  1071. X
  1072. X    sv $OK selectProc:"PopdownCB $POPUP"
  1073. X
  1074. X    orh $POPUP "IntegerField Source" -f `pwd`/Integerfield
  1075. X
  1076. X    pu $POPUP GrabNone
  1077. }    
  1078. SHAR_EOF
  1079. chmod 0644 Integerfield ||
  1080. echo 'restore of Integerfield failed'
  1081. Wc_c="`wc -c < 'Integerfield'`"
  1082. test 591 -eq "$Wc_c" ||
  1083.     echo 'Integerfield: original size 591, current size' "$Wc_c"
  1084. fi
  1085. # ============= MenuShell ==============
  1086. if test -f 'MenuShell' -a X"$1" != X"-c"; then
  1087.     echo 'x - skipping MenuShell (File already exists)'
  1088. else
  1089. echo 'x - extracting MenuShell (Text)'
  1090. sed 's/^X//' << 'SHAR_EOF' > 'MenuShell' &&
  1091. # Create menuShell from button pressed by user
  1092. MenuShell()
  1093. {
  1094. X    cps POPUP "WkshTree:Menu" popupWindowShell $PANE \\\n
  1095. X        maxHeight:100 maxWidth:200
  1096. X
  1097. X    acb $POPUP popdownCallback "PopdownCB $POPUP"
  1098. X
  1099. X    cps MENUSHELLPOP "Menu" menuShell $POPUP_UCA \\\n
  1100. X        pushpin:out
  1101. X    cmw TMP ca controlArea $MENUSHELLPOP_MP \\\n
  1102. X        layoutType:fixedcols measure:1
  1103. X
  1104. X    cmw SAVE Save... oblongButton $TMP \\\n
  1105. X        buttonType:$BUTTON
  1106. X    cmw OPEN Open... oblongButton $TMP \\\n
  1107. X        buttonType:$BUTTON
  1108. X    cmw PROP Properties... oblongButton $TMP \\\n
  1109. X        buttonType:$BUTTON
  1110. X    cmw EXIT Exit... oblongButton $TMP \\\n
  1111. X        buttonType:$BUTTON
  1112. X
  1113. X    cmw STRING text staticText $POPUP_UCA \\\n
  1114. X        string:"MenuShell: Press MenuButton for menu"
  1115. X
  1116. X    addbuttons $POPUP_LCA \\\n
  1117. X         Ok    " "
  1118. X
  1119. X    pu $POPUP GrabNone
  1120. }
  1121. SHAR_EOF
  1122. chmod 0644 MenuShell ||
  1123. echo 'restore of MenuShell failed'
  1124. Wc_c="`wc -c < 'MenuShell'`"
  1125. test 748 -eq "$Wc_c" ||
  1126.     echo 'MenuShell: original size 748, current size' "$Wc_c"
  1127. fi
  1128. # ============= Menubutton ==============
  1129. if test -f 'Menubutton' -a X"$1" != X"-c"; then
  1130.     echo 'x - skipping Menubutton (File already exists)'
  1131. else
  1132. echo 'x - extracting Menubutton (Text)'
  1133. sed 's/^X//' << 'SHAR_EOF' > 'Menubutton' &&
  1134. Menubutton()
  1135. {
  1136. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1137. X        title:"MenuButton"
  1138. X
  1139. X    acb $POPUP popdownCallback "dw $POPUP"
  1140. X
  1141. X    cmw MENUBUTTON menuButton menuButton $POPUP_UCA \\\n
  1142. X        label:"Menu Button Widget" 
  1143. X
  1144. X    cmw OPEN Open... oblongButton $MENUBUTTON_MP \\\n
  1145. X        buttonType:$BUTTON
  1146. X
  1147. X    cmw SAVE Save... oblongButton $MENUBUTTON_MP \\\n
  1148. X        buttonType:$BUTTON
  1149. X
  1150. X    cmw EXIT Exit oblongButton $MENUBUTTON_MP \\\n
  1151. X        buttonType:$BUTTON
  1152. X
  1153. X    cmw OK Ok oblongButton $POPUP_LCA \\\n
  1154. X        buttonType:$BUTTON
  1155. X
  1156. X    orh $POPUP "MenuButton Source" -f `pwd`/Menubutton
  1157. X
  1158. X    pu $POPUP GrabNone
  1159. }
  1160. SHAR_EOF
  1161. chmod 0644 Menubutton ||
  1162. echo 'restore of Menubutton failed'
  1163. Wc_c="`wc -c < 'Menubutton'`"
  1164. test 572 -eq "$Wc_c" ||
  1165.     echo 'Menubutton: original size 572, current size' "$Wc_c"
  1166. fi
  1167. # ============= Menubuttongadget ==============
  1168. if test -f 'Menubuttongadget' -a X"$1" != X"-c"; then
  1169.     echo 'x - skipping Menubuttongadget (File already exists)'
  1170. else
  1171. echo 'x - extracting Menubuttongadget (Text)'
  1172. sed 's/^X//' << 'SHAR_EOF' > 'Menubuttongadget' &&
  1173. Menubuttongadget()
  1174. {
  1175. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1176. X        title:"Menu Button Gadget" 
  1177. X    
  1178. X    acb $POPUP popdownCallback "dw $POPUP"
  1179. X
  1180. X    cmw MENUGADGET menuGadget menuButtonGadget $POPUP_UCA \\\n
  1181. X        label:"Menu Button Gadget"
  1182. X
  1183. X    cmw OPEN Open... oblongButtonGadget $MENUGADGET_MP
  1184. X    
  1185. X    cmw SAVE Save... oblongButtonGadget $MENUGADGET_MP
  1186. X
  1187. X    cmw EXIT Exit oblongButtonGadget $MENUGADGET_MP
  1188. X
  1189. X    cmw OK Ok oblongButtonGadget $POPUP_LCA
  1190. X
  1191. X    orh $POPUP "MenuButtonGadget Source" -f `pwd`/Menubuttongadget
  1192. X
  1193. X    pu $POPUP GrabNone
  1194. }    
  1195. SHAR_EOF
  1196. chmod 0644 Menubuttongadget ||
  1197. echo 'restore of Menubuttongadget failed'
  1198. Wc_c="`wc -c < 'Menubuttongadget'`"
  1199. test 527 -eq "$Wc_c" ||
  1200.     echo 'Menubuttongadget: original size 527, current size' "$Wc_c"
  1201. fi
  1202. # ============= Modalshell ==============
  1203. if test -f 'Modalshell' -a X"$1" != X"-c"; then
  1204.     echo 'x - skipping Modalshell (File already exists)'
  1205. else
  1206. echo 'x - extracting Modalshell (Text)'
  1207. sed 's/^X//' << 'SHAR_EOF' > 'Modalshell' &&
  1208. Modalshell()
  1209. {
  1210. X    cps POPUP modalshell modalShell $PANE \\\n
  1211. X        emanateWidget:$PANE 
  1212. X
  1213. X    acb $POPUP popdownCallback "pd $POPUP"
  1214. X
  1215. X    cmw TEXT staticText staticText $POPUP \\\n
  1216. X        string:"Error: ModalShell displays modal messages" \\\n
  1217. X        gravity:center
  1218. X
  1219. X    cmw OK Ok flatButtons $POPUP \\\n
  1220. X        numItems:1 \\\n
  1221. X        numItemFields:1 \\\n
  1222. X        itemFields:'{label}' \\\n
  1223. X        items:'{Ok}' 
  1224. X
  1225. X    sv $OK selectProc:"PopdownCB $POPUP"
  1226. X
  1227. X    pu $POPUP GrabExclusive
  1228. }
  1229. SHAR_EOF
  1230. chmod 0644 Modalshell ||
  1231. echo 'restore of Modalshell failed'
  1232. Wc_c="`wc -c < 'Modalshell'`"
  1233. test 431 -eq "$Wc_c" ||
  1234.     echo 'Modalshell: original size 431, current size' "$Wc_c"
  1235. fi
  1236. # ============= Nonexclusives ==============
  1237. if test -f 'Nonexclusives' -a X"$1" != X"-c"; then
  1238.     echo 'x - skipping Nonexclusives (File already exists)'
  1239. else
  1240. echo 'x - extracting Nonexclusives (Text)'
  1241. sed 's/^X//' << 'SHAR_EOF' > 'Nonexclusives' &&
  1242. Nonexclusives()
  1243. {
  1244. X    cps NONEXCPOPUP Nonexclusives popupWindowShell $PANE \\\n
  1245. X        title:"FlatNonexclusives" 
  1246. X
  1247. X    acb $NONEXCPOPUP popdownCallback "dw $NONEXCPOPUP"
  1248. X
  1249. X    cmw CAPTION caption caption $NONEXCPOPUP_UCA \\\n
  1250. X        label:"Nonexclusives"
  1251. X
  1252. X    cmw NEXC nonexclusives nonexclusives $CAPTION
  1253. X
  1254. X    cmw RED Red rectButton $NEXC 
  1255. X
  1256. X    cmw GREEN Green rectButton $NEXC 
  1257. X
  1258. X    cmw BLUE Blue rectButton $NEXC
  1259. X
  1260. X    cmw OK Ok oblongButton $NONEXCPOPUP_LCA \\\n
  1261. X        buttonType:$BUTTON
  1262. X
  1263. X    orh $NONEXCPOPUP "Nonexclusives Source" -f `pwd`/Nonexclusives
  1264. X
  1265. X    pu $NONEXCPOPUP GrabNone
  1266. }
  1267. SHAR_EOF
  1268. chmod 0644 Nonexclusives ||
  1269. echo 'restore of Nonexclusives failed'
  1270. Wc_c="`wc -c < 'Nonexclusives'`"
  1271. test 546 -eq "$Wc_c" ||
  1272.     echo 'Nonexclusives: original size 546, current size' "$Wc_c"
  1273. fi
  1274. # ============= Noticeshell ==============
  1275. if test -f 'Noticeshell' -a X"$1" != X"-c"; then
  1276.     echo 'x - skipping Noticeshell (File already exists)'
  1277. else
  1278. echo 'x - extracting Noticeshell (Text)'
  1279. sed 's/^X//' << 'SHAR_EOF' > 'Noticeshell' &&
  1280. NoticeShell()
  1281. {
  1282. X    cps NOTICE notice noticeShell $PANE \\\n
  1283. X        title:"Information Dialog" \\\n
  1284. X        noticeType:information \\\n
  1285. X        emanateWidget:$PANE
  1286. X
  1287. X    acb $NOTICE popdownCallback "dw $NOTICE"
  1288. X
  1289. X    sv $NOTICE_TA string:"Information: NoticeShell displays messages" 
  1290. X
  1291. X    cmw OK Ok flatButtons $NOTICE_CA \\\n
  1292. X        numItems:1 \\\n
  1293. X        numItemFields:2 \\\n
  1294. X        itemFields:'{label}' \\\n
  1295. X        items:'{Ok}'
  1296. X
  1297. X    orh $NOTICE "NoticeShell Source" -f `pwd`/Noticeshell
  1298. X
  1299. X    pu $NOTICE GrabExclusive
  1300. X    
  1301. }
  1302. SHAR_EOF
  1303. chmod 0644 Noticeshell ||
  1304. echo 'restore of Noticeshell failed'
  1305. Wc_c="`wc -c < 'Noticeshell'`"
  1306. test 467 -eq "$Wc_c" ||
  1307.     echo 'Noticeshell: original size 467, current size' "$Wc_c"
  1308. fi
  1309. # ============= Oblongbutton ==============
  1310. if test -f 'Oblongbutton' -a X"$1" != X"-c"; then
  1311.     echo 'x - skipping Oblongbutton (File already exists)'
  1312. else
  1313. echo 'x - extracting Oblongbutton (Text)'
  1314. sed 's/^X//' << 'SHAR_EOF' > 'Oblongbutton' &&
  1315. Oblongbutton()
  1316. {
  1317. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1318. X        title:"Oblongbutton"
  1319. X
  1320. X    acb $POPUP popdownCallback "dw $POPUP"
  1321. X
  1322. X    cmw OBW "Oblong Button Widget" oblongButton $POPUP_LCA \\\n
  1323. X        buttonType:$BUTTON \\\n
  1324. X        accelerator:"Ctrl<z>"
  1325. X
  1326. X    orh $POPUP "Oblongbutton Source" -f `pwd`/Oblongbutton
  1327. X
  1328. X    pu $POPUP GrabNone
  1329. }
  1330. SHAR_EOF
  1331. chmod 0644 Oblongbutton ||
  1332. echo 'restore of Oblongbutton failed'
  1333. Wc_c="`wc -c < 'Oblongbutton'`"
  1334. test 329 -eq "$Wc_c" ||
  1335.     echo 'Oblongbutton: original size 329, current size' "$Wc_c"
  1336. fi
  1337. # ============= Oblongbuttongadget ==============
  1338. if test -f 'Oblongbuttongadget' -a X"$1" != X"-c"; then
  1339.     echo 'x - skipping Oblongbuttongadget (File already exists)'
  1340. else
  1341. echo 'x - extracting Oblongbuttongadget (Text)'
  1342. sed 's/^X//' << 'SHAR_EOF' > 'Oblongbuttongadget' &&
  1343. Oblongbuttongadget()
  1344. {
  1345. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1346. X        title:"OblongButtonGadget"
  1347. X
  1348. X    acb $POPUP popdownCallback "dw $POPUP"
  1349. X
  1350. X    cmw OBG oblongButtongadget oblongButtonGadget $POPUP_LCA \\\n
  1351. X        label:"Oblong Button Gadget"
  1352. X
  1353. X    orh $POPUP "OblongButtonGadget Source" -f `pwd`/Oblongbuttongadget
  1354. X
  1355. X    pu $POPUP GrabNone
  1356. }
  1357. SHAR_EOF
  1358. chmod 0644 Oblongbuttongadget ||
  1359. echo 'restore of Oblongbuttongadget failed'
  1360. Wc_c="`wc -c < 'Oblongbuttongadget'`"
  1361. test 336 -eq "$Wc_c" ||
  1362.     echo 'Oblongbuttongadget: original size 336, current size' "$Wc_c"
  1363. fi
  1364. # ============= Panes ==============
  1365. if test -f 'Panes' -a X"$1" != X"-c"; then
  1366.     echo 'x - skipping Panes (File already exists)'
  1367. else
  1368. echo 'x - extracting Panes (Text)'
  1369. sed 's/^X//' << 'SHAR_EOF' > 'Panes' &&
  1370. Panes()
  1371. {
  1372. X    cps POPUP transientShell transientShell $PANE \\\n
  1373. X        title:"WkshTree: Panes" 
  1374. X
  1375. X    cmw CAPTION caption caption $POPUP \\\n
  1376. X        label:"Panes:" \\\n
  1377. X        font:OlDefaultBoldFont \\\n
  1378. X        position:top \\\n
  1379. X        alignment:left
  1380. X
  1381. X    cmw PANES panes panes $CAPTION 
  1382. X
  1383. X    cmw PANE_0 pane_0 $TYPEBUTTON $PANES \\\n
  1384. X        buttonType:$BUTTON \\\n
  1385. X        weight:0
  1386. X
  1387. X    cmw PANE_1 pane_1 $TYPEBUTTON $PANES \\\n
  1388. X        buttonType:$BUTTON \\\n
  1389. X        weight:1 \\\n
  1390. X        refName:"pane_0" \\\n
  1391. X        refPosition:bottom 
  1392. X
  1393. X    cmw PANE_2 pane_2 $TYPEBUTTON $PANES \\\n
  1394. X        buttonType:$BUTTON \\\n
  1395. X        weight:2 \\\n
  1396. X        refName:"pane_1" \\\n
  1397. X        refPosition:right
  1398. X
  1399. X    cmw PANE_3 pane_3 $TYPEBUTTON $PANES \\\n
  1400. X        buttonType:$BUTTON \\\n
  1401. X        weight:2 \\\n
  1402. X        refName:"pane_2" \\\n
  1403. X        refPosition:bottom
  1404. X
  1405. X    cmw OK Ok flatButtons $PANES \\\n
  1406. X        numItems:1 \\\n
  1407. X        numItemFields:1 \\\n
  1408. X        itemFields:'{label}' \\\n
  1409. X        items:'{Ok}' \\\n
  1410. X        gravity:center
  1411. X
  1412. X    acb $PANE_0 select "ButtonCB $PANE_0"
  1413. X    acb $PANE_1 select "ButtonCB $PANE_1"
  1414. X    acb $PANE_2 select "ButtonCB $PANE_2"
  1415. X    acb $PANE_3 select "ButtonCB $PANE_3"
  1416. X
  1417. X    sv $OK selectProc:"PopdownCB $POPUP"
  1418. X
  1419. X    orh $POPUP "Panes Source" -f `pwd`/Panes
  1420. X
  1421. X    pu $POPUP GrabNone
  1422. }
  1423. SHAR_EOF
  1424. chmod 0644 Panes ||
  1425. echo 'restore of Panes failed'
  1426. Wc_c="`wc -c < 'Panes'`"
  1427. test 1132 -eq "$Wc_c" ||
  1428.     echo 'Panes: original size 1132, current size' "$Wc_c"
  1429. fi
  1430. # ============= Popupmenushell ==============
  1431. if test -f 'Popupmenushell' -a X"$1" != X"-c"; then
  1432.     echo 'x - skipping Popupmenushell (File already exists)'
  1433. else
  1434. echo 'x - extracting Popupmenushell (Text)'
  1435. sed 's/^X//' << 'SHAR_EOF' > 'Popupmenushell' &&
  1436. PopupMenuShell()
  1437. {
  1438. X    cps POP PopupMenu popupWindowShell $PANE 
  1439. X
  1440. X    acb $POP popdownCallback "dw $POP"
  1441. X
  1442. X    cmw POPCAP PopupMenu caption $POP_UCA \\\n
  1443. X        font:OlDefaultBoldFont \\\n
  1444. X        label:"PopupMenu:"
  1445. X    cmw TEXT text staticText $POPCAP \\\n
  1446. X        string:"Press MenuButton for menu"
  1447. X
  1448. X    cps PMS PopupMenu popupMenuShell $POP \\\n
  1449. X        ancestorSensitive:true \\\n
  1450. X        title:"PopupMenu" 
  1451. X
  1452. X    cmw SAVE Save... oblongButton $PMS \\\n
  1453. X        buttonType:$BUTTON
  1454. X    cmw OPEN Open... oblongButton $PMS \\\n
  1455. X        buttonType:$BUTTON
  1456. X    cmw PROP Properties... oblongButton $PMS \\\n
  1457. X        buttonType:$BUTTON
  1458. X    cmw EXIT Exit oblongButton $PMS \\\n
  1459. X        buttonType:$BUTTON \\\n
  1460. X        select:"pd $PMS"
  1461. X    addbuttons $POP_LCA \\\n
  1462. X        OK    " "
  1463. X
  1464. X    orh $POP "PopupMenuShell Source" -f `pwd`/Popupmenushell
  1465. X
  1466. X    pu $POP GrabNone
  1467. }
  1468. SHAR_EOF
  1469. chmod 0644 Popupmenushell ||
  1470. echo 'restore of Popupmenushell failed'
  1471. Wc_c="`wc -c < 'Popupmenushell'`"
  1472. test 758 -eq "$Wc_c" ||
  1473.     echo 'Popupmenushell: original size 758, current size' "$Wc_c"
  1474. fi
  1475. # ============= Popupwindowshell ==============
  1476. if test -f 'Popupwindowshell' -a X"$1" != X"-c"; then
  1477.     echo 'x - skipping Popupwindowshell (File already exists)'
  1478. else
  1479. echo 'x - extracting Popupwindowshell (Text)'
  1480. sed 's/^X//' << 'SHAR_EOF' > 'Popupwindowshell' &&
  1481. PopupWindowShell()
  1482. {
  1483. X    cps POP PopupWindowShell popupWindowShell $PANE \\\n
  1484. X        title:"PopupWindowShell"  \\\n
  1485. X        apply:" " \\\n
  1486. X        reset:" " \\\n
  1487. X        resetFactory:" " \\\n
  1488. X        setDefaults:" "
  1489. X
  1490. X    acb $POP popdownCallback "dw $POP"
  1491. X
  1492. X    cmw CAP1 caption caption $POP_UCA \\\n
  1493. X        label:"Bell:"
  1494. X
  1495. X    cmw CAP1BUT buttons flatButtons $CAP1 \\\n
  1496. X        buttonType:rectbtn exclusives:true \\\n
  1497. X        numItems:2 itemFields:'{label}' \\\n
  1498. X        items:'{On}, {Off}'
  1499. X        
  1500. X    cmw CAP2 size caption $POP_UCA \\\n
  1501. X        label:"Point Size:"
  1502. X
  1503. X    cmw CAP2BUT buttons flatButtons $CAP2 \\\n
  1504. X        buttonType:rectbtn exclusives:true \\\n
  1505. X        numItems:7 itemFields:'{label}' \\\n
  1506. X        items:'{6}, {8}, {10}, {12}, {14}, {18}, {24}'
  1507. X
  1508. X    cmw FOOT footer footer $POP_FP \\\n
  1509. X        leftFoot:"Left" rightFoot:"Right"
  1510. X
  1511. X    orh $POP "PopupWindowShell Source" -f `pwd`/Popupwindowshell
  1512. X
  1513. X    pu $POP GrabNone
  1514. }
  1515. SHAR_EOF
  1516. chmod 0644 Popupwindowshell ||
  1517. echo 'restore of Popupwindowshell failed'
  1518. Wc_c="`wc -c < 'Popupwindowshell'`"
  1519. test 821 -eq "$Wc_c" ||
  1520.     echo 'Popupwindowshell: original size 821, current size' "$Wc_c"
  1521. fi
  1522. # ============= Rectbutton ==============
  1523. if test -f 'Rectbutton' -a X"$1" != X"-c"; then
  1524.     echo 'x - skipping Rectbutton (File already exists)'
  1525. else
  1526. echo 'x - extracting Rectbutton (Text)'
  1527. sed 's/^X//' << 'SHAR_EOF' > 'Rectbutton' &&
  1528. Rectbutton()
  1529. {
  1530. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1531. X        title:"RectButton"
  1532. X
  1533. X    acb $POPUP popdownCallback "dw $POPUP"
  1534. X
  1535. X    cmw RECTB "Rect Button Widget" rectButton $POPUP_UCA 
  1536. X
  1537. X    cmw OK Ok oblongButton $POPUP_LCA \\\n
  1538. X        buttonType:$BUTTON
  1539. X
  1540. X    orh $POPUP "RectButton Source" -f `pwd`/Rectbutton
  1541. X
  1542. X    pu $POPUP GrabNone
  1543. }
  1544. SHAR_EOF
  1545. chmod 0644 Rectbutton ||
  1546. echo 'restore of Rectbutton failed'
  1547. Wc_c="`wc -c < 'Rectbutton'`"
  1548. test 327 -eq "$Wc_c" ||
  1549.     echo 'Rectbutton: original size 327, current size' "$Wc_c"
  1550. fi
  1551. # ============= Rubbertile ==============
  1552. if test -f 'Rubbertile' -a X"$1" != X"-c"; then
  1553.     echo 'x - skipping Rubbertile (File already exists)'
  1554. else
  1555. echo 'x - extracting Rubbertile (Text)'
  1556. sed 's/^X//' << 'SHAR_EOF' > 'Rubbertile' &&
  1557. Rubbertile()
  1558. {
  1559. X    cps POPUP transientShell transientShell $PANE \\\n
  1560. X        title:"WkshTree: RubberTile" \\\n
  1561. X        sensitive:true
  1562. X
  1563. X    cmw CAPTION caption caption $POPUP \\\n
  1564. X        label:"RubberTile:" \\\n
  1565. X        font:OlDefaultBoldFont \\\n
  1566. X        position:top \\\n
  1567. X        alignment:left
  1568. X
  1569. X    cmw RUBBERTILE rubberTile rubberTile $CAPTION \\\n
  1570. X        orientation:vertical
  1571. X
  1572. X    cmw WEIGHT_0 weight_0 $TYPEBUTTON $RUBBERTILE \\\n
  1573. X        buttonType:$BUTTON \\\n
  1574. X        weight:0
  1575. X
  1576. X    cmw WEIGHT_1 weight_1 $TYPEBUTTON $RUBBERTILE \\\n
  1577. X        buttonType:$BUTTON \\\n
  1578. X        weight:1
  1579. X
  1580. X    cmw WEIGHT_2 weight_2 $TYPEBUTTON $RUBBERTILE \\\n
  1581. X        buttonType:$BUTTON \\\n
  1582. X        weight:2
  1583. X
  1584. X    cmw RUBBERTILE2 rubberTile2 rubberTile $RUBBERTILE \\\n
  1585. X        weight:0 \\\n
  1586. X        orientation:horizontal \\\n
  1587. X        shadowThickness:0
  1588. X    
  1589. X    cmw OK Ok flatButtons $RUBBERTILE2 \\\n
  1590. X        numItems:1 \\\n
  1591. X        numItemFields:1 \\\n
  1592. X        itemFields:'{label}' \\\n
  1593. X        items:'{Ok}' \\\n
  1594. X        weight:0
  1595. X
  1596. X    acb $WEIGHT_0 select "ButtonCB $WEIGHT_0"
  1597. X    acb $WEIGHT_1 select "ButtonCB $WEIGHT_1"
  1598. X    acb $WEIGHT_2 select "ButtonCB $WEIGHT_2"
  1599. X
  1600. X    sv $OK selectProc:"PopdownCB $POPUP"
  1601. X
  1602. X    orh $POPUP "RubberTile Source" -f `pwd`/Rubbertile
  1603. X
  1604. X    pu $POPUP GrabNone
  1605. }
  1606. SHAR_EOF
  1607. chmod 0644 Rubbertile ||
  1608. echo 'restore of Rubbertile failed'
  1609. Wc_c="`wc -c < 'Rubbertile'`"
  1610. test 1114 -eq "$Wc_c" ||
  1611.     echo 'Rubbertile: original size 1114, current size' "$Wc_c"
  1612. fi
  1613. # ============= Scrollbar ==============
  1614. if test -f 'Scrollbar' -a X"$1" != X"-c"; then
  1615.     echo 'x - skipping Scrollbar (File already exists)'
  1616. else
  1617. echo 'x - extracting Scrollbar (Text)'
  1618. sed 's/^X//' << 'SHAR_EOF' > 'Scrollbar' &&
  1619. Scrollbar()
  1620. {
  1621. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1622. X        title:"Scrollbar"
  1623. X
  1624. X    acb $POPUP popdownCallback "dw $POPUP" 
  1625. X
  1626. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  1627. X        label:"Scrollbar" \\\n
  1628. X        font:OlDefaultBoldFont \\\n
  1629. X        position:left \\\n
  1630. X        width:200
  1631. X
  1632. X    cmw SCROLLBAR scrollbar scrollbar $CAPTION \\\n
  1633. X        height:100 \\\n
  1634. X        proportionLength:40 \\\n
  1635. X        showPage:right \\\n
  1636. X        currentPage:2
  1637. X
  1638. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  1639. X        numItems:1 \\\n
  1640. X        numItemFields:1 \\\n
  1641. X        itemFields:'{label}' \\\n
  1642. X        items:'{Ok}' 
  1643. X            
  1644. X    orh $POPUP "Scrollbar Source" -f `pwd`/Scrollbar
  1645. X
  1646. X    pu $POPUP GrabNone
  1647. }
  1648. SHAR_EOF
  1649. chmod 0644 Scrollbar ||
  1650. echo 'restore of Scrollbar failed'
  1651. Wc_c="`wc -c < 'Scrollbar'`"
  1652. test 601 -eq "$Wc_c" ||
  1653.     echo 'Scrollbar: original size 601, current size' "$Wc_c"
  1654. fi
  1655. # ============= Scrolledwindow ==============
  1656. if test -f 'Scrolledwindow' -a X"$1" != X"-c"; then
  1657.     echo 'x - skipping Scrolledwindow (File already exists)'
  1658. else
  1659. echo 'x - extracting Scrolledwindow (Text)'
  1660. sed 's/^X//' << 'SHAR_EOF' > 'Scrolledwindow' &&
  1661. Scrolledwindow()
  1662. {
  1663. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1664. X        title:"WkshTree: ScrolledWindow"
  1665. X
  1666. X    acb $POPUP popdownCallback "dw $POPUP"
  1667. X
  1668. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  1669. X        label:"Scrolled Window:" \\\n
  1670. X        font:OlDefaultBoldFont \\\n
  1671. X        position:top \\\n
  1672. X        alignment:left
  1673. X
  1674. X    cmw SCROLLEDWINDOW scrolledwindow scrolledWindow $CAPTION \\\n
  1675. X        recomputeWidth:false \\\n
  1676. X        recomputeHeight:false \\\n
  1677. X        forceHorizontalSB:true \\\n
  1678. X        forceVerticalSB:true 
  1679. X
  1680. X    cmw TEXT textedit textEdit $SCROLLEDWINDOW \\\n
  1681. X        source:"The TextEdit widget displays multi-line text." \\\n
  1682. X        width:200 \\\n
  1683. X        height:200 
  1684. X
  1685. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  1686. X        numItems:1 \\\n
  1687. X        numItemFields:1 \\\n
  1688. X        itemFields:'{label}' \\\n
  1689. X        items:'{Ok}' 
  1690. X        
  1691. X    sv $OK selectProc:"PopdownCB $POPUP" 
  1692. X
  1693. X    orh $POPUP "ScrolledWindow Source" -f `pwd`/Scrolledwindow
  1694. X
  1695. X    pu $POPUP GrabNone
  1696. }
  1697. SHAR_EOF
  1698. chmod 0644 Scrolledwindow ||
  1699. echo 'restore of Scrolledwindow failed'
  1700. Wc_c="`wc -c < 'Scrolledwindow'`"
  1701. test 866 -eq "$Wc_c" ||
  1702.     echo 'Scrolledwindow: original size 866, current size' "$Wc_c"
  1703. fi
  1704. # ============= Scrollinglist ==============
  1705. if test -f 'Scrollinglist' -a X"$1" != X"-c"; then
  1706.     echo 'x - skipping Scrollinglist (File already exists)'
  1707. else
  1708. echo 'x - extracting Scrollinglist (Text)'
  1709. sed 's/^X//' << 'SHAR_EOF' > 'Scrollinglist' &&
  1710. ScrollingList()
  1711. {
  1712. X    THECOLOR="Red Green Blue Orange Purple Pink Black White"
  1713. X
  1714. X    cps POPUP scrollinglist popupWindowShell $PANE \\\n
  1715. X        title:"WkshTree: ScrollingList" 
  1716. X
  1717. X    acb $POPUP popdownCallback "dw $POPUP"
  1718. X
  1719. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  1720. X        label:"Scrolling List:" 
  1721. X
  1722. X    cmw SLIST scrollingList scrollingList $CAPTION \\\n
  1723. X        viewHeight:3 
  1724. X
  1725. X    sladd $SLIST $THECOLOR
  1726. X
  1727. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  1728. X        numItems:1 \\\n
  1729. X        numItemFields:1 \\\n
  1730. X        itemFields:'{label}' \\\n
  1731. X        items:'{Ok}'
  1732. X
  1733. X    orh $POPUP "ScrollingList Source" -f `pwd`/Scrollinglist
  1734. X
  1735. X    pu $POPUP GrabNone
  1736. }
  1737. SHAR_EOF
  1738. chmod 0644 Scrollinglist ||
  1739. echo 'restore of Scrollinglist failed'
  1740. Wc_c="`wc -c < 'Scrollinglist'`"
  1741. test 580 -eq "$Wc_c" ||
  1742.     echo 'Scrollinglist: original size 580, current size' "$Wc_c"
  1743. fi
  1744. # ============= Slider ==============
  1745. if test -f 'Slider' -a X"$1" != X"-c"; then
  1746.     echo 'x - skipping Slider (File already exists)'
  1747. else
  1748. echo 'x - extracting Slider (Text)'
  1749. sed 's/^X//' << 'SHAR_EOF' > 'Slider' &&
  1750. Slider()
  1751. {
  1752. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1753. X        title:"Slider"
  1754. X
  1755. X    acb $POPUP popdownCallback "dw $POPUP"
  1756. X
  1757. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  1758. X        label:"Slider:" \\\n
  1759. X        font:OlDefaultBoldFont \\\n
  1760. X        position:left
  1761. X
  1762. X    cmw SLIDER slider slider $CAPTION \\\n
  1763. X        span:100 \\\n
  1764. X        sliderValue:33 \\\n
  1765. X        minLabel:0 \\\n
  1766. X        maxLabel:100 \\\n
  1767. X        ticks:10 \\\n
  1768. X        tickUnit:percent \\\n
  1769. X        showValue:true
  1770. X
  1771. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  1772. X        numItems:1 \\\n
  1773. X        numItemFields:1 \\\n
  1774. X        itemFields:'{label}' \\\n
  1775. X        items:'{Ok}' 
  1776. X
  1777. X    orh $POPUP "Slider Source" -f `pwd`/Slider
  1778. X
  1779. X    pu $POPUP GrabNone
  1780. }
  1781. SHAR_EOF
  1782. chmod 0644 Slider ||
  1783. echo 'restore of Slider failed'
  1784. Wc_c="`wc -c < 'Slider'`"
  1785. test 607 -eq "$Wc_c" ||
  1786.     echo 'Slider: original size 607, current size' "$Wc_c"
  1787. fi
  1788. # ============= Statictext ==============
  1789. if test -f 'Statictext' -a X"$1" != X"-c"; then
  1790.     echo 'x - skipping Statictext (File already exists)'
  1791. else
  1792. echo 'x - extracting Statictext (Text)'
  1793. sed 's/^X//' << 'SHAR_EOF' > 'Statictext' &&
  1794. Statictext()
  1795. {
  1796. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1797. X        title:"WkshTree: StaticText" 
  1798. X
  1799. X    acb $POPUP popdownCallback "dw $POPUP"
  1800. X
  1801. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  1802. X        label:"StaticText:" \\\n
  1803. X        font:OlDefaultBoldFont
  1804. X
  1805. X    cmw STEXT1 staticText staticText $CAPTION \\\n
  1806. X        string:"StaticText can be selected and copied.\nEach line cane be centered.\nIt is not editable." \\\n
  1807. X        alignment:center
  1808. X
  1809. X    cmw STEXT2 staticText staticText $POPUP_UCA \\\n
  1810. X        string:"olDefaultFont" \\\n
  1811. X        font:OlDefaultFont \\\n
  1812. X        alignment:center
  1813. X
  1814. X    cmw TEXT3 staticText staticText $POPUP_UCA \\\n
  1815. X        string:"olDefaultBoldFont" \\\n
  1816. X        font:OlDefaultBoldFont \\\n
  1817. X        alignment:center
  1818. X
  1819. X    cmw TEXT4 staticText staticText $POPUP_UCA \\\n
  1820. X        string:"olDefaultFixedFont" \\\n
  1821. X        font:OlDefaultFixedFont \\\n
  1822. X        alignment:center
  1823. X
  1824. X    cmw TEXT5 staticText staticText $POPUP_UCA \\\n
  1825. X        string:"olDefaultItalicFont" \\\n
  1826. X        font:OlDefaultItalicFont \\\n
  1827. X        alignment:center
  1828. X
  1829. X    cmw TEXT6 staticText staticText $POPUP_UCA \\\n
  1830. X        string:"olDefaultBoldItalicFont" \\\n
  1831. X        font:OlDefaultBoldItalicFont \\\n
  1832. X        alignment:center
  1833. X
  1834. X    cmw TEXT7 staticText staticText $POPUP_UCA \\\n
  1835. X        string:"olDefaultNoticeFont" \\\n
  1836. X        font:OlDefaultNoticeFont \\\n
  1837. X        alignment:center
  1838. X
  1839. X    cmw TEXT8 staticText staticText $POPUP_UCA \\\n
  1840. X        string:"xtDefaultFont" \\\n
  1841. X        font:XtDefaultFont \\\n
  1842. X        alignment:center
  1843. X
  1844. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  1845. X        numItems:1 \\\n
  1846. X        numItemFields:1 \\\n
  1847. X        itemFields:'{label}' \\\n
  1848. X        items:'{Ok}' 
  1849. X
  1850. X    orh $POPUP "StaticText Source" -f `pwd`/Statictext
  1851. X
  1852. X    pu $POPUP GrabNone
  1853. }
  1854. SHAR_EOF
  1855. chmod 0644 Statictext ||
  1856. echo 'restore of Statictext failed'
  1857. Wc_c="`wc -c < 'Statictext'`"
  1858. test 1554 -eq "$Wc_c" ||
  1859.     echo 'Statictext: original size 1554, current size' "$Wc_c"
  1860. fi
  1861. # ============= Stepfield ==============
  1862. if test -f 'Stepfield' -a X"$1" != X"-c"; then
  1863.     echo 'x - skipping Stepfield (File already exists)'
  1864. else
  1865. echo 'x - extracting Stepfield (Text)'
  1866. sed 's/^X//' << 'SHAR_EOF' > 'Stepfield' &&
  1867. Stepfield()
  1868. {
  1869. X    NUM=0
  1870. X
  1871. X    MONTHS="January February March April May June July
  1872. X        August September October November December"
  1873. X
  1874. X    for i in `echo $MONTHS`
  1875. X    do
  1876. X        MON[NUM]=$i
  1877. X        ((NUM=$NUM+1))
  1878. X    done
  1879. X
  1880. X    WHERE=0
  1881. X    INC=true
  1882. X
  1883. X    cps POPUP popupWindowShell popupWindowShell $PANE \\\n
  1884. X        title:"StepField:" 
  1885. X
  1886. X    acb $POPUP popdownCallback "dw $POPUP"
  1887. X
  1888. X    cmw CAPTION caption caption $POPUP_UCA \\\n
  1889. X        label:"Stepfield" \\\n
  1890. X        font:OlDefaultBoldFont \\\n
  1891. X        position:left
  1892. X
  1893. X    cmw STEP stepField stepField $CAPTION \\\n
  1894. X        string:"January" \\\n
  1895. X        charsVisible:8 \\\n
  1896. X        canIncrement:true \\\n
  1897. X        canDecrement:false \\\n
  1898. X        displayPosition:1
  1899. X
  1900. X    acb $STEP stepped "SteppedCB $WHERE"
  1901. X
  1902. X    cmw OK Ok flatButtons $POPUP_LCA \\\n
  1903. X        numItems:1 \\\n
  1904. X        numItemFields:1 \\\n
  1905. X        itemFields:'{label}' \\\n
  1906. X        items:'{Ok}' 
  1907. X
  1908. X    sv $OK selectProc:"PopdownCB $POPUP"
  1909. X
  1910. X    orh $POPUP "StepField Source" -f `pwd`/Stepfield
  1911. X    
  1912. X    pu $POPUP GrabNone
  1913. }
  1914. X
  1915. SteppedCB()
  1916. {
  1917. X
  1918. X    MIN=0
  1919. X    MAX=11
  1920. X
  1921. X    if [[ $INC = "true" ]]
  1922. X    then
  1923. X        ((WHERE=$WHERE+1))
  1924. X    else
  1925. X        ((WHERE=$WHERE-1))
  1926. X    fi
  1927. X    
  1928. X    if [[ $WHERE -eq $MAX ]]
  1929. X    then
  1930. X        INC=false
  1931. X        sv $STEP canDecrement:true
  1932. X        sv $STEP canIncrement:false
  1933. X    fi
  1934. X
  1935. X    if [[ $WHERE -eq $MIN ]]
  1936. X    then
  1937. X        INC=true
  1938. X        sv $STEP canDecrement:false
  1939. X        sv $STEP canIncrement:true
  1940. X    fi
  1941. X
  1942. X    sv $STEP string:"${MON[$WHERE]}"
  1943. X
  1944. }    
  1945. SHAR_EOF
  1946. chmod 0644 Stepfield ||
  1947. echo 'restore of Stepfield failed'
  1948. Wc_c="`wc -c < 'Stepfield'`"
  1949. test 1253 -eq "$Wc_c" ||
  1950.     echo 'Stepfield: original size 1253, current size' "$Wc_c"
  1951. fi
  1952. true || echo 'restore of Stub failed'
  1953. echo End of part 1, continue with part 2
  1954. exit 0
  1955.  
  1956. exit 0 # Just in case...
  1957. -- 
  1958.   // chris@IMD.Sterling.COM            | Send comp.sources.x submissions to:
  1959. \X/  Amiga - The only way to fly!      |
  1960.  "It's intuitively obvious to the most |    sources-x@imd.sterling.com
  1961.   casual observer..."                  |
  1962.