Rev 5464 | Rev 5526 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5464 | Rev 5478 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | ?define SET_4 "To notify the completion of the copy" |
20 | ?define SET_4 "To notify the completion of the copy" |
21 | ?define CANCEL_T "Cancel" |
21 | ?define CANCEL_T "Cancel" |
22 | ?define APPLY_T "Apply" |
22 | ?define APPLY_T "Apply" |
23 | #endif |
23 | #endif |
Line 24... | Line -... | ||
24 | - | ||
25 | int mouse_ddd; |
- | |
26 | char lineh_s[30]="18\0"; |
- | |
Line 27... | Line 24... | ||
27 | edit_box LineHeight_ed = {52,10,97,0xffffff,0x94AECE,0xffc90E,0xffffff,2,4,#lineh_s,#mouse_ddd, 1000000000000000b,2,2}; |
24 | |
28 | 25 | ||
29 | void settings_dialog() |
26 | void settings_dialog() |
30 | { |
27 | { |
31 | byte id; |
28 | byte id; |
Line 32... | Line 29... | ||
32 | unsigned int key; |
29 | unsigned int key; |
33 | proc_info settings_form; |
30 | proc_info settings_form; |
Line 34... | Line -... | ||
34 | - | ||
35 | if (active_settings) ExitProcess(); |
31 | |
36 | active_settings=1; |
32 | if (active_settings) ExitProcess(); |
37 | 33 | active_settings=1; |
|
38 | SetEventMask(0x27); |
34 | |
39 | loop() switch(WaitEvent()) |
35 | loop() switch(WaitEvent()) |
Line 58... | Line 54... | ||
58 | break; |
54 | break; |
59 | } |
55 | } |
60 | if (id==20) show_dev_name ^= 1; |
56 | if (id==20) show_dev_name ^= 1; |
61 | if (id==21) real_files_names_case ^= 1; |
57 | if (id==21) real_files_names_case ^= 1; |
62 | if (id==22) info_after_copy ^= 1; |
58 | if (id==22) info_after_copy ^= 1; |
- | 59 | if (id==25) files.line_h++; |
|
- | 60 | if (id==26) && (files.line_h>8) files.line_h--; |
|
63 | DrawSettingsCheckBoxes(); |
61 | DrawSettingsCheckBoxes(); |
64 | break; |
62 | break; |
Line 65... | Line 63... | ||
65 | 63 | ||
66 | case evKey: |
64 | case evKey: |
Line 69... | Line 67... | ||
69 | { |
67 | { |
70 | active_settings=0; |
68 | active_settings=0; |
71 | action_buf = 300; |
69 | action_buf = 300; |
72 | ExitProcess(); |
70 | ExitProcess(); |
73 | } |
71 | } |
74 | EAX=key<<8; |
- | |
75 | edit_box_key stdcall(#LineHeight_ed); |
- | |
76 | break; |
- | |
77 | - | ||
78 | case evMouse: |
- | |
79 | edit_box_mouse stdcall (#LineHeight_ed); |
- | |
80 | break; |
72 | break; |
Line 81... | Line 73... | ||
81 | 73 | ||
82 | case evReDraw: |
74 | case evReDraw: |
83 | DefineAndDrawWindow(Form.left + 100, 150, 300, 210+GetSkinHeight(),0x34,sc.work,TITLE_SETT); |
75 | DefineAndDrawWindow(Form.left + 100, 150, 300, 210+GetSkinHeight(),0x34,sc.work,TITLE_SETT); |
Line 84... | Line 76... | ||
84 | GetProcessInfo(#settings_form, SelfInfo); |
76 | GetProcessInfo(#settings_form, SelfInfo); |
Line 85... | Line -... | ||
85 | - | ||
86 | DrawSettingsCheckBoxes(); |
- | |
87 | - | ||
88 | WriteText(10, 84, 0x80, 0x000000, SET_3); |
- | |
89 | key = itoa(files.line_h); |
- | |
90 | strcpy(#lineh_s, key); |
- | |
91 | edit_box_draw stdcall (#LineHeight_ed); |
77 | |
Line 92... | Line 78... | ||
92 | DrawRectangle(LineHeight_ed.left-1, LineHeight_ed.top-1, LineHeight_ed.width+2, 16, sc.work_graph); |
78 | DrawSettingsCheckBoxes(); |
93 | 79 | ||
94 | DrawFlatButton(9, 127, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
80 | DrawFlatButton(9, 127, strlen(EDIT_FILE_ASSOCIATIONS)+4*6, 22, 5, 0xE4DFE1, EDIT_FILE_ASSOCIATIONS); |
Line 101... | Line 87... | ||
101 | void DrawSettingsCheckBoxes() |
87 | void DrawSettingsCheckBoxes() |
102 | { |
88 | { |
103 | CheckBox2(10, 11, 20, SET_1, show_dev_name); |
89 | CheckBox2(10, 11, 20, SET_1, show_dev_name); |
104 | CheckBox2(10, 33, 21, SET_2, real_files_names_case); |
90 | CheckBox2(10, 33, 21, SET_2, real_files_names_case); |
105 | CheckBox2(10, 55, 22, SET_4, info_after_copy); |
91 | CheckBox2(10, 55, 22, SET_4, info_after_copy); |
- | 92 | MoreLessBox(10, 82, 18, 25, 26, sc.work_graph, 0xD2D3D3, 0x000000, files.line_h, SET_3); |
|
106 | } |
93 | } |
Line 107... | Line 94... | ||
107 | 94 | ||
108 | 95 | ||
Line 124... | Line 111... | ||
124 | void SaveIniSettings() |
111 | void SaveIniSettings() |
125 | { |
112 | { |
126 | ini_set_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", show_dev_name); |
113 | ini_set_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", show_dev_name); |
127 | ini_set_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", real_files_names_case); |
114 | ini_set_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", real_files_names_case); |
128 | ini_set_int stdcall (eolite_ini_path, "Config", "InfoAfterCopy", info_after_copy); |
115 | ini_set_int stdcall (eolite_ini_path, "Config", "InfoAfterCopy", info_after_copy); |
129 | ini_set_int stdcall (eolite_ini_path, "Config", "LineHeight", atoi(#lineh_s)); |
116 | ini_set_int stdcall (eolite_ini_path, "Config", "LineHeight", files.line_h); |
130 | } |
117 | } |
Line 131... | Line 118... | ||
131 | 118 |