Rev 5748 | Rev 5761 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5748 | Rev 5753 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | struct path_string { char Item[4096]; }; |
33 | struct path_string { char Item[4096]; }; |
Line 34... | Line 34... | ||
34 | 34 | ||
35 | byte active_about=0; |
35 | byte active_about=0; |
36 | word about_window; |
36 | word about_window; |
- | 37 | word settings_window; |
|
37 | word settings_window; |
38 | byte active_settings=0; |
38 | dword _not_draw = false; |
39 | dword _not_draw = false; |
Line 39... | Line 40... | ||
39 | byte menu_call_mouse=0; |
40 | byte menu_call_mouse=0; |
40 | 41 | ||
Line 72... | Line 73... | ||
72 | int action_buf; |
73 | int action_buf; |
73 | int rand_n; |
74 | int rand_n; |
74 | byte CMD_REFRESH; |
75 | byte CMD_REFRESH; |
Line 75... | Line 76... | ||
75 | 76 | ||
76 | //struct t_settings { |
- | |
77 | byte font_size=9, |
77 | //struct t_settings { |
78 | sort_num=2, |
78 | byte sort_num=2, |
79 | show_dev_name=true, |
79 | show_dev_name=true, |
80 | real_files_names_case=false, |
80 | real_files_names_case=false, |
81 | info_after_copy=false, |
81 | info_after_copy=false, |
82 | two_panels=false, |
82 | two_panels=false, |
Line 126... | Line 126... | ||
126 | strlcpy(#path, "/rd/1/", 6); |
126 | strlcpy(#path, "/rd/1/", 6); |
127 | } |
127 | } |
128 | Open_Dir(#path,ONLY_OPEN); |
128 | Open_Dir(#path,ONLY_OPEN); |
129 | strcpy(#inactive_path, #path); |
129 | strcpy(#inactive_path, #path); |
130 | llist_copy(#files_inactive, #files); |
130 | llist_copy(#files_inactive, #files); |
- | 131 | font.no_bg_copy = true; |
|
- | 132 | font.load("/sys/font/Tahoma.kf"); |
|
131 | SetEventMask(1100111b); |
133 | SetEventMask(1100111b); |
132 | loop(){ |
134 | loop(){ |
133 | switch(WaitEvent()) |
135 | switch(WaitEvent()) |
134 | { |
136 | { |
135 | case evMouse: |
137 | case evMouse: |
Line 684... | Line 686... | ||
684 | strcpy(#file_name, file_name_off); |
686 | strcpy(#file_name, file_name_off); |
685 | sprintf(#file_path,"%s%s",#path,file_name_off); |
687 | sprintf(#file_path,"%s%s",#path,file_name_off); |
686 | if (text_col==0xA6A6B7) text_col=0xFFFFFF; |
688 | if (text_col==0xA6A6B7) text_col=0xFFFFFF; |
687 | } |
689 | } |
688 | if (file.selected) text_col=0xFF0000; |
690 | if (file.selected) text_col=0xFF0000; |
689 | if (font_size==9) || (!font.data) |
691 | if (font.size.text==9) || (!font.data) |
690 | { |
692 | { |
691 | if (Form.width>=480) |
693 | if (Form.width>=480) |
692 | { |
694 | { |
693 | FileShow.start_x = files.x + 23; |
695 | FileShow.start_x = files.x + 23; |
694 | FileShow.font_color = text_col; |
696 | FileShow.font_color = text_col; |
Line 700... | Line 702... | ||
700 | } |
702 | } |
701 | } |
703 | } |
702 | else |
704 | else |
703 | { |
705 | { |
704 | font.bg_color = color; |
706 | font.bg_color = color; |
705 | font.text(files.x + 23, files.line_h - font.height / 2 - 1 + y, file_name_off, 0, font_size); |
707 | font.text(files.x + 23, files.line_h - font.height / 2 - 1 + y, file_name_off); |
706 | } |
708 | } |
707 | DrawBar(files.x+files.w-141,y,1,files.line_h,system.color.work); //gray line 1 |
709 | DrawBar(files.x+files.w-141,y,1,files.line_h,system.color.work); //gray line 1 |
708 | DrawBar(files.x+files.w-68,y,1,files.line_h,system.color.work); //gray line 2 |
710 | DrawBar(files.x+files.w-68,y,1,files.line_h,system.color.work); //gray line 2 |
709 | } |
711 | } |
Line 1116... | Line 1118... | ||
1116 | case 8: |
1118 | case 8: |
1117 | properties_stak = malloc(8096); |
1119 | properties_stak = malloc(8096); |
1118 | CreateThread(#properties_dialog, properties_stak+8092); |
1120 | CreateThread(#properties_dialog, properties_stak+8092); |
1119 | break; |
1121 | break; |
1120 | case 10: //F10 |
1122 | case 10: //F10 |
1121 | if (!settings_window) |
1123 | if (!active_settings) |
1122 | { |
1124 | { |
1123 | settings_stak = malloc(4096); |
1125 | settings_stak = malloc(4096); |
1124 | settings_window = CreateThread(#settings_dialog, settings_stak+4092); |
1126 | settings_window = CreateThread(#settings_dialog, settings_stak+4092); |
1125 | break; |
1127 | break; |
1126 | } |
1128 | } |