Subversion Repositories Kolibri OS

Rev

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

Rev 8949 Rev 8951
Line 1... Line 1...
1
//Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2021
1
//Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2021
2
//GNU GPL license.
2
//GNU GPL license.
Line 3... Line 3...
3
 
3
 
Line 4... Line 4...
4
// 70.5 - get volume info and label
4
// 70.5 - get volume info and label
5
 
5
 
6
#define ABOUT_TITLE "EOLITE 5 Beta9"
6
#define ABOUT_TITLE "EOLITE 5 Beta10"
Line 7... Line 7...
7
#define TITLE_EOLITE "Eolite File Manager 5 Beta9"
7
#define TITLE_EOLITE "Eolite File Manager 5 Beta10"
8
#define TITLE_KFM "Kolibri File Manager 2 Beta9";
8
#define TITLE_KFM "Kolibri File Manager 2 Beta10";
9
 
9
 
10
#define MEMSIZE 1024 * 250
10
#define MEMSIZE 1024 * 250
Line 108... Line 108...
108
 
108
 
109
edit_box new_file_ed = {200,213,180,0xFFFFFF,0x94AECE,0xFFFFFF,0xFFFFFF,0x10000000,
109
edit_box new_file_ed = {200,213,180,0xFFFFFF,0x94AECE,0xFFFFFF,0xFFFFFF,0x10000000,
110
	248,#new_element_name,0,ed_focus+ed_always_focus,6,0};
110
	248,#new_element_name,0,ed_focus+ed_always_focus,6,0};
Line 111... Line -...
111
PathShow_data FileShow = {0, 56,215, 8, 100, 1, 0, 0x0, 0xFFFfff, #file_name, #temp, 0};
-
 
112
 
-
 
113
 
111
PathShow_data FileShow = {0, 56,215, 8, 100, 1, 0, 0x0, 0xFFFfff, #file_name, #temp, 0};
-
 
112
 
114
#include "include\gui.h"
113
#include "include\settings.h"
115
#include "include\settings.h"
114
#include "include\gui.h"
116
#include "include\progress_dialog.h"
115
#include "include\progress_dialog.h"
117
#include "include\copy_and_delete.h"
116
#include "include\copy_and_delete.h"
118
#include "include\sorting.h"
117
#include "include\sorting.h"
119
#include "include\icons.h"
118
#include "include\icons.h"
120
#include "include\left_panel.h"
119
#include "include\left_panel.h"
121
#include "include\menu.h"
120
#include "include\menu.h"
122
#include "include\about.h"
-
 
Line 123... Line 121...
123
#include "include\properties.h"
121
#include "include\about.h"
124
#include "include\breadcrumbs.h"
122
#include "include\properties.h"
125
 
123
 
126
void handle_param()
124
void handle_param()
Line 646... Line 644...
646
	int files_y = files.y;
644
	int files_y = files.y;
647
	int w2 = -Form.cwidth-1/2+Form.cwidth;
645
	int w2 = -Form.cwidth-1/2+Form.cwidth;
648
	int h2 = Form.cheight-files_y-2 - status_bar_h;
646
	int h2 = Form.cheight-files_y-2 - status_bar_h;
649
	if (!efm)
647
	if (!efm)
650
	{
648
	{
651
		DrawDeviceAndActionsLeftPanel();
649
		SystemDiscs.Draw();
652
		files.SetSizes(192, 57, Form.cwidth - 210, Form.cheight - 59 - status_bar_h, files.item_h);
650
		files.SetSizes(192, 57, Form.cwidth - 210, Form.cheight - 59 - status_bar_h, files.item_h);
653
		DrawButtonsAroundList();
651
		DrawButtonsAroundList();
654
		List_ReDraw();
652
		List_ReDraw();
655
	}
653
	}
656
	else
654
	else
657
	{
655
	{
658
		llist_copy(#files_active, #files);
-
 
659
		llist_copy(#files, #files_inactive);
-
 
660
		path = location[active_panel^1];
-
 
661
 
-
 
662
		if (active_panel==0)
656
		if (!active_panel) {
663
		{
-
 
664
			files.SetSizes(Form.cwidth/2, files_y, w2-17, h2, files.item_h);
657
			files.SetSizes(Form.cwidth/2, files_y, w2-17, h2, files.item_h);
665
			DrawButtonsAroundList();
658
		} else {
666
			Open_Dir(path,WITH_REDRAW);
-
 
667
			files_inactive.count = files.count;
-
 
668
			llist_copy(#files, #files_active);
-
 
669
			path = location[active_panel];
-
 
670
			files.SetSizes(2, files_y, Form.cwidth/2-2-17, h2, files.item_h);
659
			files.SetSizes(2, files_y, Form.cwidth/2-2-17, h2, files.item_h);
671
			DrawButtonsAroundList();
-
 
672
			Open_Dir(path,WITH_REDRAW);
-
 
673
		}
660
		}
674
		if (active_panel==1)
-
 
675
		{
661
 
676
			files.SetSizes(2, files_y, Form.cwidth/2-2-17, h2, files.item_h);
662
		files_inactive.x = files.x;
677
			DrawButtonsAroundList();
663
		DrawButtonsAroundList();
678
			Open_Dir(path,WITH_REDRAW);
664
		path = location[active_panel^1];
679
			files_inactive.count = files.count;
665
		Open_Dir(location[active_panel^1],WITH_REDRAW);
680
			llist_copy(#files, #files_active);
666
		llist_copy(#files_inactive, #files);
-
 
667
 
681
			path = location[active_panel];
668
		if (!active_panel) {
-
 
669
			files.SetSizes(2, files_y, Form.cwidth/2-2-17, h2, files.item_h);
-
 
670
		} else {
682
			files.SetSizes(Form.cwidth/2, files_y, w2 -17, h2, files.item_h);
671
			files.SetSizes(Form.cwidth/2, files_y, w2 -17, h2, files.item_h);
683
			DrawButtonsAroundList();
-
 
684
			Open_Dir(path,WITH_REDRAW);
-
 
685
		}
672
		}
-
 
673
 
-
 
674
		DrawButtonsAroundList();
-
 
675
		path = location[active_panel];
-
 
676
		Open_Dir(location[active_panel],WITH_REDRAW);
686
	}
677
	}
687
}
678
}
Line 688... Line 679...
688
 
679
 
689
void List_ReDraw()
680
void List_ReDraw()
Line 1206... Line 1197...
1206
			return;
1197
			return;
1207
		}
1198
		}
1208
	} else {
1199
	} else {
1209
		if (GetRealFileCountInFolder("/")+dir_exists("/kolibrios") != SystemDiscs.dev_num) {
1200
		if (GetRealFileCountInFolder("/")+dir_exists("/kolibrios") != SystemDiscs.dev_num) {
1210
			SystemDiscs.Get();
1201
			SystemDiscs.Get();
1211
			DrawDeviceAndActionsLeftPanel();
1202
			SystemDiscs.Draw();
1212
		}
1203
		}
1213
	}
1204
	}
1214
	if(GetRealFileCountInFolder(path) != files.count) Open_Dir(path,WITH_REDRAW);
1205
	if(GetRealFileCountInFolder(path) != files.count) Open_Dir(path,WITH_REDRAW);
1215
}
1206
}
Line 1216... Line 1207...
1216
 
1207
 
1217
void EventManualFolderRefresh()
1208
void EventManualFolderRefresh()
1218
{
1209
{
1219
	Tip(56, T_DEVICES, 55, "-");
1210
	Tip(56, T_DEVICES, 55, "-");
1220
	pause(10);
-
 
1221
	EventRefreshDisksAndFolders();
1211
	pause(10);
1222
	DrawDeviceAndActionsLeftPanel();
1212
	DrawFilePanels();
Line 1223... Line 1213...
1223
}
1213
}
1224
 
1214
 
1225
void EventSort(dword id)
1215
void EventSort(dword id)