Rev 5776 | Rev 5833 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5776 | Rev 5825 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | else if (id==20) show_dev_name ^= 1; |
41 | else if (id==20) show_dev_name ^= 1; |
42 | else if (id==21) { action_buf=109; real_files_names_case ^= 1; } |
42 | else if (id==21) { action_buf=109; real_files_names_case ^= 1; } |
43 | else if (id==22) info_after_copy ^= 1; |
43 | else if (id==22) info_after_copy ^= 1; |
44 | else if (id==24) two_panels ^= 1; |
44 | else if (id==24) two_panels ^= 1; |
45 | else if (id==25) { files.line_h++; files_active.line_h = files_inactive.line_h = files.line_h; } |
45 | else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; } |
46 | else if (id==26) && (files.line_h>18) files.line_h--; |
46 | else if (id==26) && (files.item_h>18) files.item_h--; |
47 | else if (id==27) MOUSE_TIME++; |
47 | else if (id==27) MOUSE_TIME++; |
48 | else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--; |
48 | else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--; |
49 | else if (id==30) { font.size.text++; IF(!font.changeSIZE()) font.size.text--; BigFontsChange(); } |
49 | else if (id==30) { font.size.text++; IF(!font.changeSIZE()) font.size.text--; BigFontsChange(); } |
50 | else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); } |
50 | else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); } |
51 | EventRedrawWindow(Form.left,Form.top); |
51 | EventRedrawWindow(Form.left,Form.top); |
52 | DrawSettingsCheckBoxes(); |
52 | DrawSettingsCheckBoxes(); |
Line 79... | Line 79... | ||
79 | CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case); |
79 | CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case); |
80 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
80 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
81 | CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels); |
81 | CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels); |
82 | MoreLessBox(10, 103, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK); |
82 | MoreLessBox(10, 103, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK); |
83 | MoreLessBox(10, 130, 18, 25, 26, #system.color, files.line_h, LIST_LINE_HEIGHT); |
83 | MoreLessBox(10, 130, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT); |
84 | if (font.data) MoreLessBox(10, 157, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL); |
84 | if (font.data) MoreLessBox(10, 157, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL); |
85 | } |
85 | } |
86 | 86 | ||
Line 87... | Line 87... | ||
87 | 87 | ||
Line 94... | Line 94... | ||
94 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
94 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
95 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
95 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
96 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); font.size.text = EAX; |
96 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); font.size.text = EAX; |
97 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
97 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
98 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.line_h = EAX; |
98 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.item_h = EAX; |
99 | ini_get_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX; |
99 | ini_get_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX; |
100 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
100 | 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; |
101 | 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; |
102 | 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; |
103 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX; |
104 | } |
104 | } |
Line 110... | Line 110... | ||
110 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
110 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
111 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
111 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
112 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text); |
112 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text); |
113 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
113 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
114 | ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.line_h); |
114 | ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h); |
115 | ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME); |
115 | ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME); |
116 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left); |
116 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left); |
117 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top); |
117 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top); |
118 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width); |
118 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width); |
119 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height); |
119 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height); |
120 | } |
120 | } |
Line 124... | Line 124... | ||
124 | void Write_Error(int error_number) |
124 | void Write_Error(int error_number) |
125 | { |
125 | { |
126 | char error_message[500]; |
126 | char error_message[500]; |
127 | dword ii; |
127 | dword ii; |
128 | if (files.current>=0) Line_ReDraw(0xFF0000, files.current); |
128 | if (files.cur_y>=0) Line_ReDraw(0xFF0000, files.cur_y); |
129 | pause(5); |
129 | pause(5); |
130 | sprintf(#error_message,"\"%s\n%s\" -%s","Eolite",get_error(error_number),"tE"); |
130 | sprintf(#error_message,"\"%s\n%s\" -%s","Eolite",get_error(error_number),"tE"); |
131 | notify(#error_message); |
131 | notify(#error_message); |
132 | } |
132 | } |
Line 146... | Line 146... | ||
146 | 146 | ||
Line 147... | Line 147... | ||
147 | 147 | ||
148 | void BigFontsChange() |
148 | void BigFontsChange() |
149 | { |
149 | { |
150 | files.line_h = font.size.text + 4; |
150 | files.item_h = font.size.text + 4; |
151 | if (files.line_h<18) files.line_h = 18; |
151 | if (files.item_h<18) files.item_h = 18; |
152 | files_active.line_h = files_inactive.line_h = files.line_h; |
152 | files_active.item_h = files_inactive.item_h = files.item_h; |
Line 153... | Line 153... | ||
153 | } |
153 | } |
154 | 154 |