614 constantNamed:#'UIPainter iconAlignTB' |
614 constantNamed:#'UIPainter iconAlignTB' |
615 ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@G@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@H@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@@@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@') ; yourself); yourself] |
615 ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@G@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@H@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@@@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@') ; yourself); yourself] |
616 ! ! |
616 ! ! |
617 |
617 |
618 !UIPainter class methodsFor:'interface specs'! |
618 !UIPainter class methodsFor:'interface specs'! |
619 |
|
620 XXwindowSpec |
|
621 "This resource specification was automatically generated |
|
622 by the UIPainter of ST/X." |
|
623 |
|
624 "Do not manually edit this!! If it is corrupted, |
|
625 the UIPainter may not be able to read the specification." |
|
626 |
|
627 " |
|
628 UIPainter new openOnClass:UIPainter andSelector:#windowSpec |
|
629 UIPainter new openInterface:#windowSpec |
|
630 UIPainter open |
|
631 " |
|
632 |
|
633 <resource: #canvas> |
|
634 |
|
635 ^ |
|
636 #(#FullSpec |
|
637 #name: #windowSpec |
|
638 #window: |
|
639 #(#WindowSpec |
|
640 #label: 'GUI Painter' |
|
641 #name: 'GUI Painter' |
|
642 #min: #(#Point 560 460) |
|
643 #max: #(#Point 1160 870) |
|
644 #bounds: #(#Rectangle 343 100 951 623) |
|
645 #menu: #menu |
|
646 ) |
|
647 #component: |
|
648 #(#SpecCollection |
|
649 #collection: #( |
|
650 #(#MenuPanelSpec |
|
651 #name: 'menuToolbarView' |
|
652 #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
653 #level: 1 |
|
654 #tabable: true |
|
655 #menu: #menuToolbar |
|
656 ) |
|
657 #(#VariableHorizontalPanelSpec |
|
658 #name: 'hpanel' |
|
659 #layout: #(#LayoutFrame 0 0.0 32 0.0 0 1.0 -26 1.0) |
|
660 #level: 1 |
|
661 #component: |
|
662 #(#SpecCollection |
|
663 #collection: #( |
|
664 #(#ArbitraryComponentSpec |
|
665 #name: 'treeView' |
|
666 #tabable: true |
|
667 #menu: #menuEdit |
|
668 #hasHorizontalScrollBar: true |
|
669 #hasVerticalScrollBar: true |
|
670 #miniScrollerHorizontal: true |
|
671 #miniScrollerVertical: true |
|
672 #hasBorder: false |
|
673 #component: #treeView |
|
674 ) |
|
675 #(#ViewSpec |
|
676 #name: 'specHolderView' |
|
677 #level: 0 |
|
678 #component: |
|
679 #(#SpecCollection |
|
680 #collection: #( |
|
681 #(#MenuPanelSpec |
|
682 #name: 'menuToolbar2View' |
|
683 #layout: #(#LayoutFrame 2 0.0 2 0 -2 1.0 32 0) |
|
684 #level: 0 |
|
685 #tabable: true |
|
686 #menu: #menuToolbar2 |
|
687 ) |
|
688 #(#NoteBookViewSpec |
|
689 #name: 'noteBook' |
|
690 #layout: #(#LayoutFrame 2 0.0 34 0.0 -2 1.0 -28 1.0) |
|
691 #level: 0 |
|
692 #enableChannel: #enableChannel |
|
693 #tabable: true |
|
694 #model: #tabModel |
|
695 #menu: #tabList |
|
696 #canvas: #noteBookView |
|
697 #tabTopMargin: 0 |
|
698 ) |
|
699 #(#HorizontalPanelViewSpec |
|
700 #name: 'HorizontalPanel1' |
|
701 #layout: #(#LayoutFrame 2 0 -26 1 -2 1 -2 1) |
|
702 #horizontalLayout: #fit |
|
703 #verticalLayout: #fit |
|
704 #horizontalSpace: 3 |
|
705 #verticalSpace: 3 |
|
706 #reverseOrderIfOKAtLeft: true |
|
707 #component: |
|
708 #(#SpecCollection |
|
709 #collection: #( |
|
710 #(#ActionButtonSpec |
|
711 #label: 'Cancel' |
|
712 #name: 'cancelButton' |
|
713 #activeHelpKey: #commitCancel |
|
714 #tabable: true |
|
715 #model: #cancel |
|
716 #enableChannel: #modifiedChannel |
|
717 #extent: #(#Point 200 24) |
|
718 ) |
|
719 #(#ActionButtonSpec |
|
720 #label: 'OK' |
|
721 #name: 'acceptButton' |
|
722 #activeHelpKey: #commitOK |
|
723 #tabable: true |
|
724 #model: #accept |
|
725 #enableChannel: #modifiedChannel |
|
726 #extent: #(#Point 201 24) |
|
727 ) |
|
728 ) |
|
729 |
|
730 ) |
|
731 ) |
|
732 ) |
|
733 |
|
734 ) |
|
735 ) |
|
736 ) |
|
737 |
|
738 ) |
|
739 #handles: #(#Any 0.318868 1.0) |
|
740 ) |
|
741 #(#UISubSpecification |
|
742 #name: 'infoBarSubSpec' |
|
743 #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
744 #majorKey: #ToolApplicationModel |
|
745 #minorKey: #windowSpecForInfoBar |
|
746 ) |
|
747 ) |
|
748 |
|
749 ) |
|
750 ) |
|
751 ! |
|
752 |
619 |
753 dialogSpecForDefiningClassAndSelector |
620 dialogSpecForDefiningClassAndSelector |
754 "This resource specification was automatically generated |
621 "This resource specification was automatically generated |
755 by the UIPainter of ST/X." |
622 by the UIPainter of ST/X." |
756 |
623 |
4667 spVw := prnt contents view. |
4535 spVw := prnt contents view. |
4668 canvas := self canvas. |
4536 canvas := self canvas. |
4669 |
4537 |
4670 canvas hideSelection. |
4538 canvas hideSelection. |
4671 |
4539 |
4672 "/ input view might by contained in sequence |
|
4673 ((size := canvas findInputViewIn:spVw) ~~ 0 and:[idx >= size]) ifTrue:[ |
|
4674 idx := idx + 1 |
|
4675 ]. |
|
4676 spVw changeSequenceOrderFor:view to:idx. |
4540 spVw changeSequenceOrderFor:view to:idx. |
4677 |
4541 |
4678 spVw specClass isLayoutContainer ifFalse:[ |
4542 spVw specClass isLayoutContainer ifFalse:[ |
4679 spVw subViews do:[:v| v raise ]. |
4543 spVw subViews do:[:v| v raise ]. |
4680 canvas inputView raise |
|
4681 ]. |
4544 ]. |
4682 canvas showSelection. |
4545 canvas showSelection. |
4683 self selectNode:item. |
4546 self selectNode:item. |
4684 ! ! |
4547 ! ! |
4685 |
4548 |