Rev 6403 | Rev 6505 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6403 | Rev 6406 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
9 | ?define LIST_LINE_HEIGHT "ëá®â áâப¨ ¢ ᯨ᪥" |
10 | ?define SAVE_PATH_AS_DEFAULT "¥ªã騩 ¯ãâì" |
10 | ?define SAVE_PATH_AS_DEFAULT "¥ªã騩 ¯ãâì" |
11 | ?define SAVE_START_PATH_AS_DEFAULT "¢¥¤¥ë© ¯ãâì" |
11 | ?define SAVE_START_PATH_AS_DEFAULT "¢¥¤¥ë© ¯ãâì" |
12 | ?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì áá®æ¨ 樨 ä ©«®¢" |
12 | ?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì áá®æ¨ 樨 ä ©«®¢" |
13 | #else |
13 | ?define START_PATH "â àâ®¢ë© ¯ãâì:" |
- | 14 | #else |
|
14 | ?define TITLE_SETT "Settings" |
15 | ?define TITLE_SETT "Settings" |
15 | ?define SHOW_DEVICE_CLASS "Show device class name" |
16 | ?define SHOW_DEVICE_CLASS "Show device class name" |
16 | ?define SHOW_REAL_NAMES "Show file names in original case" |
17 | ?define SHOW_REAL_NAMES "Show file names in original case" |
17 | ?define NOTIFY_COPY_END "Notify when copying finished" |
18 | ?define NOTIFY_COPY_END "Notify when copying finished" |
18 | ?define SHOW_BREADCRUMBS "Show breadcrumbs" |
19 | ?define SHOW_BREADCRUMBS "Show breadcrumbs" |
Line 21... | Line 22... | ||
21 | ?define LIST_LINE_HEIGHT "List line height" |
22 | ?define LIST_LINE_HEIGHT "List line height" |
22 | ?define SAVE_PATH_AS_DEFAULT "urrent path" |
23 | ?define SAVE_PATH_AS_DEFAULT "urrent path" |
23 | ?define SAVE_START_PATH_AS_DEFAULT "Typed path" |
24 | ?define SAVE_START_PATH_AS_DEFAULT "Typed path" |
24 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
25 | ?define EDIT_FILE_ASSOCIATIONS "Edit file associations" |
25 | #endif |
26 | ?define START_PATH "Start path:" |
- | 27 | #endif |
|
26 | 28 | ||
Line 27... | Line 29... | ||
27 | char config_section[] = "Config"; |
29 | char config_section[] = "Config"; |
28 | int WinX, WinY, WinW, WinH; |
30 | int WinX, WinY, WinW, WinH; |
Line 29... | Line 31... | ||
29 | 31 | ||
30 | dword set_mouse_dd; |
32 | dword set_mouse_dd; |
31 | char path_start[4096]="\0"; |
33 | char path_start[4096]="\0"; |
Line 32... | Line 34... | ||
32 | edit_box path_start_ed = {230,50,57,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#path_start,#set_mouse_dd, 100000000000010b,0,0}; |
34 | edit_box path_start_ed = {230,50,57,0xffffff,0x94AECE,0xffffff,0xffffff,2,4098,#path_start,#set_mouse_dd, 100000000000010b,0,0}; |
33 | 35 | ||
34 | void settings_dialog() |
36 | void settings_dialog() |
35 | { |
37 | { |
Line 84... | Line 86... | ||
84 | edit_box_key stdcall (#path_start_ed); |
86 | edit_box_key stdcall (#path_start_ed); |
85 | break; |
87 | break; |
86 | 88 | ||
Line 87... | Line 89... | ||
87 | case evReDraw: |
89 | case evReDraw: |
88 | DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 376, 312+GetSkinHeight(),0x34,system.color.work,TITLE_SETT); |
90 | DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 376, 332+GetSkinHeight(),0x34,system.color.work,TITLE_SETT); |
89 | DrawSettingsCheckBoxes(); |
91 | DrawSettingsCheckBoxes(); |
90 | } |
92 | } |
91 | } |
93 | } |
92 | } |
94 | } |
Line 110... | Line 112... | ||
110 | CheckBox(x, y.inc(25), 32, SHOW_BREADCRUMBS, show_breadcrumb); |
112 | CheckBox(x, y.inc(25), 32, SHOW_BREADCRUMBS, show_breadcrumb); |
111 | CheckBox(x, y.inc(25), 24, USE_TWO_PANELS, two_panels); |
113 | CheckBox(x, y.inc(25), 24, USE_TWO_PANELS, two_panels); |
112 | MoreLessBox(x, y.inc(31), 30, 31, label.size.pt, FONT_SIZE_LABEL); |
114 | MoreLessBox(x, y.inc(31), 30, 31, label.size.pt, FONT_SIZE_LABEL); |
113 | MoreLessBox(x, y.inc(31), 25, 26, files.item_h, LIST_LINE_HEIGHT); |
115 | MoreLessBox(x, y.inc(31), 25, 26, files.item_h, LIST_LINE_HEIGHT); |
114 | path_start_ed.top = y.inc(31); |
116 | WriteText(6, y.inc(28), 0xD0, system.color.work_text, START_PATH); |
- | 117 | path_start_ed.top = y.inc(23); |
|
115 | path_start_ed.left = x; |
118 | path_start_ed.left = x; |
116 | edit_box_draw stdcall (#path_start_ed); |
119 | DrawEditBox(#path_start_ed); |
117 | DrawFlatButton(x-1, y.inc(26), strlen(SAVE_PATH_AS_DEFAULT)+3*8, 24, 6, SAVE_PATH_AS_DEFAULT); |
120 | DrawFlatButton(x-1, y.inc(26), strlen(SAVE_PATH_AS_DEFAULT)+3*8, 24, 6, SAVE_PATH_AS_DEFAULT); |
118 | DrawFlatButton(x-1+strlen(SAVE_PATH_AS_DEFAULT)+3*8, y.inc(0), strlen(SAVE_START_PATH_AS_DEFAULT)+3*8, 24, 7, SAVE_START_PATH_AS_DEFAULT); |
121 | DrawFlatButton(x-1+strlen(SAVE_PATH_AS_DEFAULT)+3*8, y.inc(0), strlen(SAVE_START_PATH_AS_DEFAULT)+3*8, 24, 7, SAVE_START_PATH_AS_DEFAULT); |
119 | DrawFlatButton(x-1, y.inc(36), strlen(EDIT_FILE_ASSOCIATIONS)+3*8, 24, 5, EDIT_FILE_ASSOCIATIONS); |
122 | DrawFlatButton(x-1, y.inc(36), strlen(EDIT_FILE_ASSOCIATIONS)+3*8, 24, 5, EDIT_FILE_ASSOCIATIONS); |
120 | } |
123 | } |
121 | 124 |