Subversion Repositories Kolibri OS

Rev

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

Rev 3043 Rev 3045
Line 18... Line 18...
18
#define ONLY_SHOW	0
18
#define ONLY_SHOW	0
19
#define WITH_REDRAW	1
19
#define WITH_REDRAW	1
20
#define ONLY_OPEN	2
20
#define ONLY_OPEN	2
Line 21... Line 21...
21
 
21
 
22
//ïåðåìåííûå
22
//ïåðåìåííûå
23
#define title "Eolite File Manager v1.36"
23
#define title "Eolite File Manager v1.38"
24
dword selection_col = 0x94AECE;
24
dword selection_col = 0x94AECE;
Line 25... Line 25...
25
dword lpanel_col = 0x00699C;
25
dword lpanel_col = 0x00699C;
Line 405... Line 405...
405
}
405
}
Line 406... Line 406...
406
 
406
 
407
 
407
 
-
 
408
inline fastcall void draw_window()
-
 
409
{	
408
inline fastcall void draw_window()
410
	int min_size_y = disc_num*16+195;
409
{	
411
	
410
	if (GetScreenHeight()<480)
412
	if (GetScreenHeight()<480)
411
		DefineAndDrawWindow(20,0,582,GetScreenHeight()-30,0x73,0xE4DFE1,title);
413
		DefineAndDrawWindow(20,0,582,GetScreenHeight()-30,0x73,0xE4DFE1,title);
412
	else
414
	else
413
		DefineAndDrawWindow(98,90,582,482,0x73,0xE4DFE1,title);
415
		DefineAndDrawWindow(98,90,582,482,0x73,0xE4DFE1,title);
414
	Form.GetInfo(#Form, SelfInfo);
416
	Form.GetInfo(#Form, SelfInfo);
415
	if (Form.status_window>2) return; //íè÷åãî íå äåëàòü åñëè îêíî ñõëîïíóòî â çàãîëîâîê
417
	if (Form.status_window>2) return; //íè÷åãî íå äåëàòü åñëè îêíî ñõëîïíóòî â çàãîëîâîê
Line 416... Line 418...
416
	if (Form.height<280) MoveSize(OLD,OLD,OLD,280);
418
	if (Form.height
417
	if (Form.width<480) MoveSize(OLD,OLD,480,OLD);
419
	if (Form.width<480) MoveSize(OLD,OLD,480,OLD);
418
	  
420
	  
Line 773... Line 775...
773
 
775
 
774
void Actions()
776
void Actions()
775
{
777
{
Line 776... Line -...
776
	int actions_y=disc_num*16;
-
 
777
	
-
 
778
	DrawBar(17,actions_y+75,160,15,lpanel_col); //ñèíèé ïðÿìîóãîëüíèê - ïîä äåâàéñàìè
-
 
779
	DrawBar(17,show_actions*51+actions_y+108,160,onTop(show_actions*51+actions_y+108,6),lpanel_col); //ñèíåå â êîíöå
778
	int actions_y=disc_num*16;
780
 
779
	
781
	DeleteButton(80);
780
	DeleteButton(80);
Line 782... Line 781...
782
	DeleteButton(81);
781
	DeleteButton(81);
Line 800... Line 799...
800
		//create folder
799
		//create folder
801
		DefineButton(17,actions_y+142,159,16,82+BT_HIDE,0xE4DFE1);
800
		DefineButton(17,actions_y+142,159,16,82+BT_HIDE,0xE4DFE1);
802
		WriteText(42,actions_y+147,0x80,0,"Create folder",0);
801
		WriteText(42,actions_y+147,0x80,0,"Create folder",0);
803
		WriteText(150,actions_y+147,0x80,0x999999,"[F6]",0);
802
		WriteText(150,actions_y+147,0x80,0x999999,"[F6]",0);
804
	}
803
	}
-
 
804
	LeftPanel();
-
 
805
}
-
 
806
 
-
 
807
 
-
 
808
void LeftPanel()
-
 
809
{
-
 
810
	int actions_y=disc_num*16;
-
 
811
	int start_y = show_actions*51+actions_y+108;
-
 
812
	DrawBar(2,41,190,15,lpanel_col);		      //ñèíèé ïðÿìîóãîëüíèê - íàä äåâàéñàìè
-
 
813
	DrawBar(17,actions_y+75,160,15,lpanel_col); //ñèíèé ïðÿìîóãîëüíèê - ïîä äåâàéñàìè
-
 
814
	DrawBar(2,56,15,actions_y+103,lpanel_col);	          //ñèíèé ïðÿìîóãîëüíèê - ñëåâà       
-
 
815
	DrawBar(177,56,15,actions_y+103,lpanel_col);            //ñèíèé ïðÿìîóãîëüíèê - ñïðàâà
-
 
816
	if (onTop(start_y, 6) < 268)
-
 
817
		PutPaletteImage(#blue_hl, 190, onTop(start_y, 6), 2, start_y, #blue_hl_pal);
-
 
818
	else
-
 
819
	{
-
 
820
		DrawBar(2,start_y,190,onTop(start_y,6+268),lpanel_col);
-
 
821
		PutPaletteImage(#blue_hl, 190, 268, 2, onTop(268,6), #blue_hl_pal);
-
 
822
	}
805
}
823
}
Line 806... Line 824...
806
 
824