343 ^ |
337 ^ |
344 |
338 |
345 #(#FullSpec |
339 #(#FullSpec |
346 #'window:' |
340 #'window:' |
347 #(#WindowSpec |
341 #(#WindowSpec |
348 #'name:' 'uIPainterView' |
342 #'name:' 'Buttons' |
349 #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
343 #'layout:' #(#LayoutFrame 96 0 48 0 574 0 247 0) |
350 #'label:' 'unnamed' |
344 #'label:' 'Buttons' |
351 #'bounds:' #(#Rectangle 0 0 439 193) |
345 #'min:' #(#Point 10 10) |
|
346 #'max:' #(#Point 1280 1024) |
|
347 #'bounds:' #(#Rectangle 96 48 575 248) |
352 ) |
348 ) |
353 #'component:' |
349 #'component:' |
354 #(#SpecCollection |
350 #(#SpecCollection |
355 #'collection:' |
351 #'collection:' |
356 #( |
352 #( |
357 #(#ArrowButtonSpec |
353 #(#ArrowButtonSpec |
358 #'name:' 'ArrowButton up' |
354 #'name:' 'ArrowButton up' |
359 #'layout:' #(#LayoutFrame 237 0 20 0 259 0 42 0) |
355 #'layout:' #(#LayoutFrame 276 0 15 0 298 0 37 0) |
360 #'isTriggerOnDown:' true |
356 #'isTriggerOnDown:' true |
361 #'direction:' #up |
357 #'direction:' #up |
362 ) |
358 ) |
363 #(#ActionButtonSpec |
359 #(#ActionButtonSpec |
364 #'name:' 'Button' |
360 #'name:' 'Button' |
365 #'layout:' #(#LayoutFrame 20 0 20 0 119 0 42 0) |
361 #'layout:' #(#LayoutFrame 20 0 15 0 119 0 37 0) |
366 #'label:' 'Button' |
362 #'label:' 'Button' |
367 ) |
363 ) |
368 #(#RadioButtonSpec |
364 #(#RadioButtonSpec |
369 #'name:' 'RadioButton' |
365 #'name:' 'RadioButton' |
370 #'layout:' #(#LayoutFrame 127 0.0 20 0 226 0 42 0) |
366 #'layout:' #(#LayoutFrame 135 0.0 15 0 258 0 37 0) |
371 #'label:' 'RadioButton' |
367 #'label:' 'RadioButton' |
372 #'isTriggerOnDown:' true |
368 #'isTriggerOnDown:' true |
373 #'showLamp:' true |
369 #'showLamp:' true |
374 #'lampColor:' #(#Color 100.0 100.0 0.0) |
370 #'lampColor:' #(#Color 100.0 100.0 0.0) |
375 ) |
371 ) |
376 #(#ArrowButtonSpec |
372 #(#ArrowButtonSpec |
377 #'name:' 'ArrowButton down' |
373 #'name:' 'ArrowButton down' |
378 #'layout:' #(#LayoutFrame 237 0 51 0 259 0 73 0) |
374 #'layout:' #(#LayoutFrame 276 0 46 0 298 0 68 0) |
379 #'isTriggerOnDown:' true |
375 #'isTriggerOnDown:' true |
380 #'direction:' #down |
376 #'direction:' #down |
381 ) |
377 ) |
382 #(#ArrowButtonSpec |
378 #(#ArrowButtonSpec |
383 #'name:' 'ArrowButton left' |
379 #'name:' 'ArrowButton left' |
384 #'layout:' #(#LayoutFrame 237 0 82 0 259 0 104 0) |
380 #'layout:' #(#LayoutFrame 276 0 77 0 298 0 99 0) |
385 #'isTriggerOnDown:' true |
381 #'isTriggerOnDown:' true |
386 #'direction:' #left |
382 #'direction:' #left |
387 ) |
383 ) |
388 #(#ArrowButtonSpec |
384 #(#ArrowButtonSpec |
389 #'name:' 'ArrowButton right' |
385 #'name:' 'ArrowButton right' |
390 #'layout:' #(#LayoutFrame 237 0 113 0 259 0 135 0) |
386 #'layout:' #(#LayoutFrame 276 0 108 0 298 0 130 0) |
391 #'isTriggerOnDown:' true |
387 #'isTriggerOnDown:' true |
392 #'direction:' #right |
388 #'direction:' #right |
393 ) |
389 ) |
394 #(#CheckToggleSpec |
390 #(#CheckToggleSpec |
395 #'name:' 'CheckToggle' |
391 #'name:' 'CheckToggle' |
396 #'layout:' #(#LayoutFrame 297 0 82 0 317 0 102 0) |
392 #'layout:' #(#LayoutFrame 317 0 77 0 337 0 97 0) |
397 #'isTriggerOnDown:' true |
393 #'isTriggerOnDown:' true |
398 #'showLamp:' false |
394 #'showLamp:' false |
399 #'lampColor:' #(#Color 100.0 100.0 0.0) |
395 #'lampColor:' #(#Color 100.0 100.0 0.0) |
400 ) |
396 ) |
401 #(#ToggleSpec |
397 #(#ToggleSpec |
402 #'name:' 'Toggle' |
398 #'name:' 'Toggle' |
403 #'layout:' #(#LayoutFrame 297 0 20 0 396 0 42 0) |
399 #'layout:' #(#LayoutFrame 317 0 15 0 436 0 37 0) |
404 #'label:' 'Toggle' |
400 #'label:' 'Toggle' |
405 #'isTriggerOnDown:' true |
401 #'isTriggerOnDown:' true |
406 #'showLamp:' true |
402 #'showLamp:' true |
407 #'lampColor:' #(#Color 100.0 100.0 0.0) |
403 #'lampColor:' #(#Color 100.0 100.0 0.0) |
408 ) |
404 ) |
409 #(#CheckBoxSpec |
405 #(#CheckBoxSpec |
410 #'name:' 'CheckBox' |
406 #'name:' 'CheckBox' |
411 #'layout:' #(#LayoutFrame 297 0 51 0 396 0 73 0) |
407 #'layout:' #(#LayoutFrame 317 0 46 0 436 0 68 0) |
412 #'label:' 'CheckBox' |
408 #'label:' 'CheckBox' |
413 ) |
409 ) |
414 #(#ActionButtonSpec |
410 #(#ActionButtonSpec |
415 #'name:' 'ok' |
411 #'name:' 'ok' |
416 #'layout:' #(#LayoutFrame 20 0 51 0 119 0 73 0) |
412 #'layout:' #(#LayoutFrame 20 0 46 0 119 0 68 0) |
417 #'label:' 'ok' |
413 #'label:' 'ok' |
418 #'model:' #accept |
414 #'model:' #accept |
419 ) |
415 ) |
420 #(#ActionButtonSpec |
416 #(#ActionButtonSpec |
421 #'name:' 'cancel' |
417 #'name:' 'cancel' |
422 #'layout:' #(#LayoutFrame 20 0 82 0 119 0 104 0) |
418 #'layout:' #(#LayoutFrame 20 0 77 0 119 0 99 0) |
423 #'label:' 'cancel' |
419 #'label:' 'cancel' |
424 #'model:' #cancel |
420 #'model:' #cancel |
425 ) |
421 ) |
426 #(#ActionButtonSpec |
422 #(#ActionButtonSpec |
427 #'name:' 'help' |
423 #'name:' 'help' |
428 #'layout:' #(#LayoutFrame 20 0 113 0 119 0 135 0) |
424 #'layout:' #(#LayoutFrame 20 0 108 0 119 0 130 0) |
429 #'label:' 'help' |
425 #'label:' 'help' |
430 #'model:' #help |
426 #'model:' #help |
431 ) |
427 ) |
432 ) |
428 ) |
433 ) |
429 ) |
524 |
521 |
525 "do not manually edit this - the painter/builder may not be able to |
522 "do not manually edit this - the painter/builder may not be able to |
526 handle the specification if its corrupted." |
523 handle the specification if its corrupted." |
527 |
524 |
528 " |
525 " |
529 UIPainter new openOnClass:self andSelector:#standardMenus |
526 UIPainter new openOnClass:UISelectionPanel andSelector:#standardMenus |
530 self new openInterface:#standardMenus |
527 UISelectionPanel new openInterface:#standardMenus |
531 " |
528 " |
532 |
529 |
533 <resource: #canvas> |
530 <resource: #canvas> |
534 |
531 |
535 ^ |
532 ^ |
536 |
533 |
537 #(#FullSpec |
534 #(#FullSpec |
538 #'window:' |
535 #'window:' |
539 #(#WindowSpec |
536 #(#WindowSpec |
540 #'name:' 'uIPainterView' |
537 #'name:' 'Menus' |
541 #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
538 #'layout:' #(#LayoutFrame 133 0 90 0 619 0 339 0) |
542 #'label:' 'unnamed' |
539 #'label:' 'Menus' |
543 #'bounds:' #(#Rectangle 0 0 464 253) |
540 #'min:' #(#Point 10 10) |
|
541 #'max:' #(#Point 1280 1024) |
|
542 #'bounds:' #(#Rectangle 133 90 620 340) |
544 ) |
543 ) |
545 #'component:' |
544 #'component:' |
546 #(#SpecCollection |
545 #(#SpecCollection |
547 #'collection:' |
546 #'collection:' |
548 #( |
547 #( |
549 #(#ComboBoxSpec |
548 #(#ComboBoxSpec |
550 #'name:' 'ComboBox' |
549 #'name:' 'ComboBox' |
551 #'layout:' #(#LayoutFrame 20 0 14 0 123 0 34 0) |
550 #'layout:' #(#LayoutFrame 20 0 15 0 145 0 35 0) |
|
551 ) |
|
552 #(#LabelSpec |
|
553 #'name:' 'ComboBoxLabel' |
|
554 #'layout:' #(#LayoutFrame 22 0 17 0 94 0 35 0) |
|
555 #'label:' 'ComboBox' |
|
556 #'style:' |
|
557 #(#FontDescription |
|
558 #helvetica #medium |
|
559 #roman #'10' |
|
560 ) |
|
561 #'adjust:' #left |
|
562 #'resizeForLabel:' true |
|
563 #'canUIDrag:' false |
|
564 ) |
|
565 #(#PopUpListSpec |
|
566 #'name:' 'PopUpList' |
|
567 #'layout:' #(#LayoutFrame 184 0 15 0 287 0 37 0) |
|
568 #'label:' 'PopUpList' |
|
569 #'useIndex:' false |
|
570 ) |
|
571 #(#TabViewSpec |
|
572 #'name:' 'TabView' |
|
573 #'layout:' #(#LayoutFrame 314 0 15 0 454 0 51 0) |
552 ) |
574 ) |
553 #(#ComboListSpec |
575 #(#ComboListSpec |
554 #'name:' 'ComboList' |
576 #'name:' 'ComboList' |
555 #'layout:' #(#LayoutFrame 20 0 71 0 123 0 91 0) |
577 #'layout:' #(#LayoutFrame 20 0 71 0 145 0 91 0) |
556 #'useIndex:' false |
578 #'useIndex:' false |
557 ) |
579 ) |
558 #(#PopUpListSpec |
580 #(#LabelSpec |
559 #'name:' 'PopUpList' |
581 #'name:' 'ComboListLabel' |
560 #'layout:' #(#LayoutFrame 147 0 14 0 250 0 36 0) |
582 #'layout:' #(#LayoutFrame 22 0 74 0 94 0 92 0) |
561 #'label:' 'PopUpList' |
583 #'label:' 'ComboList' |
562 #'useIndex:' false |
584 #'style:' |
|
585 #(#FontDescription |
|
586 #helvetica #medium |
|
587 #roman #'10' |
|
588 ) |
|
589 #'adjust:' #left |
|
590 #'resizeForLabel:' true |
|
591 #'canUIDrag:' false |
563 ) |
592 ) |
564 #(#MenuPanelSpec |
593 #(#MenuPanelSpec |
565 #'name:' 'MenuPanel' |
594 #'name:' 'MenuPanel' |
566 #'layout:' #(#LayoutFrame 147 0 71 0 250 0 91 0) |
595 #'layout:' #(#LayoutFrame 184 0 71 0 285 0 94 0) |
567 ) |
596 ) |
568 #(#TabViewSpec |
597 #(#LabelSpec |
569 #'name:' 'TabView' |
598 #'name:' 'MenuPanelLabel' |
570 #'layout:' #(#LayoutFrame 269 0 14 0 409 0 50 0) |
599 #'layout:' #(#Point 190 74) |
571 #'tabWidget:' #Window |
|
572 ) |
|
573 #(#NoteBookViewSpec |
|
574 #'name:' 'NoteBookView' |
|
575 #'layout:' #(#LayoutFrame 269 0 71 0 409 0 159 0) |
|
576 #'tabWidget:' #Window |
|
577 ) |
|
578 #(#LabelSpec |
|
579 #'name:' 'label1' |
|
580 #'layout:' #(#LayoutFrame 150 0 73 0 236 0 89 0) |
|
581 #'label:' 'MenuPanel' |
600 #'label:' 'MenuPanel' |
582 #'style:' |
601 #'style:' |
583 #(#FontDescription |
602 #(#FontDescription |
584 #helvetica #medium |
603 #helvetica #medium |
585 #roman #'10' |
604 #roman #'10' |
586 ) |
605 ) |
587 #'adjust:' #left |
606 #'adjust:' #left |
|
607 #'resizeForLabel:' true |
|
608 #'canUIDrag:' false |
|
609 ) |
|
610 #(#NoteBookViewSpec |
|
611 #'name:' 'NoteBookView' |
|
612 #'layout:' #(#LayoutFrame 314 0 71 0 454 0 159 0) |
|
613 ) |
|
614 #(#LabelSpec |
|
615 #'name:' 'NoteBookLabel' |
|
616 #'layout:' #(#Point 317 139) |
|
617 #'label:' 'NoteBook' |
|
618 #'style:' |
|
619 #(#FontDescription |
|
620 #helvetica #medium |
|
621 #roman #'10' |
|
622 ) |
|
623 #'adjust:' #left |
|
624 #'resizeForLabel:' true |
|
625 #'canUIDrag:' false |
|
626 ) |
|
627 #(#LabelSpec |
|
628 #'name:' 'TabLabel' |
|
629 #'layout:' #(#Point 326 28) |
|
630 #'label:' 'Tabs' |
|
631 #'style:' |
|
632 #(#FontDescription |
|
633 #helvetica #medium |
|
634 #roman #'10' |
|
635 ) |
|
636 #'adjust:' #left |
|
637 #'resizeForLabel:' true |
588 #'canUIDrag:' false |
638 #'canUIDrag:' false |
589 ) |
639 ) |
590 ) |
640 ) |
591 ) |
641 ) |
592 ) |
642 ) |
593 |
|
594 |
|
595 ! |
643 ! |
596 |
644 |
597 standardPanels |
645 standardPanels |
598 "this window spec was automatically generated by the ST/X UIPainter" |
646 "this window spec was automatically generated by the ST/X UIPainter" |
599 |
647 |
794 |
858 |
795 "do not manually edit this - the painter/builder may not be able to |
859 "do not manually edit this - the painter/builder may not be able to |
796 handle the specification if its corrupted." |
860 handle the specification if its corrupted." |
797 |
861 |
798 " |
862 " |
799 UIPainter new openOnClass:self andSelector:#standardSliders |
863 UIPainter new openOnClass:UISelectionPanel andSelector:#standardSliders |
800 self new openInterface:#standardSliders |
864 UISelectionPanel new openInterface:#standardSliders |
801 " |
865 " |
802 |
866 |
803 <resource: #canvas> |
867 <resource: #canvas> |
804 |
868 |
805 ^ |
869 ^ |
806 |
870 |
807 #(#FullSpec |
871 #(#FullSpec |
808 #'window:' |
872 #'window:' |
809 #(#WindowSpec |
873 #(#WindowSpec |
810 #'name:' 'uIPainterView' |
874 #'name:' 'Sliders' |
811 #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
875 #'layout:' #(#LayoutFrame 314 0 99 0 758 0 260 0) |
812 #'label:' 'unnamed' |
876 #'label:' 'Sliders' |
813 #'bounds:' #(#Rectangle 0 0 445 162) |
877 #'min:' #(#Point 10 10) |
|
878 #'max:' #(#Point 1280 1024) |
|
879 #'bounds:' #(#Rectangle 314 99 759 261) |
814 ) |
880 ) |
815 #'component:' |
881 #'component:' |
816 #(#SpecCollection |
882 #(#SpecCollection |
817 #'collection:' |
883 #'collection:' |
818 #( |
884 #( |
819 #(#SliderSpec |
885 #(#SliderSpec |
820 #'name:' 'Vertical Slider' |
886 #'name:' 'Vertical Slider' |
821 #'layout:' #(#LayoutFrame 20 0 20 0 38 0 108 0) |
887 #'layout:' #(#LayoutFrame 20 0 15 0 38 0 108 0) |
822 #'orientation:' #vertical |
888 #'orientation:' #vertical |
|
889 #'start:' 0 |
|
890 #'stop:' 100 |
|
891 #'step:' 1 |
823 ) |
892 ) |
824 #(#ThumbWheelSpec |
893 #(#ThumbWheelSpec |
825 #'name:' 'Vertical ThumbWheel' |
894 #'name:' 'Vertical ThumbWheel' |
826 #'layout:' #(#LayoutFrame 48 0 20 0 63 0 108 0) |
895 #'layout:' #(#LayoutFrame 48 0 15 0 63 0 108 0) |
827 #'orientation:' #vertical |
896 #'orientation:' #vertical |
828 #'start:' 0 |
897 #'start:' 0 |
829 #'stop:' 360 |
898 #'stop:' 360 |
|
899 #'step:' 1 |
830 ) |
900 ) |
831 #(#ThumbWheelSpec |
901 #(#ThumbWheelSpec |
832 #'name:' 'Horizontal ThumbWheel' |
902 #'name:' 'Horizontal ThumbWheel' |
833 #'layout:' #(#LayoutFrame 102 0 20 0 191 0 35 0) |
903 #'layout:' #(#LayoutFrame 102 0 15 0 191 0 30 0) |
834 #'orientation:' #horizontal |
904 #'orientation:' #horizontal |
835 #'start:' 0 |
905 #'start:' 0 |
836 #'stop:' 360 |
906 #'stop:' 360 |
|
907 #'step:' 1 |
837 ) |
908 ) |
838 #(#SliderSpec |
909 #(#SliderSpec |
839 #'name:' 'Horizontal Slider' |
910 #'name:' 'Horizontal Slider' |
840 #'layout:' #(#LayoutFrame 102 0 53 0 191 0 71 0) |
911 #'layout:' #(#LayoutFrame 102 0 52 0 191 0 70 0) |
841 #'orientation:' #horizontal |
912 #'orientation:' #horizontal |
842 #'start:' 0 |
913 #'start:' 0 |
843 #'stop:' 100 |
914 #'stop:' 100 |
|
915 #'step:' 1 |
844 ) |
916 ) |
845 #(#ProgressIndicatorSpec |
917 #(#ProgressIndicatorSpec |
846 #'name:' 'Progress Indicator' |
918 #'name:' 'Progress Indicator' |
847 #'layout:' #(#LayoutFrame 102 0 90 0 191 0 108 0) |
919 #'layout:' #(#LayoutFrame 102 0 90 0 191 0 108 0) |
848 #'showPercentage:' true |
920 #'showPercentage:' true |
849 ) |
921 ) |
850 ) |
922 ) |
851 ) |
923 ) |
852 ) |
924 ) |
853 |
|
854 ! |
925 ! |
855 |
926 |
856 standardText |
927 standardText |
857 "this window spec was automatically generated by the ST/X UIPainter" |
928 "this window spec was automatically generated by the ST/X UIPainter" |
858 |
929 |
869 ^ |
940 ^ |
870 |
941 |
871 #(#FullSpec |
942 #(#FullSpec |
872 #'window:' |
943 #'window:' |
873 #(#WindowSpec |
944 #(#WindowSpec |
874 #'name:' 'uIPainterView' |
945 #'name:' 'Text' |
875 #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
946 #'layout:' #(#LayoutFrame 139 0 32 0 605 0 238 0) |
876 #'label:' 'unnamed' |
947 #'label:' 'Text' |
877 #'bounds:' #(#Rectangle 0 0 467 207) |
948 #'min:' #(#Point 10 10) |
|
949 #'max:' #(#Point 1280 1024) |
|
950 #'bounds:' #(#Rectangle 139 32 606 239) |
878 ) |
951 ) |
879 #'component:' |
952 #'component:' |
880 #(#SpecCollection |
953 #(#SpecCollection |
881 #'collection:' |
954 #'collection:' |
882 #( |
955 #( |
883 #(#InputFieldSpec |
|
884 #'name:' 'EditField' |
|
885 #'layout:' #(#LayoutFrame 20 0 100 0 199 0 122 0) |
|
886 ) |
|
887 #(#LabelSpec |
|
888 #'name:' 'Text Label' |
|
889 #'layout:' #(#LayoutFrame 20 0 128 0 199 0 150 0) |
|
890 #'label:' 'Label' |
|
891 ) |
|
892 #(#TextEditorSpec |
956 #(#TextEditorSpec |
893 #'name:' 'EditTextView' |
957 #'name:' 'EditText' |
894 #'layout:' #(#LayoutFrame 20 0 13 0 199 0 94 0) |
958 #'layout:' #(#LayoutFrame 20 0 15 0 215 0 120 0) |
895 #'hasHorizontalScrollBar:' true |
959 #'hasHorizontalScrollBar:' true |
896 #'hasVerticalScrollBar:' true |
960 #'hasVerticalScrollBar:' true |
897 ) |
961 ) |
898 #(#SequenceViewSpec |
962 #(#LabelSpec |
899 #'name:' 'SelectionInListView' |
963 #'name:' 'EditTextLabel' |
900 #'layout:' #(#LayoutFrame 222 0 13 0 401 0 94 0) |
964 #'layout:' #(#AlignmentOrigin 93 0 120 0 0 1) |
|
965 #'label:' 'EditText' |
|
966 #'style:' |
|
967 #(#FontDescription |
|
968 #helvetica #medium |
|
969 #roman #'10' |
|
970 ) |
|
971 #'adjust:' #left |
|
972 #'resizeForLabel:' true |
|
973 #'canUIDrag:' false |
|
974 ) |
|
975 #(#HTMLViewSpec |
|
976 #'name:' 'HTMLView' |
|
977 #'layout:' #(#LayoutFrame 240 0 15 0 436 0 120 0) |
901 #'hasHorizontalScrollBar:' true |
978 #'hasHorizontalScrollBar:' true |
902 #'hasVerticalScrollBar:' true |
979 #'hasVerticalScrollBar:' true |
903 ) |
980 ) |
904 #(#HTMLViewSpec |
|
905 #'name:' 'HTMLView' |
|
906 #'layout:' #(#LayoutFrame 222 0 100 0 401 0 181 0) |
|
907 #'hasHorizontalScrollBar:' true |
|
908 #'hasVerticalScrollBar:' true |
|
909 ) |
|
910 #(#LabelSpec |
981 #(#LabelSpec |
911 #'name:' 'HTMLViewLabel' |
982 #'name:' 'HTMLViewLabel' |
912 #'layout:' #(#AlignmentOrigin 295 0 178 0 0 1) |
983 #'layout:' #(#AlignmentOrigin 314 0 120 0 0 1) |
913 #'label:' 'HTMLView' |
984 #'label:' 'HTMLView' |
914 #'style:' |
985 #'style:' |
915 #(#FontDescription |
986 #(#FontDescription |
916 #helvetica #medium |
987 #helvetica #medium |
917 #roman #'10' |
988 #roman #'10' |
918 ) |
989 ) |
919 #'adjust:' #left |
990 #'adjust:' #left |
920 #'resizeForLabel:' true |
991 #'resizeForLabel:' true |
921 #'canUIDrag:' false |
992 #'canUIDrag:' false |
922 ) |
993 ) |
923 #(#LabelSpec |
994 #(#InputFieldSpec |
924 #'name:' 'label1' |
995 #'name:' 'EditField' |
925 #'layout:' #(#AlignmentOrigin 93 0 91 0 0 1) |
996 #'layout:' #(#LayoutFrame 20 0 142 0 215 0 164 0) |
926 #'label:' 'EditText' |
997 ) |
|
998 #(#LabelSpec |
|
999 #'name:' 'EditFieldLabel' |
|
1000 #'layout:' #(#LayoutFrame 55 0 144 0 115 0 162 0) |
|
1001 #'label:' 'EditField' |
927 #'style:' |
1002 #'style:' |
928 #(#FontDescription |
1003 #(#FontDescription |
929 #helvetica #medium |
1004 #helvetica #medium |
930 #roman #'10' |
1005 #roman #'10' |
931 ) |
1006 ) |
932 #'adjust:' #left |
1007 #'adjust:' #left |
933 #'resizeForLabel:' true |
1008 #'resizeForLabel:' true |
934 #'canUIDrag:' false |
1009 #'canUIDrag:' false |
935 ) |
1010 ) |
936 #(#LabelSpec |
1011 #(#LabelSpec |
937 #'name:' 'label2' |
1012 #'name:' 'Label' |
938 #'layout:' #(#AlignmentOrigin 295 0 91 0 0 1) |
1013 #'layout:' #(#LayoutFrame 240 0 142 0 436 0 164 0) |
939 #'label:' 'SelectionInList' |
1014 #'label:' 'Label' |
940 #'style:' |
|
941 #(#FontDescription |
|
942 #helvetica #medium |
|
943 #roman #'10' |
|
944 ) |
|
945 #'adjust:' #left |
|
946 #'resizeForLabel:' true |
|
947 #'canUIDrag:' false |
|
948 ) |
1015 ) |
949 ) |
1016 ) |
950 ) |
1017 ) |
951 ) |
1018 ) |
952 ! |
1019 ! |
1006 ^ |
1073 ^ |
1007 |
1074 |
1008 #(#FullSpec |
1075 #(#FullSpec |
1009 #'window:' |
1076 #'window:' |
1010 #(#WindowSpec |
1077 #(#WindowSpec |
1011 #'name:' 'uIPainterView' |
1078 #'name:' 'Views' |
1012 #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
1079 #'layout:' #(#LayoutFrame 158 0 56 0 637 0 284 0) |
1013 #'label:' 'unnamed' |
1080 #'label:' 'Views' |
1014 #'bounds:' #(#Rectangle 0 0 431 200) |
1081 #'min:' #(#Point 10 10) |
|
1082 #'max:' #(#Point 1280 1024) |
|
1083 #'bounds:' #(#Rectangle 158 56 638 285) |
1015 ) |
1084 ) |
1016 #'component:' |
1085 #'component:' |
1017 #(#SpecCollection |
1086 #(#SpecCollection |
1018 #'collection:' |
1087 #'collection:' |
1019 #( |
1088 #( |
1020 #(#FramedBoxSpec |
1089 #(#FramedBoxSpec |
1021 #'name:' 'FramedBox' |
1090 #'name:' 'FramedBox' |
1022 #'layout:' #(#LayoutFrame 16 0 14 0 136 0 94 0) |
1091 #'layout:' #(#LayoutFrame 20 0 15 0 187 0 95 0) |
1023 #'label:' 'FramedBox' |
1092 #'label:' 'FramedBox' |
1024 #'labelPosition:' #topCenter |
1093 #'labelPosition:' #topCenter |
1025 ) |
1094 ) |
|
1095 #(#ArbitraryComponentSpec |
|
1096 #'name:' 'ArbitraryComponent' |
|
1097 #'layout:' #(#LayoutFrame 247 0 15 0 414 0 95 0) |
|
1098 #'hasBorder:' false |
|
1099 ) |
|
1100 #(#LabelSpec |
|
1101 #'name:' 'ArbitraryComponentLabel' |
|
1102 #'layout:' #(#AlignmentOrigin 253 0 21 0 0 0) |
|
1103 #'label:' 'ArbitraryComponent' |
|
1104 #'style:' |
|
1105 #(#FontDescription |
|
1106 #helvetica #medium |
|
1107 #roman #'10' |
|
1108 ) |
|
1109 #'adjust:' #left |
|
1110 #'resizeForLabel:' true |
|
1111 #'canUIDrag:' false |
|
1112 ) |
|
1113 #(#DividerSpec |
|
1114 #'name:' 'Vertical Separator' |
|
1115 #'layout:' #(#LayoutFrame 20 0 115 0 24 0 195 0) |
|
1116 #'orientation:' #vertical |
|
1117 ) |
|
1118 #(#DividerSpec |
|
1119 #'name:' 'Horizontal Separator' |
|
1120 #'layout:' #(#LayoutFrame 20 0 115 0 126 0 119 0) |
|
1121 #'orientation:' #horizontal |
|
1122 ) |
|
1123 #(#LabelSpec |
|
1124 #'name:' 'SeparatorsLabel' |
|
1125 #'layout:' #(#AlignmentOrigin 126 0 135 0 1 0.5) |
|
1126 #'label:' 'Separators' |
|
1127 #'style:' |
|
1128 #(#FontDescription |
|
1129 #helvetica #medium |
|
1130 #roman #'10' |
|
1131 ) |
|
1132 #'adjust:' #left |
|
1133 #'resizeForLabel:' true |
|
1134 #'canUIDrag:' false |
|
1135 ) |
|
1136 #(#RegionSpec |
|
1137 #'name:' 'Region' |
|
1138 #'layout:' #(#LayoutFrame 147 0 115 0 227 0 195 0) |
|
1139 #'lineWidth:' 2 |
|
1140 #'regionType:' #ellipse |
|
1141 ) |
|
1142 #(#LabelSpec |
|
1143 #'name:' 'RegionLabel' |
|
1144 #'layout:' #(#AlignmentOrigin 186 0 155 0 0.5 0.5) |
|
1145 #'label:' 'Region' |
|
1146 #'style:' |
|
1147 #(#FontDescription |
|
1148 #helvetica #medium |
|
1149 #roman #'10' |
|
1150 ) |
|
1151 #'resizeForLabel:' true |
|
1152 #'canUIDrag:' false |
|
1153 ) |
1026 #(#ViewSpec |
1154 #(#ViewSpec |
1027 #'name:' 'View' |
1155 #'name:' 'View' |
1028 #'layout:' #(#LayoutFrame 152 0 14 0 266 0 94 0) |
1156 #'layout:' #(#LayoutFrame 247 0 115 0 414 0 195 0) |
1029 ) |
1157 ) |
1030 #(#DividerSpec |
1158 #(#LabelSpec |
1031 #'name:' 'Horizontal Separator' |
1159 #'name:' 'ViewLabel' |
1032 #'layout:' #(#LayoutFrame 16 0 107 0 137 0 111 0) |
1160 #'layout:' #(#AlignmentOrigin 253 0 120 0 0 0) |
1033 #'orientation:' #horizontal |
|
1034 ) |
|
1035 #(#DividerSpec |
|
1036 #'name:' 'Vertical Separator' |
|
1037 #'layout:' #(#LayoutFrame 16 0 107 0 20 0 159 0) |
|
1038 #'orientation:' #vertical |
|
1039 ) |
|
1040 #(#LabelSpec |
|
1041 #'name:' 'viewLabel' |
|
1042 #'layout:' #(#AlignmentOrigin 158 0 20 0 0 0) |
|
1043 #'label:' 'View' |
1161 #'label:' 'View' |
1044 #'style:' |
1162 #'style:' |
1045 #(#FontDescription |
1163 #(#FontDescription |
1046 #helvetica #medium |
1164 #helvetica #medium |
1047 #roman #'10' |
1165 #roman #'10' |
1048 ) |
1166 ) |
1049 #'adjust:' #left |
1167 #'adjust:' #left |
1050 #'resizeForLabel:' true |
1168 #'resizeForLabel:' true |
1051 #'canUIDrag:' false |
1169 #'canUIDrag:' false |
1052 ) |
1170 ) |
1053 #(#LabelSpec |
1171 ) |
1054 #'name:' 'Separators' |
1172 ) |
1055 #'layout:' #(#AlignmentOrigin 136 0 117 0 1 0) |
1173 ) |
1056 #'label:' 'Separators' |
1174 ! |
1057 #'style:' |
1175 |
1058 #(#FontDescription |
1176 standartLists |
1059 #helvetica #medium |
1177 "this window spec was automatically generated by the ST/X UIPainter" |
1060 #roman #'10' |
1178 |
1061 ) |
1179 "do not manually edit this - the painter/builder may not be able to |
|
1180 handle the specification if its corrupted." |
|
1181 |
|
1182 " |
|
1183 UIPainter new openOnClass:UISelectionPanel andSelector:#standartLists |
|
1184 UISelectionPanel new openInterface:#standartLists |
|
1185 " |
|
1186 |
|
1187 <resource: #canvas> |
|
1188 |
|
1189 ^ |
|
1190 |
|
1191 #(#FullSpec |
|
1192 #'window:' |
|
1193 #(#WindowSpec |
|
1194 #'name:' 'Lists' |
|
1195 #'layout:' #(#LayoutFrame 386 0 373 0 852 0 579 0) |
|
1196 #'label:' 'Lists' |
|
1197 #'min:' #(#Point 10 10) |
|
1198 #'max:' #(#Point 1280 1024) |
|
1199 #'bounds:' #(#Rectangle 386 373 853 580) |
|
1200 ) |
|
1201 #'component:' |
|
1202 #(#SpecCollection |
|
1203 #'collection:' |
|
1204 #( |
|
1205 #(#SequenceViewSpec |
|
1206 #'name:' 'SelectionInList' |
|
1207 #'layout:' #(#LayoutFrame 19 0 13 0 224 0 107 0) |
|
1208 #'hasHorizontalScrollBar:' true |
|
1209 #'hasVerticalScrollBar:' true |
|
1210 ) |
|
1211 #(#LabelSpec |
|
1212 #'name:' 'SelectionInListLabel' |
|
1213 #'layout:' #(#AlignmentOrigin 92 0 108 0 0 1) |
|
1214 #'label:' 'SelectionInList' |
|
1215 #'style:' #(#FontDescription #helvetica #medium #roman #'10') |
1062 #'adjust:' #left |
1216 #'adjust:' #left |
1063 #'resizeForLabel:' true |
1217 #'resizeForLabel:' true |
1064 #'canUIDrag:' false |
1218 #'canUIDrag:' false |
1065 ) |
1219 ) |
1066 #(#ArbitraryComponentSpec |
1220 #(#SelectionInTreeViewSpec |
1067 #'name:' 'ArbitraryComponent' |
1221 #'name:' 'selectionInTree' |
1068 #'layout:' #(#LayoutFrame 278 0 14 0 392 0 94 0) |
1222 #'layout:' #(#LayoutFrame 244 0 13 0 449 0 107 0) |
1069 #'hasHorizontalScrollBar:' false |
1223 #'hasHorizontalScrollBar:' true |
1070 #'hasVerticalScrollBar:' false |
1224 #'hasVerticalScrollBar:' true |
1071 #'hasBorder:' false |
1225 ) |
1072 ) |
1226 #(#LabelSpec |
1073 #(#RegionSpec |
1227 #'name:' 'SelectionInTreeLabel' |
1074 #'name:' 'Region' |
1228 #'layout:' #(#AlignmentOrigin 317 0 108 0 0 1) |
1075 #'layout:' #(#LayoutFrame 146 0 107 0 211 0 172 0) |
1229 #'label:' 'SelectionInTree' |
1076 #'lineWidth:' 2 |
1230 #'style:' #(#FontDescription #helvetica #medium #roman #'10') |
1077 #'regionType:' #ellipse |
|
1078 ) |
|
1079 #(#LabelSpec |
|
1080 #'name:' 'RegionLabel' |
|
1081 #'layout:' #(#AlignmentOrigin 181 0 140 0 0.5 0.5) |
|
1082 #'label:' 'Region' |
|
1083 #'style:' |
|
1084 #(#FontDescription |
|
1085 #helvetica #medium |
|
1086 #roman #'10' |
|
1087 ) |
|
1088 #'resizeForLabel:' true |
|
1089 #'canUIDrag:' false |
|
1090 ) |
|
1091 #(#LabelSpec |
|
1092 #'name:' 'ArbitraryComponentLabel' |
|
1093 #'layout:' #(#AlignmentOrigin 284 0 20 0 0 0) |
|
1094 #'label:' 'ArbitraryComponent' |
|
1095 #'style:' |
|
1096 #(#FontDescription |
|
1097 #helvetica #medium |
|
1098 #roman #'10' |
|
1099 ) |
|
1100 #'adjust:' #left |
1231 #'adjust:' #left |
1101 #'resizeForLabel:' true |
1232 #'resizeForLabel:' true |
1102 #'canUIDrag:' false |
1233 #'canUIDrag:' false |
1103 ) |
1234 ) |
1104 ) |
1235 ) |
1282 !UISelectionPanel methodsFor:'change & update'! |
1413 !UISelectionPanel methodsFor:'change & update'! |
1283 |
1414 |
1284 update:something with:aParameter from:changedObject |
1415 update:something with:aParameter from:changedObject |
1285 "one of my models changed its value |
1416 "one of my models changed its value |
1286 " |
1417 " |
1287 |channel label| |
1418 |channel label topView| |
1288 |
1419 |
1289 (channel := self clientSpec) == changedObject ifTrue:[ |
1420 (channel := self clientSpec) == changedObject ifTrue:[ |
1290 label := self builder componentAt:#clientSpecLabel. |
1421 topView := builder window topView. |
1291 |
1422 |
1292 channel value notNil ifTrue:[ |
1423 (label := channel value) notNil ifTrue:[ |
1293 label label:(' ', channel value name, ' '). |
1424 topView label:label name, ' '. |
1294 label level:1. |
|
1295 ] ifFalse:[ |
1425 ] ifFalse:[ |
1296 label label:nil. |
1426 topView label:'Component Gallery ' |
1297 label level:0. |
|
1298 ] |
1427 ] |
1299 ]. |
1428 ]. |
1300 |
1429 |
1301 super update:something with:aParameter from:changedObject. |
1430 super update:something with:aParameter from:changedObject. |
1302 |
1431 |