Subversion Repositories Kolibri OS

Rev

Rev 6949 | Rev 6987 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6949 Rev 6973
Line 14... Line 14...
14
#include "..\lib\gui.h"
14
#include "..\lib\gui.h"
15
#include "..\lib\list_box.h"
15
#include "..\lib\list_box.h"
16
#include "..\lib\random.h"
16
#include "..\lib\random.h"
17
#include "..\lib\kfont.h"
17
#include "..\lib\kfont.h"
18
#include "..\lib\collection.h"
18
#include "..\lib\collection.h"
-
 
19
#include "..\lib\menu.h"
19
#include "..\lib\obj\libini.h"
20
#include "..\lib\obj\libini.h"
20
#include "..\lib\obj\box_lib.h"
21
#include "..\lib\obj\box_lib.h"
21
#include "..\lib\patterns\history.h"
22
#include "..\lib\patterns\history.h"
Line 22... Line 23...
22
 
23
 
Line 227... Line 228...
227
					//file menu
228
					//file menu
228
					if (mouse.key&MOUSE_RIGHT)
229
					if (mouse.key&MOUSE_RIGHT)
229
					{
230
					{
230
						menu_call_mouse = 1;
231
						menu_call_mouse = 1;
231
						if (files.ProcessMouse(mouse.x, mouse.y)) List_ReDraw();
232
						if (files.ProcessMouse(mouse.x, mouse.y)) List_ReDraw();
-
 
233
						if (getElementSelectedFlag(files.cur_y) == false) selected_count = 0; //on redraw selection would be flashed, see [L001] 
232
						menu_stak = malloc(4096);
234
						menu_stak = malloc(4096);
233
						CreateThread(#FileMenu,menu_stak+4092);
235
						CreateThread(#FileMenu,menu_stak+4092);
234
						break;
236
						break;
235
					}
237
					}
236
				}
238
				}
Line 549... Line 551...
549
	DrawRectangle(0,39,Form.cwidth-1,Form.cheight - 40,col_palette[4]); //bg
551
	DrawRectangle(0,39,Form.cwidth-1,Form.cheight - 40,col_palette[4]); //bg
550
	for (i=0; i<5; i++) DrawBar(0, 34+i, Form.cwidth, 1, col_palette[8-i]);
552
	for (i=0; i<5; i++) DrawBar(0, 34+i, Form.cwidth, 1, col_palette[8-i]);
551
	llist_copy(#files_active, #files);
553
	llist_copy(#files_active, #files);
552
	strcpy(#active_path, #path);
554
	strcpy(#active_path, #path);
553
	DrawStatusBar();
555
	DrawStatusBar();
554
	Open_Dir(#path,ONLY_OPEN);
556
	if (selected_count==0) Open_Dir(#path,ONLY_OPEN); //if there are no selected files -> refresh folder [L001] 
555
	DrawFilePanels();
557
	DrawFilePanels();
556
	if (del_active) Del_Form();
558
	if (del_active) Del_Form();
557
	if (new_element_active) NewElement_Form(new_element_active, #new_element_name);
559
	if (new_element_active) NewElement_Form(new_element_active, #new_element_name);
558
}
560
}