Rev 7386 | Rev 7422 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7386 | Rev 7398 | ||
---|---|---|---|
Line 332... | Line 332... | ||
332 | } |
332 | } |
333 | break; |
333 | break; |
334 | //Button pressed----------------------------------------------------------------------------- |
334 | //Button pressed----------------------------------------------------------------------------- |
335 | case evButton: |
335 | case evButton: |
336 | id=GetButtonID(); |
336 | id=GetButtonID(); |
- | 337 | ||
- | 338 | if (new_element_active) || (del_active) { |
|
- | 339 | if(POPUP_BTN1==id) || (POPUP_BTN2==id) { |
|
- | 340 | if (del_active) Del_File(id-POPUP_BTN2); |
|
- | 341 | if (new_element_active) NewElement(id-POPUP_BTN2); |
|
- | 342 | DeleteButton(POPUP_BTN1); |
|
- | 343 | DeleteButton(POPUP_BTN2); |
|
- | 344 | } |
|
- | 345 | break; |
|
- | 346 | } |
|
- | 347 | ||
337 | switch(id) |
348 | switch(id) |
338 | { |
349 | { |
339 | case CLOSE_BTN: |
350 | case CLOSE_BTN: |
340 | KillProcess(about_window); |
351 | KillProcess(about_window); |
341 | SaveIniSettings(); |
352 | SaveIniSettings(); |
Line 377... | Line 388... | ||
377 | ini.SetString("DefaultPath", #path, strlen(#path)); |
388 | ini.SetString("DefaultPath", #path, strlen(#path)); |
378 | break; |
389 | break; |
379 | case 100...120: |
390 | case 100...120: |
380 | SystemDiscs.Click(id-100); |
391 | SystemDiscs.Click(id-100); |
381 | break; |
392 | break; |
382 | case POPUP_BTN1...POPUP_BTN2: |
- | |
383 | if (del_active) Del_File(id-POPUP_BTN2); |
- | |
384 | if (new_element_active) NewElement(id-POPUP_BTN2); |
- | |
385 | DeleteButton(POPUP_BTN1); |
- | |
386 | DeleteButton(POPUP_BTN2); |
- | |
387 | break; |
- | |
388 | case BREADCRUMB_ID...360: |
393 | case BREADCRUMB_ID...360: |
389 | ClickOnBreadCrumb(id-BREADCRUMB_ID); |
394 | ClickOnBreadCrumb(id-BREADCRUMB_ID); |
390 | break; |
395 | break; |
391 | } |
396 | } |
392 | break; |
397 | break; |
Line 394... | Line 399... | ||
394 | //Key pressed----------------------------------------------------------------------------- |
399 | //Key pressed----------------------------------------------------------------------------- |
395 | case evKey: |
400 | case evKey: |
396 | GetKeys(); |
401 | GetKeys(); |
Line 397... | Line 402... | ||
397 | 402 | ||
- | 403 | if (Form.status_window>2) break; |
|
- | 404 | ||
- | 405 | if (new_element_active) || (del_active) |
|
398 | if (Form.status_window>2) break; |
406 | { |
399 | if (del_active) |
407 | if (del_active) |
400 | { |
408 | { |
401 | if (key_scancode == SCAN_CODE_ENTER) Del_File(true); |
409 | if (key_scancode == SCAN_CODE_ENTER) Del_File(true); |
402 | if (key_scancode == SCAN_CODE_ESC) Del_File(false); |
- | |
403 | break; |
410 | if (key_scancode == SCAN_CODE_ESC) Del_File(false); |
404 | } |
411 | } |
405 | if (new_element_active) |
412 | if (new_element_active) |
406 | { |
413 | { |
407 | if (key_scancode == SCAN_CODE_ENTER) NewElement(true); |
414 | if (key_scancode == SCAN_CODE_ENTER) NewElement(true); |
408 | if (key_scancode == SCAN_CODE_ESC) NewElement(false); |
415 | if (key_scancode == SCAN_CODE_ESC) NewElement(false); |
409 | EAX = key_editbox; |
416 | EAX = key_editbox; |
- | 417 | edit_box_key stdcall (#new_file_ed); |
|
410 | edit_box_key stdcall (#new_file_ed); |
418 | } |
411 | break; |
419 | break; |
- | 420 | } |
|
412 | } |
421 | |
413 | if (files.ProcessKey(key_scancode)) |
422 | if (files.ProcessKey(key_scancode)) |
414 | { |
423 | { |
415 | List_ReDraw(); |
424 | List_ReDraw(); |
416 | break; |
425 | break; |
Line 630... | Line 639... | ||
630 | llist_copy(#files_active, #files); |
639 | llist_copy(#files_active, #files); |
631 | strcpy(#active_path, #path); |
640 | strcpy(#active_path, #path); |
632 | DrawStatusBar(); |
641 | DrawStatusBar(); |
633 | if (selected_count==0) Open_Dir(#path,ONLY_OPEN); //if there are no selected files -> refresh folder [L001] |
642 | if (selected_count==0) Open_Dir(#path,ONLY_OPEN); //if there are no selected files -> refresh folder [L001] |
634 | DrawFilePanels(); |
643 | DrawFilePanels(); |
635 | if (del_active) Del_Form(); |
- | |
636 | if (new_element_active) NewElement_Form(new_element_active, #new_element_name); |
- | |
637 | } |
644 | } |
Line 638... | Line 645... | ||
638 | 645 | ||
639 | void DrawList() |
646 | void DrawList() |
640 | { |
647 | { |
Line 742... | Line 749... | ||
742 | all_lines_h = j * files.item_h; |
749 | all_lines_h = j * files.item_h; |
743 | DrawBar(files.x,all_lines_h + files.y,files.w,files.h - all_lines_h,0xFFFFFF); |
750 | DrawBar(files.x,all_lines_h + files.y,files.w,files.h - all_lines_h,0xFFFFFF); |
744 | DrawBar(files.x+files.w-141,all_lines_h + files.y,1,files.h - all_lines_h,col_list_line); |
751 | DrawBar(files.x+files.w-141,all_lines_h + files.y,1,files.h - all_lines_h,col_list_line); |
745 | DrawBar(files.x+files.w-68,all_lines_h + files.y,1,files.h - all_lines_h,col_list_line); |
752 | DrawBar(files.x+files.w-68,all_lines_h + files.y,1,files.h - all_lines_h,col_list_line); |
746 | Scroll(); |
753 | Scroll(); |
- | 754 | ||
- | 755 | if (del_active) Del_Form(); |
|
- | 756 | if (new_element_active) NewElement_Form(new_element_active, #new_element_name); |
|
747 | } |
757 | } |
Line 748... | Line 758... | ||
748 | 758 | ||
749 | 759 |