Subversion Repositories Kolibri OS

Rev

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

Rev 7369 Rev 7375
Line 131... Line 131...
131
#include "include\properties.h"
131
#include "include\properties.h"
132
#include "include\breadcrumbs.h"
132
#include "include\breadcrumbs.h"
Line 133... Line 133...
133
 
133
 
134
void main() 
134
void main() 
135
{
135
{
136
	byte update = 0;
136
	bool update_files_list = false;
137
	dword files_count = 0;
137
	dword files_count = 0;
138
	dword countPathFile = 0;
138
	dword countPathFile = 0;
139
	dword countPathFile2 = 0;
139
	dword countPathFile2 = 0;
140
	dword files_y = 0;
140
	dword files_y = 0;
Line 151... Line 151...
151
	load_dll(boxlib, #box_lib_init,0);
151
	load_dll(boxlib, #box_lib_init,0);
152
	load_dll(libini, #lib_init,1);
152
	load_dll(libini, #lib_init,1);
153
	load_dll(libio,  #libio_init,1);
153
	load_dll(libio,  #libio_init,1);
154
	load_dll(libimg, #libimg_init,1);
154
	load_dll(libimg, #libimg_init,1);
Line -... Line 155...
-
 
155
	
155
	
156
	SetAppColors();
156
	LoadIniSettings();
157
	LoadIniSettings();
157
	SystemDiscs.Get();
-
 
Line 158... Line 158...
158
	SetAppColors();
158
	SystemDiscs.Get();
159
 
159
 
160
	Libimg_LoadImage(#icons16_default, "/sys/icons16.png");
160
	Libimg_LoadImage(#icons16_default, "/sys/icons16.png");
161
	Libimg_LoadImage(#icons16_selected, "/sys/icons16.png");
161
	Libimg_LoadImage(#icons16_selected, "/sys/icons16.png");
Line 539... Line 539...
539
				}
539
				}
540
			break;
540
			break;
541
			default:
541
			default:
Line 542... Line 542...
542
				
542
				
543
				ReadDir(19, devbuf, "/"); // get disk
543
				ReadDir(19, devbuf, "/"); // get disk
544
				IF(countDisk != EBX) // if different then
544
				if(countDisk != EBX) // if different then
545
				{
545
				{
546
					countDisk = EBX;
546
					countDisk = EBX;
547
					FnProcess(5);
547
					FnProcess(5);
548
				}
548
				}
549
				else // get current files
549
				else // get current files
550
				{
550
				{
551
					if(two_panels.checked)
551
					if(two_panels.checked)
552
					{
552
					{
553
						// this add code update list files
553
						// this add code update list files
554
						update = 0;
554
						update_files_list = false;
555
						//strcpy(#inactive_path,#path);
555
						//strcpy(#inactive_path,#path);
556
						ReadDir(19, devbuf, #inactive_path);
556
						ReadDir(19, devbuf, #inactive_path);
557
						IF(countPathFile != EBX) // if different then
557
						if(countPathFile != EBX) // if different then
558
						{
558
						{
559
							countPathFile = EBX;
559
							countPathFile = EBX;
560
							update = 0xFF;
560
							update_files_list = true;
Line 561... Line 561...
561
						}
561
						}
562
						
562
						
563
						//strcpy(#active_path,#path);
563
						//strcpy(#active_path,#path);
564
						ReadDir(19, devbuf, #active_path);
564
						ReadDir(19, devbuf, #active_path);
565
						IF(countPathFile2 != EBX) // if different then
565
						if(countPathFile2 != EBX) // if different then
566
						{
566
						{
567
							countPathFile2 = EBX;
567
							countPathFile2 = EBX;
568
							update = 0xFF;
568
							update_files_list = true;
569
						}
569
						}
570
						IF(update) DrawFilePanels();
570
						if(update_files_list) DrawFilePanels();
571
					}
571
					}
572
					ELSE
572
					else
573
					{
573
					{
574
						ReadDir(19, devbuf, #path);
574
						ReadDir(19, devbuf, #path);
575
						IF(countPathFile != EBX) // if different then
575
						if(countPathFile != EBX) // if different then
576
						{
576
						{
577
							countPathFile = EBX;
577
							countPathFile = EBX;
578
							Open_Dir(#path,WITH_REDRAW);
578
							Open_Dir(#path,WITH_REDRAW);