Subversion Repositories Kolibri OS

Rev

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

Rev 5399 Rev 5401
Line 1... Line 1...
1
//Leency & Veliant 2008-2014
1
//Leency & Veliant 2008-2015
2
//GNU GPL licence.
2
//GNU GPL licence.
Line 3... Line 3...
3
 
3
 
4
#ifndef AUTOBUILD
4
#ifndef AUTOBUILD
5
#include "lang.h--"
5
#include "lang.h--"
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.43"
86
#define TITLE "Eolite File Manager v2.44"
Line 87... Line 87...
87
#define ABOUT_TITLE "Eolite v2.43"
87
#define ABOUT_TITLE "Eolite v2.44"
88
dword col_padding, col_selec, col_lpanel;
88
dword col_padding, col_selec, col_lpanel;
89
 
89
 
Line 105... Line 105...
105
	temp[4096];	 
105
	temp[4096];	 
106
byte
106
byte
107
	rename_active=0,
107
	rename_active=0,
108
	del_active=0,
108
	del_active=0,
109
	show_dev_name=1,
109
	show_dev_name=1,
110
	drw_ram_disk_space=0,
-
 
111
	real_files_names_case=0,
110
	real_files_names_case=0,
112
	sort_num=2,
111
	sort_num=2,
113
	itdir;
112
	itdir;
Line 114... Line 113...
114
 
113
 
Line 141... Line 140...
141
	sc.work = 0xE4DFE1;
140
	sc.work = 0xE4DFE1;
142
	sc.work_text = 0;
141
	sc.work_text = 0;
143
	sc.work_graph  = 0x9098B0; //A0A0B8; //0x819FC5;
142
	sc.work_graph  = 0x9098B0; //A0A0B8; //0x819FC5;
144
	sc.work_button_text = 0x000000;
143
	sc.work_button_text = 0x000000;
145
	col_padding = 0xC8C9C9;
144
	col_padding = 0xC8C9C9;
146
	col_selec   = 0x94AECE;
145
	//col_selec   = 0x94AECE;
147
	col_lpanel  = 0x00699C;
146
	col_lpanel  = 0x00699C;
148
	/*
147
	/*
149
	sc.get();
148
	sc.get();
150
	for (i=0; i<=14; i++) col_palette[i] = sc.work;
149
	for (i=0; i<=14; i++) col_palette[i] = sc.work;
151
	toolbar_pal[0]= goto_about_pal[0] = sc.work = sc.work;
150
	toolbar_pal[0]= goto_about_pal[0] = sc.work = sc.work;
Line 668... Line 667...
668
			return;
667
			return;
669
		}
668
		}
670
		maxcount = sizeof(file_mas)/sizeof(dword)-1;
669
		maxcount = sizeof(file_mas)/sizeof(dword)-1;
671
		if (files.count>maxcount) files.count = maxcount;
670
		if (files.count>maxcount) files.count = maxcount;
672
		if (files.count>0) && (files.current==-1) files.current=0;
671
		if (files.count>0) && (files.current==-1) files.current=0;
673
		if (drw_ram_disk_space) DrawRamDiskSpace();
-
 
674
	}
672
	}
675
	if (files.count!=-1)
673
	if (files.count!=-1)
676
	{
674
	{
677
		KEdit();
675
		KEdit();
678
		HistoryPath(ADD_NEW_PATH);
676
		HistoryPath(ADD_NEW_PATH);
Line 894... Line 892...
894
void Open()
892
void Open()
895
{
893
{
896
	if (!files.count) return;
894
	if (!files.count) return;
897
	if (!itdir)
895
	if (!itdir)
898
	{
896
	{
899
		RunProgram("/sys/@open", #file_path);
897
		if (strrchr(#file_name, '.')==0) RunProgram(#file_path, ""); else RunProgram("/sys/@open", #file_path);
900
	} 
898
	} 
901
	else
899
	else
902
	{
900
	{
903
		if (!strcmp(#file_name,"..")) { Dir_Up(); return; }
901
		if (!strcmp(#file_name,"..")) { Dir_Up(); return; }
904
		strcpy(#path, #file_path);
902
		strcpy(#path, #file_path);