Rev 7352 | Rev 7429 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7352 | Rev 7375 | ||
---|---|---|---|
Line 91... | Line 91... | ||
91 | kfont.size.pt = font_size.value; |
91 | kfont.size.pt = font_size.value; |
92 | kfont.changeSIZE(); |
92 | kfont.changeSIZE(); |
93 | BigFontsChange(); |
93 | BigFontsChange(); |
94 | } |
94 | } |
95 | if (line_height.click(id)) files.item_h = line_height.value; |
95 | if (line_height.click(id)) files.item_h = files_inactive.item_h = line_height.value; |
96 | if (big_icons.click(id)) BigIconsSwitch(); |
96 | if (big_icons.click(id)) BigIconsSwitch(); |
97 | EventRedrawWindow(Form.left,Form.top); |
97 | EventRedrawWindow(Form.left,Form.top); |
98 | //RefreshWindow(Form.slot, Settings.slot); |
98 | //RefreshWindow(Form.slot, Settings.slot); |
99 | break; |
99 | break; |
100 | 100 | ||
Line 157... | Line 157... | ||
157 | show_real_names.checked = ini.GetInt("RealFileNamesCase", true); |
157 | show_real_names.checked = ini.GetInt("RealFileNamesCase", true); |
158 | show_dev_name.checked = ini.GetInt("ShowDeviceName", true); |
158 | show_dev_name.checked = ini.GetInt("ShowDeviceName", true); |
159 | show_status_bar.checked = ini.GetInt("ShowStatusBar", true); |
159 | show_status_bar.checked = ini.GetInt("ShowStatusBar", true); |
160 | info_after_copy.checked = ini.GetInt("InfoAfterCopy", false); |
160 | info_after_copy.checked = ini.GetInt("InfoAfterCopy", false); |
161 | two_panels.checked = ini.GetInt("TwoPanels", false); |
161 | big_icons.checked = ini.GetInt("BigIcons", false); BigIconsSwitch(); |
- | 162 | two_panels.checked = ini.GetInt("TwoPanels", false); |
|
162 | kfont.size.pt = ini.GetInt("FontSize", 13); |
163 | kfont.size.pt = ini.GetInt("FontSize", 13); |
163 | files.item_h = ini.GetInt("LineHeight", 19); |
164 | files.item_h = ini.GetInt("LineHeight", 19); |
164 | Form.left = ini.GetInt("WinX", 200); |
165 | Form.left = ini.GetInt("WinX", 200); |
165 | Form.top = ini.GetInt("WinY", 50); |
166 | Form.top = ini.GetInt("WinY", 50); |
166 | Form.width = ini.GetInt("WinW", 550); |
167 | Form.width = ini.GetInt("WinW", 550); |
Line 182... | Line 183... | ||
182 | ini.SetInt("ShowStatusBar", show_status_bar.checked); |
183 | ini.SetInt("ShowStatusBar", show_status_bar.checked); |
183 | ini.SetInt("RealFileNamesCase", show_real_names.checked); |
184 | ini.SetInt("RealFileNamesCase", show_real_names.checked); |
184 | ini.SetInt("InfoAfterCopy", info_after_copy.checked); |
185 | ini.SetInt("InfoAfterCopy", info_after_copy.checked); |
185 | ini.SetInt("FontSize", kfont.size.pt); |
186 | ini.SetInt("FontSize", kfont.size.pt); |
186 | ini.SetInt("TwoPanels", two_panels.checked); |
187 | ini.SetInt("BigIcons", big_icons.checked); |
- | 188 | ini.SetInt("TwoPanels", two_panels.checked); |
|
187 | ini.SetInt("LineHeight", files.item_h); |
189 | ini.SetInt("LineHeight", files.item_h); |
188 | ini.SetInt("WinX", Form.left); |
190 | ini.SetInt("WinX", Form.left); |
189 | ini.SetInt("WinY", Form.top); |
191 | ini.SetInt("WinY", Form.top); |
190 | ini.SetInt("WinW", Form.width); |
192 | ini.SetInt("WinW", Form.width); |
191 | ini.SetInt("WinH", Form.height); |
193 | ini.SetInt("WinH", Form.height); |
Line 222... | Line 224... | ||
222 | 224 | ||
223 | void BigFontsChange() |
225 | void BigFontsChange() |
224 | { |
226 | { |
225 | files.item_h = kfont.size.pt + 4; |
227 | files.item_h = kfont.size.pt + 4; |
- | 228 | if (files.item_h |
|
- | 229 | files.item_h = icon_size+3; |
|
- | 230 | line_height.value = files.item_h; |
|
- | 231 | line_height.redraw(); |
|
226 | if (files.item_h<18) files.item_h = 18; |
232 | } |
227 | files_active.item_h = files_inactive.item_h = files.item_h; |
233 | files_active.item_h = files_inactive.item_h = files.item_h; |
Line 228... | Line 234... | ||
228 | } |
234 | } |
229 | 235 | ||
230 | void BigIconsSwitch() |
236 | void BigIconsSwitch() |
231 | { |
237 | { |
232 | if (big_icons.checked) |
238 | if (big_icons.checked) |
233 | { |
- | |
234 | icon_size=32; |
239 | { |
235 | files.item_h = line_height.value = 35; |
240 | icon_size=32; |
236 | if (!icons32_default.image) |
241 | if (!icons32_default.image) |
237 | { |
242 | { |
238 | Libimg_LoadImage(#icons32_default, "/sys/icons32.png"); |
243 | Libimg_LoadImage(#icons32_default, "/sys/icons32.png"); |
Line 244... | Line 249... | ||
244 | } |
249 | } |
245 | } |
250 | } |
246 | else { |
251 | else { |
247 | icon_size=16; |
252 | icon_size=16; |
248 | files.item_h = line_height.value = 18; |
253 | } |
249 | } |
- | |
250 | }18)>><> |
254 | BigFontsChange(); |
- | 255 | }><> |
|
251 | 256 |