Subversion Repositories Kolibri OS

Rev

Rev 5606 | Rev 5609 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5481 leency 1
//Leency, Veliant, Punk_Joker & KolibriOS Team 2008-2015
3363 leency 2
//GNU GPL licence.
3
 
4022 leency 4
#ifndef AUTOBUILD
5
#include "lang.h--"
6
#endif
7
 
3363 leency 8
//libraries
4049 leency 9
#define MEMSIZE 0xD0000
3363 leency 10
#include "..\lib\kolibri.h"
4427 punk_joker 11
#include "..\lib\clipboard.h"
3363 leency 12
#include "..\lib\strings.h"
13
#include "..\lib\mem.h"
14
#include "..\lib\dll.h"
15
#include "..\lib\file_system.h"
5499 leency 16
#include "..\lib\gui.h"
3434 leency 17
#include "..\lib\list_box.h"
18
#include "..\lib\copyf.h"
4863 leency 19
#include "..\lib\random.h"
5487 leency 20
//obj
5499 leency 21
#include "..\lib\obj\libini.h"
22
#include "..\lib\obj\box_lib.h"
3363 leency 23
//images
24
#include "imgs\toolbar.txt"
25
#include "imgs\left_p.txt"
4846 leency 26
#include "imgs\icons.txt"
3363 leency 27
 
3848 punk_joker 28
#ifdef LANG_RUS
29
	?define T_FILE "Файл"
30
	?define T_TYPE "Тип"
31
	?define T_SIZE "Размер"
32
	?define T_NEW_FOLDER "Новая папка"
33
	?define T_NEW_FILE "Новый файл"
34
	?define T_DELETE_FILE "Вы действительно хотите удалить"
35
	?define T_YES "Да"
36
	?define T_NO "Нет"
5555 punk_joker 37
	?define T_CANCEL "Отмена"
38
	?define T_CREATE "Создать"
5571 punk_joker 39
	?define T_RENAME "Переименовать"
5557 punk_joker 40
	?define FILE_EXISTS "Файл с таким именем существует"
41
	?define FOLDER_EXISTS "Папка с таким именем существует"
3848 punk_joker 42
	?define T_DEL_ERROR_1 "Ошибка. Папка не пустая."
3997 leency 43
	?define WAIT_DELETING_FOLDER "Удаляется папка. Подожите..."
3848 punk_joker 44
	?define NOT_CREATE_FOLDER "Не удалось создать папку."
45
	?define NOT_CREATE_FILE "Не удалось создать файл."
5506 punk_joker 46
	?define ERROR_1 "Ошибка при загрузке библиотеки /rd/1/lib/box_lib.obj"
5514 leency 47
	?define T_PASTE_WINDOW_TITLE "Копирую..."
3883 leency 48
	?define T_PASTE_WINDOW_TEXT "Копируется файл:"
5514 leency 49
	?define T_PASTE_WINDOW_BUTTON "Прервать"
50
	?define INFO_AFTER_COPY "Копирование завершено"
4022 leency 51
	?define T_CANCEL_PASTE "Копирование прекращено. Папка скопирована не полностью."
4049 leency 52
	?define T_SELECT_APP_TO_OPEN_WITH "Выберите программу для открытия файла"
5514 leency 53
	?define DEL_MORE_FILES_1 "выбранные элементы ("
5512 punk_joker 54
	?define DEL_MORE_FILES_2 " шт.)?"
3933 kaitz 55
#elif LANG_EST
56
	?define T_FILE "Fail"
57
	?define T_TYPE "T№№p"
58
	?define T_SIZE "Suurus"
59
	?define T_NEW_FOLDER "Uus kataloog"
60
	?define T_NEW_FILE "Uus fail"
61
	?define T_DELETE_FILE "Kas sa tahad tїesti kustutada"
62
	?define T_YES "Jah"
63
	?define T_NO "Ei"
5556 punk_joker 64
	?define T_CANCEL "Cancel"
65
	?define T_CREATE "Create"
5571 punk_joker 66
	?define T_RENAME "Rename"
5557 punk_joker 67
	?define FILE_EXISTS "The file with the same name exists"
68
	?define FOLDER_EXISTS "A folder with the same name exists"
3933 kaitz 69
	?define T_DEL_ERROR_1 "Viga. Kataloog ei ole t№hi."
3997 leency 70
	?define WAIT_DELETING_FOLDER "Deleting folder. Please, wait..."
3933 kaitz 71
	?define NOT_CREATE_FOLDER "Kataloogi ei saa luua."
72
	?define NOT_CREATE_FILE "Faili ei saa luua."
5506 punk_joker 73
	?define ERROR_1 "Viga teegi laadimisel /rd/1/lib/box_lib.obj"
5514 leency 74
	?define T_PASTE_WINDOW_TITLE "Kopeerin..."
3933 kaitz 75
	?define T_PASTE_WINDOW_TEXT "Kopeerin faili:"
5514 leency 76
	?define T_PASTE_WINDOW_BUTTON "Abort"
77
	?define INFO_AFTER_COPY "Copy finished"
4022 leency 78
	?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely."
4049 leency 79
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
5514 leency 80
	?define DEL_MORE_FILES_1 "selected items("
81
	?define DEL_MORE_FILES_2 " pcs.)?"
3848 punk_joker 82
#else
83
	?define T_FILE "File"
84
	?define T_TYPE "Type"
85
	?define T_SIZE "Size"
86
	?define T_NEW_FOLDER "New folder"
87
	?define T_NEW_FILE "New file"
88
	?define T_DELETE_FILE "Do you really want to delete"
89
	?define T_YES "Yes"
90
	?define T_NO "No"
5556 punk_joker 91
	?define T_CANCEL "Cancel"
92
	?define T_CREATE "Create"
5571 punk_joker 93
	?define T_RENAME "Rename"
5557 punk_joker 94
	?define FILE_EXISTS "The file with the same name exists"
95
	?define FOLDER_EXISTS "A folder with the same name exists"
3848 punk_joker 96
	?define T_DEL_ERROR_1 "Error. Folder isn't empty."
3997 leency 97
	?define WAIT_DELETING_FOLDER "Deleting folder. Please, wait..."
3848 punk_joker 98
	?define NOT_CREATE_FOLDER "Folder can not be created."
99
	?define NOT_CREATE_FILE "File can not be created."
5506 punk_joker 100
	?define ERROR_1 "Error while loading library /rd/1/lib/box_lib.obj"
5514 leency 101
	?define T_PASTE_WINDOW_TITLE "Copying..."
3883 leency 102
	?define T_PASTE_WINDOW_TEXT "Copying file:"
5514 leency 103
	?define T_PASTE_WINDOW_BUTTON "Abort"
104
	?define INFO_AFTER_COPY "Copy finished"
4022 leency 105
	?define T_CANCEL_PASTE "Copy process terminated. Folder copied incompletely."
4049 leency 106
	?define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
5514 leency 107
	?define DEL_MORE_FILES_1 "selected items("
108
	?define DEL_MORE_FILES_2 " pcs.)?"
3848 punk_joker 109
#endif
110
 
3444 leency 111
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
5581 leency 112
enum { CREATE_FILE=1, CREATE_FOLDER, RENAME_ITEM }; //NewElement
3444 leency 113
 
5581 leency 114
#define TITLE "Eolite File Manager v2.81"
115
#define ABOUT_TITLE "Eolite v2.81"
4076 leency 116
dword col_padding, col_selec, col_lpanel;
3363 leency 117
 
3434 leency 118
int toolbar_buttons_x[7]={9,46,85,134,167,203};
119
struct path_string { char Item[4096]; };
3363 leency 120
 
4136 punk_joker 121
byte active_about=0;
4070 punk_joker 122
word about_window;
5416 punk_joker 123
byte active_settings=0;
124
word settings_window;
5606 pavelyakov 125
dword _not_draw = false;
4136 punk_joker 126
byte menu_call_mouse=0;
127
 
3434 leency 128
llist files;
129
 
130
byte
3363 leency 131
	path[4096],
132
	file_path[4096],
3404 leency 133
	file_name[256],
5555 punk_joker 134
	new_element_name[256],
3434 leency 135
	temp[4096];
136
byte
3439 leency 137
	del_active=0,
5555 punk_joker 138
	new_element_active=0,
4399 punk_joker 139
	show_dev_name=1,
4225 punk_joker 140
	real_files_names_case=0,
5532 leency 141
	use_big_fonts=0,
142
	font_type,
5459 punk_joker 143
	info_after_copy=0,
3434 leency 144
	sort_num=2,
3441 leency 145
	itdir;
3363 leency 146
 
5441 leency 147
dword eolite_ini_path;
148
 
5608 leency 149
dword menu_stak,about_stak,properties_stak,settings_stak,copy_stak;
150
 
3363 leency 151
proc_info Form;
4076 leency 152
system_colors sc;
3363 leency 153
mouse m;
5532 leency 154
int mouse_dd, scroll_used, sc_slider_h, sorting_arrow_x, kolibrios_drive;
4897 leency 155
dword buf;
3434 leency 156
dword file_mas[6898];
157
int j, i;
4028 leency 158
int action_buf;
4863 leency 159
int rand_n;
5513 punk_joker 160
int selected_count;
5591 pavelyakov 161
byte CMD_REFRESH;
3363 leency 162
 
5549 punk_joker 163
mouse gestures;
164
signed x_old, y_old, dif_x, dif_y, adif_x, adif_y;
165
byte stats;
166
 
5557 punk_joker 167
edit_box edit2 = {250,213,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xFFFFFF,0,248,#file_name,#mouse_dd,64,6,6};
5581 leency 168
edit_box new_file_ed = {171,213,180,0xFFFFFF,0x94AECE,0xFFFFFF,0xFFFFFF,0,248,#new_element_name,#mouse_dd,100000000000010b,6,0};
3434 leency 169
PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0};
3363 leency 170
PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #temp, 0};
5576 pavelyakov 171
byte cmd_free;
4042 leency 172
#include "include\copy.h"
5435 leency 173
#include "include\gui.h"
3363 leency 174
#include "include\sorting.h"
4042 leency 175
#include "include\icons.h"
3363 leency 176
#include "include\left_panel.h"
177
#include "include\history.h"