Rev 8847 | Rev 8868 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8847 | Rev 8854 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ?define SHOW_DEVICE_CLASS "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
3 | ?define SHOW_DEVICE_CLASS "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
4 | ?define SHOW_STATUS_BAR "®ª §ë¢ âì áâ âãá ¡ à" |
4 | ?define SHOW_STATUS_BAR "®ª §ë¢ âì áâ âãá ¡ à" |
5 | ?define SHOW_BREADCRUMBS "ᯮ«ì§®¢ âì 'å«¥¡ë¥ ªà®èª¨'" |
5 | ?define SHOW_BREADCRUMBS "ᯮ«ì§®¢ âì 'å«¥¡ë¥ ªà®èª¨'" |
6 | ?define BIG_ICONS "ᯮ«ì§®¢ âì ¡®«ì訥 ¨ª®ª¨" |
6 | ?define BIG_ICONS "ᯮ«ì§®¢ âì ¡®«ì訥 ¨ª®ª¨" |
7 | ?define USE_TWO_PANELS "¢¥ ¯ ¥«¨" |
7 | ?define COLORED_LINES "®¤á¢¥ç¨¢ âì ç¥âë¥ «¨¨¨ ¢ ᯨ᪥" |
8 | ?define COLORED_LINES "®¤á¢¥ç¨¢ âì ç¥âë¥ «¨¨¨ ¢ ᯨ᪥" |
- | |
9 | ?define FONT_SIZE_LABEL " §¬¥à èà¨äâ " |
8 | ?define FONT_SIZE_LABEL " §¬¥à èà¨äâ " |
10 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
9 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
11 | ?define SAVE_PATH_AS_DEFAULT "¥ªã騩 ¯ãâì" |
10 | ?define SAVE_PATH_AS_DEFAULT "¥ªã騩 ¯ãâì" |
12 | ?define SAVE_START_PATH_AS_DEFAULT "¢¥¤¥ë© ¯ãâì" |
11 | ?define SAVE_START_PATH_AS_DEFAULT "¢¥¤¥ë© ¯ãâì" |
13 | ?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì áá®æ¨ 樨 ä ©«®¢" |
12 | ?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì áá®æ¨ 樨 ä ©«®¢" |
Line 17... | Line 16... | ||
17 | ?define SHOW_DEVICE_CLASS "Show device class name" |
16 | ?define SHOW_DEVICE_CLASS "Show device class name" |
18 | ?define SHOW_STATUS_BAR "Show status bar" |
17 | ?define SHOW_STATUS_BAR "Show status bar" |
19 | ?define SHOW_BREADCRUMBS "Show breadcrumbs" |
18 | ?define SHOW_BREADCRUMBS "Show breadcrumbs" |
20 | ?define BIG_ICONS "Big icons in list" |
19 | ?define BIG_ICONS "Big icons in list" |
21 | ?define USE_TWO_PANELS "Two panels" |
20 | ?define COLORED_LINES "Highlight even lines in list" |
22 | ?define COLORED_LINES "Highlight even lines in list" |
- | |
23 | ?define FONT_SIZE_LABEL "Font size" |
21 | ?define FONT_SIZE_LABEL "Font size" |
24 | ?define LIST_LINE_HEIGHT "List line height" |
22 | ?define LIST_LINE_HEIGHT "List line height" |
25 | ?define SAVE_PATH_AS_DEFAULT "Current path" |
23 | ?define SAVE_PATH_AS_DEFAULT "Current path" |
26 | ?define SAVE_START_PATH_AS_DEFAULT "Typed path" |
24 | ?define SAVE_START_PATH_AS_DEFAULT "Typed path" |
27 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
25 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
Line 37... | Line 35... | ||
37 | checkbox show_dev_name = { SHOW_DEVICE_CLASS }; |
35 | checkbox show_dev_name = { SHOW_DEVICE_CLASS }; |
38 | checkbox show_status_bar = { SHOW_STATUS_BAR }; |
36 | checkbox show_status_bar = { SHOW_STATUS_BAR }; |
39 | checkbox show_breadcrumb = { SHOW_BREADCRUMBS }; |
37 | checkbox show_breadcrumb = { SHOW_BREADCRUMBS }; |
40 | checkbox big_icons = { BIG_ICONS }; |
38 | checkbox big_icons = { BIG_ICONS }; |
41 | checkbox two_panels = { USE_TWO_PANELS }; |
39 | checkbox colored_lines = { COLORED_LINES }; |
42 | checkbox colored_lines = { COLORED_LINES }; |
- | |
43 | 40 | ||
Line 44... | Line 41... | ||
44 | 41 | ||
45 | void settings_dialog() |
42 | void settings_dialog() |
Line 78... | Line 75... | ||
78 | SetDefaultPath(#path_start); |
75 | SetDefaultPath(#path_start); |
79 | break; |
76 | break; |
80 | } |
77 | } |
81 | show_dev_name.click(id); |
78 | show_dev_name.click(id); |
82 | two_panels.click(id); |
79 | show_breadcrumb.click(id); |
83 | show_breadcrumb.click(id); |
- | |
84 | show_status_bar.click(id); |
80 | show_status_bar.click(id); |
85 | colored_lines.click(id); |
81 | colored_lines.click(id); |
86 | if (font_size.click(id)) { |
82 | if (font_size.click(id)) { |
87 | kfont.size.pt = font_size.value; |
83 | kfont.size.pt = font_size.value; |
88 | kfont.changeSIZE(); |
84 | kfont.changeSIZE(); |
Line 126... | Line 122... | ||
126 | show_dev_name.draw(x, y.inc(14)); |
122 | show_dev_name.draw(x, y.inc(14)); |
127 | show_status_bar.draw(x, y.inc(25)); |
123 | show_status_bar.draw(x, y.inc(25)); |
128 | show_breadcrumb.draw(x, y.inc(25)); |
124 | show_breadcrumb.draw(x, y.inc(25)); |
129 | big_icons.draw(x, y.inc(25)); |
125 | big_icons.draw(x, y.inc(25)); |
130 | //two_panels.draw(x, y.inc(25)); |
126 | colored_lines.draw(x, y.inc(25)); |
131 | colored_lines.draw(x, y.inc(25)); |
- | |
132 | font_size.draw(x, y.inc(31)); |
127 | font_size.draw(x, y.inc(31)); |
133 | line_height.draw(x, y.inc(31)); |
128 | line_height.draw(x, y.inc(31)); |
134 | 129 | ||
Line 135... | Line 130... | ||
135 | DrawFrame(x, y.inc(37), 340, 95, START_PATH); |
130 | DrawFrame(x, y.inc(37), 340, 95, START_PATH); |
Line 146... | Line 141... | ||
146 | void LoadIniSettings() |
141 | void LoadIniSettings() |
147 | { |
142 | { |
148 | ini.path = GetIni(#eolite_ini_path, "app.ini"); |
143 | ini.path = GetIni(#eolite_ini_path, "app.ini"); |
149 | if (efm) ini.section = "EFM"; else ini.section = "Eolite"; |
144 | if (efm) ini.section = "EFM"; else ini.section = "Eolite"; |
150 | two_panels.checked = efm; |
- | |
Line 151... | Line 145... | ||
151 | 145 | ||
152 | files.SetFont(6, 9, 10000000b); |
146 | files.SetFont(6, 9, 10000000b); |
153 | show_dev_name.checked = ini.GetInt("ShowDeviceName", true); |
147 | show_dev_name.checked = ini.GetInt("ShowDeviceName", true); |
154 | show_status_bar.checked = ini.GetInt("ShowStatusBar", true); |
148 | show_status_bar.checked = ini.GetInt("ShowStatusBar", true); |
155 | big_icons.checked = ini.GetInt("BigIcons", false); BigIconsSwitch(); |
- | |
156 | //two_panels.checked = ini.GetInt("TwoPanels", false); |
149 | big_icons.checked = ini.GetInt("BigIcons", false); BigIconsSwitch(); |
157 | colored_lines.checked = ini.GetInt("ColoredLines", true); |
150 | colored_lines.checked = ini.GetInt("ColoredLines", true); |
158 | kfont.size.pt = ini.GetInt("FontSize", 13); |
151 | kfont.size.pt = ini.GetInt("FontSize", 13); |
159 | files.item_h = ini.GetInt("LineHeight", 19); |
152 | files.item_h = ini.GetInt("LineHeight", 19); |
160 | Form.left = ini.GetInt("WinX", 100); |
153 | Form.left = ini.GetInt("WinX", 100); |
Line 176... | Line 169... | ||
176 | { |
169 | { |
177 | ini.SetInt("ShowDeviceName", show_dev_name.checked); |
170 | ini.SetInt("ShowDeviceName", show_dev_name.checked); |
178 | ini.SetInt("ShowStatusBar", show_status_bar.checked); |
171 | ini.SetInt("ShowStatusBar", show_status_bar.checked); |
179 | ini.SetInt("BigIcons", big_icons.checked); |
172 | ini.SetInt("BigIcons", big_icons.checked); |
180 | //ini.SetInt("TwoPanels", two_panels.checked); |
173 | ini.SetInt("ColoredLines", colored_lines.checked); |
181 | ini.SetInt("ColoredLines", colored_lines.checked); |
- | |
182 | ini.SetInt("FontSize", kfont.size.pt); |
174 | ini.SetInt("FontSize", kfont.size.pt); |
183 | ini.SetInt("LineHeight", files.item_h); |
175 | ini.SetInt("LineHeight", files.item_h); |
184 | if (Form.status_window<=2) { |
176 | if (Form.status_window<=2) { |
185 | ini.SetInt("WinX", Form.left); |
177 | ini.SetInt("WinX", Form.left); |
186 | ini.SetInt("WinY", Form.top); |
178 | ini.SetInt("WinY", Form.top); |