Rev 5526 | Rev 5542 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5526 | Rev 5532 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | #ifdef LANG_RUS |
5 | #ifdef LANG_RUS |
6 | ?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì áá®æ¨ 樨 ä ©«®¢" |
6 | ?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì áá®æ¨ 樨 ä ©«®¢" |
7 | ?define TITLE_SETT " áâனª¨" |
7 | ?define TITLE_SETT " áâனª¨" |
8 | ?define SHOW_DEVICE_CLASS "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
8 | ?define SHOW_DEVICE_CLASS "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
9 | ?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥ ä ©«®¢ ¥ ¬¥ïï ॣ¨áâà" |
9 | ?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥ ä ©«®¢ ¥ ¬¥ïï ॣ¨áâà" |
- | 10 | ?define USE_BIG_FONTS "ᯮ«ì§®¢ âì 㢥«¨ç¥ë¥ èà¨äâë" |
|
10 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
11 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
11 | ?define NOTIFY_COPY_END "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
12 | ?define NOTIFY_COPY_END "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
12 | ?define CANCEL_T "⬥ " |
13 | ?define CANCEL_T "⬥ " |
13 | ?define APPLY_T "ਬ¥¨âì" |
14 | ?define APPLY_T "ਬ¥¨âì" |
14 | #else |
15 | #else |
15 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
16 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
16 | ?define TITLE_SETT "Settings" |
17 | ?define TITLE_SETT "Settings" |
17 | ?define SHOW_DEVICE_CLASS "Show device class name" |
18 | ?define SHOW_DEVICE_CLASS "Show device class name" |
18 | ?define SHOW_REAL_NAMES "Show real file names without changing case" |
19 | ?define SHOW_REAL_NAMES "Show real file names without changing case" |
- | 20 | ?define USE_BIG_FONTS "Use big fonts" |
|
19 | ?define LIST_LINE_HEIGHT "List line height" |
21 | ?define LIST_LINE_HEIGHT "List line height" |
20 | ?define NOTIFY_COPY_END "Notify when copying finished" |
22 | ?define NOTIFY_COPY_END "Notify when copying finished" |
21 | ?define CANCEL_T "Cancel" |
23 | ?define CANCEL_T "Cancel" |
22 | ?define APPLY_T "Apply" |
24 | ?define APPLY_T "Apply" |
23 | #endif |
25 | #endif |
Line 56... | Line 58... | ||
56 | break; |
58 | break; |
57 | } |
59 | } |
58 | if (id==20) show_dev_name ^= 1; |
60 | if (id==20) show_dev_name ^= 1; |
59 | if (id==21) real_files_names_case ^= 1; |
61 | if (id==21) real_files_names_case ^= 1; |
60 | if (id==22) info_after_copy ^= 1; |
62 | if (id==22) info_after_copy ^= 1; |
- | 63 | if (id==23) use_big_fonts ^= 1; |
|
61 | if (id==25) files.line_h++; |
64 | if (id==25) files.line_h++; |
62 | if (id==26) && (files.line_h>8) files.line_h--; |
65 | if (id==26) && (files.line_h>8) files.line_h--; |
63 | DrawSettingsCheckBoxes(); |
66 | DrawSettingsCheckBoxes(); |
64 | break; |
67 | break; |
Line 72... | Line 75... | ||
72 | ExitProcess(); |
75 | ExitProcess(); |
73 | } |
76 | } |
74 | break; |
77 | break; |
Line 75... | Line 78... | ||
75 | 78 | ||
76 | case evReDraw: |
79 | case evReDraw: |
77 | DefineAndDrawWindow(Form.left + 100, 150, 300, 210+GetSkinHeight(),0x34,sc.work,TITLE_SETT); |
80 | DefineAndDrawWindow(Form.left + 100, 150, 300, 232+GetSkinHeight(),0x34,sc.work,TITLE_SETT); |
78 | GetProcessInfo(#settings_form, SelfInfo); |
81 | GetProcessInfo(#settings_form, SelfInfo); |
79 | DrawSettingsCheckBoxes(); |
82 | DrawSettingsCheckBoxes(); |
80 | DrawFlatButton(9, 116, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
83 | DrawFlatButton(9, 138, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
81 | DrawFlatButton(128, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, APPLY_T); |
84 | DrawFlatButton(128, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, APPLY_T); |
82 | DrawFlatButton(208, settings_form.cheight - 34, 70, 22, 11, 0xE4DFE1, CANCEL_T); |
85 | DrawFlatButton(208, settings_form.cheight - 34, 70, 22, 11, 0xE4DFE1, CANCEL_T); |
83 | } |
86 | } |
Line 84... | Line 87... | ||
84 | } |
87 | } |
85 | 88 | ||
86 | void DrawSettingsCheckBoxes() |
89 | void DrawSettingsCheckBoxes() |
87 | { |
90 | { |
88 | CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS, show_dev_name); |
91 | CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS, show_dev_name); |
- | 92 | CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case); |
|
89 | CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case); |
93 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
90 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
94 | CheckBox2(10, 77, 23, USE_BIG_FONTS, use_big_fonts); |
Line 91... | Line 95... | ||
91 | MoreLessBox(10, 82, 18, 25, 26, sc.work_graph, 0xD2D3D3, 0x000000, files.line_h, LIST_LINE_HEIGHT); |
95 | MoreLessBox(10, 104, 18, 25, 26, sc.work_graph, 0xD2D3D3, 0x000000, files.line_h, LIST_LINE_HEIGHT); |
92 | } |
96 | } |
93 | 97 | ||
94 | 98 | ||
95 | void LoadIniSettings() |
99 | void LoadIniSettings() |
96 | { |
100 | { |
97 | ini_get_color stdcall (eolite_ini_path, #confir_section, "SelectionColor", 0x94AECE); |
101 | ini_get_color stdcall (eolite_ini_path, #confir_section, "SelectionColor", 0x94AECE); edit2.shift_color = col_selec = EAX; |
98 | edit2.shift_color = EAX; |
102 | ini_get_int stdcall (eolite_ini_path, #confir_section, "ShowDeviceName", 1); show_dev_name = EAX; |
- | 103 | ini_get_int stdcall (eolite_ini_path, #confir_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
|
- | 104 | ini_get_int stdcall (eolite_ini_path, #confir_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
|
- | 105 | ini_get_int stdcall (eolite_ini_path, #confir_section, "UseBigFonts", 0); use_big_fonts = EAX; |
|
99 | col_selec = EAX; |
106 | ini_get_int stdcall (eolite_ini_path, #confir_section, "LineHeight", 18); files.line_h = EAX; |
100 | ini_get_int stdcall (eolite_ini_path, #confir_section, "LineHeight", 18); |
107 | |
- | 108 | if (use_big_fonts) |
|
- | 109 | { |
|
- | 110 | font_type = 0x90; |
|
- | 111 | PathShow.font_size_x = FileShow.font_size_x = 8; |
|
101 | files.line_h = EAX; |
112 | PathShow.font_number = FileShow.font_number = 1; |
102 | ini_get_int stdcall (eolite_ini_path, #confir_section, "ShowDeviceName", 1); |
113 | } |
103 | show_dev_name = EAX; |
114 | else |
- | 115 | { |
|
104 | ini_get_int stdcall (eolite_ini_path, #confir_section, "RealFileNamesCase", 0); |
116 | font_type=0x80; |
Line 105... | Line 117... | ||
105 | real_files_names_case = EAX; |
117 | PathShow.font_size_x = FileShow.font_size_x = 8; |
106 | ini_get_int stdcall (eolite_ini_path, #confir_section, "InfoAfterCopy", 0); |
118 | PathShow.font_number = FileShow.font_number = 0; |
107 | info_after_copy = EAX; |
119 | } |
108 | } |
120 | } |
109 | 121 | ||
- | 122 | void SaveIniSettings() |
|
110 | void SaveIniSettings() |
123 | { |
111 | { |
124 | ini_set_int stdcall (eolite_ini_path, #confir_section, "ShowDeviceName", show_dev_name); |