Subversion Repositories Kolibri OS

Rev

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

Rev 5416 Rev 5428
Line 81... Line 81...
81
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
81
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
82
#endif
82
#endif
Line 83... Line 83...
83
 
83
 
Line 84... Line 84...
84
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
84
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
85
 
85
 
86
#define TITLE "Eolite File Manager v2.45"
86
#define TITLE "Eolite File Manager v2.46"
Line 87... Line 87...
87
#define ABOUT_TITLE "Eolite v2.45"
87
#define ABOUT_TITLE "Eolite v2.46"
88
dword col_padding, col_selec, col_lpanel;
88
dword col_padding, col_selec, col_lpanel;
89
 
89
 
Line 129... Line 129...
129
 
129
 
130
#include "include\copy.h"
130
#include "include\copy.h"
131
#include "include\other.h"
131
#include "include\other.h"
132
#include "include\sorting.h"
132
#include "include\sorting.h"
133
#include "include\icons.h"
-
 
134
#include "include\ini.h"
133
#include "include\icons.h"
135
#include "include\left_panel.h"
134
#include "include\left_panel.h"
136
#include "include\history.h"
135
#include "include\history.h"
137
#include "include\menu.h"
136
#include "include\menu.h"
138
#include "include\about.h"
137
#include "include\about.h"
Line 139... Line -...
139
#include "include\settings.h"
-
 
140
 
-
 
141
void SetAppColors()
-
 
142
{
-
 
143
	sc.work = 0xE4DFE1;
-
 
144
	sc.work_text = 0;
-
 
145
	sc.work_graph  = 0x9098B0; //A0A0B8; //0x819FC5;
-
 
146
	sc.work_button_text = 0x000000;
-
 
147
	col_padding = 0xC8C9C9;
-
 
148
	//col_selec   = 0x94AECE;
-
 
149
	col_lpanel  = 0x00699C;
-
 
150
	/*
-
 
151
	sc.get();
-
 
152
	for (i=0; i<=14; i++) col_palette[i] = sc.work;
-
 
153
	toolbar_pal[0]= goto_about_pal[0] = sc.work = sc.work;
-
 
154
	col_lpanel = sc.work_graph;
-
 
155
	for (i=0; i<=99; i++) blue_hl_pal[i] = sc.work_graph;
-
 
Line 156... Line 138...
156
	*/
138
#include "include\settings.h"
157
}
139
 
158
 
140
 
159
void main() 
141
void main() 
Line 166... Line 148...
166
	files.line_h=18;
148
	files.line_h=18;
167
	mem_Init();
149
	mem_Init();
168
	if (load_dll2(boxlib, #box_lib_init,0)!=0) notify(ERROR_1);
150
	if (load_dll2(boxlib, #box_lib_init,0)!=0) notify(ERROR_1);
169
    if (load_dll2(libini, #lib_init,1)!=0) notify("Error: library doesn't exists - libini");
151
    if (load_dll2(libini, #lib_init,1)!=0) notify("Error: library doesn't exists - libini");
170
	SystemDiscsGet();
152
	SystemDiscsGet();
171
	GetIni(1);
153
	GetIni();
172
	SetAppColors();
154
	SetAppColors();
173
	if (param)
155
	if (param)
174
	{
156
	{
175
		strcpy(#path, #param);
157
		strcpy(#path, #param);
176
		if (path[strlen(#path)-1]!='/') chrcat(#path, '/'); //add "/" to the end of the string
158
		if (path[strlen(#path)-1]!='/') chrcat(#path, '/'); //add "/" to the end of the string
Line 475... Line 457...
475
	if (id==105) Copy(#file_path, CUT);
457
	if (id==105) Copy(#file_path, CUT);
476
	if (id==106) CreateThread(#Paste,#copy_stak+4092);
458
	if (id==106) CreateThread(#Paste,#copy_stak+4092);
477
	if (id==207) FnProcess(2);
459
	if (id==207) FnProcess(2);
478
	if (id==108) Del_Form();
460
	if (id==108) Del_Form();
479
	if (id==109) FnProcess(5);
461
	if (id==109) FnProcess(5);
-
 
462
	if (id==300) { FnProcess(5); List_ReDraw(); }
480
}
463
}
Line 481... Line 464...
481
 
464
 
482
 
465
 
Line 961... Line 944...
961
			break;
944
			break;
962
		case 5: //refresh cur dir & devs
945
		case 5: //refresh cur dir & devs
963
			Tip(56, T_DEVICES, 55, "-");
946
			Tip(56, T_DEVICES, 55, "-");
964
			Open_Dir(#path,WITH_REDRAW);
947
			Open_Dir(#path,WITH_REDRAW);
965
			pause(10);
948
			pause(10);
966
			GetIni(1);
949
			GetIni();
967
			SystemDiscsGet();
950
			SystemDiscsGet();
968
			Open_Dir(#path,WITH_REDRAW);
951
			Open_Dir(#path,WITH_REDRAW);
969
			DrawLeftPanel();
952
			DrawLeftPanel();
970
			break;
953
			break;
971
		case 6:
954
		case 6: