Subversion Repositories Kolibri OS

Rev

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

Rev 5532 Rev 5549
Line 93... Line 93...
93
	?define DEL_MORE_FILES_2 " pcs.)?"
93
	?define DEL_MORE_FILES_2 " pcs.)?"
94
#endif
94
#endif
Line 95... Line 95...
95
 
95
 
Line 96... Line 96...
96
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
96
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
97
 
97
 
98
#define TITLE "Eolite File Manager v2.7"
98
#define TITLE "Eolite File Manager v2.72"
Line 99... Line 99...
99
#define ABOUT_TITLE "Eolite v2.7"
99
#define ABOUT_TITLE "Eolite v2.72"
100
dword col_padding, col_selec, col_lpanel;
100
dword col_padding, col_selec, col_lpanel;
Line 138... Line 138...
138
int j, i;
138
int j, i;
139
int action_buf;
139
int action_buf;
140
int rand_n;
140
int rand_n;
141
int selected_count;
141
int selected_count;
Line -... Line 142...
-
 
142
 
-
 
143
mouse gestures;
-
 
144
signed x_old, y_old, dif_x, dif_y, adif_x, adif_y;
-
 
145
byte stats;
142
 
146
 
143
edit_box edit2 = {250,213,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xffffff,0,248,#file_name,#mouse_dd,64,6,6};
147
edit_box edit2 = {250,213,80,0xFFFFCC,0x94AECE,0xFFFFCC,0xffffff,0,248,#file_name,#mouse_dd,64,6,6};
144
PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0};
148
PathShow_data PathShow = {0, 17,250, 6, 250, 0, 0, 0x0, 0xFFFfff, #path, #temp, 0};
Line 145... Line 149...
145
PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #temp, 0};
149
PathShow_data FileShow = {0, 56,215, 6, 100, 0, 0, 0x0, 0xFFFfff, #file_name, #temp, 0};
Line 158... Line 162...
158
void main() 
162
void main() 
159
{
163
{
160
	word key, id, can_show, can_select, m_selected;
164
	word key, id, can_show, can_select, m_selected;
161
	dword selected_offset;
165
	dword selected_offset;
162
	rand_n = random(40);
166
	rand_n = random(40);
163
 
-
 
-
 
167
	gestures.get();
164
	mem_Init();
168
	mem_Init();
165
	if (load_dll2(boxlib, #box_lib_init,0)!=0) notify(ERROR_1);
169
	if (load_dll2(boxlib, #box_lib_init,0)!=0) notify(ERROR_1);
166
    if (load_dll2(libini, #lib_init,1)!=0) notify("Error: library doesn't exists - libini");
170
    if (load_dll2(libini, #lib_init,1)!=0) notify("Error: library doesn't exists - libini");
167
	eolite_ini_path = abspath("Eolite.ini"); 
171
	eolite_ini_path = abspath("Eolite.ini"); 
168
	LoadIniSettings();
172
	LoadIniSettings();
Line 185... Line 189...
185
			if (del_active) || (!CheckActiveProcess(Form.ID)) || (Form.status_window>2) break;
189
			if (del_active) || (!CheckActiveProcess(Form.ID)) || (Form.status_window>2) break;
186
			if (rename_active) { edit_box_mouse stdcall(#edit2); break; }
190
			if (rename_active) { edit_box_mouse stdcall(#edit2); break; }
Line 187... Line 191...
187
			
191
			
Line -... Line 192...
-
 
192
			m.get();
-
 
193
			
-
 
194
			
-
 
195
			gestures.get();
-
 
196
			if (gestures.mkm) && (stats==0)
-
 
197
			{
-
 
198
				x_old = gestures.x;
-
 
199
				y_old = gestures.y;
-
 
200
				stats = 1;
-
 
201
			}
-
 
202
			if (gestures.mkm) && (stats==1)
-
 
203
			{
-
 
204
				dif_x = gestures.x-x_old;
-
 
205
				dif_y = gestures.y-y_old;
-
 
206
				
-
 
207
				if (dif_x<0) adif_x = -dif_x;
-
 
208
				else adif_x = dif_x;
-
 
209
				if (dif_y<0) adif_y = -dif_y;
-
 
210
				else adif_y = dif_y;
-
 
211
				
-
 
212
				if (adif_x>adif_y)
-
 
213
				{
-
 
214
					if (dif_x > 150)
-
 
215
					{
-
 
216
						if (HistoryPath(GO_FORWARD))
-
 
217
							{
-
 
218
								files.first=files.current=NULL; //aaa?o nienea
-
 
219
								Open_Dir(#path,WITH_REDRAW);
-
 
220
							}
-
 
221
						stats = 0;
-
 
222
					}
-
 
223
					if (dif_x < -150)
-
 
224
					{
-
 
225
						GoBack();
-
 
226
						stats = 0;
-
 
227
					}
-
 
228
				}
-
 
229
				else
-
 
230
				{
-
 
231
					if (dif_y < -150)
-
 
232
					{
-
 
233
						Dir_Up();
-
 
234
						stats = 0;
-
 
235
					}
-
 
236
				}
-
 
237
			}
188
			m.get();
238
			
189
 
239
 
190
			if (files.MouseOver(m.x, m.y)) && (!can_select)
240
			if (files.MouseOver(m.x, m.y)) && (!can_select)
191
			{
241
			{
192
				m_selected = m.y - files.y / files.line_h;
242
				m_selected = m.y - files.y / files.line_h;