Subversion Repositories Kolibri OS

Rev

Rev 5674 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #ifdef LANG_RUS
  2.         ?define WINDOW_TITLE_PROPERTIES "‘¢®©á⢠"
  3.         ?define BTN_CLOSE "‡ ªàëâì"
  4.         ?define PR_T_NAME "ˆ¬ï:"
  5.         ?define PR_T_DEST " á¯®«®¦¥­¨¥:"
  6.         ?define PR_T_SIZE " §¬¥à:"
  7.         ?define SET_3 "‘®§¤ ­:"
  8.         ?define SET_4 "Žâªàëâ:"
  9.         ?define SET_5 "ˆ§¬¥­¥­:"
  10.         ?define SET_6 "” ©«®¢: "
  11.         ?define SET_7 "  ¯®ª: "
  12.         ?define PR_T_CONTAINS "‘®¤¥à¦¨â: "
  13.         ?define FLAGS " €ââਡãâë "
  14.         ?define PR_T_HIDDEN "‘ªàëâë©"
  15.         ?define PR_T_SYSTEM "‘¨á⥬­ë©"
  16.         ?define PR_T_ONLY_READ "’®«ìª® ç⥭¨¥"
  17. #else
  18.         ?define WINDOW_TITLE_PROPERTIES "Properties"
  19.         ?define BTN_CLOSE "Close"
  20.         ?define PR_T_NAME "Name:"
  21.         ?define PR_T_DEST "Destination:"
  22.         ?define PR_T_SIZE "Size:"
  23.         ?define SET_3 "Created:"
  24.         ?define SET_4 "Opened:"
  25.         ?define SET_5 "Modified:"
  26.         ?define SET_6 "Files: "
  27.         ?define SET_7 " Folders: "
  28.         ?define PR_T_CONTAINS "Contains: "
  29.         ?define FLAGS " Attributes "
  30.         ?define PR_T_HIDDEN "Hidden"
  31.         ?define PR_T_SYSTEM "System"
  32.         ?define PR_T_ONLY_READ "Read-only"
  33. #endif
  34.  
  35. dword mouse_ddd2;
  36. char path_to_file[4096]="\0";
  37. char file_name2[4096]="\0";
  38. edit_box file_name_ed = {195,50,25,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#file_name2,#mouse_ddd2, 1000000000000000b,2,2};
  39. edit_box path_to_file_ed = {145,100,46,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#path_to_file,#mouse_ddd2, 1000000000000000b,2,2};
  40. frame flags_frame = { 0, 280, 10, 83, 151, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xCCCccc };
  41.  
  42. int file_count, dir_count, size_dir;
  43. char folder_info[200];
  44. BDVK file_info_general;
  45. BDVK file_info_dirsize;
  46.  
  47. byte readonly, hidden, System;
  48.  
  49. void properties_dialog()
  50. {
  51.         byte id;
  52.         byte key;
  53.         dword file_name_off;
  54.         dword element_size;
  55.         dword selected_offset2;
  56.         char element_size_label[32];
  57.         proc_info settings_form;
  58.        
  59.         IF (active_properties) ExitProcess();
  60.         active_properties=1;
  61.        
  62.         SetEventMask(0x27);
  63.         loop() switch(WaitEvent())
  64.         {
  65.                 case evButton:
  66.                                 id=GetButtonID();
  67.                                 IF (id==1) || (id==10)
  68.                                 {
  69.                                         active_properties=0;
  70.                                         ExitProcess();
  71.                                 }
  72.                                 break;
  73.                                
  74.                 case evMouse:
  75.                                 break;
  76.                        
  77.                 case evKey:
  78.                                 key = GetKey();
  79.                                 IF (key==27)
  80.                                 {
  81.                                         active_properties=0;
  82.                                         ExitProcess();
  83.                                 }
  84.                                 EAX=key<<8;
  85.                                 break;
  86.                                
  87.                 case evReDraw:
  88.                                 DefineAndDrawWindow(Form.left + 150,150,270,285+skin_height,0x34,system.color.work,WINDOW_TITLE_PROPERTIES);
  89.                                 GetProcessInfo(#settings_form, SelfInfo);
  90.                                 DrawCaptButton(settings_form.cwidth-70-13, settings_form.cheight-34, 70, 22, 10, 0x288FBD, 0xFFFfff, BTN_CLOSE);
  91.         }
  92. }