Rev 5825 | Rev 5834 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5825 | Rev 5833 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | ?define USE_TWO_PANELS "¢¥ ¯ ¥«¨" |
7 | ?define USE_TWO_PANELS "¢¥ ¯ ¥«¨" |
8 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
8 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
9 | ?define NOTIFY_COPY_END "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
9 | ?define NOTIFY_COPY_END "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
10 | ?define T_DOUBLE_CLICK "à¥¬ï ¤¢®©®£® ª«¨ª (¢ á®âëå)" |
10 | ?define T_DOUBLE_CLICK "à¥¬ï ¤¢®©®£® ª«¨ª (¢ á®âëå)" |
11 | #else |
11 | #define SAVE_PATH_AS_DEFAULT "®åà ¨âì ⥪ã騩 ¯ãâì ¯® 㬮«ç ¨î" |
- | 12 | #else |
|
12 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
13 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
13 | ?define TITLE_SETT "Settings" |
14 | ?define TITLE_SETT "Settings" |
14 | ?define SHOW_DEVICE_CLASS "Show device class name" |
15 | ?define SHOW_DEVICE_CLASS "Show device class name" |
15 | ?define SHOW_REAL_NAMES "Show real file names without changing case" |
16 | ?define SHOW_REAL_NAMES "Show real file names without changing case" |
16 | ?define FONT_SIZE_LABEL "Font size" |
17 | ?define FONT_SIZE_LABEL "Font size" |
17 | ?define USE_TWO_PANELS "Two panels" |
18 | ?define USE_TWO_PANELS "Two panels" |
18 | ?define LIST_LINE_HEIGHT "List line height" |
19 | ?define LIST_LINE_HEIGHT "List line height" |
19 | ?define NOTIFY_COPY_END "Notify when copying finished" |
20 | ?define NOTIFY_COPY_END "Notify when copying finished" |
20 | ?define T_DOUBLE_CLICK "Double click time (in hundredths)" |
21 | ?define T_DOUBLE_CLICK "Double click time (in hundredths)" |
21 | #endif |
22 | #define SAVE_PATH_AS_DEFAULT "Save the current default path" |
- | 23 | #endif |
|
22 | 24 | ||
Line 23... | Line 25... | ||
23 | char config_section[] = "Config"; |
25 | char config_section[] = "Config"; |
24 | int WinX, WinY, WinW, WinH; |
26 | int WinX, WinY, WinW, WinH; |
Line 37... | Line 39... | ||
37 | { |
39 | { |
38 | RunProgram("tinypad", "/sys/settings/assoc.ini"); |
40 | RunProgram("tinypad", "/sys/settings/assoc.ini"); |
39 | break; |
41 | break; |
40 | } |
42 | } |
41 | else if (id==20) show_dev_name ^= 1; |
43 | else if (id==6) |
- | 44 | { |
|
- | 45 | ini_set_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,strlen(#path)); |
|
- | 46 | break; |
|
- | 47 | } |
|
- | 48 | else if (id==20) show_dev_name ^= 1; |
|
42 | else if (id==21) { action_buf=109; real_files_names_case ^= 1; } |
49 | else if (id==21) { action_buf=109; real_files_names_case ^= 1; } |
43 | else if (id==22) info_after_copy ^= 1; |
50 | else if (id==22) info_after_copy ^= 1; |
44 | else if (id==24) two_panels ^= 1; |
51 | else if (id==24) two_panels ^= 1; |
45 | else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; } |
52 | else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; } |
46 | else if (id==26) && (files.item_h>18) files.item_h--; |
53 | else if (id==26) && (files.item_h>18) files.item_h--; |
Line 57... | Line 64... | ||
57 | if (key_scancode==SCAN_CODE_ESC) ExitSettings(); |
64 | if (key_scancode==SCAN_CODE_ESC) ExitSettings(); |
58 | break; |
65 | break; |
59 | 66 | ||
Line 60... | Line 67... | ||
60 | case evReDraw: |
67 | case evReDraw: |
61 | DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 226+GetSkinHeight(),0x34,system.color.work,TITLE_SETT); |
68 | DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 246+GetSkinHeight(),0x34,system.color.work,TITLE_SETT); |
62 | DrawSettingsCheckBoxes(); |
69 | DrawSettingsCheckBoxes(); |
- | 70 | DrawFlatButton(9, 186, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT); |
|
63 | DrawFlatButton(9, 186, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
71 | DrawFlatButton(9, 216, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
64 | } |
72 | } |
65 | } |
73 | } |
66 | } |
74 | } |
Line 67... | Line 75... | ||
67 | 75 | ||
Line 100... | Line 108... | ||
100 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
108 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
101 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
109 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
102 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
110 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
103 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX; |
111 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX; |
104 | } |
112 | ini_get_str stdcall (eolite_ini_path, #config_section, "DefaultPath", #path,4096,"/rd/1/"); |
- | 113 | } |
|
105 | 114 | ||
Line 106... | Line 115... | ||
106 | 115 | ||
107 | void SaveIniSettings() |
116 | void SaveIniSettings() |