Rev 5834 | Rev 5877 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5834 | Rev 5846 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | ?define SHOW_DEVICE_CLASS "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
4 | ?define SHOW_DEVICE_CLASS "뢮¤¨âì §¢ ¨ï ª« áá ãáâனáâ¢" |
5 | ?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥ ä ©«®¢ ¥ ¬¥ïï ॣ¨áâà" |
5 | ?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥ ä ©«®¢ ¥ ¬¥ïï ॣ¨áâà" |
6 | ?define FONT_SIZE_LABEL " §¬¥à èà¨äâ " |
6 | ?define FONT_SIZE_LABEL " §¬¥à èà¨äâ " |
7 | ?define USE_TWO_PANELS "¢¥ ¯ ¥«¨" |
7 | ?define USE_TWO_PANELS "¢¥ ¯ ¥«¨" |
8 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
8 | ?define USE_SMOOTH_FONT "ᯮ«ì§®¢ âì ᣫ ¦¥ë© èà¨äâ" |
- | 9 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
|
9 | ?define NOTIFY_COPY_END "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
10 | ?define NOTIFY_COPY_END "¢¥¤®¬«ïâì ® § ¢¥à襨¨ ª®¯¨à®¢ ¨ï" |
10 | ?define T_DOUBLE_CLICK "à¥¬ï ¤¢®©®£® ª«¨ª (¢ á®âëå)" |
11 | ?define T_DOUBLE_CLICK "à¥¬ï ¤¢®©®£® ª«¨ª (¢ á®âëå)" |
11 | #define SAVE_PATH_AS_DEFAULT "®åà ¨âì ⥪ã騩 ¯ãâì ¯® 㬮«ç ¨î" |
12 | #define SAVE_PATH_AS_DEFAULT "®åà ¨âì ⥪ã騩 ¯ãâì ¯® 㬮«ç ¨î" |
12 | #else |
13 | #else |
13 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
14 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
Line 15... | Line 16... | ||
15 | ?define SHOW_DEVICE_CLASS "Show device class name" |
16 | ?define SHOW_DEVICE_CLASS "Show device class name" |
16 | ?define SHOW_REAL_NAMES "Show real file names without changing case" |
17 | ?define SHOW_REAL_NAMES "Show real file names without changing case" |
17 | ?define FONT_SIZE_LABEL "Font size" |
18 | ?define FONT_SIZE_LABEL "Font size" |
18 | ?define USE_TWO_PANELS "Two panels" |
19 | ?define USE_TWO_PANELS "Two panels" |
19 | ?define LIST_LINE_HEIGHT "List line height" |
20 | ?define USE_SMOOTH_FONT "Use smooth font" |
- | 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 T_DOUBLE_CLICK "Double click time (in hundredths)" |
23 | ?define T_DOUBLE_CLICK "Double click time (in hundredths)" |
22 | #define SAVE_PATH_AS_DEFAULT "Save the current default path" |
24 | #define SAVE_PATH_AS_DEFAULT "Save the current default path" |
23 | #endif |
25 | #endif |
24 | 26 | ||
Line 48... | Line 50... | ||
48 | } |
50 | } |
49 | else if (id==20) show_dev_name ^= 1; |
51 | else if (id==20) show_dev_name ^= 1; |
50 | else if (id==21) { action_buf=109; real_files_names_case ^= 1; } |
52 | else if (id==21) { action_buf=109; real_files_names_case ^= 1; } |
51 | else if (id==22) info_after_copy ^= 1; |
53 | else if (id==22) info_after_copy ^= 1; |
52 | else if (id==24) two_panels ^= 1; |
54 | else if (id==24) two_panels ^= true; |
53 | else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; } |
55 | else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; } |
54 | else if (id==26) && (files.item_h>18) files.item_h--; |
56 | else if (id==26) && (files.item_h>18) files.item_h--; |
55 | else if (id==27) MOUSE_TIME++; |
57 | else if (id==27) MOUSE_TIME++; |
56 | else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--; |
58 | else if (id==28) && (MOUSE_TIME>29) MOUSE_TIME--; |
57 | else if (id==30) { font.size.text++; IF(!font.changeSIZE()) font.size.text--; BigFontsChange(); } |
59 | else if (id==29) smooth_font ^= true; |
- | 60 | else if (id==30) { font.size.text++; IF(!font.changeSIZE()) font.size.text--; BigFontsChange(); } |
|
58 | else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); } |
61 | else if (id==31) { font.size.text--; IF(!font.changeSIZE()) font.size.text++; BigFontsChange(); } |
59 | EventRedrawWindow(Form.left,Form.top); |
62 | EventRedrawWindow(Form.left,Form.top); |
60 | DrawSettingsCheckBoxes(); |
63 | DrawSettingsCheckBoxes(); |
61 | break; |
64 | break; |
62 | 65 | ||
Line 65... | Line 68... | ||
65 | if (key_scancode==SCAN_CODE_ESC) ExitSettings(); |
68 | if (key_scancode==SCAN_CODE_ESC) ExitSettings(); |
66 | break; |
69 | break; |
67 | 70 | ||
Line 68... | Line 71... | ||
68 | case evReDraw: |
71 | case evReDraw: |
69 | DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 246+GetSkinHeight(),0x34,system.color.work,TITLE_SETT); |
72 | DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 300, 280+GetSkinHeight(),0x34,system.color.work,TITLE_SETT); |
70 | DrawSettingsCheckBoxes(); |
73 | DrawSettingsCheckBoxes(); |
71 | DrawFlatButton(9, 186, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT); |
74 | DrawFlatButton(9, 208, strlen(SAVE_PATH_AS_DEFAULT)+4*6, 22, 6, 0xE4DFE1, SAVE_PATH_AS_DEFAULT); |
72 | DrawFlatButton(9, 216, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
75 | DrawFlatButton(9, 240, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
73 | } |
76 | } |
74 | } |
77 | } |
75 | } |
78 | } |
Line 76... | Line 79... | ||
76 | 79 | ||
Line 87... | Line 90... | ||
87 | CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS, show_dev_name); |
90 | CheckBox2(10, 11, 20, SHOW_DEVICE_CLASS, show_dev_name); |
88 | CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case); |
91 | CheckBox2(10, 33, 21, SHOW_REAL_NAMES, real_files_names_case); |
89 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
92 | CheckBox2(10, 55, 22, NOTIFY_COPY_END, info_after_copy); |
90 | CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels); |
93 | CheckBox2(10, 77, 24, USE_TWO_PANELS, two_panels); |
91 | MoreLessBox(10, 103, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK); |
94 | CheckBox2(10, 99, 29, USE_SMOOTH_FONT, smooth_font); |
- | 95 | MoreLessBox(10, 125, 18, 27, 28, #system.color, MOUSE_TIME, T_DOUBLE_CLICK); |
|
92 | MoreLessBox(10, 130, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT); |
96 | MoreLessBox(10, 152, 18, 25, 26, #system.color, files.item_h, LIST_LINE_HEIGHT); |
93 | if (font.data) MoreLessBox(10, 157, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL); |
97 | if (font.data) MoreLessBox(10, 179, 18, 30, 31, #system.color, font.size.text, FONT_SIZE_LABEL); |
94 | } |
98 | } |
95 | 99 | ||
Line 96... | Line 100... | ||
96 | 100 | ||
97 | void LoadIniSettings() |
101 | void LoadIniSettings() |
Line 103... | Line 107... | ||
103 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
107 | ini_get_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", 0); real_files_names_case = EAX; |
104 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
108 | ini_get_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", 0); info_after_copy = EAX; |
105 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); font.size.text = EAX; |
109 | ini_get_int stdcall (eolite_ini_path, #config_section, "FontSize", 9); font.size.text = EAX; |
106 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
110 | ini_get_int stdcall (eolite_ini_path, #config_section, "TwoPanels", 0); two_panels = EAX; |
107 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.item_h = EAX; |
111 | ini_get_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", true);smooth_font = EAX; |
- | 112 | ini_get_int stdcall (eolite_ini_path, #config_section, "LineHeight", 18); files.item_h = EAX; |
|
108 | ini_get_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX; |
113 | ini_get_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", 50); MOUSE_TIME = EAX; |
109 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
114 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinX", 200); WinX = EAX; |
110 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
115 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinY", 50); WinY = EAX; |
111 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
116 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinW", 550); WinW = EAX; |
112 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX; |
117 | ini_get_int stdcall (eolite_ini_path, #config_section, "WinH", 500); WinH = EAX; |
Line 121... | Line 126... | ||
121 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
126 | ini_set_int stdcall (eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
122 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
127 | ini_set_int stdcall (eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
123 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text); |
128 | ini_set_int stdcall (eolite_ini_path, #config_section, "FontSize", font.size.text); |
124 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
129 | ini_set_int stdcall (eolite_ini_path, #config_section, "TwoPanels", two_panels); |
125 | ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h); |
130 | ini_set_int stdcall (eolite_ini_path, #config_section, "UseSmoothFont", smooth_font); |
- | 131 | ini_set_int stdcall (eolite_ini_path, #config_section, "LineHeight", files.item_h); |
|
126 | ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME); |
132 | ini_set_int stdcall (eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME); |
127 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left); |
133 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinX", Form.left); |
128 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top); |
134 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinY", Form.top); |
129 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width); |
135 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinW", Form.width); |
130 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height); |
136 | ini_set_int stdcall (eolite_ini_path, #config_section, "WinH", Form.height); |
Line 135... | Line 141... | ||
135 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
141 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "RealFileNamesCase", real_files_names_case); |
136 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
142 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "InfoAfterCopy", info_after_copy); |
137 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", font.size.text); |
143 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "FontSize", font.size.text); |
138 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels); |
144 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TwoPanels", two_panels); |
139 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h); |
145 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "UseSmoothFont", smooth_font); |
- | 146 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "LineHeight", files.item_h); |
|
140 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME); |
147 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "TimeDoubleClick", MOUSE_TIME); |
141 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left); |
148 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinX", Form.left); |
142 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top); |
149 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinY", Form.top); |
143 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width); |
150 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinW", Form.width); |
144 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height); |
151 | ini_set_int stdcall (fd_path_eolite_ini_path, #config_section, "WinH", Form.height); |