Subversion Repositories Kolibri OS

Rev

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

Rev 3854 Rev 3876
Line 1... Line 1...
1
//Leency & Veliant 2008-2013
1
//Leency & Veliant 2008-2013
2
//GNU GPL licence.
2
//GNU GPL licence.
Line 3... Line -...
3
 
-
 
4
//êîïèðîâàòü ÷åðåç ïîòîê
-
 
5
 
3
 
6
//libraries
4
//libraries
7
#define MEMSIZE 0xA0000
5
#define MEMSIZE 0xA0000
8
#include "..\lib\kolibri.h"
6
#include "..\lib\kolibri.h"
9
#include "..\lib\strings.h"
7
#include "..\lib\strings.h"
Line 54... Line 52...
54
	?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj"
52
	?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj"
55
#endif
53
#endif
Line 56... Line 54...
56
 
54
 
Line 57... Line 55...
57
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
55
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
58
 
56
 
59
#define TITLE "Eolite File Manager v1.92"
57
#define TITLE "Eolite File Manager v1.93"
60
#define ABOUT_TITLE "Eolite v1.92"
58
#define ABOUT_TITLE "Eolite v1.93"
61
dword col_work    = 0xE4DFE1;
59
dword col_work    = 0xE4DFE1;
62
dword col_border  = 0x9098B0; //A0A0B8; //0x819FC5;
60
dword col_border  = 0x9098B0; //A0A0B8; //0x819FC5;
63
dword col_padding = 0xC8C9C9;
61
dword col_padding = 0xC8C9C9;
Line 155... Line 153...
155
					{
153
					{
156
						can_show=0;
154
						can_show=0;
157
						break;
155
						break;
158
					}
156
					}
159
					if (files.current!=id)
157
					if (files.current!=id)
-
 
158
					{
160
						List_Current(id-files.current);
159
						if (id
-
 
160
					}
161
					else
161
					else
162
						Open();
162
						Open();
163
				}
163
				}
164
			};
164
			};
165
			// } select/open file
165
			// } select/open file
Line 487... Line 487...
487
 
487
 
488
 
488
 
489
void List_ReDraw()
489
void List_ReDraw()
490
{
-
 
491
	int paint_y;
490
{
492
	//åñëè ìû â êîíöå ñïèñêà ôàéëîâ ðàçâåðí¸ì îêíî ïîÿâÿòüñÿ ïóñòÿå áåëûå êíîïêè
491
	int paint_y;
493
	//ýòî åñëè âûäåëåíèå ïîñëå ñõëîïûâàíèÿ îêíà çà êàäðîì
492
	//we are in the end of the list => maximize window => there will be white lines after the last element
494
	if (files.count-files.firstfiles.visible-1)
-
 
495
	{ files.first=files.count-files.visible; files.current=files.visible-1; }
493
	if (files.count-files.firstfiles.visible-1)
496
 
494
	{ files.first=files.count-files.visible; files.current=files.visible-1; }
497
	for (j=0; j
495
	for (j=0; j
498
	//in the bottom
496
	//in the bottom
499
	paint_y = j * files.line_h + files.y;
497
	paint_y = j * files.line_h + files.y;