Subversion Repositories Kolibri OS

Rev

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

Rev 9597 Rev 9602
Line 247... Line 247...
247
				}
247
				}
248
			}
248
			}
Line 249... Line 249...
249
 
249
 
250
			if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y-17) && (mouse.y
250
			if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y-17) && (mouse.y
251
			{
251
			{
252
				if (mouse.lkm) DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,sc.work_dark,sc.work_light);
252
				if (mouse.lkm) DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,sc.dark,sc.light);
253
				WHILE (mouse.lkm) && (files.first>0)
253
				WHILE (mouse.lkm) && (files.first>0)
254
				{
254
				{
255
					pause(8);
255
					pause(8);
256
					files.first--;
256
					files.first--;
257
					List_ReDraw();
257
					List_ReDraw();
258
					mouse.get();
258
					mouse.get();
259
				}
259
				}
260
				DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,sc.work_light,sc.work_dark);
260
				DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,sc.light,sc.dark);
Line 261... Line 261...
261
			}
261
			}
262
 
262
 
263
			if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y+files.h-16) && (mouse.y
263
			if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y+files.h-16) && (mouse.y
264
			{
264
			{
265
				if (mouse.lkm) DrawRectangle3D(files.x+files.w+1,files.y+files.h-15,14,14,sc.work_dark,sc.work_light);
265
				if (mouse.lkm) DrawRectangle3D(files.x+files.w+1,files.y+files.h-15,14,14,sc.dark,sc.light);
266
				while (mouse.lkm) && (files.first
266
				while (mouse.lkm) && (files.first
267
				{
267
				{
268
					pause(8);
268
					pause(8);
269
					files.first++;
269
					files.first++;
270
					List_ReDraw();
270
					List_ReDraw();
271
					mouse.get();
271
					mouse.get();
272
				}
272
				}
Line 273... Line 273...
273
				DrawRectangle3D(files.x+files.w+1,files.y+files.h-15,14,14,sc.work_light,sc.work_dark);
273
				DrawRectangle3D(files.x+files.w+1,files.y+files.h-15,14,14,sc.light,sc.dark);
274
			}
274
			}
275
 
275
 
Line 575... Line 575...
575
		ESDWORD[#toolbar_pal] = sc.work;
575
		ESDWORD[#toolbar_pal] = sc.work;
576
		ESDWORD[#toolbar_pal+4] = MixColors(0, sc.work, 35);
576
		ESDWORD[#toolbar_pal+4] = MixColors(0, sc.work, 35);
577
		PutPaletteImage(#toolbar, 246, 34, 0, 0, 8, #toolbar_pal);
577
		PutPaletteImage(#toolbar, 246, 34, 0, 0, 8, #toolbar_pal);
578
		for (i=0; i<3; i++) DefineHiddenButton(toolbar_buttons_x[i]+2,7,31-5,29-5,BACK_BTN+i);
578
		for (i=0; i<3; i++) DefineHiddenButton(toolbar_buttons_x[i]+2,7,31-5,29-5,BACK_BTN+i);
579
		for (i=3; i<6; i++) DefineHiddenButton(toolbar_buttons_x[i],  5,31,  29,  BACK_BTN+i);
579
		for (i=3; i<6; i++) DefineHiddenButton(toolbar_buttons_x[i],  5,31,  29,  BACK_BTN+i);
580
		DrawBar(127, 8, 1, 25, sc.work_graph);
580
		DrawBar(127, 8, 1, 25, sc.line);
581
		DrawBar(246,0, Form.cwidth - 246, 34, sc.work);
581
		DrawBar(246,0, Form.cwidth - 246, 34, sc.work);
582
		DrawDot(Form.cwidth-17,12);
582
		DrawDot(Form.cwidth-17,12);
583
		DrawDot(Form.cwidth-17,12+6);
583
		DrawDot(Form.cwidth-17,12+6);
584
		DrawDot(Form.cwidth-17,12+12);
584
		DrawDot(Form.cwidth-17,12+12);
585
		DefineHiddenButton(Form.cwidth-24,7,20,25,51+BT_NOFRAME); //dots
585
		DefineHiddenButton(Form.cwidth-24,7,20,25,51+BT_NOFRAME); //dots
586
	}
586
	}
587
	//main rectangles
587
	//main rectangles
588
	DrawRectangle(1,40,Form.cwidth-3,Form.cheight - 42-status_bar_h,sc.work_graph);
588
	DrawRectangle(1,40,Form.cwidth-3,Form.cheight - 42-status_bar_h,sc.line);
589
	DrawBar(0,39,1,-show_status_bar.checked*status_bar_h + Form.cheight - 40, sc.work);
589
	DrawBar(0,39,1,-show_status_bar.checked*status_bar_h + Form.cheight - 40, sc.work);
590
	EBX = Form.cwidth-1 * 65536 + 1;
590
	EBX = Form.cwidth-1 * 65536 + 1;
591
	$int 64
591
	$int 64
592
	for (i=0; i<6; i++) DrawBar(0, 34+i, Form.cwidth, 1, MixColors(sc.work_dark, sc.work, i*10));
592
	for (i=0; i<6; i++) DrawBar(0, 34+i, Form.cwidth, 1, MixColors(sc.dark, sc.work, i*10));
593
	for (i=0; i<6; i++) DrawBar(0, 5-i, Form.cwidth, 1, MixColors(sc.work_light, sc.work, i*10));
593
	for (i=0; i<6; i++) DrawBar(0, 5-i, Form.cwidth, 1, MixColors(sc.light, sc.work, i*10));
594
	llist_copy(#files_active, #files);
594
	llist_copy(#files_active, #files);
595
	DrawStatusBar();
595
	DrawStatusBar();
596
	if (!getSelectedCount()) {
596
	if (!getSelectedCount()) {
597
		OpenDir(ONLY_OPEN); //if there are no selected files -> refresh folder [L001]
597
		OpenDir(ONLY_OPEN); //if there are no selected files -> refresh folder [L001]
598
	}
598
	}
Line 615... Line 615...
615
	DrawFlatButtonSmall(files.x + files.w,files.y+files.h-16,16,16,0,"\x19");
615
	DrawFlatButtonSmall(files.x + files.w,files.y+files.h-16,16,16,0,"\x19");
616
	if (sort_type==1) sorting_arrow_x = files.w - 141 / 2 + files.x + 18;
616
	if (sort_type==1) sorting_arrow_x = files.w - 141 / 2 + files.x + 18;
617
	if (sort_type==2) sorting_arrow_x = files.x + files.w - 90;
617
	if (sort_type==2) sorting_arrow_x = files.x + files.w - 90;
618
	if (sort_type==3) sorting_arrow_x = strlen(T_SIZE)*3-30+files.x+files.w;
618
	if (sort_type==3) sorting_arrow_x = strlen(T_SIZE)*3-30+files.x+files.w;
619
	WriteText(sorting_arrow_x,files.y-12,0x80, sc.work_text, sorting_arrow_t);
619
	WriteText(sorting_arrow_x,files.y-12,0x80, sc.work_text, sorting_arrow_t);
620
	DrawBar(files.x+files.w,files.y,1,files.h,sc.work_graph);
620
	DrawBar(files.x+files.w,files.y,1,files.h,sc.line);
621
	if (efm) && (files.x<5) {
621
	if (efm) && (files.x<5) {
622
		DrawBar(files.x+files.w+16,files.y,1,files.h,EDX); //line between panel
622
		DrawBar(files.x+files.w+16,files.y,1,files.h,EDX); //line between panel
623
	}
623
	}
624
}
624
}
Line 641... Line 641...
641
{
641
{
642
	char status_bar_str[80];
642
	char status_bar_str[80];
643
	int go_up_folder_exists=0;
643
	int go_up_folder_exists=0;
644
	dword topcolor;
644
	dword topcolor;
Line 645... Line 645...
645
 
645
 
646
	if (show_status_bar.checked) topcolor=sc.work_light; else topcolor=sc.work;
646
	if (show_status_bar.checked) topcolor=sc.light; else topcolor=sc.work;
Line 647... Line 647...
647
	DrawBar(0, Form.cheight - status_bar_h-1, Form.cwidth, 1, topcolor);
647
	DrawBar(0, Form.cheight - status_bar_h-1, Form.cwidth, 1, topcolor);
648
 
648
 
649
	if (efm) {
649
	if (efm) {