Rev 6406 | Rev 6635 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6406 | Rev 6505 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifdef LANG_RUS |
1 | #ifdef LANG_RUS |
2 | ?define TITLE_SETT " áâனª¨" |
2 | ?define TITLE_SETT " áâனª¨" |
3 | ?define SHOW_DEVICE_CLASS "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
3 | ?define SHOW_DEVICE_CLASS "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
4 | ?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥ ä ©«®¢ ¥ ¬¥ïï ॣ¨áâà" |
4 | ?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥ ä ©«®¢ ¥ ¬¥ïï ॣ¨áâà" |
- | 5 | ?define SHOW_STATUS_BAR "®ª §ë¢ âì áâ âãá ¡ à" |
|
5 | ?define NOTIFY_COPY_END "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
6 | ?define NOTIFY_COPY_END "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
6 | ?define SHOW_BREADCRUMBS "ᯮ«ì§®¢ âì 'å«¥¡ë¥ ªà®èª¨'" |
7 | ?define SHOW_BREADCRUMBS "ᯮ«ì§®¢ âì 'å«¥¡ë¥ ªà®èª¨'" |
7 | ?define USE_TWO_PANELS "¢¥ ¯ ¥«¨" |
8 | ?define USE_TWO_PANELS "¢¥ ¯ ¥«¨" |
8 | ?define FONT_SIZE_LABEL " §¬¥à èà¨äâ " |
9 | ?define FONT_SIZE_LABEL " §¬¥à èà¨äâ " |
9 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
10 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
Line 14... | Line 15... | ||
14 | #else |
15 | #else |
15 | ?define TITLE_SETT "Settings" |
16 | ?define TITLE_SETT "Settings" |
16 | ?define SHOW_DEVICE_CLASS "Show device class name" |
17 | ?define SHOW_DEVICE_CLASS "Show device class name" |
17 | ?define SHOW_REAL_NAMES "Show file names in original case" |
18 | ?define SHOW_REAL_NAMES "Show file names in original case" |
18 | ?define NOTIFY_COPY_END "Notify when copying finished" |
19 | ?define SHOW_STATUS_BAR "Show status bar" |
- | 20 | ?define NOTIFY_COPY_END "Notify when copying finished" |
|
19 | ?define SHOW_BREADCRUMBS "Show breadcrumbs" |
21 | ?define SHOW_BREADCRUMBS "Show breadcrumbs" |
20 | ?define USE_TWO_PANELS "Two panels" |
22 | ?define USE_TWO_PANELS "Two panels" |
21 | ?define FONT_SIZE_LABEL "Font size" |
23 | ?define FONT_SIZE_LABEL "Font size" |
22 | ?define LIST_LINE_HEIGHT "List line height" |
24 | ?define LIST_LINE_HEIGHT "List line height" |
23 | ?define SAVE_PATH_AS_DEFAULT "urrent path" |
25 | ?define SAVE_PATH_AS_DEFAULT "urrent path" |
Line 73... | Line 75... | ||
73 | else if (id==24) two_panels ^= true; |
75 | else if (id==24) two_panels ^= true; |
74 | else if (id==32) show_breadcrumb ^= true; |
76 | else if (id==32) show_breadcrumb ^= true; |
75 | else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; } |
77 | else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; } |
76 | else if (id==26) && (files.item_h>15) files_inactive.item_h = files.item_h = files.item_h-1; |
78 | else if (id==26) && (files.item_h>15) files_inactive.item_h = files.item_h = files.item_h-1; |
77 | else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); } |
79 | else if (id==27) show_status_bar ^= 1; |
- | 80 | else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); } |
|
78 | else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); } |
81 | else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); } |
79 | EventRedrawWindow(Form.left,Form.top); |
82 | EventRedrawWindow(Form.left,Form.top); |
80 | break; |
83 | break; |
81 | 84 | ||
Line 86... | Line 89... | ||
86 | edit_box_key stdcall (#path_start_ed); |
89 | edit_box_key stdcall (#path_start_ed); |
87 | break; |
90 | break; |
88 | 91 | ||
Line 89... | Line 92... | ||
89 | case evReDraw: |
92 | case evReDraw: |
90 | DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 376, 332+GetSkinHeight(),0x34,system.color.work,TITLE_SETT); |
93 | DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 376, 357+GetSkinHeight(),0x34,system.color.work,TITLE_SETT); |
91 | DrawSettingsCheckBoxes(); |
94 | DrawSettingsCheckBoxes(); |
92 | } |
95 | } |
93 | } |
96 | } |
94 | } |
97 | } |
Line 107... | Line 110... | ||
107 | int x=11; |
110 | int x=11; |
108 | y.n = 0; |
111 | y.n = 0; |
109 | CheckBox(x, y.inc(14), 20, SHOW_DEVICE_CLASS, show_dev_name); |
112 | CheckBox(x, y.inc(14), 20, SHOW_DEVICE_CLASS, show_dev_name); |
110 | CheckBox(x, y.inc(25), 21, SHOW_REAL_NAMES, real_files_names_case); |
113 | CheckBox(x, y.inc(25), 21, SHOW_REAL_NAMES, real_files_names_case); |
111 | CheckBox(x, y.inc(25), 22, NOTIFY_COPY_END, info_after_copy); |
114 | CheckBox(x, y.inc(25), 27, SHOW_STATUS_BAR, show_status_bar); |
- | 115 | CheckBox(x, y.inc(25), 22, NOTIFY_COPY_END, info_after_copy); |
|
112 | CheckBox(x, y.inc(25), 32, SHOW_BREADCRUMBS, show_breadcrumb); |
116 | CheckBox(x, y.inc(25), 32, SHOW_BREADCRUMBS, show_breadcrumb); |
113 | CheckBox(x, y.inc(25), 24, USE_TWO_PANELS, two_panels); |
117 | CheckBox(x, y.inc(25), 24, USE_TWO_PANELS, two_panels); |
114 | MoreLessBox(x, y.inc(31), 30, 31, label.size.pt, FONT_SIZE_LABEL); |
118 | MoreLessBox(x, y.inc(31), 30, 31, label.size.pt, FONT_SIZE_LABEL); |
115 | MoreLessBox(x, y.inc(31), 25, 26, files.item_h, LIST_LINE_HEIGHT); |
119 | MoreLessBox(x, y.inc(31), 25, 26, files.item_h, LIST_LINE_HEIGHT); |
116 | WriteText(6, y.inc(28), 0xD0, system.color.work_text, START_PATH); |
120 | WriteText(6, y.inc(28), 0xD0, system.color.work_text, START_PATH); |
Line 128... | Line 132... | ||
128 | files.SetFont(6, 9, 10000000b); |
132 | files.SetFont(6, 9, 10000000b); |
129 | FileShow.font_size_x = files.font_w; |
133 | FileShow.font_size_x = files.font_w; |
130 | FileShow.font_number = 0; |
134 | FileShow.font_number = 0; |
131 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", 1); show_dev_name = EAX; |
135 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", 1); show_dev_name = EAX; |
132 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
136 | ini_get_int stdcall (eolite_ini_path, #config_section, "ShowStatusBar", 1); show_status_bar = EAX; |
- | 137 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 1); real_files_names_case = EAX; |
|
133 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
138 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
134 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 12); label.size.pt = EAX; |
139 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 12); label.size.pt = EAX; |
135 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
140 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
136 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 19); files.item_h = EAX; |
141 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 19); files.item_h = EAX; |
137 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
142 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
138 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
143 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
Line 152... | Line 157... | ||
152 | 157 | ||
153 | void SaveIniSettings() |
158 | void SaveIniSettings() |
154 | { |
159 | { |
- | 160 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name); |
|
155 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowDeviceName", show_dev_name); |
161 | ini_set_int stdcall (eolite_ini_path, #config_section, "ShowStatusBar", show_status_bar); |
156 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
162 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
157 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
163 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
158 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt); |
164 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", label.size.pt); |
159 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
165 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |