Home » Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1 » Readersoft/Converter/!Converter/!RunImage
Readersoft/Converter/!Converter/!RunImage
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1 |
Filename: | Readersoft/Converter/!Converter/!RunImage |
Read OK: | ✔ |
File size: | 14C44 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
��0O� ����0�0� R��(�O�V �DL � - Desktop Converter &� - By Thomas Baldwin January 1995 (� � �:�" at line ";� �10:� 2check% = � <selected% = 0 F value = 0 Pthe_unit$ = "Metres" Zheading_one$ = "Original" dheading_two$ = "Unit" n!heading_three$ = "Conversion" xheading_four$ = "Unit" �save_selected% = � �save_csv_selected% = � �save_all% = � �name$="" �maths_a$="0" �maths_b$="0" �csv_head$="heading" ��define_arrays ��define_variables �� � �error(�,�$):�quit �,task_handle%=�task_initialise(app_name$) ��=0 ��install_icon �load_sprites �load_windows �create_windows " �info , �menus 6�null_variables @�configure J� � �error(�,�$) T�wimp_poll ^ �quit h��define_arrays r� blk_size% |blk_size%=&800 �� blk% blk_size% �� temp_blk% blk_size% �� errorblk% &100 �� workstart% &2400 �workfree%=workstart% �workend%=workstart%+&1000 ��more_arrays �� � �� �configure �&file%=�"<DTConvert$Dir>.Configure" �heading$=�#file% �heading_one$=�#file% heading_two$=�#file% heading_three$=�#file% heading_four$=�#file% & beep$=�#file% 0 adjust_drag$=�#file% : �#file% D �set_up_options N� X b� �set_up_options l) �put_icon_text(opt%,10,heading_one$) v) �put_icon_text(opt%,11,heading_two$) �+ �put_icon_text(opt%,12,heading_three$) �* �put_icon_text(opt%,13,heading_four$) � � heading$="noheading" � � �select_icon(opt%,9,�) � �shade_icon(opt%,10,�) � �shade_icon(opt%,11,�) � �shade_icon(opt%,12,�) � �shade_icon(opt%,13,�) � � � �select_icon(opt%,9,�) � �shade_icon(opt%,10,�) � �shade_icon(opt%,11,�) � �shade_icon(opt%,12,�) �shade_icon(opt%,13,�) � - � beep$="beep" � �select_icon(opt%,14,�) / � beep$="nobeep" � �select_icon(opt%,14,�) *6 � adjust_drag$="adjust" � �select_icon(opt%,15,�) 48 � adjust_drag$="noadjust" � �select_icon(opt%,15,�) >� H R��more_arrays \ save_area_size%=&8000 f' � save_area_start% save_area_size% p save_data_size%=0 z save_data_size%=0 � temp%=save_area_start% � $temp%="" � load_area_size%=&2000 �' � load_area_start% load_area_size% � load_data_size%=0 �& load_area_start%=save_area_start% �� � �� �save_figure_setup � � save$,count%,save% � save%=0 � � count%=0 � 27 � 3 �, � �get_icon_text(store%,count%)<>"" � 4 save%+=�(�get_icon_text(main%,count%)+" = ") 4 save%+=�(�get_icon_text(main%,count%+2)+�13) � $ � count% .# save$=�get_icon_text(main%,17) 8 save_data_size%=0 B save_data_size%=save% L temp%=0 V temp%=save_area_start% ` $temp%="" j � save_all%=� � tG $temp% = �(�(�get_icon_text(main%,17)+�get_icon_text(main%,24))) ~, $temp%+= " "+�get_icon_text(main%,15) � � �G $temp% = �(�(�get_icon_text(main%,17)+�get_icon_text(main%,24))) � � � temp%+=� $temp% �- save_data_size%=temp%-save_area_start% �� � �� �save_setup � � save$,count%,save% � save%=0 � � count%=0 � 27 � 3 �, � �get_icon_text(store%,count%)<>"" � 5 save%+=�(�get_icon_text(store%,count%)+" = ") 5 save%+=�(�get_icon_text(store%,count%+2)+�13) � � count% (# save$=�get_icon_text(main%,17) 2 save_data_size%=0 < save_data_size%=save% F temp%=save_area_start% P � save_selected%=� � Z � count%=0 � 27 � 3 d, � �get_icon_text(store%,count%)<>"" � n $temp%="" xW $temp%+=(�get_icon_text(store%,count%)+" = ")+(�get_icon_text(store%,count%+2)) � $temp%+=�&0A � temp%=temp%+ � $temp% � � � � count% � � count%=37 � 40 � 3 �, � �get_icon_text(store%,count%)<>"" � � $temp%="" �W $temp%+=(�get_icon_text(store%,count%)+" = ")+(�get_icon_text(store%,count%+2)) � $temp%+=�&0A � temp%=temp%+ � $temp% � � � � count% � � temp%=0 temp%=save_area_start% $temp%="" " � count%=0 � 27 � 3 ,O � �get_icon_text(store%,count%)<>"" � �icon_selected(store%,count%)=� � 6 $temp%="" @X $temp%+=(�get_icon_text(store%,count%)+" = ")+(�get_icon_text(store%,count%+2)) J $temp%+=�&0A T temp%+= � $temp% ^ � h � count% r � count%=37 � 40 � 3 |O � �get_icon_text(store%,count%)<>"" � �icon_selected(store%,count%)=� � � $temp%="" �X $temp%+=(�get_icon_text(store%,count%)+" = ")+(�get_icon_text(store%,count%+2)) � $temp%+=�&0A � temp%+= � $temp% � � � � count% �*save_data_size%=temp%-save_area_start% � � �� � �� �save_csv_setup �> � save$,count%,save%,count_again%,text$,pos%,fix%,repeat% � save%=0 repeat%=0 fix%=� count_again%=0 &� save_csv_selected%=� � 0 temp%=0 : save_data_size%=0 D save_data_size%=save% N temp%=save_area_start% X $temp%="" b� heading$="heading" � l' $temp%+=""""+heading_one$+""""+"," v temp%+=� $temp% �' $temp%+=""""+heading_two$+""""+"," � temp%+=� $temp% �) $temp%+=""""+heading_three$+""""+"," � temp%+=� $temp% �) $temp%+=""""+heading_four$+""""+�&0A �� � temp%+=� $temp% � � repeat%=1 � 2 �' � repeat%=1 � � count%=0 � 27 � 3 �( � repeat%=2 � � count%=37 � 40 � 3 �, � �get_icon_text(store%,count%)<>"" � � temp%+=� $temp% �+ text$=�get_icon_text(store%,count%) count_again%=0 pos%=0 � count_again%+=1 *D � � �text$,count_again%)>&40 � � �text$,count_again%)<&5B � 4 pos%=count_again% > � H1 � count_again%>30 � pos%=� text$:fix%=� R � pos%>0 \ � fix%=� � fH $temp%+=�text$,� text$-(pos%+1))+","+""""+�text$,pos%)+""""+"," p � z $temp%+=text$+",," � � � temp%+=� $temp% � �. text$=�get_icon_text(store%,count%+2) � count_again%=0 � pos%=0 � fix%=� � � � count_again%+=1 �E � � �text$,count_again%)>&40 � � �text$,count_again%)<&5B � � pos%=count_again% � � �1 � count_again%>30 � pos%=� text$:fix%=� � pos%>0 � fix%=� � I $temp%+=�text$,� text$-(pos%+1))+","+""""+�text$,pos%)+""""+�&0A $ � . $temp%+=text$+","+�&0A 8 � B temp%+= � $temp% L � V � count% ` � repeat% j- save_data_size%=temp%-save_area_start% t � ~ temp%=0 � save_data_size%=0 � save_data_size%=save% � temp%=save_area_start% � $temp%="" �) $temp%+=""""+heading_one$+""""+"," � temp%+=� $temp% �) $temp%+=""""+heading_two$+""""+"," � temp%+=� $temp% �+ $temp%+=""""+heading_three$+""""+"," � temp%+=� $temp% �+ $temp%+=""""+heading_four$+""""+�&0A � temp%+=� $temp% � repeat%=1 � 2 ' � repeat%=1 � � count%=0 � 27 � 3 ( � repeat%=2 � � count%=37 � 40 � 3 N � �get_icon_text(store%,count%)<>"" � �icon_selected(store%,count%)=� � ( temp%+=� $temp% 2+ text$=�get_icon_text(store%,count%) < count_again%=0 F fix%=� P pos%=0 Z � d count_again%+=1 nD � � �text$,count_again%)>&40 � � �text$,count_again%)<&5B � x pos%=count_again% � � �1 � count_again%>30 � pos%=� text$:fix%=� � � pos%>0 � � fix%=� � �G $temp%+=�text$,� text$-(pos%+1))+","+""""+�text$,pos%)+""""+"," � � � $temp%+=text$+",," � � � temp%+=� $temp% � �. text$=�get_icon_text(store%,count%+2) � count_again%=0 � pos%=0 fix%=� � count_again%+=1 "E � � �text$,count_again%)>&40 � � �text$,count_again%)<&5B � , pos%=count_again% 6 � @1 � count_again%>30 � pos%=� text$:fix%=� J � pos%>0 T � fix%=� � ^H $temp%+=�text$,� text$-(pos%+1))+","+""""+�text$,pos%)+""""+�&0A h � r $temp%+=text$+","+�&0A | � � temp%+= � $temp% � � � � count% � � repeat% �*save_data_size%=temp%-save_area_start% �� �� � ���define_variables � negative%=� � app_sprite$ ="!Converter" �' app_name$ ="Desktop Converter" �% app_purpose$ ="Unit conversion" $ app_author$ ="Thomas Baldwin" ) app_version$ ="1.07, February 1995" +� LIBRARY "<Obey$Dir>.Library.WimpLib" &0 app_directory$=�system_variable("Obey$Dir") 0 errorcount%=0 : menufile%=0 D icon_bar%=-2 N adjust_click%=1 X menu_click%=2 b select_click%=4 l adjust_drag%=16 v select_drag%=64 � poll_mask%=0 � poll_time%=0 � quit%=� � exp%=0 � �more_variables �� � ���more_variables � metric%=� � type%=1 � ref_number%=2 � menu_number%=3 � memory_transfer%=� ram_block_size%=1024 ok_icon%=0 name_icon%=2 file_icon%=3 *� 4 >��install_icon H; icon_bar_handle%=�put_icon_on_bar(app_sprite$,"RIGHT") R� \ f��load_sprites p� z ���load_windows � templates$=".Templates" �D � �system_variable("version")="TRUE" � templates$=".Templates2" �O info% =�new_template(app_directory$+templates$,"info",workfree%,workend%) �O main% =�new_template(app_directory$+templates$,"main",workfree%,workend%) �O opt%=�new_template(app_directory$+templates$,"options",workfree%,workend%) �O save% =�new_template(app_directory$+templates$,"save",workfree%,workend%) �P store% =�new_template(app_directory$+templates$,"store",workfree%,workend%) �W save_csv% =�new_template(app_directory$+templates$,"save_csv",workfree%,workend%) �Q maths% = �new_template(app_directory$+templates$,"Maths",workfree%,workend%) �� � ���create_windows � ��info $J �put_info_text(info%,app_name$,app_purpose$,app_author$,app_version$) .� 8 B��menus L) �load_menus(app_directory$+".menus") V� ` j��wimp_poll t � ~; ș"Wimp_PollIdle",poll_mask%,blk%,poll_time% � event% � Ȏ event% � � � 0 � � 1 � �redraw_window � � 2 � �open_window_event � � 3 �- window%=!blk%:�close_window(window%) � � 4 � �pointer_out � � 5 � �pointer_in � 6 �mouse_button � 7 �drag_over ( � 8 2 �key_press < � 9 F �menu_selection P �10 Z �scroll_request d �11 n �loose_caret x �12 � �gain_caret � �17 � �message � �18 � �message � �19 � �no_reply � � � � quit% � �quit �� � ���redraw_window " � redraw_window%,redraw_more% / ș"Wimp_RedrawWindow",,blk% � redraw_more% ȕ redraw_more% " redraw_window%=!blk% , Ȏ redraw_window% � 6 � print_window% @% �redraw_print_window(blk%) J � TG !blk%=redraw_window%:ș"Wimp_GetRectangle",,blk% � redraw_more% ^ � h� r |� �open_window_event � ș "Wimp_OpenWindow",,blk% �� � �� �close_window(window%) � !blk%=window% � ș "Wimp_CloseWindow",,blk% �� � �� �pointer_out �� � �� �pointer_in �� � �mouse_button A mousex%=blk%!0 :� X position of pointer when clicked &A mousey%=blk%!4 :� Y position of pointer when clicked 0* mousebut%=blk%!8 :� Button code :: window_handle%=blk%!12 :� Handle of window clicked in D8 icon_handle%=blk%!16 :� Handle of icon clicked on N Ȏ window_handle% � X � icon_bar% b �icon_bar_click l � info% v0 � icon_handle%=9 � �open_window(silly%) � � main% � �main_click � � save% � �save_click � � save_csv% � �save_csv_click � � store% � �store_click � � opt% � �opt_click � � maths% � �maths_click � � � ��drag_over 2� window%,icon%,x%,y%,file$,start%,size%,type% *# ș "Wimp_GetPointerInfo",,blk% 46 x%=blk%!0:� Mouse pointer x coord. at end of drag >6 y%=blk%!4:� Mouse pointer y coord. at end of drag HI window%=blk%!12:� Handle of window which pointer has been dragged to R9 icon%=blk%!16:� Handle of icon which pointer is over \ Ȏ drag_window% � f � save%,save_csv% p � save_data_size%>0 � z6 file$=�leaf(�get_icon_text(save%,name_icon%)) � start%=save_area_start% � size%=save_data_size% �9 type%=�icon_sprite_type(drag_window%,file_icon%) �E �initiate_save(window%,icon%,x%,y%,file$,start%,size%,type%) � � � � main% � � save_data_size%>0 � � file$="Converted" � start%=save_area_start% � size%=save_data_size% �* type%=�icon_sprite_type(main%,31) �E �initiate_save(window%,icon%,x%,y%,file$,start%,size%,type%) � � � � $� �deselect(abc%) . � count% 8 � count% = 0 � 27 � 3 B- � �icon_selected(store%,count%)=abc% � L, �select_icon(store%,count%,(� abc%)) V. �select_icon(store%,count%+2,(� abc%)) ` � j � count% t � count% = 37 � 40 � 3 ~- � �icon_selected(store%,count%)=abc% � �, �select_icon(store%,count%,(� abc%)) �. �select_icon(store%,count%+2,(� abc%)) � � � � count% � ��shade_icon(store%,30,abc%) ��shade_icon(store%,31,abc%) �� � �� �is_owt_selected �� count% � � count% = 0 � 27 � 3 � count% " �shade_icon(store%,30,� abc%) " �shade_icon(store%,31,� abc%) � ( 2� �do_i_shade < � selected%=0 � F �shade_icon(store%,30,�) P �shade_icon(store%,31,�) Z � d �shade_icon(store%,30,�) n �shade_icon(store%,31,�) x � �� � �� �select_select(count%) �' Ȏ �icon_selected(store%,count%) � � � � �, � �get_icon_text(store%,count%)<>"" � � selected%+=1 �% �select_icon(store%,count%,�) �) �select_icon(store%,(count%+2),�) � � � � � � selected%-=1 �$ �select_icon(store%,count%,�) ( �select_icon(store%,(count%+2),�) � �do_i_shade "� , 6� �store_click @? � mousebut%=menu_click% � adjust_click% � select_click% � J Ȏ icon_handle% � T � 35 ^ current_menu%=menu%(16) h menu_context$="Main" r menu_x%=mousex%+32 | menu_y%=mousey% �< ș "Wimp_CreateMenu",,current_menu%,menu_x%,menu_y% � �" � mousebut%=menu_click% � �! current_menu%=menu%(17) � menu_context$="Main" � menu_x%=mousex%-32 � menu_y%=mousey% �< ș "Wimp_CreateMenu",,current_menu%,menu_x%,menu_y% � � � � � � � Ȏ mousebut% � �# � select_click%,adjust_click% Ȏ icon_handle% � � 0,1,2 . �select_select((�(icon_handle%/3))*3) & � 3,4,5 0. �select_select((�(icon_handle%/3))*3) : � 6,7,8 D. �select_select((�(icon_handle%/3))*3) N � 9,10,11 X. �select_select((�(icon_handle%/3))*3) b � 12,13,14 l. �select_select((�(icon_handle%/3))*3) v � 15,16,17 �. �select_select((�(icon_handle%/3))*3) � � 18,19,20 �. �select_select((�(icon_handle%/3))*3) � � 21,22,23 �. �select_select((�(icon_handle%/3))*3) � � 24,25,26 �. �select_select((�(icon_handle%/3))*3) � � 27,28,29 �. �select_select((�(icon_handle%/3))*3) � � 37,38,39 � �select_select(37) � � 40,41,42 � �select_select(40) � 30 �deselect(�) selected%=0 � 31 * �delete_selected 4 � 32 > �sel_all H � 33 R( �open_window(save%):�menu_close \8 �place_caret(save%,1,� �get_icon_text(save%,1)) f � 34 p �close_window(store%) z � 36 � �print � � � � �� � �� �sel_all �selected%=0 � � count% � � count% = 0 � 27 � 3 �, � �get_icon_text(store%,count%)<>"" � �% �select_icon(store%,count%,�) �' �select_icon(store%,count%+2,�) � selected%+=1 � � count% � count% = 37 � 40 � 3 $, � �get_icon_text(store%,count%)<>"" � .% �select_icon(store%,count%,�) 8' �select_icon(store%,count%+2,�) B selected%+=1 L � V � count% ` j� selected%>0 � t �shade_icon(store%,30,�) ~ �shade_icon(store%,31,�) �� �� � �� �delete_selected � � count% � � count% = 0 � 27 � 3 �* � �icon_selected(store%,count%)=� � �( �put_icon_text(store%,count%,"") �* �put_icon_text(store%,count%+2,"") �% �select_icon(store%,count%,�) �' �select_icon(store%,count%+2,�) � � � count% � count% = 37 � 40 � 3 * � �icon_selected(store%,count%)=� � ( �put_icon_text(store%,count%,"") (* �put_icon_text(store%,count%+2,"") 2% �select_icon(store%,count%,�) <' �select_icon(store%,count%+2,�) F � P � count% Z d selected%=0 n �shade_icon(store%,30,�) x �shade_icon(store%,31,�) �� � �� �save_click � Ȏ mousebut% � �# � adjust_click%,select_click% � Ȏ icon_handle% � � � 1 �& � �icon_selected(save%,1)=� � �2 �select_icon(save%,1,�):save_selected%=� � � �2 �select_icon(save%,1,�):save_selected%=� � � � � 0 �save_setup , file_name$=�get_icon_text(save%,2) file_type%=&FFF " � �file_name$,".") � ,M �save_data(file_name$,file_type%,save_area_start%,save_data_size%) 6 �menu_close @ � JK �report_error("Drag the file to a directory display.",app_name$) T � ^ � h! � select_drag%,adjust_drag% r�save_setup | � icon_handle%=3 � �A � Remember which icon was dragged and from which window � drag_icon%=3 � drag_window%=save% � �drag_box(save%,3) � � � � �� � �� �main_drag � Ȏ mousebut% � � � select_drag% � save_all% = � � � adjust_drag% save_all% = � , � adjust_drag$="adjust" save_all% = � � & �save_figure_setup 0 drag_icon% = 31 : file_type% = &FFF D drag_window%=main% N file_name$ = "Converted" X �drag_box(main%,31) b� l v� �save_csv_click � Ȏ mousebut% � �# � adjust_click%,select_click% � Ȏ icon_handle% � � � 1 �* � �icon_selected(save_csv%,1)=� � �: �select_icon(save_csv%,1,�):save_csv_selected%=� � � �: �select_icon(save_csv%,1,�):save_csv_selected%=� � � � � 0 ��save_csv_setup �0 file_name$=�get_icon_text(save_csv%,2) � file_type%=&DFE � �file_name$,".") � M �save_data(file_name$,file_type%,save_area_start%,save_data_size%) �menu_close � *K �report_error("Drag the file to a directory display.",app_name$) 4 � > � H! � select_drag%,adjust_drag% R�save_csv_setup \ � icon_handle%=3 � f drag_icon%=3 p drag_window%=save_csv% z �drag_box(save_csv%,3) � � � � �� � �� �opt_key � Ȏ icon_handle% � � � 10,11,12,13 � Ȏ key% � � � &D,&18A,&18E � � icon_handle%=13 � �9 �place_caret(opt%,10,� �get_icon_text(opt%,10)) � � �Q �place_caret(opt%,icon_handle%+1,� �get_icon_text(opt%,icon_handle%+1)) � � &18F � icon_handle%=10 � $9 �place_caret(opt%,13,� �get_icon_text(opt%,13)) . � 8Q �place_caret(opt%,icon_handle%-1,� �get_icon_text(opt%,icon_handle%-1)) B � L � V � `� j t� �math_key ~ Ȏ icon_handle% � � � 2 � Ȏ key% � � � &D,&18A,&18E,&18F �G �place_caret(maths%,5,� �get_icon_text(maths%,icon_handle%+1)) � � � � 5 � Ȏ key% � � � &D,&18A,&18E,&18F � � key% = &D � � �math_calc � � �H �place_caret(maths%,2,� �get_icon_text(maths%,icon_handle%+1)) � � � � ( 2��key_press < window_handle%=blk%!0 F icon_handle%=blk%!4 P key%=blk%!24 Z � window_handle%=opt% � d �opt_key n � x � �! � window_handle%=maths% � � �math_key � � � � � Ȏ key% � � � &1 � �sel_all � � &18 � �delete_selected � � &1A � �deselect(�) � selected%=0 � � &191 � type% = 1 � / � �data_type_menu("Length �F1") � " �menu_close , � &192 6 � type% =2 � @/ � �data_type_menu("Area �F2") J � T �menu_close ^ � &193 h � type% =3 � r/ � �data_type_menu("Mass �F3") | � � �menu_close � � &194 � � type% =4 � �/ � �data_type_menu("Volume �F4") � � � �menu_close � � &195 � � type% =5 � �/ � �data_type_menu("Capacity �F5") � � � �menu_close � � &196 � � type% =6 � / � �data_type_menu("Temperature �F6") � �menu_close & � &183:� open save menu 0 �menu_close :( ș "Wimp_GetPointerInfo",,blk% D mousex%=blk%!0 N mousey%=blk%!4 X! current_menu%=menu%(16) b menu_context$="Main" l menu_x%=mousex%-32 v menu_y%=mousey% �= ș "Wimp_CreateMenu",,current_menu%,menu_x%,menu_y% � � &184 � �open_window(opt%) �9 �place_caret(opt%,10,� �get_icon_text(opt%,10)) � � &185:� - From Metric � � metric%=� � � �change_metric(�) � �tick(15,3,�) � �tick(15,2,�) � � � � &186:� - To Metric � � metric%=� � � �change_metric(�) ! �tick(15,3,�) ! �tick(15,2,�) ! � ! � 13 !* Ȏ window_handle% � !4 � main% !> �oh_smeg !H �menu_close !R � beep$="beep" � �7 !\ � save% !f. �save_key_press(key%,icon_handle%) !p � !z � &1A1 !� �menu_close !� �close_window(store%) !� � &1A2 !� �menu_close !�4 �close_window(main%):�close_window(store%) !�3 �close_window(opt%):�close_window(maths%) !� � &1A7 !� �down(type%) !� � &1A8 !� �up(type%) !� � &1A9 !� �exp_down !� � &1EA " �exp_up " � &181 "C � �icon_selected(main%,23) = � � �select_icon(main%,23,�) "$ � &182 ".C � �icon_selected(main%,23) = � � �select_icon(main%,23,�) "8 � &189 "B �send_to_store "L � &1CA "V �open_window(store%) "` � &1CB "j �open_window(maths%) "tH �place_caret(maths%,2,� �get_icon_text(maths%,icon_handle%+1)) "~ "�! ș"Wimp_ProcessKey",key% "� � "�� "� "�'��save_key_press(key%,icon_handle%) "�� file_name$,file_type% "� Ȏ key% � "�A � 13:� "Return" pressed with the caret in the "save" window "� Ȏ window_handle% � "� � save% "�4 file_name$=�get_icon_text(save%,name_icon%) "�7 file_type%=�icon_sprite_type(save%,file_icon%) # � �file_name$,".") � # M �save_data(file_name$,file_type%,save_area_start%,save_data_size%) # �menu_close # � #(K �report_error("Drag the file to a directory display.",app_name$) #2 � #< � save_csv% #F8 file_name$=�get_icon_text(save_csv%,name_icon%) #P; file_type%=�icon_sprite_type(save_csv%,file_icon%) #Z � �file_name$,".") � #dM �save_data(file_name$,file_type%,save_area_start%,save_data_size%) #n �menu_close #x � #�K �report_error("Drag the file to a directory display.",app_name$) #� � #� � #� � #�� #� #�� �math_calc #�%maths_a$=�get_icon_text(maths%,2) #�%maths_b$=�get_icon_text(maths%,5) #� #�" Ȏ �get_icon_text(maths%,4) � #� � "Plus" #�: �put_icon_text(maths%,9,�(�(maths_a$)+�(maths_b$))) $ � "Minus" $: �put_icon_text(maths%,9,�(�(maths_a$)-�(maths_b$))) $ � "Multiplied by" $": �put_icon_text(maths%,9,�(�(maths_a$)*�(maths_b$))) $, � "Divided by" $6: �put_icon_text(maths%,9,�(�(maths_a$)/�(maths_b$))) $@ � $J� $T $^� �save_request $h$� to_window%,to_icon%,data_type% $r2� Another task wants to save data to this task $|to_window%=blk%!20 $�to_icon%=blk%!24 $�data_type%=blk%!40 $� Ȏ data_type% � $� � &FFF $� � Data is of text type $�# � Send back an OK message $�< �message_save_ok(load_area_start%,load_area_size%) $� � $�� $� $���load_request $�� file_type%,file_name$ $�file_type%=blk%!40 % Ȏ file_type% � % � &FFF %- file_name$=�get_string(blk%+44,255) %&I load_data_size%=�message_load(load_area_start%,load_area_size%) %0 � %:� %D %N��save_demand %X� file_name$,file_type% %b'file_name$=�get_string(blk%+44,255) %l,� blk%!36=-1 � to_filer%=� � to_filer%=� %vfile_type%=blk%!40 %� Ȏ drag_window% � %� � save%,save_csv% %�I �save_data(file_name$,file_type%,save_area_start%,save_data_size%) %� �message_save_reply %�< � to_filer% �put_icon_text(drag_window%,2,file_name$) %� � main% %�I �save_data(file_name$,file_type%,save_area_start%,save_data_size%) %� �message_save_reply %� � %��menu_close %�� %� %���menu_selection & � menu_path$,menu_item$ &1 menu_path$=�decode_menu(current_menu%,blk%) &" menu_item$=�leaf(menu_path$) & Ȏ current_menu% � &* � menu%(1) &4 �main_menu(menu_item$) &> � menu%(2) &H$ �data_type_menu(menu_item$) &R � menu%(3) &\$ �length_mt_menu(menu_item$) &f � menu%(4) &p! �length_menu(menu_item$) &z � menu%(5) &�" �area_mt_menu(menu_item$) &� � menu%(6) &� �area_menu(menu_item$) &� � menu%(7) &�" �mass_mt_menu(menu_item$) &� � menu%(8) &� �mass_menu(menu_item$) &� � menu%(9) &�$ �volume_mt_menu(menu_item$) &� � menu%(10) &�! �volume_menu(menu_item$) &� � menu%(11) &�& �capacity_mt_menu(menu_item$) ' � menu%(12) '# �capacity_menu(menu_item$) ' � menu%(13) '$" �temp_mt_menu(menu_item$) '. � menu%(14) '8 �temp_menu(menu_item$) 'B � menu%(15) 'L �menu(menu_item$) 'V � menu%(17) '` �store_menu(menu_item$) 'j � menu%(18) 't �maths_menu(menu_item$) '~ � '�# ș"Wimp_GetPointerInfo",,blk% '�B �blk%!8=1 ș"Wimp_CreateMenu",,current_menu%,menu_x%,menu_y% '�� '� '���scroll_request '�� '� '���loose_caret '�� '� '���gain_caret '�� ( ( ��message (� message_type% (message_type%=blk%!16 (( Ȏ message_type% � (2 � 0 (< quit%=� (F � 1 (P �save_request (Z � 7 (d �ram_transmit (n � 3 (x �load_request (� � 2 (� �save_demand (� � 6 (� �ram_transfer_reply (� � 4 (� �menu_close (� � 5 (� � &502 (� �get_help (� � (�� (� (�� �get_help ) window_handle%=blk%!32 ) icon_handle%=blk%!36 ) Ȏ window_handle% � )" � maths% ), Ȏ icon_handle% � )6 � 2,5 )@Z �give_help("Enter a number to add, subtract multiply, or divide into this icon.") )J � 4 )Tz �give_help("These shows the arthimetic operation to be performed upon the numbers in the two icons to the left.") )^ � 8 )h/ �give_help("Click here to calculate.") )r � 9 )|* � �get_icon_text(maths%,9)="42" � )�L �give_help("The meaning of life, the universe, and everything...") )� � )�3 �give_help("This icon shows the answer.") )� � )� � )� � -2 ) �give_help("This is the Desktop Converter icon.|MClick SELECT or ADJUST to open the main window.|MClick MENU to open the icon bar menu.") )� � info% )� Ȏ icon_handle% � )� � 1 )�) �give_help("Desktop Converter.") )� � 2 )�' �give_help("Unit conversion.") * � 3 *& �give_help("Thomas Baldwin.") * � 4 *&2 �give_help("Version 1.05, January 1995.") *0 *:/ �give_help("This is the Info window.") *D � *N � main% *X Ȏ icon_handle% � *b � 2 *lJ �give_help("Click SELECT or ADJUST to convert to metric values.") *v � 3 *�z �give_help("This shows the type of measurement to be converted.|MClick on the icon to the right to change this.") *� � 4 *�L �give_help("Click SELECT or ADJUST to convert from metric values.") *� � 5 *�] �give_help("Click here to bring up a menu in order to change the measurement type.") *� � 7 *�� �give_help("Click SELECT or ADJUST to place the caret in this icon.|MType the value to be converted in here.|MPress RETURN with the caret in this icon to convert.") *� � 8 *�k �give_help("This shows the unit to be converted.|MClick on the icon to the right to change this.") *� � 9 *�` �give_help("Click here to bring up a menu in order to change the unit of measurement.") *� � 15 *�g �give_help("This shows the converted unit.|MClick on the arrows to the right to change this.") + � 17 +6 �give_help("This shows the converted value.") + � 19 + �give_help("Click SELECT to calculate the converted value.|MClick ADJUST to calculate and store the converted value.") +* � 20,21 +4� �give_help("Click SELECT on either arrow to invrease or decrease the converted unit.|MClicking ADJUST has the opposite effect.") +> � 23 +H] �give_help("Click SELECT or ADJUST to toggle between positive and negative values.") +R � 24 +\G �give_help("This shows the exponent of the converted number.") +f � 25 +pw �give_help("This shows the exponent of the original value.|MClick on the arrows to the right to change this.") +z � 26,27 +�Z �give_help("Click on these arrows to change the exponent of the original value.") +� � 28 +� �give_help("Click SELECT to store the conversion.|MClick ADJUST to store the conversion and open the records window.") +� � 29 +�I �give_help("Click SELECT or ADJUST to open the records window.") +� � 31 +�" � adjust_drag$="adjust" � +�k �give_help("Drag SELECT to save the number and its unit.|MDrag ADJUST to save the number alone.") +� � +�N �give_help("Drag SELECT or ADJUST to save the number and its unit.") +� � +� � +� � opt% , Ȏ icon_handle% � , � 0 ,h �give_help("Click SELECT or ADJUST here to close the window without implementing any changes.") ,$ � 1 ,.� �give_help("Click SELECT or ADJUST to save any changes.|MNote you must click on OK in order to implement them straight away.") ,8 � 2 ,Ba �give_help("Click SELECT or ADJUST to close the window and implement any changes made.") ,L � 9 ,Vl �give_help("Click SELECT or ADJUST to toggle between headings/no headings in any CSV files saved.") ,` � 10 ,j� �give_help("The original number heading in any CSV files saved.|MTo change the heading click SELECT or ADJUST to place the caret in the icon and type in a new heading.") ,t � 11 ,~� �give_help("The original unit heading in any CSV files saved.|MTo change the heading click SELECT or ADJUST to place the caret in the icon and type in a new heading.") ,� � 12 ,�� �give_help("The converted number heading in any CSV files saved.|MTo change the heading click SELECT or ADJUST to place the caret in the icon and type in a new heading.") ,� � 13 ,�� �give_help("The converted unit heading in any CSV files saved.|MTo change the heading click SELECT or ADJUST to place the caret in the icon and type in a new heading.") ,� � 14 ,�i �give_help("Click SELECT or ADJUST to toggle between beeping when a calculation has been made.") ,� � 15 ,Χ �give_help("Click SELECT or ADJUST to toggle between draging the text file icon in the main window with ADJUST saving the converted number without its unit.") ,� � ,� � store% ,� Ȏ icon_handle% � ,�Y � 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29 - d �give_help("Click SELECT or ADJUST to select this record.|MYou cannot select empty icons.") - � 30 -L �give_help("Clear SELECT or ADJUST to clear the selected records.") - � 31 -(M �give_help("Clear SELECT or ADJUST to delete the selected records.") -2 � 32 -<D �give_help("Click SELECT or ADJUST to select all records.") -F � 34 -PJ �give_help("Click SELECT or ADJUST to close the Records window.") -Z � 35 -d: �give_help("Click here to bring up a save menu.") -n � 36 -x: �give_help("Clck here to open the print window.") -� � -� � save%,save_csv% -� Ȏ icon_handle% � -� � 0 -�� �give_help("Click here to save the data with the current filename. If it is not a full pathname, you must drag the icon to a directory first.") -� � 1 -�p �give_help("Click here to toggle between saving the selected records only and saving all the records.") -� � 2 -ҁ �give_help("This shows the filename for this data. If it is not a full pathname, drag the icon to a directory display.") -� � 3 -� �give_help("Drag this icon to the directory in which you want to save the file. Or, drag it to the program into which you want to transfer the data.") -� � -� � .� . .� �give_help(help_text$) ." blk%!0=256 ., blk%!12=blk%!8 .6 blk%!16=&503 .@ $(blk%+20)=help_text$+�0 .J( ș"Wimp_SendMessage",17,blk%,blk%!4 .T� .^ .h��no_reply .rmessage_code%=blk%!16 .|Ȏ message_code% � .� � 6 .� � Check if a .� � ram_transfer% � .� � ram_transmit% � .�L �report_error("Data transfer to another task failed!",app_name$) .� � .� �message_file_save .� � .� � .� � 7 .�8 �report_error("Data transfer failed!",app_name$) .� � .�� / /��icon_bar_click / Ȏ mousebut% � /& � menu_click% /0 menu_context$="icon_bar" /: current_menu%=menu%(1) /D menu_x%=mousex%-64 /N( menu_y%=�menu_height(menu%(1))+96 /X: ș "Wimp_CreateMenu",,current_menu%,menu_x%,menu_y% /b# � select_click%,adjust_click% /l �open_window(main%) /v �place_caret(main%,7,0) /� � /�� /� /�� �shade_options(abcd%) /� � count% /� � count%=10 � 13 /�% �shade_icon(opt%,count%,abcd%) /� � count% /�� /� /�� �opt_click /� Ȏ mousebut% � /�# � select_click%,adjust_click% 0 Ȏ icon_handle% � 0 � 0 0 �close_window(opt%) 0 �set_up_options 0* �menu_close 04 � 1 0> �save_options 0H � 2 0R �close_window(opt%) 0\ �get_options 0f �menu_close 0p � 9 0z% � �icon_selected(opt%,9)=� � 0� �select_icon(opt%,9,�) 0� �shade_options(�) 0� � 0� �select_icon(opt%,9,�) 0� �shade_options(�) 0� � 0� � 14,15 0�0 � �icon_selected(opt%,icon_handle%)=� � 0�+ �select_icon(opt%,icon_handle%,�) 0� � 0�+ �select_icon(opt%,icon_handle%,�) 0� � 0� � 1 � 1� 1 1$� �maths_click 1. Ȏ mousebut% � 18# � select_click%,adjust_click% 1B Ȏ icon_handle% � 1L � 8 1V �math_calc 1`0 � mousebut%=adjust_click% � �send_maths 1j � 6 1t �send_maths 1~ � 7 1� �close_window(maths%) 1� � 3 1� current_menu%=menu%(18) 1� menu_context$="Maths" 1� menu_x%=mousex% 1� menu_y%=mousey% 1�< ș "Wimp_CreateMenu",,current_menu%,menu_x%,menu_y% 1� � 1� � menu_click% 1� � icon_handle%=3 � 1� current_menu%=menu%(18) 1� menu_context$="Maths" 2 menu_x%=mousex% 2 menu_y%=mousey% 2; ș "Wimp_CreateMenu",,current_menu%,menu_x%,menu_y% 2 � 2( � 22� 2< 2F� �save_options 2P � count% 2Z( file%=�"<DTConvert$Dir>.Configure" 2d# � �icon_selected(opt%,9)=� � 2n �#file%,"noheading" 2x � 2� �#file%,"heading" 2� � 2� � count%=10 � 13 2�* �#file%,�get_icon_text(opt%,count%) 2� � count% 2�$ � �icon_selected(opt%,14)=� � 2� �#file%,"beep" 2� � 2� �#file%,"nobeep" 2� � 2�$ � �icon_selected(opt%,15)=� � 2� �#file%,"adjust" 2� � 3 �#file%,"noadjust" 3 � 3 �#file% 3"� 3, 36� �get_options 3@ beep$="nobeep" 3J adjust_drag$="noadjust" 3T heading$="heading" 3^* heading_one$=�get_icon_text(opt%,10) 3h* heading_two$=�get_icon_text(opt%,11) 3r, heading_three$=�get_icon_text(opt%,12) 3|+ heading_four$=�get_icon_text(opt%,13) 3�1 � �icon_selected(opt%,14)=� � beep$="beep" 3�: � �icon_selected(opt%,15)=� � adjust_drag$="adjust" 3�8 � �icon_selected(opt%,9)=� � heading$="noheading" 3�� 3� 3�� �main_click 3�� check% 3� Ȏ mousebut% � 3�# � select_click%,adjust_click% 3� Ȏ icon_handle% � 3� � 28 3�& � mousebut% = select_click% � 3� �send_to_store 4 � 4 �send_to_store 4 �open_window(store%) 4& � 40 � 29 4: �open_window(store%) 4D � 4 4N( � �icon_selected(main%,4) = � � 4X! �select_icon(main%,4,�) 4b! �select_icon(main%,2,�) 4l � 4v �tick(15,3,�) 4� �tick(15,2,�) 4� metric%=� 4�! �set_unit:�selected_unit 4� � 2 4�( � �icon_selected(main%,2) = � � 4�! �select_icon(main%,2,�) 4�! �select_icon(main%,4,�) 4� � 4� �tick(15,3,�) 4� �tick(15,2,�) 4� metric%=� 4�! �set_unit:�selected_unit 4� � 19 5 �oh_smeg 5 � beep$="beep" � �7 55 � mousebut% = adjust_click% � �send_to_store 5 � 21 5*1 � mousebut% = select_click% � �up(type%) 543 � mousebut% = adjust_click% � �down(type%) 5> � 20 5H3 � mousebut% = select_click% � �down(type%) 5R1 � mousebut% = adjust_click% � �up(type%) 5\ � 27 5f. � mousebut% = select_click% � �exp_up 5p0 � mousebut% = adjust_click% � �exp_down 5z � 26 5�0 � mousebut% = select_click% � �exp_down 5�. � mousebut% = adjust_click% � �exp_up 5� � 23 5�2 � �icon_selected(main%,23)=� � check% = � 5�2 � �icon_selected(main%,23)=� � check% = � 5�. � check%=� � �select_icon(main%,23,�) 5�. � check%=� � �select_icon(main%,23,�) 5� � 5�" � select_drag%,adjust_drag% 5�( � icon_handle% = 31 � �main_drag 5� � menu_click% 5� 5� � 6 Ȏ mousebut% � 6/ � menu_click%,adjust_click%,select_click% 6 Ȏ icon_handle% � 6$ � 5,9,16 6.2 � icon_handle%=5 � current_menu%=menu%(2) 68= � icon_handle%=9 � current_menu%=menu%(menu_number%) 6B2 � icon_handle%=16 � current_menu%=menu%(2) 6L$ menu_context$="Measurement" 6V menu_x%=mousex% 6` menu_y%=mousey% 6j< ș "Wimp_CreateMenu",,current_menu%,menu_x%,menu_y% 6t �set_unit 6~ 6�" � mousebut%=menu_click% � 6�! current_menu%=menu%(15) 6� menu_context$="Main" 6� menu_x%=mousex%-32 6� menu_y%=mousey% 6�= ș "Wimp_CreateMenu",,current_menu%,menu_x%,menu_y% 6� � 6� � 6� � 6�� 6� 6�� �send_to_store 7 � count%,pass% 7 pass% =0 7 count%=0 7 � 7(G � �get_icon_text(store%,count%)="" � �take_units(count%):pass%=� 72 count%+=3 7< � count%=30 � count%=37 7F � count%=43� �7:pass%=� 7P � pass%=� 7Z� 7d 7n� �send_maths 7x � count%,pass%,a$,sign$ 7�# Ȏ �get_icon_text(maths%,4) � 7� � "Plus" 7� sign$=" + " 7� � "Minus" 7� sign$=" - " 7� � "Multiplied by" 7� sign$=" � " 7� � "Divided by" 7� sign$=" � " 7� � 7� a$=maths_a$+sign$+maths_b$ 7� pass% =0 7� count%=0 8 � 8+ � �get_icon_text(store%,count%)="" � 8( �put_icon_text(store%,count%,a$) 8"@ �put_icon_text(store%,count%+2,�get_icon_text(maths%,9)) 8, pass%=� 86 � 8@ count%+=3 8J � count%=30 � count%=37 8T � count%=43� �7:pass%=� 8^ � pass%=� 8h� 8r 8|� �take_units(icon%) 8� � end$ 8�_end$ = �(�(�get_icon_text(main%,17)+�get_icon_text(main%,24)))+" "+�get_icon_text(main%,15) 8� 8�: �put_icon_text(store%,icon%,(�(value)+" "+the_unit$)) 8�( �put_icon_text(store%,icon%+2,end$) 8�� 8� 8� � �exp_up 8� exp%+=1 8� � exp%=31 � exp%=30 :� 8�+ �put_icon_text(main%,25,("E"+�(exp%))) 8�� 8� 9� �exp_down 9 exp%-=1 9# � exp%=(-31) � exp%=(-30) :� 9&- �put_icon_text(main%,25,("E"+�(exp%))) 90� 9: 9D� �change_metric(key%) 9N�menu_close 9X Ȏ key% � 9b � � 9l( � �icon_selected(main%,4) = � � 9v! �select_icon(main%,4,�) 9�! �select_icon(main%,2,�) 9� � 9� metric%=� 9�! �set_unit:�selected_unit 9� � � 9�( � �icon_selected(main%,2) = � � 9�! �select_icon(main%,2,�) 9�! �select_icon(main%,4,�) 9� � 9� metric%=� 9�! �set_unit:�selected_unit 9� � 9�� : :��main_menu(item$) :"numeric_path$=�menu_path(blk%) : Ȏ numeric_path$ � :* � "1" :4 �open_window(opt%) :>6 �place_caret(opt%,10,� �get_icon_text(opt%,10)) :H � "2" :R quit%=� :\ � :f� :p :z� �maths_menu(item$) :�"numeric_path$=�menu_path(blk%) :� � count% :� � count%=0 � 3 :� �tick(18,count%,�) :� � count% :� Ȏ numeric_path$ � :� � "0" : � - Add :� �tick(18,0,�) :�& �put_icon_text(maths%,4,"Plus") :� � "1" : � - Subtract :� �tick(18,1,�) :�' �put_icon_text(maths%,4,"Minus") :� � "2" : � - Multiply ; �tick(18,2,�) ;/ �put_icon_text(maths%,4,"Multiplied by") ; � "3" : � - Divide ;$ �tick(18,3,�) ;., �put_icon_text(maths%,4,"Divided by") ;8 � ;B� ;L ;V��store_menu(item$) ;`"numeric_path$=�menu_path(blk%) ;j Ȏ numeric_path$ � ;t � "1":� select_all ;~ �sel_all ;� � "2":� clear ;� �deselect(�) ;� selected%=0 ;� � "3" :� delete ;� �delete_selected ;� � "4" ;� �close_window(store%) ;� � ;�� ;� ;�� �menu(items$) ;�"numeric_path$=�menu_path(blk%) <